فهرست منبع

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 7 سال پیش
والد
کامیت
62cfb8e171
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 5 0
      UAS-MES/FunctionCode/Make/Make_FeedingCollection.cs
  2. 5 0
      UAS_MES_NEW/FunctionCode/Make/Make_FeedingCollection.cs

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

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