Browse Source

修改彩盒上料打印可以中途取消

章政 8 years ago
parent
commit
9f56bd7e19

+ 17 - 0
UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.Designer.cs

@@ -55,7 +55,9 @@
             this.ma_craftcode = new System.Windows.Forms.Label();
             this.ma_code = new UAS_MES.CustomControl.TextBoxWithIcon.MaCodeSearchTextBox();
             this.Lock = new UAS_MES.CustomControl.CustomCheckBox.LockCheckBox();
+            this.ClearSn_code = new System.Windows.Forms.PictureBox();
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).BeginInit();
             this.SuspendLayout();
             // 
             // ms_makecode_label
@@ -364,11 +366,24 @@
             this.Lock.Text = "锁定";
             this.Lock.UseVisualStyleBackColor = true;
             // 
+            // ClearSn_code
+            // 
+            this.ClearSn_code.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.ClearSn_code.Image = global::UAS_MES.Properties.Resources.bindingNavigatorDeleteItem_Image;
+            this.ClearSn_code.Location = new System.Drawing.Point(583, 535);
+            this.ClearSn_code.Margin = new System.Windows.Forms.Padding(4);
+            this.ClearSn_code.Name = "ClearSn_code";
+            this.ClearSn_code.Size = new System.Drawing.Size(21, 20);
+            this.ClearSn_code.TabIndex = 173;
+            this.ClearSn_code.TabStop = false;
+            this.ClearSn_code.Click += new System.EventHandler(this.ClearSn_code_Click);
+            // 
             // Make_ColorBoxLoadPrint
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(1292, 565);
+            this.Controls.Add(this.ClearSn_code);
             this.Controls.Add(this.Lock);
             this.Controls.Add(this.ma_code);
             this.Controls.Add(this.ma_craftcode);
@@ -404,6 +419,7 @@
             this.Load += new System.EventHandler(this.标签打印_Load);
             this.SizeChanged += new System.EventHandler(this.标签打印_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -436,5 +452,6 @@
         private System.Windows.Forms.Label ma_craftcode;
         private CustomControl.TextBoxWithIcon.MaCodeSearchTextBox ma_code;
         private CustomControl.CustomCheckBox.LockCheckBox Lock;
+        private System.Windows.Forms.PictureBox ClearSn_code;
     }
 }

+ 8 - 0
UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

@@ -270,5 +270,13 @@ namespace UAS_MES.Make
         {
             BaseUtil.ClosePrint(lbl);
         }
+
+        private void ClearSn_code_Click(object sender, EventArgs e)
+        {
+            BaseUtil.CleanDataTableData(ListA);
+            RemainIndex = 0;
+            code.Clear();
+            OperateResult.AppendText(">>请重新采集序列号\n");
+        }
     }
 }