瀏覽代碼

1

JXJAgvReake
Mr_z 1 年之前
父節點
當前提交
32f1fe0610
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      DosingSystem/ViewModel/RecipeControlViewModel.cs

+ 4
- 0
DosingSystem/ViewModel/RecipeControlViewModel.cs 查看文件

@@ -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…
取消
儲存