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