此按钮暂停使用!

dep
我叫锄头 11 months ago
parent 3067747fee
commit 5334b1106c

@ -734,54 +734,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
DB2105Helper dB2105= new DB2105Helper();
bool run = false;
var singE = ControlsHelper.SingleSelect(RadioE);
switch (singE)
{
case 1:
case 2:
var h1 = dB2105.H1;
if (h1.RunStatus)
{
ShowError();
run = true;
}
break;
case 3:
case 4:
var h2 = dB2105.H2;
if (h2.RunStatus)
{
ShowError();
run = true;
}
break;
case 5:
case 6:
var h3 = dB2105.H3;
if (h3.RunStatus)
{
ShowError();
run = true;
}
break;
case 7:
case 8:
var h4 = dB2105.H4;
if (h4.RunStatus)
{
ShowError();
run = true;
}
break;
}
if (run == false)
{

@ -123,75 +123,91 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
if (ButtonE.StartMetage1 == runtime.Sender)
{
if (!DB2105.Force_CA.forceOn)
{
MessageBox.Show("冷水称A强制控制按钮未打开");
return;
}
if (MessageBox.Show("确认向冷水称A补充", "强制模式启动确认",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
DB2105WriteHelper.AddCaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text));
DB2105WriteHelper.AddCaAddForceBin(GelChooseA);
DB2105WriteHelper.AddCaAddStartIn(true);
ManualLogControl("冷水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text), GelChooseA);
MessageBox.Show("冷水称A强制补充");
MessageBox.Show("此按钮暂停使用!");
return;
//if (!DB2105.Force_CA.forceOn)
//{
// MessageBox.Show("冷水称A强制控制按钮未打开");
// return;
//}
//if (MessageBox.Show("确认向冷水称A补充", "强制模式启动确认",
// MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
//{
// return;
//}
//DB2105WriteHelper.AddCaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text));
//DB2105WriteHelper.AddCaAddForceBin(GelChooseA);
//DB2105WriteHelper.AddCaAddStartIn(true);
//ManualLogControl("冷水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text), GelChooseA);
//MessageBox.Show("冷水称A强制补充");
}
if (ButtonE.StartMetage2 == runtime.Sender)
{
if (!DB2105.Force_HA.forceOn)
{
MessageBox.Show("热水称A强制控制按钮未打开");
return;
}
if (MessageBox.Show("确认向热水称A补充", "强制模式启动确认",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
DB2105WriteHelper.AddHaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text));
DB2105WriteHelper.AddHaAddForceBin(GelChooseA);
DB2105WriteHelper.AddHaAddStartIn(true);
ManualLogControl("热水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text), GelChooseA);
MessageBox.Show("热水称A强制补充");
MessageBox.Show("此按钮暂停使用!");
return;
//if (!DB2105.Force_HA.forceOn)
//{
// MessageBox.Show("热水称A强制控制按钮未打开");
// return;
//}
//if (MessageBox.Show("确认向热水称A补充", "强制模式启动确认",
// MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
//{
// return;
//}
//DB2105WriteHelper.AddHaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text));
//DB2105WriteHelper.AddHaAddForceBin(GelChooseA);
//DB2105WriteHelper.AddHaAddStartIn(true);
//ManualLogControl("热水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text), GelChooseA);
//MessageBox.Show("热水称A强制补充");
}
if (ButtonE.StartMetage3 == runtime.Sender)
{
if (!DB2105.Force_CB.forceOn)
{
MessageBox.Show("冷水称B强制控制按钮未打开");
return;
}
if (MessageBox.Show("确认向冷水称B补充", "强制模式启动确认",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
DB2105WriteHelper.AddCbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text));
DB2105WriteHelper.AddCbAddForceBin(GelChooseB);
DB2105WriteHelper.AddCbAddStartIn(true);
ManualLogControl("冷水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text), GelChooseB + 4);
MessageBox.Show("冷水称B强制补充");
MessageBox.Show("此按钮暂停使用!");
return;
//if (!DB2105.Force_CB.forceOn)
//{
// MessageBox.Show("冷水称B强制控制按钮未打开");
// return;
//}
//if (MessageBox.Show("确认向冷水称B补充", "强制模式启动确认",
// MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
//{
// return;
//}
//DB2105WriteHelper.AddCbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text));
//DB2105WriteHelper.AddCbAddForceBin(GelChooseB);
//DB2105WriteHelper.AddCbAddStartIn(true);
//ManualLogControl("冷水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text), GelChooseB + 4);
//MessageBox.Show("冷水称B强制补充");
}
if (ButtonE.StartMetage4 == runtime.Sender)
{
if (!DB2105.Force_HB.forceOn)
{
MessageBox.Show("热水称B强制控制按钮未打开");
return;
}
if (MessageBox.Show("确认向热水称B补充", "强制模式启动确认",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
DB2105WriteHelper.AddHbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text));
DB2105WriteHelper.AddHbAddForceBin(GelChooseB);
DB2105WriteHelper.AddHbAddStartIn(true);
ManualLogControl("热水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text), GelChooseB + 4);
MessageBox.Show("热水称B强制补充");
MessageBox.Show("此按钮暂停使用!");
return;
//if (!DB2105.Force_HB.forceOn)
//{
// MessageBox.Show("热水称B强制控制按钮未打开");
// return;
//}
//if (MessageBox.Show("确认向热水称B补充", "强制模式启动确认",
// MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
//{
// return;
//}
//DB2105WriteHelper.AddHbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text));
//DB2105WriteHelper.AddHbAddForceBin(GelChooseB);
//DB2105WriteHelper.AddHbAddStartIn(true);
//ManualLogControl("热水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text), GelChooseB + 4);
//MessageBox.Show("热水称B强制补充");
}

Loading…
Cancel
Save