排水限制

wangsr
我叫锄头 1 year ago
parent e5497ecfc9
commit 1096f7527e

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

Loading…
Cancel
Save