diff --git a/CleanMachineHMI/DataBase/clearMac.db b/CleanMachineHMI/DataBase/clearMac.db index 84d20a6..620b0fc 100644 Binary files a/CleanMachineHMI/DataBase/clearMac.db and b/CleanMachineHMI/DataBase/clearMac.db differ diff --git a/CleanMachineHMI/Device.cs b/CleanMachineHMI/Device.cs index 13e161a..57abb56 100644 --- a/CleanMachineHMI/Device.cs +++ b/CleanMachineHMI/Device.cs @@ -86,9 +86,9 @@ namespace CleanMachineHMI } - } - - + } + + /// /// 班次计数 /// @@ -127,6 +127,24 @@ namespace CleanMachineHMI /// 系统是否运行 /// + + + public bool NextStop + { + get + { + return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(NextStop), PlcItemTypeDesc.M); + } + + set + { + PlcOperationHelper.Instance.WritePlcItem(nameof(NextStop), value.ToString(), PlcItemTypeDesc.M); + } + } + + + + public bool StopSys { get diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetailNew.Designer.cs b/CleanMachineHMI/FrmUserControl/frmMainDetailNew.Designer.cs index e0d1e1f..80e7bdd 100644 --- a/CleanMachineHMI/FrmUserControl/frmMainDetailNew.Designer.cs +++ b/CleanMachineHMI/FrmUserControl/frmMainDetailNew.Designer.cs @@ -31,16 +31,16 @@ namespace CleanMachineHMI.FrmUserControl { this.components = new System.ComponentModel.Container(); this.kryptonGroupBox8 = new Krypton.Toolkit.KryptonGroupBox(); - this.kryptonContextMenu1 = new Krypton.Toolkit.KryptonContextMenu(); - this.kryptonContextMenuHeading1 = new Krypton.Toolkit.KryptonContextMenuHeading(); - this.kryptonContextMenuItems1 = new Krypton.Toolkit.KryptonContextMenuItems(); - this.kryptonContextMenuItem1 = new Krypton.Toolkit.KryptonContextMenuItem(); - this.kryptonContextMenuItem2 = new Krypton.Toolkit.KryptonContextMenuItem(); this.kryptonButton7 = new Krypton.Toolkit.KryptonButton(); this.label9_SE = new System.Windows.Forms.Label(); this.kbtn_forceFinish = new Krypton.Toolkit.KryptonButton(); this.label4_SD = new System.Windows.Forms.Label(); this.kryptonButton6 = new Krypton.Toolkit.KryptonButton(); + this.kryptonContextMenu1 = new Krypton.Toolkit.KryptonContextMenu(); + this.kryptonContextMenuHeading1 = new Krypton.Toolkit.KryptonContextMenuHeading(); + this.kryptonContextMenuItems1 = new Krypton.Toolkit.KryptonContextMenuItems(); + this.kryptonContextMenuItem1 = new Krypton.Toolkit.KryptonContextMenuItem(); + this.kryptonContextMenuItem2 = new Krypton.Toolkit.KryptonContextMenuItem(); this.kryptonGroupBox9 = new Krypton.Toolkit.KryptonGroupBox(); this.label6_SB = new System.Windows.Forms.Label(); this.label3_SA = new System.Windows.Forms.Label(); @@ -50,31 +50,14 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonButton3 = new Krypton.Toolkit.KryptonButton(); this.knud_WorkedFullPalletNum = new Krypton.Toolkit.KryptonTextBox(); this.kryptonGroupBox7 = new Krypton.Toolkit.KryptonGroupBox(); - this.labelNextFullStop = new System.Windows.Forms.Label(); this.kryptonLabel12 = new Krypton.Toolkit.KryptonLabel(); this.kryptonLabel11 = new Krypton.Toolkit.KryptonLabel(); - this.cbt_fpalletmod = new CleanMachineHMI.CircleButton(); - this.cbt_staticbar = new CleanMachineHMI.CircleButton(); - this.swtbtn_fullPalletMod = new CleanMachineHMI.LSwitchButton(); - this.swtbtn_staticBar = new CleanMachineHMI.LSwitchButton(); this.label2 = new System.Windows.Forms.Label(); this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel(); this.label1 = new System.Windows.Forms.Label(); - this.swtbtn_nozzle1 = new CleanMachineHMI.LSwitchButton(); - this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton(); - this.cbt_NozzleStatusTran = new CleanMachineHMI.CircleButton(); - this.cbt_ResetSys = new CleanMachineHMI.CircleButton(); 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.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton(); this.kryptonLabel9 = new Krypton.Toolkit.KryptonLabel(); - this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton(); - this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.kryptonLabel13 = new Krypton.Toolkit.KryptonLabel(); @@ -192,6 +175,7 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonPanel7 = new Krypton.Toolkit.KryptonPanel(); this.kryptonWrapLabel4 = new Krypton.Toolkit.KryptonWrapLabel(); this.panMenu = new Krypton.Toolkit.KryptonPanel(); + this.kryptonButton9 = new Krypton.Toolkit.KryptonButton(); this.btnShiftCount = new Krypton.Toolkit.KryptonButton(); this.btnParamater = new Krypton.Toolkit.KryptonButton(); this.btnLogin = new Krypton.Toolkit.KryptonButton(); @@ -203,7 +187,23 @@ namespace CleanMachineHMI.FrmUserControl this.btnIO = new Krypton.Toolkit.KryptonButton(); this.btnManual = new Krypton.Toolkit.KryptonButton(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.kryptonButton9 = new Krypton.Toolkit.KryptonButton(); + this.circleButton1 = new CleanMachineHMI.CircleButton(); + this.cbt_fpalletmod = new CleanMachineHMI.CircleButton(); + this.cbt_staticbar = new CleanMachineHMI.CircleButton(); + this.swtbtn_fullPalletMod = new CleanMachineHMI.LSwitchButton(); + this.swtbtn_staticBar = new CleanMachineHMI.LSwitchButton(); + this.swtbtn_nozzle1 = new CleanMachineHMI.LSwitchButton(); + this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton(); + this.cbt_NozzleStatusTran = new CleanMachineHMI.CircleButton(); + this.cbt_ResetSys = 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.Panel)).BeginInit(); this.kryptonGroupBox8.Panel.SuspendLayout(); @@ -302,30 +302,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonGroupBox8.TabIndex = 8; this.kryptonGroupBox8.Values.Heading = ""; // - // kryptonContextMenu1 - // - this.kryptonContextMenu1.Items.AddRange(new Krypton.Toolkit.KryptonContextMenuItemBase[] { - this.kryptonContextMenuHeading1, - this.kryptonContextMenuItems1}); - // - // kryptonContextMenuHeading1 - // - this.kryptonContextMenuHeading1.ExtraText = ""; - // - // kryptonContextMenuItems1 - // - this.kryptonContextMenuItems1.Items.AddRange(new Krypton.Toolkit.KryptonContextMenuItemBase[] { - this.kryptonContextMenuItem1, - this.kryptonContextMenuItem2}); - // - // kryptonContextMenuItem1 - // - this.kryptonContextMenuItem1.Text = "Report1"; - // - // kryptonContextMenuItem2 - // - this.kryptonContextMenuItem2.Text = "Reoprt2"; - // // kryptonButton7 // this.kryptonButton7.Anchor = System.Windows.Forms.AnchorStyles.None; @@ -384,6 +360,30 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonButton6.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kryptonButton6_MouseDown_1); this.kryptonButton6.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kryptonButton6_MouseUp_1); // + // kryptonContextMenu1 + // + this.kryptonContextMenu1.Items.AddRange(new Krypton.Toolkit.KryptonContextMenuItemBase[] { + this.kryptonContextMenuHeading1, + this.kryptonContextMenuItems1}); + // + // kryptonContextMenuHeading1 + // + this.kryptonContextMenuHeading1.ExtraText = ""; + // + // kryptonContextMenuItems1 + // + this.kryptonContextMenuItems1.Items.AddRange(new Krypton.Toolkit.KryptonContextMenuItemBase[] { + this.kryptonContextMenuItem1, + this.kryptonContextMenuItem2}); + // + // kryptonContextMenuItem1 + // + this.kryptonContextMenuItem1.Text = "Report1"; + // + // kryptonContextMenuItem2 + // + this.kryptonContextMenuItem2.Text = "Reoprt2"; + // // kryptonGroupBox9 // this.kryptonGroupBox9.CaptionOverlap = 0D; @@ -500,7 +500,7 @@ namespace CleanMachineHMI.FrmUserControl // // kryptonGroupBox7.Panel // - this.kryptonGroupBox7.Panel.Controls.Add(this.labelNextFullStop); + this.kryptonGroupBox7.Panel.Controls.Add(this.circleButton1); this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel12); this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel11); this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_fpalletmod); @@ -529,20 +529,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonGroupBox7.TabIndex = 5; this.kryptonGroupBox7.Values.Heading = ""; // - // labelNextFullStop - // - this.labelNextFullStop.AutoSize = true; - this.labelNextFullStop.BackColor = System.Drawing.Color.Transparent; - this.labelNextFullStop.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelNextFullStop.ForeColor = System.Drawing.Color.Red; - this.labelNextFullStop.Location = new System.Drawing.Point(17, 104); - this.labelNextFullStop.Name = "labelNextFullStop"; - this.labelNextFullStop.Size = new System.Drawing.Size(203, 16); - this.labelNextFullStop.TabIndex = 52; - this.labelNextFullStop.Text = "下次满料将停止,点击取消"; - this.labelNextFullStop.Visible = false; - this.labelNextFullStop.Click += new System.EventHandler(this.labelNextFullStop_Click); - // // kryptonLabel12 // this.kryptonLabel12.Location = new System.Drawing.Point(21, 302); @@ -560,62 +546,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonLabel11.TabIndex = 50; this.kryptonLabel11.Values.Text = "静电棒"; // - // cbt_fpalletmod - // - this.cbt_fpalletmod.BackColor = System.Drawing.Color.Gray; - this.cbt_fpalletmod.Location = new System.Drawing.Point(203, 300); - 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; - // - // cbt_staticbar - // - this.cbt_staticbar.BackColor = System.Drawing.Color.Gray; - this.cbt_staticbar.Location = new System.Drawing.Point(203, 241); - 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_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(106, 300); - 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); - // - // 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, 241); - 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 // this.label2.AutoSize = true; @@ -649,58 +579,6 @@ namespace CleanMachineHMI.FrmUserControl this.label1.TabIndex = 8; this.label1.Text = "系统运行"; // - // 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(106, 271); - 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); - // - // 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_NozzleStatusTran - // - this.cbt_NozzleStatusTran.BackColor = System.Drawing.Color.Gray; - this.cbt_NozzleStatusTran.Location = new System.Drawing.Point(203, 272); - 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; - // - // 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(173, 41); - 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); - // // kryptonLabel7 // this.kryptonLabel7.Location = new System.Drawing.Point(20, 213); @@ -709,80 +587,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonLabel7.TabIndex = 41; 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(98, 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, 211); - 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(23, 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, 210); - 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, 153); - 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 // this.kryptonLabel8.Location = new System.Drawing.Point(20, 184); @@ -791,15 +595,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonLabel8.TabIndex = 38; this.kryptonLabel8.Values.Text = "毛刷2"; // - // cbt_Brush1StatusTran - // - this.cbt_Brush1StatusTran.BackColor = System.Drawing.Color.Gray; - this.cbt_Brush1StatusTran.Location = new System.Drawing.Point(203, 150); - 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 // this.kryptonLabel9.Location = new System.Drawing.Point(20, 155); @@ -808,33 +603,6 @@ namespace CleanMachineHMI.FrmUserControl this.kryptonLabel9.TabIndex = 34; 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, 182); - 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, 180); - 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; - // // tableLayoutPanel2 // this.tableLayoutPanel2.BackColor = System.Drawing.Color.Transparent; @@ -2360,6 +2128,45 @@ namespace CleanMachineHMI.FrmUserControl this.panMenu.Size = new System.Drawing.Size(1000, 59); this.panMenu.TabIndex = 7; // + // kryptonButton9 + // + this.kryptonButton9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.kryptonButton9.AutoSize = true; + this.kryptonButton9.Location = new System.Drawing.Point(840, 6); + this.kryptonButton9.Name = "kryptonButton9"; + this.kryptonButton9.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke; + this.kryptonButton9.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue; + this.kryptonButton9.Size = new System.Drawing.Size(80, 47); + this.kryptonButton9.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.kryptonButton9.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke; + this.kryptonButton9.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue; + this.kryptonButton9.StateNormal.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; + this.kryptonButton9.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue; + this.kryptonButton9.StateNormal.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonButton9.StateNormal.Border.Rounding = 3F; + this.kryptonButton9.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240))))); + this.kryptonButton9.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue; + this.kryptonButton9.StatePressed.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; + this.kryptonButton9.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue; + this.kryptonButton9.StatePressed.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonButton9.StatePressed.Border.Rounding = 3F; + this.kryptonButton9.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke; + this.kryptonButton9.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue; + this.kryptonButton9.StateTracking.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; + this.kryptonButton9.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue; + this.kryptonButton9.StateTracking.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) + | Krypton.Toolkit.PaletteDrawBorders.Left) + | Krypton.Toolkit.PaletteDrawBorders.Right))); + this.kryptonButton9.StateTracking.Border.Rounding = 3F; + this.kryptonButton9.TabIndex = 22; + this.kryptonButton9.Tag = "frmPrinterMain"; + this.kryptonButton9.Values.Text = "个人报"; + this.kryptonButton9.Click += new System.EventHandler(this.kryptonButton9_Click); + // // btnShiftCount // this.btnShiftCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); @@ -2756,44 +2563,238 @@ namespace CleanMachineHMI.FrmUserControl this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4); // - // kryptonButton9 + // circleButton1 // - this.kryptonButton9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.kryptonButton9.AutoSize = true; - this.kryptonButton9.Location = new System.Drawing.Point(840, 6); - this.kryptonButton9.Name = "kryptonButton9"; - this.kryptonButton9.OverrideDefault.Back.Color1 = System.Drawing.Color.WhiteSmoke; - this.kryptonButton9.OverrideDefault.Back.Color2 = System.Drawing.Color.LightSteelBlue; - this.kryptonButton9.Size = new System.Drawing.Size(80, 47); - this.kryptonButton9.StateCommon.Content.ShortText.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.kryptonButton9.StateNormal.Back.Color1 = System.Drawing.Color.WhiteSmoke; - this.kryptonButton9.StateNormal.Back.Color2 = System.Drawing.Color.LightSteelBlue; - this.kryptonButton9.StateNormal.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; - this.kryptonButton9.StateNormal.Border.Color1 = System.Drawing.Color.CornflowerBlue; - this.kryptonButton9.StateNormal.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) - | Krypton.Toolkit.PaletteDrawBorders.Left) - | Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonButton9.StateNormal.Border.Rounding = 3F; - this.kryptonButton9.StatePressed.Back.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(240))))); - this.kryptonButton9.StatePressed.Back.Color2 = System.Drawing.Color.RoyalBlue; - this.kryptonButton9.StatePressed.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; - this.kryptonButton9.StatePressed.Border.Color1 = System.Drawing.Color.CornflowerBlue; - this.kryptonButton9.StatePressed.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) - | Krypton.Toolkit.PaletteDrawBorders.Left) - | Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonButton9.StatePressed.Border.Rounding = 3F; - this.kryptonButton9.StateTracking.Back.Color1 = System.Drawing.Color.WhiteSmoke; - this.kryptonButton9.StateTracking.Back.Color2 = System.Drawing.Color.CornflowerBlue; - this.kryptonButton9.StateTracking.Back.ColorStyle = Krypton.Toolkit.PaletteColorStyle.HalfCut; - this.kryptonButton9.StateTracking.Border.Color1 = System.Drawing.Color.CornflowerBlue; - this.kryptonButton9.StateTracking.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom) - | Krypton.Toolkit.PaletteDrawBorders.Left) - | Krypton.Toolkit.PaletteDrawBorders.Right))); - this.kryptonButton9.StateTracking.Border.Rounding = 3F; - this.kryptonButton9.TabIndex = 22; - this.kryptonButton9.Tag = "frmPrinterMain"; - this.kryptonButton9.Values.Text = "个人报"; - this.kryptonButton9.Click += new System.EventHandler(this.kryptonButton9_Click); + 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(68, 331); + 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.Visible = false; + this.circleButton1.Click += new System.EventHandler(this.circleButton1_Click); + this.circleButton1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.circleButton1_KeyUp); + // + // cbt_fpalletmod + // + this.cbt_fpalletmod.BackColor = System.Drawing.Color.Gray; + this.cbt_fpalletmod.Location = new System.Drawing.Point(203, 300); + 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; + // + // cbt_staticbar + // + this.cbt_staticbar.BackColor = System.Drawing.Color.Gray; + this.cbt_staticbar.Location = new System.Drawing.Point(203, 241); + 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_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(106, 300); + 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); + // + // 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, 241); + 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); + // + // 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(106, 271); + 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); + // + // 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_NozzleStatusTran + // + this.cbt_NozzleStatusTran.BackColor = System.Drawing.Color.Gray; + this.cbt_NozzleStatusTran.Location = new System.Drawing.Point(203, 272); + 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; + // + // 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(182, 41); + 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_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(96, 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, 211); + 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(9, 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, 210); + 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, 153); + 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, 150); + 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, 182); + 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, 180); + 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; // // frmMainDetailNew // @@ -3060,7 +3061,6 @@ namespace CleanMachineHMI.FrmUserControl private Krypton.Toolkit.KryptonTextBox ktb_ShiftCount; private Krypton.Toolkit.KryptonLabel kryptonLabel16; private Krypton.Toolkit.KryptonButton btnShiftCount; - private System.Windows.Forms.Label labelNextFullStop; private Krypton.Toolkit.KryptonContextMenu kryptonContextMenu1; private Krypton.Toolkit.KryptonContextMenuItems kryptonContextMenuItems1; private Krypton.Toolkit.KryptonContextMenuItem kryptonContextMenuItem1; @@ -3068,5 +3068,6 @@ namespace CleanMachineHMI.FrmUserControl private Krypton.Toolkit.KryptonContextMenuItem kryptonContextMenuItem2; private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private Krypton.Toolkit.KryptonButton kryptonButton9; + private CircleButton circleButton1; } } diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetailNew.cs b/CleanMachineHMI/FrmUserControl/frmMainDetailNew.cs index b99e75e..4e2a0c2 100644 --- a/CleanMachineHMI/FrmUserControl/frmMainDetailNew.cs +++ b/CleanMachineHMI/FrmUserControl/frmMainDetailNew.cs @@ -214,7 +214,7 @@ namespace CleanMachineHMI.FrmUserControl catch (Exception ex) { KryptonMessageBox.Show(this.T("主业务界面加载发生异常", "LoadMainDetailFrmExp") + $":【{ex.Message}】!"); - LogHelper.WriteLog($"1111【{ex.Message}】", LogTypeEum.Err); + LogHelper.WriteLog($"【{ex.Message}】", LogTypeEum.Err); } } @@ -1019,35 +1019,6 @@ namespace CleanMachineHMI.FrmUserControl LogHelper.WriteLog($"作业IR:【{workingIrMsg}】已经结束,数据库信息重置完成。", LogTypeEum.Run); } - if (this.NextFullStop) - { - this.NextFullStop = false; - - if (!_device.StopSys && !_device.ManualOrAuto) - { - _device.StopSys = true; - Thread.Sleep(500); - _device.StopSys = false; - } - - //if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StopSys", PlcItemTypeDesc.M)) - // && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M))) - //{ - // if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M)) - // { - // //GlobalHelper.SysIsRunFlag = false; - // LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】点击停止设备按钮,停止信号发送PLC成功!", LogTypeEum.Run); - // } - - // Thread.Sleep(200); - - // if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "False", PlcItemTypeDesc.M)) - // { - // } - //} - - - } } @@ -1547,35 +1518,7 @@ namespace CleanMachineHMI.FrmUserControl } private bool _nextFullStop = false; - public bool NextFullStop - { - get - { - return _nextFullStop; - - } - set - { - _nextFullStop = value; - this.BeginInvoke(new Action(() => - { - - this.labelNextFullStop.Visible = value; - })); - - //if (value) - //{ - // - // thi - //} else - //{ - - //} - - } - - - } + @@ -1598,29 +1541,29 @@ namespace CleanMachineHMI.FrmUserControl } - + if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StopSys", PlcItemTypeDesc.M)) && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M))) { - - var modelResult = KryptonMessageBox.Show("是否在下次满料时停止? \n Yes:下次满料自动停止 No:直接停止 Cancel:不停止继续运行", "是否在下次满料时停止", MessageBoxButtons.YesNoCancel); - - - if (modelResult == DialogResult.Yes) + if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M)) { - NextFullStop = true; + //GlobalHelper.SysIsRunFlag = false; + LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】点击停止设备按钮,停止信号发送PLC成功!", LogTypeEum.Run); } - else if (modelResult == DialogResult.No) - { + //var modelResult = KryptonMessageBox.Show("是否在下次满料时停止? \n Yes:下次满料自动停止 No:直接停止 Cancel:不停止继续运行", "是否在下次满料时停止", MessageBoxButtons.YesNoCancel); - if (PlcOperationHelper.Instance.WritePlcItem("StopSys", "True", PlcItemTypeDesc.M)) - { - //GlobalHelper.SysIsRunFlag = false; - LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】点击停止设备按钮,停止信号发送PLC成功!", LogTypeEum.Run); - } - } + //if (modelResult == DialogResult.Yes) + //{ + // NextFullStop = true; + //} + //else if (modelResult == DialogResult.No) + //{ + + + + //} } @@ -2868,11 +2811,7 @@ namespace CleanMachineHMI.FrmUserControl } - private void labelNextFullStop_Click(object sender, EventArgs e) - { - this.NextFullStop = false; - } - + private void kryptonDropButton1_Click(object sender, EventArgs e) { @@ -2882,5 +2821,15 @@ namespace CleanMachineHMI.FrmUserControl { frmMainNew.SwitchFrmMenu(EnumFormType.OperatorReport, false); } + + private void circleButton1_KeyUp(object sender, KeyEventArgs e) + { + _device.NextStop = true; + } + + private void circleButton1_Click(object sender, EventArgs e) + { + + } } } diff --git a/CleanMachineHMI/Utils/PlcOperationHelper.cs b/CleanMachineHMI/Utils/PlcOperationHelper.cs index 435200d..0ae9a5e 100644 --- a/CleanMachineHMI/Utils/PlcOperationHelper.cs +++ b/CleanMachineHMI/Utils/PlcOperationHelper.cs @@ -182,7 +182,7 @@ namespace CleanMachineHMI stopWatch.Stop(); TimeSpan ts = stopWatch.Elapsed; - Console.WriteLine($"读取PLC时间:{ts.Milliseconds}", LogTypeEum.Run); + // Console.WriteLine($"读取PLC时间:{ts.Milliseconds}", LogTypeEum.Run); if (haschange) {