浏览代码

去除输入框的工单校验

章政 8 年之前
父节点
当前提交
f67120f1ff
共有 1 个文件被更改,包括 0 次插入14 次删除
  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("工单号不能为空");
-            }
         }
     }
 }