Browse Source

上料采集录入信息不可为空

Hcsy 7 năm trước cách đây
mục cha
commit
e1156c3662

+ 5 - 0
UAS-MES/FunctionCode/Make/Make_FeedingCollection.cs

@@ -120,6 +120,11 @@ namespace UAS_MES.Make
                 {
                     if (Loading.Checked)
                     {
+                        if (code.Text.Replace(" ", "") == "")
+                        {
+                            OperateResult.AppendText(">>采集数据不可为空\n", Color.Red);
+                            return;
+                        }
                         //如果录入框和工单号均有输入
                         if (code.Text != "" && ma_code.Text != "" && sn_code.Text == "")
                         {

+ 5 - 0
UAS_MES_NEW/FunctionCode/Make/Make_FeedingCollection.cs

@@ -120,6 +120,11 @@ namespace UAS_MES_NEW.Make
                 {
                     if (Loading.Checked)
                     {
+                        if (code.Text.Replace(" ", "") == "")
+                        {
+                            OperateResult.AppendText(">>采集数据不可为空\n", Color.Red);
+                            return;
+                        }
                         //如果录入框和工单号均有输入
                         if (code.Text != "" && ma_code.Text != "" && sn_code.Text == "")
                         {