Explorar el Código

优化操作bug

yhluo hace 1 día
padre
commit
60f1b1ae98
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10 3
      UAS_Tools_HY/Main.cs

+ 10 - 3
UAS_Tools_HY/Main.cs

@@ -208,11 +208,13 @@ namespace UAS_MES_Tools
                     else if (typeNum == 2)
                     {
                         SN.Text = "";
-                        //BoxNo.Text = "";
                         dCount.Text = "0";
-                        //Datas.Rows.Clear();
+                        BoxNo.Enabled = true;
                         BoxNo.Focus();
                         BoxNo.SelectAll();
+
+                        //BoxNo.Text = "";
+                        //Datas.Rows.Clear();
                     }
 
                     QDquery_Click(null, null);
@@ -316,11 +318,16 @@ namespace UAS_MES_Tools
                     BoxNo.Focus();
                     BoxNo.SelectAll();
                     MessageBox.Show($"核对完成,此箱{BoxNo.Text} 已装满{dt.Rows[0]["CAPACITY"].ToString()} 个,请扫描未核对箱号", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                    BoxNo.Text = "";
                     return;
                 }
             }
 
-            if (CheckEnter()) return;
+            if (CheckEnter())
+            {
+                BoxNo.Text = "";
+                return;
+            }
 
             /*if (Datas.Rows.Count > 0)
             {