From 9d14708a28ba0c6afb44a1a12ba62ad449352e9d Mon Sep 17 00:00:00 2001 From: wangsr Date: Wed, 15 Nov 2023 10:25:06 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E6=B7=BB=E5=8A=A0=E7=A7=B0=E9=87=8F?= =?UTF-8?q?=E4=B8=AD=E6=98=AF=E5=90=A6=E6=8E=92=E6=B0=B4=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoControl/PlcAutoWriteHelper.cs | 1 + .../ManualControl/ManualControlAction.cs | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/PlcAutoWriteHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/PlcAutoWriteHelper.cs index fd91055..ee12798 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/PlcAutoWriteHelper.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/PlcAutoWriteHelper.cs @@ -760,6 +760,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl #endregion #endregion + #region 维修模式 public static void RepairOnOff(MCLabelEntity LabelE, MCRadioButtonEntity RadioE) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs index 0c792d6..4db1404 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs @@ -25,6 +25,7 @@ using Mesnac.Action.ChemicalWeighing.LjMaterial; using Mesnac.Action.ChemicalWeighing.MinAn; using System.Xml.Serialization; using System.Threading; +using DataBlockHelper.DBHelpers; namespace Mesnac.Action.ChemicalWeighing.ManualControl { @@ -349,10 +350,17 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl { Focus.Focus(); + DB2119Helper DB2119 = new DB2119Helper(); + #region 水称称量按钮 if (StartMetage1 == runtime.Sender) { + if (DB2119.Coolwater_A.Dos_Status) + { + MessageBox.Show("冷水称A正在排水!请稍后再称量"); + return; + } short value; if (short.TryParse(Convert.ToString(SetWaterValue1.MCValue), out value)) { @@ -383,6 +391,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (StartMetage2 == runtime.Sender) { + if (DB2119.Hotwater_A.Dos_Status) + { + MessageBox.Show("热水称A正在排水!请稍后再称量"); + return; + } short value; if (short.TryParse(Convert.ToString(SetWaterValue2.MCValue), out value)) { @@ -414,6 +427,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (StartMetage3 == runtime.Sender) { + if (DB2119.Coolwater_B.Dos_Status) + { + MessageBox.Show("冷水称B正在排水!请稍后再称量"); + return; + } short value; if (short.TryParse(Convert.ToString(SetWaterValue3.MCValue), out value)) { @@ -444,6 +462,11 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl if (StartMetage4 == runtime.Sender) { + if (DB2119.Hotwater_B.Dos_Status) + { + MessageBox.Show("热水称B正在排水!请稍后再称量"); + return; + } short value; if (short.TryParse(Convert.ToString(SetWaterValue4.MCValue), out value)) {