From d0af57087eb1e4d09b250ef6ebfb5d2a5041015b Mon Sep 17 00:00:00 2001 From: wangsr Date: Sat, 2 Dec 2023 17:07:17 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E5=BC=BA=E5=88=B6=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E5=8A=A0=E6=B0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManualControl/ControlsHelper.cs | 13 + .../{ => Entity}/AddWaterLogEntity.cs | 0 .../ManualControl/Entity/ForceWaterEntity.cs | 54 ++++ .../ManualControlSettingEntity.cs | 0 .../{ => Entity}/ManualLogEntity.cs | 0 .../ManualControl/ForceWaterControl.cs | 256 +++++++++++++++++- .../ManualControl/ManualControlAction.cs | 13 +- .../Mesnac.Action.ChemicalWeighing.csproj | 8 +- .../DBHelpers/DB2119WriteHelper.cs | 2 - .../EventConfig/小料称量/手动控制.xml | 14 +- .../MCProject/nodeForm/WaterForceControl.xml | 102 ++++--- 11 files changed, 388 insertions(+), 74 deletions(-) create mode 100644 Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ControlsHelper.cs rename Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/{ => Entity}/AddWaterLogEntity.cs (100%) create mode 100644 Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ForceWaterEntity.cs rename Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/{ => Entity}/ManualControlSettingEntity.cs (100%) rename Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/{ => Entity}/ManualLogEntity.cs (100%) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ControlsHelper.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ControlsHelper.cs new file mode 100644 index 0000000..56be41c --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ControlsHelper.cs @@ -0,0 +1,13 @@ +using Mesnac.Action.ChemicalWeighing.Util; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Mesnac.Action.ChemicalWeighing.ManualControl +{ + public class ControlsHelper : ControlsImprot + { + } +} diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/AddWaterLogEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/AddWaterLogEntity.cs similarity index 100% rename from Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/AddWaterLogEntity.cs rename to Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/AddWaterLogEntity.cs diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ForceWaterEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ForceWaterEntity.cs new file mode 100644 index 0000000..73a6621 --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ForceWaterEntity.cs @@ -0,0 +1,54 @@ +using Mesnac.Controls.ChemicalWeighing; +using Mesnac.Controls.Default; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Mesnac.Action.ChemicalWeighing.ManualControl +{ + public class FHslSwitchEntity + { + public HslSwitch ForceControlCA { get; set; } + public HslSwitch ForceControlHA { get; set; } + public HslSwitch ForceControlCB { get; set; } + public HslSwitch ForceControlHB { get; set; } + } + + public class FMCTextBoxEntity + { + public MCTextBox SetWaterValue1 { get; set; } + public MCTextBox SetWaterValue2 { get; set; } + public MCTextBox SetWaterValue3 { get; set; } + public MCTextBox SetWaterValue4 { get; set; } + public MCTextBox StayWaterValue1 { get; set; } + public MCTextBox StayWaterValue2 { get; set; } + public MCTextBox StayWaterValue3 { get; set; } + public MCTextBox StayWaterValue4 { get; set; } + } + + public class FMCButtonEntity + { + public MCButton StartMetage1 { get; set; } + public MCButton StartMetage2 { get; set; } + public MCButton StartMetage3 { get; set; } + public MCButton StartMetage4 { get; set; } + public MCButton StartOut1 { get; set; } + public MCButton StartOut2 { get; set; } + public MCButton StartOut3 { get; set; } + public MCButton StartOut4 { get; set; } + } + + public class FMCRadioButtonEntity + { + public MCRadioButton Gel1 { get; set; } + public MCRadioButton Gel2 { get; set; } + public MCRadioButton Gel3 { get; set; } + public MCRadioButton Gel4 { get; set; } + public MCRadioButton Gel5 { get; set; } + public MCRadioButton Gel6 { get; set; } + public MCRadioButton Gel7 { get; set; } + public MCRadioButton Gel8 { get; set; } + } +} diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlSettingEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ManualControlSettingEntity.cs similarity index 100% rename from Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlSettingEntity.cs rename to Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ManualControlSettingEntity.cs diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualLogEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ManualLogEntity.cs similarity index 100% rename from Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualLogEntity.cs rename to Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/Entity/ManualLogEntity.cs diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ForceWaterControl.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ForceWaterControl.cs index e445caf..327fd31 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ForceWaterControl.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ForceWaterControl.cs @@ -1,21 +1,275 @@ using DataBlockHelper.DBHelpers; +using DataBlockHelper.Entity.DB2106Entity; +using HslCommunication.Instrument.DLT; using Mesnac.Action.Base; +using Mesnac.Action.ChemicalWeighing.FreeDb; +using Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity; +using Mesnac.Basic; +using Mesnac.Controls.ChemicalWeighing; +using Mesnac.Controls.Default; using System; using System.Collections.Generic; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; +using System.Windows.Forms; namespace Mesnac.Action.ChemicalWeighing.ManualControl { public class ForceWaterControl : ChemicalWeighingAction, IAction { + FHslSwitchEntity HslSwitchE = new FHslSwitchEntity(); + FMCTextBoxEntity MCTextBoxE = new FMCTextBoxEntity(); + FMCButtonEntity ButtonE = new FMCButtonEntity(); + FMCRadioButtonEntity RadioButtonE = new FMCRadioButtonEntity(); + DB2119Helper DB2119 = new DB2119Helper(); + + + private List Controls; + + Timer timer; + + private byte GelChooseA; + private byte GelChooseB; + public void Run(RuntimeParameter runtime) { base.RunIni(runtime); //必须要调用 - + Controls = GetAllControls(); + + SetAllControls(); + + BottomSelect(runtime); + + HslSwitchE.ForceControlHA.OnSwitchChanged += ForceControl_OnSwitchChanged; + HslSwitchE.ForceControlCA.OnSwitchChanged += ForceControl_OnSwitchChanged; + HslSwitchE.ForceControlHB.OnSwitchChanged += ForceControl_OnSwitchChanged; + HslSwitchE.ForceControlCB.OnSwitchChanged += ForceControl_OnSwitchChanged; + + timer = new Timer(); + timer.Interval = 1000; + timer.Enabled = true; + timer.Tick += new EventHandler(StateRefresh);//添加事件 + } + + private void ForceControl_OnSwitchChanged(object obj, bool state) + { + HslSwitch hslSwitch = obj as HslSwitch; + string name = hslSwitch.Name; + switch (name) + { + case "ForceControlHA": + Db2119WriteHelper.AddHaAddForceOn(state); + break; + case "ForceControlCA": + Db2119WriteHelper.AddCaAddForceOn(state); + break; + case "ForceControlHB": + Db2119WriteHelper.AddHbAddForceOn(state); + break; + case "ForceControlCB": + Db2119WriteHelper.AddCbAddForceOn(state); + break; + default: break; + } + DefaultSwitch(hslSwitch); + } + + private void StateRefresh(object sender, EventArgs e) + { + HslSwitchE.ForceControlHA.SwitchStatus = DB2119.Force_HA.forceOn; + HslSwitchE.ForceControlCA.SwitchStatus = DB2119.Force_CA.forceOn; + HslSwitchE.ForceControlHB.SwitchStatus = DB2119.Force_HB.forceOn; + HslSwitchE.ForceControlCB.SwitchStatus = DB2119.Force_CB.forceOn; + } + + private void BottomSelect(RuntimeParameter runtime) + { + SingleSelect(); + + if (ButtonE.StartMetage1 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("冷水称A强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddCaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text)); + Db2119WriteHelper.AddCaAddForceBin(GelChooseA); + Db2119WriteHelper.AddCaAddStartIn(true); + ManualLogControl("冷水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue1.Text), GelChooseA); + } + if (ButtonE.StartMetage2 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("热水称A强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddHaAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text)); + Db2119WriteHelper.AddHaAddForceBin(GelChooseA); + Db2119WriteHelper.AddHaAddStartIn(true); + ManualLogControl("热水称A强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue2.Text), GelChooseA); + } + if (ButtonE.StartMetage3 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("冷水称B强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddCbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text)); + Db2119WriteHelper.AddCbAddForceBin(GelChooseB); + Db2119WriteHelper.AddCbAddStartIn(true); + ManualLogControl("冷水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue3.Text), GelChooseB + 4); + } + if (ButtonE.StartMetage4 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("热水称B强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddHbAddValue(Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text)); + Db2119WriteHelper.AddHbAddForceBin(GelChooseB); + Db2119WriteHelper.AddHbAddStartIn(true); + ManualLogControl("热水称B强制补充", Convert.ToInt16(MCTextBoxE.SetWaterValue4.Text), GelChooseB + 4); + } + + + if (ButtonE.StartOut1 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("冷水称A强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddCaAddRemainValue(Convert.ToInt16(MCTextBoxE.StayWaterValue1.Text)); + Db2119WriteHelper.AddCaAddForceBin(GelChooseA); + Db2119WriteHelper.AddCaAddStartOut(true); + ManualLogControl("冷水称A强制补充", Convert.ToInt16(MCTextBoxE.StayWaterValue1.Text), GelChooseA); + } + if (ButtonE.StartOut2 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("热水称A强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddHaAddRemainValue(Convert.ToInt16(MCTextBoxE.StayWaterValue2.Text)); + Db2119WriteHelper.AddHaAddForceBin(GelChooseA); + Db2119WriteHelper.AddHaAddStartOut(true); + ManualLogControl("热水称A强制补充", Convert.ToInt16(MCTextBoxE.StayWaterValue2.Text), GelChooseA); + } + if (ButtonE.StartOut3 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("冷水称B强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddCbAddRemainValue(Convert.ToInt16(MCTextBoxE.StayWaterValue3.Text)); + Db2119WriteHelper.AddCbAddForceBin(GelChooseB); + Db2119WriteHelper.AddCbAddStartOut(true); + ManualLogControl("冷水称B强制补充", Convert.ToInt16(MCTextBoxE.StayWaterValue3.Text), GelChooseB + 4); + } + if (ButtonE.StartOut4 == runtime.Sender) + { + if (!DB2119.Force_CA.forceOn) + { + MessageBox.Show("热水称B强制控制按钮未打开!"); + return; + } + Db2119WriteHelper.AddHbAddRemainValue(Convert.ToInt16(MCTextBoxE.StayWaterValue4.Text)); + Db2119WriteHelper.AddHbAddForceBin(GelChooseB); + Db2119WriteHelper.AddHbAddStartOut(true); + ManualLogControl("热水称B强制补充", Convert.ToInt16(MCTextBoxE.StayWaterValue4.Text), GelChooseB + 4); + } + + } + + private void DefaultSwitch(HslSwitch hslSwitch) + { + string status = hslSwitch.SwitchStatus ? "强制状态开" : "强制状态关"; + hslSwitch.Text = status; + } + + private void SingleSelect() + { + if (Convert.ToBoolean(RadioButtonE.Gel1.MCValue) == true) + { + GelChooseA = 1; + } + + if (Convert.ToBoolean(RadioButtonE.Gel2.MCValue) == true) + { + GelChooseA = 2; + } + + if (Convert.ToBoolean(RadioButtonE.Gel3.MCValue) == true) + { + GelChooseA = 3; + } + + if (Convert.ToBoolean(RadioButtonE.Gel4.MCValue) == true) + { + GelChooseA = 4; + } + + if (Convert.ToBoolean(RadioButtonE.Gel5.MCValue) == true) + { + GelChooseB = 1; + } + + if (Convert.ToBoolean(RadioButtonE.Gel6.MCValue) == true) + { + GelChooseB = 2; + } + + if (Convert.ToBoolean(RadioButtonE.Gel7.MCValue) == true) + { + GelChooseB = 3; + } + + if (Convert.ToBoolean(RadioButtonE.Gel8.MCValue) == true) + { + GelChooseB = 4; + } + } + + private void SetAllControls() + { + ControlsHelper.ControlImport(HslSwitchE, Controls); + ControlsHelper.ControlImport(MCTextBoxE, Controls); + ControlsHelper.ControlImport(ButtonE, Controls); + ControlsHelper.ControlImport(RadioButtonE, Controls); + } + + /// + /// 日志插入 + /// + /// 日志内容 + /// 值 + /// 值类型 0无 1水称设定值 2水称称量值 3螺旋设定值 4螺旋称量值 + /// 设备编号 + /// 设备类型 0无 1水称 2螺旋 + public void ManualLogControl(string logName, int value, int deviceno) + { + var Log = new ManualLogEntity() + { + logtext = logName, + logtime = DateTime.Now, + userid = string.IsNullOrWhiteSpace(UserInfo.Instance.UserName) ? "Edit" : UserInfo.Instance.UserName, + value = value, + deviceno = deviceno, + devicekind = 1, + valuekind = 0, + createdate = DateTime.Now.ToString("yyyyMMdd") + }; + FreeSqlUnit.Instance.Insert(Log).ExecuteIdentity(); } } } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs index 32ff842..a3ce31f 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/ManualControl/ManualControlAction.cs @@ -1607,6 +1607,8 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl FreeSqlUnit.Instance.Insert(log).ExecuteIdentity(); } + #endregion + private int SelectAddWaterControl(int deviceNo) { var list = FreeSqlUnit.Instance.Select().Where(x => x.DeviceId == deviceNo).ToList(); @@ -1617,10 +1619,7 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl return Convert.ToInt32(list.LastOrDefault().Hot); } - - - - private void WaterStopAction(string plcAddress,MCButton button,string h,string a) + private void WaterStopAction(string plcAddress, MCButton button, string h, string a) { //先读取plc地址 bool stopMe1 = PlcConnect.Instance.ReadBool(plcAddress).Content; @@ -1649,16 +1648,12 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl { txt += "停止"; } - - MessageBox.Show(txt); ManualLogControl(txt); MesnacServiceManager.Instance.LoggingService.Info(txt); } - - #endregion - } + } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj index 75ad2f9..7ecc46c 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -539,12 +539,14 @@ - + + + - - + + True diff --git a/DataBlockHelper/DBHelpers/DB2119WriteHelper.cs b/DataBlockHelper/DBHelpers/DB2119WriteHelper.cs index 3b906d5..2089240 100644 --- a/DataBlockHelper/DBHelpers/DB2119WriteHelper.cs +++ b/DataBlockHelper/DBHelpers/DB2119WriteHelper.cs @@ -8,9 +8,7 @@ private static readonly int CaNo = 122; private static readonly int CbNo = 130; - #region 添加方法Ha - public static void AddHaAddValue(short value) { diff --git a/Main/MCEdit/Data/EventConfig/小料称量/手动控制.xml b/Main/MCEdit/Data/EventConfig/小料称量/手动控制.xml index d591a3b..913b55c 100644 --- a/Main/MCEdit/Data/EventConfig/小料称量/手动控制.xml +++ b/Main/MCEdit/Data/EventConfig/小料称量/手动控制.xml @@ -10,7 +10,10 @@ 按钮事件 按钮事件 - + + 水称强制控制 + 水称强制控制 + @@ -22,13 +25,16 @@ - + + + - - + + + \ No newline at end of file diff --git a/Main/MCEdit/Data/MCProject/nodeForm/WaterForceControl.xml b/Main/MCEdit/Data/MCProject/nodeForm/WaterForceControl.xml index 7f968bf..fc12bd8 100644 --- a/Main/MCEdit/Data/MCProject/nodeForm/WaterForceControl.xml +++ b/Main/MCEdit/Data/MCProject/nodeForm/WaterForceControl.xml @@ -2,7 +2,7 @@ - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -16,14 +16,13 @@ True True False - - + Red DarkGray 开始排水 20, 52 - MCButton9 + StartOut4 116, 37 42 @@ -46,7 +45,7 @@ MCLabel7 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -66,7 +65,7 @@ 0 58, 20 - MCTextBox2147483643 + StayWaterValue4 85, 21 12 @@ -145,7 +144,7 @@ 41 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -159,14 +158,13 @@ True True False - - + Red DarkGray 开始排水 20, 52 - MCButton10 + StartOut3 116, 37 42 @@ -189,7 +187,7 @@ MCLabel8 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -209,7 +207,7 @@ 0 58, 20 - MCTextBox2147483642 + StayWaterValue3 85, 21 12 @@ -288,7 +286,7 @@ 39 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -302,14 +300,13 @@ True True False - - + Red DarkGray 开始称量 20, 52 - MCButton11 + StartMetage4 116, 37 42 @@ -332,7 +329,7 @@ MCLabel9 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -352,7 +349,7 @@ 0 58, 20 - MCTextBox2147483641 + SetWaterValue4 85, 21 12 @@ -364,7 +361,7 @@ 53 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -378,14 +375,13 @@ True True False - - + Red DarkGray 开始称量 20, 52 - MCButton12 + StartMetage3 116, 37 42 @@ -408,7 +404,7 @@ MCLabel10 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -428,7 +424,7 @@ 0 58, 20 - MCTextBox2147483640 + SetWaterValue3 85, 21 12 @@ -439,9 +435,9 @@ 159, 103 50 - + 201, 97 - HslSwitch2147483645 + ForceControlHB 96, 99 @@ -460,11 +456,11 @@ True 14, 185 MCLabel11 - 0, 15 + 0, 12 - + 36, 97 - HslSwitch2147483644 + ForceControlCB 96, 99 False @@ -476,7 +472,7 @@ - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -490,14 +486,13 @@ True True False - - + Red DarkGray 开始排水 20, 52 - MCButton7 + StartOut2 116, 37 42 @@ -520,7 +515,7 @@ MCLabel5 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -540,7 +535,7 @@ 0 58, 20 - MCTextBox2147483645 + StayWaterValue2 85, 21 12 @@ -552,7 +547,7 @@ 47 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -566,14 +561,13 @@ True True False - - + Red DarkGray 开始排水 20, 52 - MCButton6 + StartOut1 116, 37 42 @@ -596,7 +590,7 @@ MCLabel4 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -616,7 +610,7 @@ 0 58, 20 - MCTextBox2147483646 + StayWaterValue1 85, 21 12 @@ -628,7 +622,7 @@ 44 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -642,14 +636,13 @@ True True False - - + Red DarkGray 开始称量 20, 52 - MCButton8 + StartMetage2 116, 37 42 @@ -672,7 +665,7 @@ MCLabel6 41, 12 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -692,7 +685,7 @@ 0 58, 20 - MCTextBox2147483644 + SetWaterValue2 85, 21 12 @@ -724,13 +717,13 @@ 69, 24 39 - + 201, 97 - HslSwitch2147483646 + ForceControlHA 96, 99 - + AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAAAAAAAAAAABwMAAAAAAQAAAAAAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAL @@ -744,14 +737,13 @@ True True False - - + Red DarkGray 开始称量 20, 52 - MCButton5 + StartMetage1 116, 37 42 @@ -805,9 +797,9 @@ 159, 103 43 - + 36, 97 - ForceControl + ForceControlCA 96, 99