Browse Source

1

JXJAgvReake
Mr_z 1 year ago
parent
commit
32f1fe0610
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      DosingSystem/ViewModel/RecipeControlViewModel.cs

+ 4
- 0
DosingSystem/ViewModel/RecipeControlViewModel.cs View File

@@ -49,9 +49,12 @@ namespace BPASmartClient.DosingSystem.ViewModel
Recipes.ElementAt(index).Are.Set();
App.Current.Dispatcher.Invoke(new Action(() => { recipeProcesses.Clear(); }));
SiemensDevice.GetInstance.MySiemens.Write("M10.5", true);
MessageNotify.GetInstance.ShowRunLog($"M10.5:true");
Thread.Sleep(1000);
SiemensDevice.GetInstance.MySiemens.Write("M10.5", false);
MessageNotify.GetInstance.ShowRunLog($"M10.5:false");
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"配方 [{recipe.RecipeName}] 取消成功");
MessageNotify.GetInstance.ShowUserLog($"取消配方制作 {recipe.RecipeName}");
}));
}
@@ -331,6 +334,7 @@ namespace BPASmartClient.DosingSystem.ViewModel
{
if (cnt >= 1 && cnt <= 6)
{
int a1 = Array.FindIndex(DeviceInquire.GetInstance.devices.ToArray(), p => p.DeviceNum == cnt * 2 - 1);
int b1 = Array.FindIndex(DeviceInquire.GetInstance.devices.ToArray(), p => p.DeviceNum == cnt * 2);
if (a1 >= 0)


Loading…
Cancel
Save