Browse Source

Merge remote-tracking branch 'refs/remotes/origin/master'

shim 8 years ago
parent
commit
e54afaacd3

+ 7 - 1
UAS-MES/CustomControl/TextBoxWithIcon/SnCollectionBox.Designer.cs

@@ -30,7 +30,13 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
         /// </summary>
         private void InitializeComponent()
         {
-            components = new System.ComponentModel.Container();
+            this.SuspendLayout();
+            // 
+            // SnCollectionBox
+            // 
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SnCollectionBox_KeyDown);
+            this.ResumeLayout(false);
+
         }
 
       

+ 8 - 0
UAS-MES/CustomControl/TextBoxWithIcon/SnCollectionBox.cs

@@ -32,5 +32,13 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
                 base.Text = value;
             }
         }
+
+        private void SnCollectionBox_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Enter)
+            {
+                this.SelectAll();
+            }
+        }
     }
 }

+ 5 - 0
UAS_AutoPass/AutoAnalysisXml.cs

@@ -262,6 +262,7 @@ namespace UAS_AutoPass
                 else
                 {
                     OperateResult.AppendText("当前线别在" + istepcode + "无可分配序列号");
+                    tipform.startthread("当前线别在" + istepcode + "无可分配序列号", "NG");
                     return;
                 }
                 //-2-NG2017/10/2514:46:29.xml取第二位版号
@@ -278,12 +279,14 @@ namespace UAS_AutoPass
                     if (!LogicHandler.SetStepResult(makecode, isource, sncode, "自动过站采集", "OK", iusercode, out oErrMessage))
                     {
                         OperateResult.AppendText(oErrMessage + "\n");
+                        tipform.startthread(oErrMessage, "NG");
                         return;
                     }
                 }
                 else
                 {
                     OperateResult.AppendText(oErrMessage + "\n");
+                    tipform.startthread(oErrMessage, "NG");
                     return;
                 }
             }
@@ -321,6 +324,7 @@ namespace UAS_AutoPass
                             else
                             {
                                 OperateResult.AppendText(">>请重新采集序列号\n");
+                                tipform.startthread("请重新采集序列号", test_result);
                                 return;
                             }
                         }
@@ -362,6 +366,7 @@ namespace UAS_AutoPass
                 else
                 {
                     OperateResult.AppendText(oErrMessage + "\n");
+                    tipform.startthread(oErrMessage, "NG");
                     return;
                 }
             }

+ 7 - 4
UAS_AutoPass/Form2.Designer.cs

@@ -37,20 +37,23 @@
             this.label1.BackColor = System.Drawing.SystemColors.Menu;
             this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label1.ForeColor = System.Drawing.Color.Black;
-            this.label1.Location = new System.Drawing.Point(75, 18);
+            this.label1.Location = new System.Drawing.Point(37, 22);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.MaximumSize = new System.Drawing.Size(360, 0);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(0, 21);
+            this.label1.Size = new System.Drawing.Size(0, 27);
             this.label1.TabIndex = 0;
             // 
             // Tip
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.SystemColors.Menu;
-            this.ClientSize = new System.Drawing.Size(312, 59);
+            this.ClientSize = new System.Drawing.Size(416, 98);
             this.Controls.Add(this.label1);
             this.ForeColor = System.Drawing.Color.White;
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.Name = "Tip";
             this.Text = "Form2";
             this.TopMost = true;