Browse Source

添加手动清除配方完成数目功能。

master
ZhaoGang 1 year ago
parent
commit
ace541c05d
2 changed files with 18 additions and 0 deletions
  1. +9
    -0
      BPASmartClient.JXJFoodSmallStation/View/ManualFlowView.xaml
  2. +9
    -0
      BPASmartClient.JXJFoodSmallStation/ViewModel/ManualFlowViewModel.cs

+ 9
- 0
BPASmartClient.JXJFoodSmallStation/View/ManualFlowView.xaml View File

@@ -491,6 +491,15 @@
FontSize="25"
Foreground="#FF2AB2E7"
Text="{Binding RecipeDosingCompleNum}" />
<Button
Width="400"
Height="40"
Margin="5,0,5,0"
Panel.ZIndex="0"
Command="{Binding CompletedNumResetCommand}"
Content="完成数目清零"
FontSize="20"
Style="{StaticResource ImageButtonStyle}" />
</WrapPanel>
</Grid>
</Grid>


+ 9
- 0
BPASmartClient.JXJFoodSmallStation/ViewModel/ManualFlowViewModel.cs View File

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



Loading…
Cancel
Save