change - 自动维修模式逻辑问题 已修复

wangsr
wangsr 1 year ago
parent 07edd546a8
commit 25ac863d22

@ -611,14 +611,15 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
#region 维修模式
if(ControlsEntity.RepairMode == runtime.Sender)
{
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
{
if (MessageBox.Show("是否开启维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
if (ControlsEntity.RepairState.MCValue.ToString() == "关")
{
Db3000Helper.WriteModel(SingleSelect(), true);
ControlsEntity.RepairState.MCValue = "开";
MessageBox.Show("维修模式已开启");
@ -627,6 +628,10 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
{
if (ControlsEntity.RepairState.MCValue.ToString() == "开")
{
if (MessageBox.Show("是否关闭维修模式?", "维修模式确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
Db3000Helper.WriteModel(SingleSelect(), false);
ControlsEntity.RepairState.MCValue = "关";
MessageBox.Show("维修模式已关闭");

Loading…
Cancel
Save