diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs index 4e44dac..55cad8e 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs @@ -137,6 +137,10 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl IBaseControl keywords; + + DB2119Helper DB2119; + + public void Run(RuntimeParameter runtime) { base.RunIni(runtime); //必须要调用 @@ -148,6 +152,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl SingleSelect(); BottomSelect(runtime); + DB2119 = new DB2119Helper(); + } #region 控件获取导入 @@ -501,6 +507,13 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (WaterOut1 == runtime.Sender) { + + if (DB2119.Coolwater_A.Dis_Status) + { + MessageBox.Show("冷水称A正在排水 请稍后"); + return; + } + if (MessageBox.Show("冷水称A确认开始排水?", "排水确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; @@ -572,6 +585,13 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (WaterOut2 == runtime.Sender) { + + if (DB2119.Hotwater_A.Dis_Status) + { + MessageBox.Show("热水称A正在排水 请稍后"); + return; + } + if (MessageBox.Show("热水称A确认开始排水?", "排水确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; @@ -643,6 +663,13 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (WaterOut3 == runtime.Sender) { + if (DB2119.Coolwater_B.Dis_Status) + { + MessageBox.Show("冷水称B正在排水 请稍后"); + return; + } + + if (MessageBox.Show("冷水称B确认开始排水?", "排水确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; @@ -714,6 +741,13 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (WaterOut4 == runtime.Sender) { + + if (DB2119.Hotwater_B.Dis_Status) + { + MessageBox.Show("热水称B正在排水 请稍后"); + return; + } + if (MessageBox.Show("热水称B确认开始排水?", "排水确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; @@ -808,6 +842,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl // return; //} + + WaterStopAction("DB2119.28.5", WaterStop1, "冷", "A"); //MessageBox.Show("冷水称A已停止排水"); //ManualLogControl("冷水称A停止排水");