From aaf61dbf97e6d7faaa7568aa30ac23668cab6095 Mon Sep 17 00:00:00 2001
From: jingh <jingh@LAPTOP-I53VDLOO>
Date: 星期三, 10 三月 2021 17:58:14 +0800
Subject: [PATCH] 销售裁切不良评审单

---
 SCM/生产管理/Gy_BadReasonList.cs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git "a/SCM/\347\224\237\344\272\247\347\256\241\347\220\206/Gy_BadReasonList.cs" "b/SCM/\347\224\237\344\272\247\347\256\241\347\220\206/Gy_BadReasonList.cs"
index 71ccef8..6a005d7 100644
--- "a/SCM/\347\224\237\344\272\247\347\256\241\347\220\206/Gy_BadReasonList.cs"
+++ "b/SCM/\347\224\237\344\272\247\347\256\241\347\220\206/Gy_BadReasonList.cs"
@@ -25,6 +25,7 @@
         public SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1();
         private static Dictionary<string, int> BlDic;
         public int ISOK = 0;
+        public string sSourceTypeName = "";
 
         private void Gy_BadReasonList_Load(object sender, EventArgs e)
         {
@@ -50,6 +51,14 @@
             {
                 MessageBox.Show("请选择不良原因后提交", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                 return;
+            }
+            if (sSourceTypeName == "生产订单")
+            {
+                if (DBUtility.ClsPub.isDoule(txtHBadQty.Text) <= 0)
+                {
+                    MessageBox.Show("请输入不良米数!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
             }
             ISOK = 1;
             this.Visible = false;
@@ -97,6 +106,7 @@
                 button.Click += new EventHandler(Btn_Click);//使用事件函数句柄指向一个具体的函数
                 flowLayoutPanel1.Controls.Add(button);
             }
+            label6.Text = label6.Text + sSourceTypeName;
         }
 
 

--
Gitblit v1.9.1