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