|
|
@@ -165,6 +165,14 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
CompletedNumResetCommand = new RelayCommand(() => { |
|
|
|
if (MessageNotify.GetInstance.ShowDialog("请确认,是否将配方完成数目清零?",DialogType.Warning)) |
|
|
|
{ |
|
|
|
GVL_SmallStation.GetInstance.RecipeDosingCompleNum = 0; |
|
|
|
NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", "配方完成数目清零成功!"); |
|
|
|
MessageNotify.GetInstance.ShowUserLog("手动清零配方完成数目。"); |
|
|
|
} |
|
|
|
}); |
|
|
|
ThreadManage.GetInstance().StartLong(new Action(() => |
|
|
|
{ |
|
|
|
RecipeDosingCompleNum = GVL_SmallStation.GetInstance.RecipeDosingCompleNum; |
|
|
@@ -290,6 +298,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
public RelayCommand Test5Command { get; set; } |
|
|
|
public RelayCommand Test6Command { get; set; } |
|
|
|
public RelayCommand TimeSet { get; set; } |
|
|
|
public RelayCommand CompletedNumResetCommand { get; set; } |
|
|
|
public static bool Heartbeat { get { return _mHeartbeat; } set { _mHeartbeat = value; OnStaticPropertyChanged(); } } |
|
|
|
private static bool _mHeartbeat; |
|
|
|
|
|
|
|