Browse Source

【软件版本】
V
【模块名称】

【问题原因】
波兰工厂是多个串口抄写多个主板的,而扫条码时SN在软件窗口只显示片刻,工位人员无法人工比较条码是否匹配,误扫其他条码。
【修改描述】
SN只在抄写结束后才清空。
【测试结果】

sat23 3 năm trước cách đây
mục cha
commit
8745256f17

+ 4 - 2
SCBC Factory Tools/Views/OperationPanel.cs

@@ -885,7 +885,8 @@ namespace MOKA_Factory_Tools
                     Onlinemode();
                     Onlinemode();
                 }
                 }
 
 
-                SNText.Text = "";
+                // 抄写成功后才清空;
+                //SNText.Text = "";
             }
             }
         }
         }
 
 
@@ -923,12 +924,13 @@ namespace MOKA_Factory_Tools
         {
         {
             if (textBox.InvokeRequired)
             if (textBox.InvokeRequired)
             {
             {
-                textBox.BeginInvoke(new Action(() => { textBox.Enabled = true; textBox.Focus(); }));
+                textBox.BeginInvoke(new Action(() => { textBox.Enabled = true; textBox.Text = ""; textBox.Focus(); }));
             }
             }
             else
             else
             {
             {
                 textBox.Enabled = true;
                 textBox.Enabled = true;
                 textBox.Focus();
                 textBox.Focus();
+                textBox.Text = "";
             }
             }
         }
         }