Browse Source

简化代码

章政 7 years ago
parent
commit
492d0ee449
1 changed files with 2 additions and 8 deletions
  1. 2 8
      UAS_MES_NEW/FunctionCode/Make/Make_TestCollection.cs

+ 2 - 8
UAS_MES_NEW/FunctionCode/Make/Make_TestCollection.cs

@@ -631,9 +631,7 @@ namespace UAS_MES_NEW.Make
             }
             else
             {
-                ob_batchqty.Text = "";
-                ob_nowcheckqty.Text = "";
-                ob_checkno.Text = "";
+                BaseUtil.CleanControlsText(ob_batchqty, ob_nowcheckqty, ob_checkno);
                 SendCheck.Enabled = false;
             }
             if (ob_batchqty.Text != "")
@@ -708,11 +706,7 @@ namespace UAS_MES_NEW.Make
         {
             if (ma_code.Text.Length > 4)
             {
-                mcd_inqty.Text = "";
-                mcd_remainqty.Text = "";
-                ob_batchqty.Text = "";
-                ob_nowcheckqty.Text = "";
-                ob_sendqty.Text = "";
+                BaseUtil.CleanControlsText(mcd_inqty, mcd_remainqty, ob_batchqty, ob_nowcheckqty, ob_sendqty);
                 LoadCollectedNum();
                 LoadCheckQTY();
             }