是否车次清零

dep
我叫锄头 11 months ago
parent 4601624d52
commit 1cb73bbcdf

@ -479,7 +479,20 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
DryStartOrStop(ButtonE, RadioE);
}
if (ButtonE.ZeroClean == runtime.Sender)
{
if (MessageBox.Show("是否车次清零?", "清零确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return;
}
var siemensS7Net = PlcConnect.Instance;
siemensS7Net.Write($"DB2105.6.0", (short)1);
MessageBox.Show("清零成功");
}
#endregion

@ -82,6 +82,8 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.Entity
public Button GRepairMode { get; set; }
public Button ZeroClean { get; set; }
public Button DryStartOrStop { get; set; }
public Button DryDownload { get; set; }

@ -1,5 +1,30 @@
<Object type="Mesnac.Gui.Common.FrmRunTemplate, Mesnac.Gui.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="AutoControlC" children="Controls">
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="ZeroClean" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAANAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIERCRTgxOTNENDE2MDRBRDVCOTRBRTNDMkQzNDc1MUQyBgYAAAAV5rm/5re357OK5YyW5py65o6n5Yi2BgcAAAAV5rm/5re357OK5YyW5py65o6n5Yi2Cw==</Binary>
</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">Query</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="MCPurview">False</Property>
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="Text">车次清零</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">1281, 646</Property>
<Property name="Name">ZeroClean</Property>
<Property name="Size">99, 48</Property>
<Property name="TabIndex">82</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="GRepairMode" children="Controls">
<Property name="ClickActionList">
<Binary>AAEAAAD/////AQAAAAAAAAAMAgAAAEtNZXNuYWMuQ29udHJvbHMuQmFzZSwgVmVyc2lvbj0xLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwEAQAAAJMBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tNZXNuYWMuQ29udHJvbHMuQmFzZS5EZXNpZ25BY3Rpb24sIE1lc25hYy5Db250cm9scy5CYXNlLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24EAAAjTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uW10CAAAACAgJAwAAAAEAAAANAAAABwMAAAAAAQAAAAQAAAAEIU1lc25hYy5Db250cm9scy5CYXNlLkRlc2lnbkFjdGlvbgIAAAAJBAAAAA0DBQQAAAAhTWVzbmFjLkNvbnRyb2xzLkJhc2UuRGVzaWduQWN0aW9uAwAAABU8R1VJRD5rX19CYWNraW5nRmllbGQVPE5hbWU+a19fQmFja2luZ0ZpZWxkFzxSZW1hcms+a19fQmFja2luZ0ZpZWxkAQEBAgAAAAYFAAAAIERCRTgxOTNENDE2MDRBRDVCOTRBRTNDMkQzNDc1MUQyBgYAAAAV5rm/5re357OK5YyW5py65o6n5Yi2BgcAAAAV5rm/5re357OK5YyW5py65o6n5Yi2Cw==</Binary>
@ -95,9 +120,9 @@
<Property name="OldFillColor">DarkGray</Property>
<Property name="Text">下发送料请求</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">1364, 509</Property>
<Property name="Location">1370, 509</Property>
<Property name="Name">DownloadRequest</Property>
<Property name="Size">168, 50</Property>
<Property name="Size">156, 50</Property>
<Property name="TabIndex">70</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCButton, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="EliAlarms" children="Controls">
@ -120,9 +145,9 @@
<Property name="OldFillColor">DarkGray</Property>
<Property name="Text">消除报警</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">1365, 453</Property>
<Property name="Location">1370, 453</Property>
<Property name="Name">EliAlarms</Property>
<Property name="Size">168, 50</Property>
<Property name="Size">156, 50</Property>
<Property name="TabIndex">69</Property>
</Object>
<Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox18" children="Controls">
@ -3128,9 +3153,9 @@
<Property name="OldFillColor">DarkGray</Property>
<Property name="Text">湿混机维修模式</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">1363, 565</Property>
<Property name="Location">1370, 565</Property>
<Property name="Name">RepairMode</Property>
<Property name="Size">169, 38</Property>
<Property name="Size">156, 38</Property>
<Property name="TabIndex">54</Property>
</Object>
<Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox49" children="Controls">
@ -3321,9 +3346,9 @@
<Property name="OldFillColor">DarkGray</Property>
<Property name="Text">湿混机糊化机下传</Property>
<Property name="Font">宋体, 12pt</Property>
<Property name="Location">1364, 397</Property>
<Property name="Location">1370, 397</Property>
<Property name="Name">Download</Property>
<Property name="Size">168, 50</Property>
<Property name="Size">156, 50</Property>
<Property name="TabIndex">8</Property>
</Object>
<Object type="System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="GroupBox34" children="Controls">

Loading…
Cancel
Save