From 93ba70bafde5efd25f874773c40996f2794e7da9 Mon Sep 17 00:00:00 2001 From: nodyang Date: Fri, 27 Oct 2023 18:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoControl/GelerWeterControl.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs index d9cbef7..8103223 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs @@ -622,13 +622,15 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl Db3000Helper.WriteModel(SingleSelect(), true); ControlsEntity.RepairState.MCValue = "开"; } - - if (ControlsEntity.RepairState.MCValue.ToString() == "开") + else { - Db3000Helper.WriteModel(SingleSelect(), false); - ControlsEntity.RepairState.MCValue = "关"; + if (ControlsEntity.RepairState.MCValue.ToString() == "开") + { + Db3000Helper.WriteModel(SingleSelect(), false); + ControlsEntity.RepairState.MCValue = "关"; + } } - + MessageBox.Show("维修模式已开启"); }