liuwf 4 months ago
parent 99506633ae
commit 99e1a5acc6

@ -799,9 +799,9 @@ namespace SlnMesnac.WPF.Page
}
}
var result = MessageBox.Show("是否确认启动?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Information);
if (result == MessageBoxResult.Yes)
{
//var result = MessageBox.Show("是否确认启动?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Information);
//if (result == MessageBoxResult.Yes)
//{
// 创建一个自定义对话框
SelectWindow customDialog = new SelectWindow();
customDialog.ShowDialog();
@ -811,7 +811,7 @@ namespace SlnMesnac.WPF.Page
if (customDialog.SelectIndex == 1)
{
if (task == null || task.TaskStatus >= 4)
if (task == null || task.TaskStatus > 4)
{
MessageBoxAndLog("开始一键启动所有机器!");
StartAll();
@ -857,14 +857,14 @@ namespace SlnMesnac.WPF.Page
task.CreateTime = DateTime.Now;
sqlClient.AsTenant().GetConnection("mes").Updateable(task).ExecuteCommand();
}
else if (task.TaskStatus == 4 && task.UseFlag == 1)
else if (task.TaskStatus < 5 && task.UseFlag == 1)
{
MessageBoxAndLog("3楼agv正在从翻转机搬运空托盘到托盘收集架请稍等几分钟再开机!");
return;
}
}
}
// }
}catch (Exception ex)
{

Loading…
Cancel
Save