Browse Source

去除输入框的工单校验

章政 7 years ago
parent
commit
f67120f1ff
1 changed files with 0 additions and 14 deletions
  1. 0 14
      UAS-MES/CustomControl/TextBoxWithIcon/MaCodeTextBox.cs

+ 0 - 14
UAS-MES/CustomControl/TextBoxWithIcon/MaCodeTextBox.cs

@@ -83,20 +83,6 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
         {
             if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.A)
                 this.SelectAll();
-            if (e.KeyCode == Keys.Enter)
-            {
-                if (Text != "")
-                {
-                    string ErrorMessage = "";
-                    if (!LogicHandler.CheckMakeStatus(Text, out ErrorMessage))
-                    {
-                        Text = "";
-                        BaseUtil.ShowError(ErrorMessage);
-                    }
-                }
-                else
-                    BaseUtil.ShowError("工单号不能为空");
-            }
         }
     }
 }