1
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
<PackageReference Include="NModbus" Version="3.0.72" />
|
<PackageReference Include="NModbus" Version="3.0.72" />
|
||||||
<PackageReference Include="NModbus.Serial" Version="3.0.72" />
|
<PackageReference Include="NModbus.Serial" Version="3.0.72" />
|
||||||
<PackageReference Include="Osklib.WinForms" Version="1.6.0" />
|
<PackageReference Include="Osklib.WinForms" Version="1.6.0" />
|
||||||
|
<PackageReference Include="Scriban" Version="5.4.6" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -78,6 +79,9 @@
|
|||||||
<None Update="Lang\en-US.json">
|
<None Update="Lang\en-US.json">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Update="Lang\es-ES.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Update="Lang\zh-CN.json">
|
<None Update="Lang\zh-CN.json">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
private void frmIOMonitorNew_Load(object sender, EventArgs e)
|
private void frmIOMonitorNew_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
initControl();
|
initControl();
|
||||||
|
|
||||||
|
this.SetFormControlText();
|
||||||
PlcOperationHelper.Instance.readIO = true;
|
PlcOperationHelper.Instance.readIO = true;
|
||||||
PlcOperationHelper.Instance.OnShowX_Y_Status += Show_X_Y_Status;
|
PlcOperationHelper.Instance.OnShowX_Y_Status += Show_X_Y_Status;
|
||||||
}
|
}
|
||||||
@@ -154,7 +156,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
IO.Code = "Y" + Convert.ToString((int.Parse(item.PlcItemPriAddress) ), 8).PadLeft(2, '0');
|
IO.Code = "Y" + Convert.ToString((int.Parse(item.PlcItemPriAddress) ), 8).PadLeft(2, '0');
|
||||||
IO.IOName = this.T(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
IO.IOName = this.T(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
||||||
this.flowLayoutPanel1.Controls.Add(IO);
|
this.flowLayoutPanel1.Controls.Add(IO);
|
||||||
|
|
||||||
buttons.Add(item, IO);
|
buttons.Add(item, IO);
|
||||||
|
|
||||||
//if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
//if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
||||||
|
|||||||
517
CleanMachineHMI/FrmUserControl/frmMainDetail.Designer.cs
generated
517
CleanMachineHMI/FrmUserControl/frmMainDetail.Designer.cs
generated
@@ -50,12 +50,26 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonButton3 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton3 = new Krypton.Toolkit.KryptonButton();
|
||||||
this.knud_WorkedFullPalletNum = new Krypton.Toolkit.KryptonTextBox();
|
this.knud_WorkedFullPalletNum = new Krypton.Toolkit.KryptonTextBox();
|
||||||
this.kryptonGroupBox7 = new Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox7 = new Krypton.Toolkit.KryptonGroupBox();
|
||||||
|
this.btn_M_A = new CleanMachineHMI.CircleButton();
|
||||||
this.kryptonLabel11 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel11 = new Krypton.Toolkit.KryptonLabel();
|
||||||
|
this.circleButton1 = new CleanMachineHMI.CircleButton();
|
||||||
|
this.cbt_staticbar = new CleanMachineHMI.CircleButton();
|
||||||
|
this.swtbtn_staticBar = new CleanMachineHMI.LSwitchButton();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.cbt_ResetSys = new CleanMachineHMI.CircleButton();
|
||||||
|
this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton();
|
||||||
this.kryptonLabel7 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel7 = new Krypton.Toolkit.KryptonLabel();
|
||||||
|
this.cbt_StopTran = new CleanMachineHMI.CircleButton();
|
||||||
|
this.swtbtn_brush3 = new CleanMachineHMI.LSwitchButton();
|
||||||
|
this.cbt_StartTran = new CleanMachineHMI.CircleButton();
|
||||||
|
this.cbt_Brush3StatusTran = new CleanMachineHMI.CircleButton();
|
||||||
|
this.swtbtn_brush1 = new CleanMachineHMI.LSwitchButton();
|
||||||
this.kryptonLabel8 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel8 = new Krypton.Toolkit.KryptonLabel();
|
||||||
|
this.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton();
|
||||||
this.kryptonLabel9 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel9 = new Krypton.Toolkit.KryptonLabel();
|
||||||
|
this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
|
||||||
|
this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
|
||||||
this.kryptonLabel12 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel12 = new Krypton.Toolkit.KryptonLabel();
|
||||||
this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel();
|
||||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||||
@@ -143,14 +157,18 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonPanel5 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel5 = new Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonWrapLabel2 = new Krypton.Toolkit.KryptonWrapLabel();
|
this.kryptonWrapLabel2 = new Krypton.Toolkit.KryptonWrapLabel();
|
||||||
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
|
||||||
|
this.cbt_fpalletmod = new CleanMachineHMI.CircleButton();
|
||||||
this.kryptonPanel23 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel23 = new Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonPanel39 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel39 = new Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonWrapLabel19 = new Krypton.Toolkit.KryptonWrapLabel();
|
this.kryptonWrapLabel19 = new Krypton.Toolkit.KryptonWrapLabel();
|
||||||
this.kbtn_Others = new Krypton.Toolkit.KryptonButton();
|
this.kbtn_Others = new Krypton.Toolkit.KryptonButton();
|
||||||
this.knud_Others = new Krypton.Toolkit.KryptonNumericUpDown();
|
this.knud_Others = new Krypton.Toolkit.KryptonNumericUpDown();
|
||||||
this.kbtn_Others_1 = new Krypton.Toolkit.KryptonButton();
|
this.kbtn_Others_1 = new Krypton.Toolkit.KryptonButton();
|
||||||
|
this.swtbtn_fullPalletMod = new CleanMachineHMI.LSwitchButton();
|
||||||
this.kryptonPanel8 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel8 = new Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonWrapLabel5 = new Krypton.Toolkit.KryptonWrapLabel();
|
this.kryptonWrapLabel5 = new Krypton.Toolkit.KryptonWrapLabel();
|
||||||
|
this.cbt_NozzleStatusTran = new CleanMachineHMI.CircleButton();
|
||||||
|
this.swtbtn_nozzle1 = new CleanMachineHMI.LSwitchButton();
|
||||||
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
|
||||||
this.kryptonPanel32 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel32 = new Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonWrapLabel17 = new Krypton.Toolkit.KryptonWrapLabel();
|
this.kryptonWrapLabel17 = new Krypton.Toolkit.KryptonWrapLabel();
|
||||||
@@ -187,23 +205,6 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.btnIO = new Krypton.Toolkit.KryptonButton();
|
this.btnIO = new Krypton.Toolkit.KryptonButton();
|
||||||
this.btnManual = new Krypton.Toolkit.KryptonButton();
|
this.btnManual = new Krypton.Toolkit.KryptonButton();
|
||||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.cbt_fpalletmod = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_fullPalletMod = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.cbt_NozzleStatusTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_nozzle1 = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.circleButton1 = new CleanMachineHMI.CircleButton();
|
|
||||||
this.cbt_staticbar = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_staticBar = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.cbt_ResetSys = new CleanMachineHMI.CircleButton();
|
|
||||||
this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.cbt_StopTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_brush3 = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.cbt_StartTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.cbt_Brush3StatusTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_brush1 = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton();
|
|
||||||
this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
|
|
||||||
this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox8.Panel)).BeginInit();
|
||||||
this.kryptonGroupBox8.Panel.SuspendLayout();
|
this.kryptonGroupBox8.Panel.SuspendLayout();
|
||||||
@@ -500,6 +501,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
//
|
//
|
||||||
// kryptonGroupBox7.Panel
|
// kryptonGroupBox7.Panel
|
||||||
//
|
//
|
||||||
|
this.kryptonGroupBox7.Panel.Controls.Add(this.btn_M_A);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel11);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel11);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.circleButton1);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.circleButton1);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_staticbar);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_staticbar);
|
||||||
@@ -523,6 +525,15 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonGroupBox7.TabIndex = 5;
|
this.kryptonGroupBox7.TabIndex = 5;
|
||||||
this.kryptonGroupBox7.Values.Heading = "";
|
this.kryptonGroupBox7.Values.Heading = "";
|
||||||
//
|
//
|
||||||
|
// btn_M_A
|
||||||
|
//
|
||||||
|
this.btn_M_A.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.btn_M_A.Location = new System.Drawing.Point(156, 151);
|
||||||
|
this.btn_M_A.Name = "btn_M_A";
|
||||||
|
this.btn_M_A.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.btn_M_A.TabIndex = 54;
|
||||||
|
this.btn_M_A.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
// kryptonLabel11
|
// kryptonLabel11
|
||||||
//
|
//
|
||||||
this.kryptonLabel11.Location = new System.Drawing.Point(20, 306);
|
this.kryptonLabel11.Location = new System.Drawing.Point(20, 306);
|
||||||
@@ -531,13 +542,55 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonLabel11.TabIndex = 50;
|
this.kryptonLabel11.TabIndex = 50;
|
||||||
this.kryptonLabel11.Values.Text = "静电棒";
|
this.kryptonLabel11.Values.Text = "静电棒";
|
||||||
//
|
//
|
||||||
|
// circleButton1
|
||||||
|
//
|
||||||
|
this.circleButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.circleButton1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.circleButton1.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.circleButton1.Location = new System.Drawing.Point(171, 41);
|
||||||
|
this.circleButton1.Name = "circleButton1";
|
||||||
|
this.circleButton1.Size = new System.Drawing.Size(60, 60);
|
||||||
|
this.circleButton1.TabIndex = 53;
|
||||||
|
this.circleButton1.Text = "Auto Stop";
|
||||||
|
this.circleButton1.UseVisualStyleBackColor = false;
|
||||||
|
this.circleButton1.Click += new System.EventHandler(this.circleButton1_Click);
|
||||||
|
this.circleButton1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.circleButton1_MouseDown_1);
|
||||||
|
this.circleButton1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.circleButton1_MouseUp);
|
||||||
|
//
|
||||||
|
// cbt_staticbar
|
||||||
|
//
|
||||||
|
this.cbt_staticbar.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_staticbar.Location = new System.Drawing.Point(203, 304);
|
||||||
|
this.cbt_staticbar.Name = "cbt_staticbar";
|
||||||
|
this.cbt_staticbar.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_staticbar.TabIndex = 48;
|
||||||
|
this.cbt_staticbar.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
|
// swtbtn_staticBar
|
||||||
|
//
|
||||||
|
this.swtbtn_staticBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_staticBar.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_staticBar.L_BarHight = 24;
|
||||||
|
this.swtbtn_staticBar.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_staticBar.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_staticBar.L_DotHight = 20;
|
||||||
|
this.swtbtn_staticBar.L_IsOpen = false;
|
||||||
|
this.swtbtn_staticBar.L_Margin = 2;
|
||||||
|
this.swtbtn_staticBar.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_staticBar.Location = new System.Drawing.Point(105, 304);
|
||||||
|
this.swtbtn_staticBar.Name = "swtbtn_staticBar";
|
||||||
|
this.swtbtn_staticBar.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_staticBar.TabIndex = 46;
|
||||||
|
this.swtbtn_staticBar.Text = "lSwitchButton4";
|
||||||
|
this.swtbtn_staticBar.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_staticBar_LSwitched);
|
||||||
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.BackColor = System.Drawing.Color.Transparent;
|
this.label2.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.label2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.label2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.label2.ForeColor = System.Drawing.Color.Black;
|
this.label2.ForeColor = System.Drawing.Color.Black;
|
||||||
this.label2.Location = new System.Drawing.Point(16, 192);
|
this.label2.Location = new System.Drawing.Point(3, 194);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(98, 21);
|
this.label2.Size = new System.Drawing.Size(98, 21);
|
||||||
this.label2.TabIndex = 8;
|
this.label2.TabIndex = 8;
|
||||||
@@ -549,12 +602,36 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.label1.BackColor = System.Drawing.Color.Transparent;
|
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.label1.ForeColor = System.Drawing.Color.Black;
|
this.label1.ForeColor = System.Drawing.Color.Black;
|
||||||
this.label1.Location = new System.Drawing.Point(16, 9);
|
this.label1.Location = new System.Drawing.Point(3, 6);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(98, 21);
|
this.label1.Size = new System.Drawing.Size(98, 21);
|
||||||
this.label1.TabIndex = 8;
|
this.label1.TabIndex = 8;
|
||||||
this.label1.Text = "系统运行";
|
this.label1.Text = "系统运行";
|
||||||
//
|
//
|
||||||
|
// cbt_ResetSys
|
||||||
|
//
|
||||||
|
this.cbt_ResetSys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(0)))));
|
||||||
|
this.cbt_ResetSys.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.cbt_ResetSys.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.cbt_ResetSys.Location = new System.Drawing.Point(30, 107);
|
||||||
|
this.cbt_ResetSys.Name = "cbt_ResetSys";
|
||||||
|
this.cbt_ResetSys.Size = new System.Drawing.Size(60, 60);
|
||||||
|
this.cbt_ResetSys.TabIndex = 5;
|
||||||
|
this.cbt_ResetSys.Text = "RESET";
|
||||||
|
this.cbt_ResetSys.UseVisualStyleBackColor = false;
|
||||||
|
this.cbt_ResetSys.Click += new System.EventHandler(this.cbt_ResetSys_Click);
|
||||||
|
this.cbt_ResetSys.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseDown);
|
||||||
|
this.cbt_ResetSys.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseUp);
|
||||||
|
//
|
||||||
|
// cbt_RunStatusTran
|
||||||
|
//
|
||||||
|
this.cbt_RunStatusTran.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_RunStatusTran.Location = new System.Drawing.Point(182, 5);
|
||||||
|
this.cbt_RunStatusTran.Name = "cbt_RunStatusTran";
|
||||||
|
this.cbt_RunStatusTran.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_RunStatusTran.TabIndex = 7;
|
||||||
|
this.cbt_RunStatusTran.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
// kryptonLabel7
|
// kryptonLabel7
|
||||||
//
|
//
|
||||||
this.kryptonLabel7.Location = new System.Drawing.Point(20, 276);
|
this.kryptonLabel7.Location = new System.Drawing.Point(20, 276);
|
||||||
@@ -563,6 +640,80 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonLabel7.TabIndex = 41;
|
this.kryptonLabel7.TabIndex = 41;
|
||||||
this.kryptonLabel7.Values.Text = "毛刷3";
|
this.kryptonLabel7.Values.Text = "毛刷3";
|
||||||
//
|
//
|
||||||
|
// cbt_StopTran
|
||||||
|
//
|
||||||
|
this.cbt_StopTran.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.cbt_StopTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.cbt_StopTran.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.cbt_StopTran.Location = new System.Drawing.Point(103, 41);
|
||||||
|
this.cbt_StopTran.Name = "cbt_StopTran";
|
||||||
|
this.cbt_StopTran.Size = new System.Drawing.Size(60, 60);
|
||||||
|
this.cbt_StopTran.TabIndex = 5;
|
||||||
|
this.cbt_StopTran.Text = "STOP";
|
||||||
|
this.cbt_StopTran.UseVisualStyleBackColor = false;
|
||||||
|
this.cbt_StopTran.Click += new System.EventHandler(this.cbt_StopTran_Click);
|
||||||
|
this.cbt_StopTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseDown);
|
||||||
|
this.cbt_StopTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseUp);
|
||||||
|
//
|
||||||
|
// swtbtn_brush3
|
||||||
|
//
|
||||||
|
this.swtbtn_brush3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_brush3.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_brush3.L_BarHight = 24;
|
||||||
|
this.swtbtn_brush3.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_brush3.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_brush3.L_DotHight = 20;
|
||||||
|
this.swtbtn_brush3.L_IsOpen = false;
|
||||||
|
this.swtbtn_brush3.L_Margin = 2;
|
||||||
|
this.swtbtn_brush3.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_brush3.Location = new System.Drawing.Point(105, 274);
|
||||||
|
this.swtbtn_brush3.Name = "swtbtn_brush3";
|
||||||
|
this.swtbtn_brush3.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_brush3.TabIndex = 40;
|
||||||
|
this.swtbtn_brush3.Text = "lSwitchButton3";
|
||||||
|
this.swtbtn_brush3.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush3_LSwitched);
|
||||||
|
//
|
||||||
|
// cbt_StartTran
|
||||||
|
//
|
||||||
|
this.cbt_StartTran.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(190)))), ((int)(((byte)(107)))));
|
||||||
|
this.cbt_StartTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.cbt_StartTran.Location = new System.Drawing.Point(30, 41);
|
||||||
|
this.cbt_StartTran.Name = "cbt_StartTran";
|
||||||
|
this.cbt_StartTran.Size = new System.Drawing.Size(60, 60);
|
||||||
|
this.cbt_StartTran.TabIndex = 5;
|
||||||
|
this.cbt_StartTran.Text = "START";
|
||||||
|
this.cbt_StartTran.UseVisualStyleBackColor = false;
|
||||||
|
this.cbt_StartTran.Click += new System.EventHandler(this.cbt_StartTran_Click);
|
||||||
|
this.cbt_StartTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseDown);
|
||||||
|
this.cbt_StartTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseUp);
|
||||||
|
//
|
||||||
|
// cbt_Brush3StatusTran
|
||||||
|
//
|
||||||
|
this.cbt_Brush3StatusTran.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_Brush3StatusTran.Location = new System.Drawing.Point(203, 273);
|
||||||
|
this.cbt_Brush3StatusTran.Name = "cbt_Brush3StatusTran";
|
||||||
|
this.cbt_Brush3StatusTran.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_Brush3StatusTran.TabIndex = 39;
|
||||||
|
this.cbt_Brush3StatusTran.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
|
// swtbtn_brush1
|
||||||
|
//
|
||||||
|
this.swtbtn_brush1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_brush1.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_brush1.L_BarHight = 24;
|
||||||
|
this.swtbtn_brush1.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_brush1.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_brush1.L_DotHight = 20;
|
||||||
|
this.swtbtn_brush1.L_IsOpen = false;
|
||||||
|
this.swtbtn_brush1.L_Margin = 2;
|
||||||
|
this.swtbtn_brush1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_brush1.Location = new System.Drawing.Point(105, 216);
|
||||||
|
this.swtbtn_brush1.Name = "swtbtn_brush1";
|
||||||
|
this.swtbtn_brush1.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_brush1.TabIndex = 35;
|
||||||
|
this.swtbtn_brush1.Text = "lSwitchButton1";
|
||||||
|
this.swtbtn_brush1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush1_LSwitched);
|
||||||
|
//
|
||||||
// kryptonLabel8
|
// kryptonLabel8
|
||||||
//
|
//
|
||||||
this.kryptonLabel8.Location = new System.Drawing.Point(20, 247);
|
this.kryptonLabel8.Location = new System.Drawing.Point(20, 247);
|
||||||
@@ -571,6 +722,15 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonLabel8.TabIndex = 38;
|
this.kryptonLabel8.TabIndex = 38;
|
||||||
this.kryptonLabel8.Values.Text = "毛刷2";
|
this.kryptonLabel8.Values.Text = "毛刷2";
|
||||||
//
|
//
|
||||||
|
// cbt_Brush1StatusTran
|
||||||
|
//
|
||||||
|
this.cbt_Brush1StatusTran.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_Brush1StatusTran.Location = new System.Drawing.Point(203, 213);
|
||||||
|
this.cbt_Brush1StatusTran.Name = "cbt_Brush1StatusTran";
|
||||||
|
this.cbt_Brush1StatusTran.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_Brush1StatusTran.TabIndex = 33;
|
||||||
|
this.cbt_Brush1StatusTran.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
// kryptonLabel9
|
// kryptonLabel9
|
||||||
//
|
//
|
||||||
this.kryptonLabel9.Location = new System.Drawing.Point(20, 218);
|
this.kryptonLabel9.Location = new System.Drawing.Point(20, 218);
|
||||||
@@ -579,6 +739,33 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonLabel9.TabIndex = 34;
|
this.kryptonLabel9.TabIndex = 34;
|
||||||
this.kryptonLabel9.Values.Text = "毛刷1";
|
this.kryptonLabel9.Values.Text = "毛刷1";
|
||||||
//
|
//
|
||||||
|
// swtbtn_brush2
|
||||||
|
//
|
||||||
|
this.swtbtn_brush2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_brush2.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_brush2.L_BarHight = 24;
|
||||||
|
this.swtbtn_brush2.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_brush2.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_brush2.L_DotHight = 20;
|
||||||
|
this.swtbtn_brush2.L_IsOpen = false;
|
||||||
|
this.swtbtn_brush2.L_Margin = 2;
|
||||||
|
this.swtbtn_brush2.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_brush2.Location = new System.Drawing.Point(105, 245);
|
||||||
|
this.swtbtn_brush2.Name = "swtbtn_brush2";
|
||||||
|
this.swtbtn_brush2.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_brush2.TabIndex = 37;
|
||||||
|
this.swtbtn_brush2.Text = "lSwitchButton2";
|
||||||
|
this.swtbtn_brush2.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush2_LSwitched);
|
||||||
|
//
|
||||||
|
// cbt_Brush2StatusTran
|
||||||
|
//
|
||||||
|
this.cbt_Brush2StatusTran.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_Brush2StatusTran.Location = new System.Drawing.Point(203, 243);
|
||||||
|
this.cbt_Brush2StatusTran.Name = "cbt_Brush2StatusTran";
|
||||||
|
this.cbt_Brush2StatusTran.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_Brush2StatusTran.TabIndex = 36;
|
||||||
|
this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
// kryptonLabel12
|
// kryptonLabel12
|
||||||
//
|
//
|
||||||
this.kryptonLabel12.Location = new System.Drawing.Point(4, 221);
|
this.kryptonLabel12.Location = new System.Drawing.Point(4, 221);
|
||||||
@@ -1713,6 +1900,16 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonGroupBox4.TabIndex = 2;
|
this.kryptonGroupBox4.TabIndex = 2;
|
||||||
this.kryptonGroupBox4.Values.Heading = "";
|
this.kryptonGroupBox4.Values.Heading = "";
|
||||||
//
|
//
|
||||||
|
// cbt_fpalletmod
|
||||||
|
//
|
||||||
|
this.cbt_fpalletmod.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_fpalletmod.Location = new System.Drawing.Point(186, 219);
|
||||||
|
this.cbt_fpalletmod.Name = "cbt_fpalletmod";
|
||||||
|
this.cbt_fpalletmod.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_fpalletmod.TabIndex = 49;
|
||||||
|
this.cbt_fpalletmod.UseVisualStyleBackColor = false;
|
||||||
|
this.cbt_fpalletmod.Visible = false;
|
||||||
|
//
|
||||||
// kryptonPanel23
|
// kryptonPanel23
|
||||||
//
|
//
|
||||||
this.kryptonPanel23.Dock = System.Windows.Forms.DockStyle.Top;
|
this.kryptonPanel23.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
@@ -1786,6 +1983,25 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kbtn_Others_1.Values.Text = "-1";
|
this.kbtn_Others_1.Values.Text = "-1";
|
||||||
this.kbtn_Others_1.Click += new System.EventHandler(this.kbtn_Others_1_Click);
|
this.kbtn_Others_1.Click += new System.EventHandler(this.kbtn_Others_1_Click);
|
||||||
//
|
//
|
||||||
|
// swtbtn_fullPalletMod
|
||||||
|
//
|
||||||
|
this.swtbtn_fullPalletMod.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_fullPalletMod.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_fullPalletMod.L_BarHight = 24;
|
||||||
|
this.swtbtn_fullPalletMod.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_fullPalletMod.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_fullPalletMod.L_DotHight = 20;
|
||||||
|
this.swtbtn_fullPalletMod.L_IsOpen = false;
|
||||||
|
this.swtbtn_fullPalletMod.L_Margin = 2;
|
||||||
|
this.swtbtn_fullPalletMod.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_fullPalletMod.Location = new System.Drawing.Point(89, 219);
|
||||||
|
this.swtbtn_fullPalletMod.Name = "swtbtn_fullPalletMod";
|
||||||
|
this.swtbtn_fullPalletMod.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_fullPalletMod.TabIndex = 47;
|
||||||
|
this.swtbtn_fullPalletMod.Text = "lSwitchButton4";
|
||||||
|
this.swtbtn_fullPalletMod.Visible = false;
|
||||||
|
this.swtbtn_fullPalletMod.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_fullPalletMod_LSwitched);
|
||||||
|
//
|
||||||
// kryptonPanel8
|
// kryptonPanel8
|
||||||
//
|
//
|
||||||
this.kryptonPanel8.Controls.Add(this.kryptonWrapLabel5);
|
this.kryptonPanel8.Controls.Add(this.kryptonWrapLabel5);
|
||||||
@@ -1809,6 +2025,35 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonWrapLabel5.Text = "其它污染";
|
this.kryptonWrapLabel5.Text = "其它污染";
|
||||||
this.kryptonWrapLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.kryptonWrapLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
//
|
//
|
||||||
|
// cbt_NozzleStatusTran
|
||||||
|
//
|
||||||
|
this.cbt_NozzleStatusTran.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.cbt_NozzleStatusTran.Location = new System.Drawing.Point(186, 191);
|
||||||
|
this.cbt_NozzleStatusTran.Name = "cbt_NozzleStatusTran";
|
||||||
|
this.cbt_NozzleStatusTran.Size = new System.Drawing.Size(30, 30);
|
||||||
|
this.cbt_NozzleStatusTran.TabIndex = 42;
|
||||||
|
this.cbt_NozzleStatusTran.UseVisualStyleBackColor = false;
|
||||||
|
this.cbt_NozzleStatusTran.Visible = false;
|
||||||
|
//
|
||||||
|
// swtbtn_nozzle1
|
||||||
|
//
|
||||||
|
this.swtbtn_nozzle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
||||||
|
this.swtbtn_nozzle1.L_AnimateType = LEase.LEaseType.Quartic;
|
||||||
|
this.swtbtn_nozzle1.L_BarHight = 24;
|
||||||
|
this.swtbtn_nozzle1.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
||||||
|
this.swtbtn_nozzle1.L_DotColor = System.Drawing.Color.White;
|
||||||
|
this.swtbtn_nozzle1.L_DotHight = 20;
|
||||||
|
this.swtbtn_nozzle1.L_IsOpen = false;
|
||||||
|
this.swtbtn_nozzle1.L_Margin = 2;
|
||||||
|
this.swtbtn_nozzle1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||||
|
this.swtbtn_nozzle1.Location = new System.Drawing.Point(89, 190);
|
||||||
|
this.swtbtn_nozzle1.Name = "swtbtn_nozzle1";
|
||||||
|
this.swtbtn_nozzle1.Size = new System.Drawing.Size(58, 25);
|
||||||
|
this.swtbtn_nozzle1.TabIndex = 43;
|
||||||
|
this.swtbtn_nozzle1.Text = "lSwitchButton4";
|
||||||
|
this.swtbtn_nozzle1.Visible = false;
|
||||||
|
this.swtbtn_nozzle1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_nozzle1_LSwitched);
|
||||||
|
//
|
||||||
// kryptonGroupBox3
|
// kryptonGroupBox3
|
||||||
//
|
//
|
||||||
this.kryptonGroupBox3.CaptionOverlap = 0D;
|
this.kryptonGroupBox3.CaptionOverlap = 0D;
|
||||||
@@ -2586,239 +2831,6 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||||
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
|
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
|
||||||
//
|
//
|
||||||
// cbt_fpalletmod
|
|
||||||
//
|
|
||||||
this.cbt_fpalletmod.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_fpalletmod.Location = new System.Drawing.Point(186, 219);
|
|
||||||
this.cbt_fpalletmod.Name = "cbt_fpalletmod";
|
|
||||||
this.cbt_fpalletmod.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_fpalletmod.TabIndex = 49;
|
|
||||||
this.cbt_fpalletmod.UseVisualStyleBackColor = false;
|
|
||||||
this.cbt_fpalletmod.Visible = false;
|
|
||||||
//
|
|
||||||
// swtbtn_fullPalletMod
|
|
||||||
//
|
|
||||||
this.swtbtn_fullPalletMod.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_fullPalletMod.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_fullPalletMod.L_BarHight = 24;
|
|
||||||
this.swtbtn_fullPalletMod.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_fullPalletMod.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_fullPalletMod.L_DotHight = 20;
|
|
||||||
this.swtbtn_fullPalletMod.L_IsOpen = false;
|
|
||||||
this.swtbtn_fullPalletMod.L_Margin = 2;
|
|
||||||
this.swtbtn_fullPalletMod.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_fullPalletMod.Location = new System.Drawing.Point(89, 219);
|
|
||||||
this.swtbtn_fullPalletMod.Name = "swtbtn_fullPalletMod";
|
|
||||||
this.swtbtn_fullPalletMod.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_fullPalletMod.TabIndex = 47;
|
|
||||||
this.swtbtn_fullPalletMod.Text = "lSwitchButton4";
|
|
||||||
this.swtbtn_fullPalletMod.Visible = false;
|
|
||||||
this.swtbtn_fullPalletMod.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_fullPalletMod_LSwitched);
|
|
||||||
//
|
|
||||||
// cbt_NozzleStatusTran
|
|
||||||
//
|
|
||||||
this.cbt_NozzleStatusTran.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_NozzleStatusTran.Location = new System.Drawing.Point(186, 191);
|
|
||||||
this.cbt_NozzleStatusTran.Name = "cbt_NozzleStatusTran";
|
|
||||||
this.cbt_NozzleStatusTran.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_NozzleStatusTran.TabIndex = 42;
|
|
||||||
this.cbt_NozzleStatusTran.UseVisualStyleBackColor = false;
|
|
||||||
this.cbt_NozzleStatusTran.Visible = false;
|
|
||||||
//
|
|
||||||
// swtbtn_nozzle1
|
|
||||||
//
|
|
||||||
this.swtbtn_nozzle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_nozzle1.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_nozzle1.L_BarHight = 24;
|
|
||||||
this.swtbtn_nozzle1.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_nozzle1.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_nozzle1.L_DotHight = 20;
|
|
||||||
this.swtbtn_nozzle1.L_IsOpen = false;
|
|
||||||
this.swtbtn_nozzle1.L_Margin = 2;
|
|
||||||
this.swtbtn_nozzle1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_nozzle1.Location = new System.Drawing.Point(89, 190);
|
|
||||||
this.swtbtn_nozzle1.Name = "swtbtn_nozzle1";
|
|
||||||
this.swtbtn_nozzle1.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_nozzle1.TabIndex = 43;
|
|
||||||
this.swtbtn_nozzle1.Text = "lSwitchButton4";
|
|
||||||
this.swtbtn_nozzle1.Visible = false;
|
|
||||||
this.swtbtn_nozzle1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_nozzle1_LSwitched);
|
|
||||||
//
|
|
||||||
// circleButton1
|
|
||||||
//
|
|
||||||
this.circleButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.circleButton1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.circleButton1.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.circleButton1.Location = new System.Drawing.Point(171, 41);
|
|
||||||
this.circleButton1.Name = "circleButton1";
|
|
||||||
this.circleButton1.Size = new System.Drawing.Size(60, 60);
|
|
||||||
this.circleButton1.TabIndex = 53;
|
|
||||||
this.circleButton1.Text = "Auto Stop";
|
|
||||||
this.circleButton1.UseVisualStyleBackColor = false;
|
|
||||||
this.circleButton1.Click += new System.EventHandler(this.circleButton1_Click);
|
|
||||||
this.circleButton1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.circleButton1_MouseDown_1);
|
|
||||||
this.circleButton1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.circleButton1_MouseUp);
|
|
||||||
//
|
|
||||||
// cbt_staticbar
|
|
||||||
//
|
|
||||||
this.cbt_staticbar.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_staticbar.Location = new System.Drawing.Point(203, 304);
|
|
||||||
this.cbt_staticbar.Name = "cbt_staticbar";
|
|
||||||
this.cbt_staticbar.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_staticbar.TabIndex = 48;
|
|
||||||
this.cbt_staticbar.UseVisualStyleBackColor = false;
|
|
||||||
//
|
|
||||||
// swtbtn_staticBar
|
|
||||||
//
|
|
||||||
this.swtbtn_staticBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_staticBar.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_staticBar.L_BarHight = 24;
|
|
||||||
this.swtbtn_staticBar.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_staticBar.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_staticBar.L_DotHight = 20;
|
|
||||||
this.swtbtn_staticBar.L_IsOpen = false;
|
|
||||||
this.swtbtn_staticBar.L_Margin = 2;
|
|
||||||
this.swtbtn_staticBar.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_staticBar.Location = new System.Drawing.Point(105, 304);
|
|
||||||
this.swtbtn_staticBar.Name = "swtbtn_staticBar";
|
|
||||||
this.swtbtn_staticBar.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_staticBar.TabIndex = 46;
|
|
||||||
this.swtbtn_staticBar.Text = "lSwitchButton4";
|
|
||||||
this.swtbtn_staticBar.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_staticBar_LSwitched);
|
|
||||||
//
|
|
||||||
// cbt_ResetSys
|
|
||||||
//
|
|
||||||
this.cbt_ResetSys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(0)))));
|
|
||||||
this.cbt_ResetSys.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.cbt_ResetSys.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.cbt_ResetSys.Location = new System.Drawing.Point(30, 107);
|
|
||||||
this.cbt_ResetSys.Name = "cbt_ResetSys";
|
|
||||||
this.cbt_ResetSys.Size = new System.Drawing.Size(60, 60);
|
|
||||||
this.cbt_ResetSys.TabIndex = 5;
|
|
||||||
this.cbt_ResetSys.Text = "RESET";
|
|
||||||
this.cbt_ResetSys.UseVisualStyleBackColor = false;
|
|
||||||
this.cbt_ResetSys.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseDown);
|
|
||||||
this.cbt_ResetSys.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_ResetSys_MouseUp);
|
|
||||||
//
|
|
||||||
// cbt_RunStatusTran
|
|
||||||
//
|
|
||||||
this.cbt_RunStatusTran.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_RunStatusTran.Location = new System.Drawing.Point(203, 5);
|
|
||||||
this.cbt_RunStatusTran.Name = "cbt_RunStatusTran";
|
|
||||||
this.cbt_RunStatusTran.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_RunStatusTran.TabIndex = 7;
|
|
||||||
this.cbt_RunStatusTran.UseVisualStyleBackColor = false;
|
|
||||||
//
|
|
||||||
// cbt_StopTran
|
|
||||||
//
|
|
||||||
this.cbt_StopTran.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.cbt_StopTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.cbt_StopTran.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.cbt_StopTran.Location = new System.Drawing.Point(105, 41);
|
|
||||||
this.cbt_StopTran.Name = "cbt_StopTran";
|
|
||||||
this.cbt_StopTran.Size = new System.Drawing.Size(60, 60);
|
|
||||||
this.cbt_StopTran.TabIndex = 5;
|
|
||||||
this.cbt_StopTran.Text = "STOP";
|
|
||||||
this.cbt_StopTran.UseVisualStyleBackColor = false;
|
|
||||||
this.cbt_StopTran.Click += new System.EventHandler(this.cbt_StopTran_Click);
|
|
||||||
this.cbt_StopTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseDown);
|
|
||||||
this.cbt_StopTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StopTran_MouseUp);
|
|
||||||
//
|
|
||||||
// swtbtn_brush3
|
|
||||||
//
|
|
||||||
this.swtbtn_brush3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_brush3.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_brush3.L_BarHight = 24;
|
|
||||||
this.swtbtn_brush3.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_brush3.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_brush3.L_DotHight = 20;
|
|
||||||
this.swtbtn_brush3.L_IsOpen = false;
|
|
||||||
this.swtbtn_brush3.L_Margin = 2;
|
|
||||||
this.swtbtn_brush3.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_brush3.Location = new System.Drawing.Point(105, 274);
|
|
||||||
this.swtbtn_brush3.Name = "swtbtn_brush3";
|
|
||||||
this.swtbtn_brush3.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_brush3.TabIndex = 40;
|
|
||||||
this.swtbtn_brush3.Text = "lSwitchButton3";
|
|
||||||
this.swtbtn_brush3.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush3_LSwitched);
|
|
||||||
//
|
|
||||||
// cbt_StartTran
|
|
||||||
//
|
|
||||||
this.cbt_StartTran.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(190)))), ((int)(((byte)(107)))));
|
|
||||||
this.cbt_StartTran.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.cbt_StartTran.Location = new System.Drawing.Point(30, 41);
|
|
||||||
this.cbt_StartTran.Name = "cbt_StartTran";
|
|
||||||
this.cbt_StartTran.Size = new System.Drawing.Size(60, 60);
|
|
||||||
this.cbt_StartTran.TabIndex = 5;
|
|
||||||
this.cbt_StartTran.Text = "START";
|
|
||||||
this.cbt_StartTran.UseVisualStyleBackColor = false;
|
|
||||||
this.cbt_StartTran.Click += new System.EventHandler(this.cbt_StartTran_Click);
|
|
||||||
this.cbt_StartTran.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseDown);
|
|
||||||
this.cbt_StartTran.MouseUp += new System.Windows.Forms.MouseEventHandler(this.cbt_StartTran_MouseUp);
|
|
||||||
//
|
|
||||||
// cbt_Brush3StatusTran
|
|
||||||
//
|
|
||||||
this.cbt_Brush3StatusTran.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_Brush3StatusTran.Location = new System.Drawing.Point(203, 273);
|
|
||||||
this.cbt_Brush3StatusTran.Name = "cbt_Brush3StatusTran";
|
|
||||||
this.cbt_Brush3StatusTran.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_Brush3StatusTran.TabIndex = 39;
|
|
||||||
this.cbt_Brush3StatusTran.UseVisualStyleBackColor = false;
|
|
||||||
//
|
|
||||||
// swtbtn_brush1
|
|
||||||
//
|
|
||||||
this.swtbtn_brush1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_brush1.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_brush1.L_BarHight = 24;
|
|
||||||
this.swtbtn_brush1.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_brush1.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_brush1.L_DotHight = 20;
|
|
||||||
this.swtbtn_brush1.L_IsOpen = false;
|
|
||||||
this.swtbtn_brush1.L_Margin = 2;
|
|
||||||
this.swtbtn_brush1.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_brush1.Location = new System.Drawing.Point(105, 216);
|
|
||||||
this.swtbtn_brush1.Name = "swtbtn_brush1";
|
|
||||||
this.swtbtn_brush1.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_brush1.TabIndex = 35;
|
|
||||||
this.swtbtn_brush1.Text = "lSwitchButton1";
|
|
||||||
this.swtbtn_brush1.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush1_LSwitched);
|
|
||||||
//
|
|
||||||
// cbt_Brush1StatusTran
|
|
||||||
//
|
|
||||||
this.cbt_Brush1StatusTran.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_Brush1StatusTran.Location = new System.Drawing.Point(203, 213);
|
|
||||||
this.cbt_Brush1StatusTran.Name = "cbt_Brush1StatusTran";
|
|
||||||
this.cbt_Brush1StatusTran.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_Brush1StatusTran.TabIndex = 33;
|
|
||||||
this.cbt_Brush1StatusTran.UseVisualStyleBackColor = false;
|
|
||||||
//
|
|
||||||
// swtbtn_brush2
|
|
||||||
//
|
|
||||||
this.swtbtn_brush2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(225)))));
|
|
||||||
this.swtbtn_brush2.L_AnimateType = LEase.LEaseType.Quartic;
|
|
||||||
this.swtbtn_brush2.L_BarHight = 24;
|
|
||||||
this.swtbtn_brush2.L_CloseColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(64)))), ((int)(((byte)(20)))));
|
|
||||||
this.swtbtn_brush2.L_DotColor = System.Drawing.Color.White;
|
|
||||||
this.swtbtn_brush2.L_DotHight = 20;
|
|
||||||
this.swtbtn_brush2.L_IsOpen = false;
|
|
||||||
this.swtbtn_brush2.L_Margin = 2;
|
|
||||||
this.swtbtn_brush2.L_OpenColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
|
||||||
this.swtbtn_brush2.Location = new System.Drawing.Point(105, 245);
|
|
||||||
this.swtbtn_brush2.Name = "swtbtn_brush2";
|
|
||||||
this.swtbtn_brush2.Size = new System.Drawing.Size(58, 25);
|
|
||||||
this.swtbtn_brush2.TabIndex = 37;
|
|
||||||
this.swtbtn_brush2.Text = "lSwitchButton2";
|
|
||||||
this.swtbtn_brush2.LSwitched += new CleanMachineHMI.LSwitchButton.LSwitchedEventHandler(this.swtbtn_brush2_LSwitched);
|
|
||||||
//
|
|
||||||
// cbt_Brush2StatusTran
|
|
||||||
//
|
|
||||||
this.cbt_Brush2StatusTran.BackColor = System.Drawing.Color.Gray;
|
|
||||||
this.cbt_Brush2StatusTran.Location = new System.Drawing.Point(203, 243);
|
|
||||||
this.cbt_Brush2StatusTran.Name = "cbt_Brush2StatusTran";
|
|
||||||
this.cbt_Brush2StatusTran.Size = new System.Drawing.Size(30, 30);
|
|
||||||
this.cbt_Brush2StatusTran.TabIndex = 36;
|
|
||||||
this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
|
|
||||||
//
|
|
||||||
// frmMainDetail
|
// frmMainDetail
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
@@ -3092,5 +3104,6 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton9;
|
private Krypton.Toolkit.KryptonButton kryptonButton9;
|
||||||
private CircleButton circleButton1;
|
private CircleButton circleButton1;
|
||||||
|
private CircleButton btn_M_A;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -346,19 +346,30 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
int fullPalletNum = _device.WorkedFullPalletNum;
|
int fullPalletNum = _device.WorkedFullPalletNum;
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// int remainingQty = 0;
|
||||||
|
|
||||||
if (0 < (fullPalletNum - currNum) && (fullPalletNum - currNum) <= 10 && fullPalletNum != 0)
|
if (0 < (fullPalletNum - currNum) && (fullPalletNum - currNum) <= 10 && fullPalletNum != 0)
|
||||||
{
|
{
|
||||||
if ((fullPalletNum - currNum) != remainingQty)
|
//if ((fullPalletNum - currNum) != remainingQty)
|
||||||
{
|
//{
|
||||||
frmMainNew.RefreshFrmHost($"The tray is about to fill up and the remaining quantity is [{fullPalletNum - currNum}]!!");
|
//frmMainNew.RefreshFrmHost($"The tray is about to fill up and the remaining quantity is [{fullPalletNum - currNum}]!!");
|
||||||
LogHelper.WriteLog($"托盘即将满料,剩余数量为【{fullPalletNum - currNum}】!!", LogTypeEum.Run);
|
|
||||||
remainingQty = fullPalletNum - currNum;
|
int remaining = fullPalletNum - currNum;
|
||||||
}
|
|
||||||
|
frmMainNew.RefreshFrmHost(this.T("The tray is about to fill up and the remaining quantity is [{{remaining}}]!!", "trayfullmsg"
|
||||||
|
|
||||||
|
, new { remaining }));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
LogHelper.WriteLog($"托盘即将满料,剩余数量为【{fullPalletNum - currNum}】!!", LogTypeEum.Run);
|
||||||
|
// remainingQty = fullPalletNum - currNum;
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
remainingQty = fullPalletNum - currNum;
|
// remainingQty = fullPalletNum - currNum;
|
||||||
frmMainNew.RefreshFrmHost(null);
|
frmMainNew.RefreshFrmHost(null);
|
||||||
}
|
}
|
||||||
//托盘在当前IR中的数量
|
//托盘在当前IR中的数量
|
||||||
@@ -408,6 +419,9 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
cbt_StartTran.BackColor = _device.ManualOrAuto ? Color.Yellow : Color.Lime;
|
||||||
cbt_RunStatusTran.BackColor = _device.CleanMacRunStatusNew ? Color.Lime : Color.Gray;
|
cbt_RunStatusTran.BackColor = _device.CleanMacRunStatusNew ? Color.Lime : Color.Gray;
|
||||||
cbt_Brush1StatusTran.BackColor = _device.Hairbrush1Selection ? Color.Lime : Color.Gray;
|
cbt_Brush1StatusTran.BackColor = _device.Hairbrush1Selection ? Color.Lime : Color.Gray;
|
||||||
|
|
||||||
@@ -1032,7 +1046,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
new CleanMachine.BLL.CM.IncomingReceipt().Print(workingIrCodeMsg, Global.MacCode, this._reportFolder);
|
new CleanMachine.BLL.CM.IncomingReceipt().Print(workingIrCodeMsg, Global.MacCode, this._reportFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int remainingQty = 0;
|
// private int remainingQty = 0;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// PLC 信号处理
|
/// PLC 信号处理
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1447,6 +1461,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
if (PlcOperationHelper.Instance.WritePlcItem("ResetSys", "True", PlcItemTypeDesc.M))
|
if (PlcOperationHelper.Instance.WritePlcItem("ResetSys", "True", PlcItemTypeDesc.M))
|
||||||
{
|
{
|
||||||
|
this.lastPaltteRemain = 0;
|
||||||
LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】点击重置设备按钮,重置信号发送PLC成功!", LogTypeEum.Run);
|
LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】点击重置设备按钮,重置信号发送PLC成功!", LogTypeEum.Run);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2864,5 +2879,10 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
_device.NextStop = false;
|
_device.NextStop = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cbt_ResetSys_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4067
CleanMachineHMI/Lang/es-ES.json
Normal file
4067
CleanMachineHMI/Lang/es-ES.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -57,7 +57,7 @@ namespace CleanMachineHMI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户信息
|
/// 用户信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static UserInfo UserInfo { get; set; }=null;
|
public static UserInfo UserInfo { get; set; } = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 参数列表
|
/// 参数列表
|
||||||
@@ -94,11 +94,11 @@ namespace CleanMachineHMI
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (Parameters==null)
|
if (Parameters == null)
|
||||||
{
|
{
|
||||||
LoadParameters();
|
LoadParameters();
|
||||||
}
|
}
|
||||||
return int.Parse(Parameters.FirstOrDefault(m => m.ParameterCode == "MaintainAlarmTime").ParameterValue);
|
return int.Parse(Parameters.FirstOrDefault(m => m.ParameterCode == "MaintainAlarmTime").ParameterValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
public static List<Warning> BasWarningMd_List { get; set; }
|
public static List<Warning> BasWarningMd_List { get; set; }
|
||||||
|
|
||||||
// public static Dictionary<string, WarningLog> CmWarningLogMd_List { get; set; } = new Dictionary<string, WarningLog>();
|
// public static Dictionary<string, WarningLog> CmWarningLogMd_List { get; set; } = new Dictionary<string, WarningLog>();
|
||||||
|
|
||||||
public static List<WarningLog> CmWarningLogMd_List_1 { get; set; }
|
public static List<WarningLog> CmWarningLogMd_List_1 { get; set; }
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@ namespace CleanMachineHMI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 定义一个委托类型的事件
|
// 定义一个委托类型的事件
|
||||||
|
|
||||||
public static frmPopupWarningMsg PopupWarningMsgForm { get; set; }
|
public static frmPopupWarningMsg PopupWarningMsgForm { get; set; }
|
||||||
//定义一个委托类型的事件
|
//定义一个委托类型的事件
|
||||||
public static event EventHandler<EventArgs> OnSyncFinishPalletData;
|
public static event EventHandler<EventArgs> OnSyncFinishPalletData;
|
||||||
@@ -320,16 +320,40 @@ namespace CleanMachineHMI
|
|||||||
var str = File.ReadAllText(filePath);
|
var str = File.ReadAllText(filePath);
|
||||||
var lstLanguage = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ThemeLanguage>>(str);
|
var lstLanguage = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ThemeLanguage>>(str);
|
||||||
var tmpThemeLanguage = new Dictionary<string, string>();
|
var tmpThemeLanguage = new Dictionary<string, string>();
|
||||||
|
|
||||||
lstLanguage.ForEach(item =>
|
lstLanguage.ForEach(item =>
|
||||||
{
|
{
|
||||||
|
var key = item.formCode + "|" + item.controlCode;
|
||||||
|
var value = "";
|
||||||
if (item.options != null && item.options.Count > 0)
|
if (item.options != null && item.options.Count > 0)
|
||||||
{
|
{
|
||||||
tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, string.Join(",", item.options));
|
value = string.Join(",", item.options);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, item.controlName);
|
value = item.controlName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tmpThemeLanguage.ContainsKey(key))
|
||||||
|
{
|
||||||
|
tmpThemeLanguage[key] = value;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tmpThemeLanguage.Add(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//if (item.options != null && item.options.Count > 0)
|
||||||
|
//{
|
||||||
|
// tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, string.Join(",", item.options));
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
|
||||||
|
|
||||||
|
// tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, item.controlName);
|
||||||
|
//}
|
||||||
});
|
});
|
||||||
ThemeLanguage = tmpThemeLanguage;
|
ThemeLanguage = tmpThemeLanguage;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
//使用本地调式
|
//使用本地调式
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|
||||||
#define USE_LOCAL_TCP_DEBUG
|
#define USE_LOCAL_TCP_DEBUG
|
||||||
#endif
|
#endif
|
||||||
//启用心跳检查
|
//启用心跳检查
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using Krypton.Toolkit;
|
|||||||
using LeadDataBaseUtility;
|
using LeadDataBaseUtility;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using NX_LogUtility;
|
using NX_LogUtility;
|
||||||
|
using Scriban;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@@ -158,6 +159,12 @@ namespace CleanMachineHMI.Utils
|
|||||||
foreach (Control item in lstControls)
|
foreach (Control item in lstControls)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (item is KryptonDateTimePicker)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var key = form.Name + "|" + item.Name;
|
var key = form.Name + "|" + item.Name;
|
||||||
if (!Global.ThemeLanguage.ContainsKey(key))
|
if (!Global.ThemeLanguage.ContainsKey(key))
|
||||||
{
|
{
|
||||||
@@ -242,6 +249,37 @@ namespace CleanMachineHMI.Utils
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static string T(this Control form, string defaultValue, string infoCode, object Param)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var key = form.Name + "|" + infoCode;
|
||||||
|
var result = defaultValue;
|
||||||
|
if (!Global.ThemeLanguage.ContainsKey(key))
|
||||||
|
{
|
||||||
|
AddzhCN(key, defaultValue, "");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = Global.ThemeLanguage[key];
|
||||||
|
}
|
||||||
|
|
||||||
|
var template = Template.Parse(result);
|
||||||
|
return template.Render(Param);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取信息文本
|
/// 获取信息文本
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user