|
|
@@ -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) |
|
|
|