add - 添加称量中是否排水验证

wangsr
wangsr 1 year ago
parent 0fdf1f661f
commit 9d14708a28

@ -760,6 +760,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
#endregion #endregion
#endregion #endregion
#region 维修模式 #region 维修模式
public static void RepairOnOff(MCLabelEntity LabelE, MCRadioButtonEntity RadioE) public static void RepairOnOff(MCLabelEntity LabelE, MCRadioButtonEntity RadioE)

@ -25,6 +25,7 @@ using Mesnac.Action.ChemicalWeighing.LjMaterial;
using Mesnac.Action.ChemicalWeighing.MinAn; using Mesnac.Action.ChemicalWeighing.MinAn;
using System.Xml.Serialization; using System.Xml.Serialization;
using System.Threading; using System.Threading;
using DataBlockHelper.DBHelpers;
namespace Mesnac.Action.ChemicalWeighing.ManualControl namespace Mesnac.Action.ChemicalWeighing.ManualControl
{ {
@ -349,10 +350,17 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
{ {
Focus.Focus(); Focus.Focus();
DB2119Helper DB2119 = new DB2119Helper();
#region 水称称量按钮 #region 水称称量按钮
if (StartMetage1 == runtime.Sender) if (StartMetage1 == runtime.Sender)
{ {
if (DB2119.Coolwater_A.Dos_Status)
{
MessageBox.Show("冷水称A正在排水请稍后再称量");
return;
}
short value; short value;
if (short.TryParse(Convert.ToString(SetWaterValue1.MCValue), out value)) if (short.TryParse(Convert.ToString(SetWaterValue1.MCValue), out value))
{ {
@ -383,6 +391,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
if (StartMetage2 == runtime.Sender) if (StartMetage2 == runtime.Sender)
{ {
if (DB2119.Hotwater_A.Dos_Status)
{
MessageBox.Show("热水称A正在排水请稍后再称量");
return;
}
short value; short value;
if (short.TryParse(Convert.ToString(SetWaterValue2.MCValue), out value)) if (short.TryParse(Convert.ToString(SetWaterValue2.MCValue), out value))
{ {
@ -414,6 +427,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
if (StartMetage3 == runtime.Sender) if (StartMetage3 == runtime.Sender)
{ {
if (DB2119.Coolwater_B.Dos_Status)
{
MessageBox.Show("冷水称B正在排水请稍后再称量");
return;
}
short value; short value;
if (short.TryParse(Convert.ToString(SetWaterValue3.MCValue), out value)) if (short.TryParse(Convert.ToString(SetWaterValue3.MCValue), out value))
{ {
@ -444,6 +462,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
if (StartMetage4 == runtime.Sender) if (StartMetage4 == runtime.Sender)
{ {
if (DB2119.Hotwater_B.Dos_Status)
{
MessageBox.Show("热水称B正在排水请稍后再称量");
return;
}
short value; short value;
if (short.TryParse(Convert.ToString(SetWaterValue4.MCValue), out value)) if (short.TryParse(Convert.ToString(SetWaterValue4.MCValue), out value))
{ {

Loading…
Cancel
Save