|
|
@ -851,6 +851,8 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
/// <param name="e"></param>
|
|
|
|
/// <param name="e"></param>
|
|
|
|
private void StopButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
private void StopButton_Click(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var result = MessageBox.Show("是否确认停止?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
|
|
|
var result = MessageBox.Show("是否确认停止?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
|
|
|
if (result == MessageBoxResult.Yes)
|
|
|
|
if (result == MessageBoxResult.Yes)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -873,6 +875,11 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
|
|
|
|
|
|
|
MessageBoxAndLog("一键停止所有机器成功!");
|
|
|
|
MessageBoxAndLog("一键停止所有机器成功!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//清空投料系统运行时间
|
|
|
|
|
|
|
|
BaseConfigInfo configInfo = _configInfoBusiness.GetConfigInfos().Where(x => x.ConfigKey == "系统运行时长").FirstOrDefault();
|
|
|
|
|
|
|
|
configInfo.ConfigValue = "0";
|
|
|
|
|
|
|
|
_configInfoBusiness.UpdateConfigInfo(configInfo);
|
|
|
|
|
|
|
|
|
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StopButton.IsEnabled = true;
|
|
|
|
StopButton.IsEnabled = true;
|
|
|
|