From 6a3ef40ce06dfe3aa0de04d8853bea4262c33d09 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 22 九月 2023 10:35:26 +0800
Subject: [PATCH] 获取子表信息 :物料分类 改为 物料公式

---
 WarM/条码打印/Kf_WeighToBarCode_StationOutBill.cs |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
index 11b1e6a..5822cc5 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
@@ -391,8 +391,10 @@
                         ",0,0,0,0,0,0,0,0,0" +
                         ",0,0,''," + sHBarCodeInterID.ToString() + "," + HStockOrgID.ToString() +
                         ") ");
-                    }
 
+                        ////鍥炲~娴佽浆鍗″叧鑱旀暟閲�
+                        //oCn.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + sInterID + ",1");
+                    }
                     //鍥炲~宸茬敓鍗曠姸鎬�
                     oCn.RunProc("Update KF_BCPWeighSource_Temp set HRelationInterID=1 where HInterID= " + HInterID.ToString());
                     MessageBox.Show("鐢熸垚宸ュ簭鍑虹珯姹囨姤鍗曟垚鍔燂紒", "鎻愮ず");
@@ -587,9 +589,19 @@
                 MessageBox.Show("璇疯緭鍏ュ寘鍙凤紒", "鎻愮ず");
                 return false;
             }
-            else if (DBUtility.ClsPub.isDoule(txtHProcID.Tag) == 0)
+            else if (DBUtility.ClsPub.isLong(txtHProcID.Tag) == 0)
             {
-                MessageBox.Show("璇峰厛閫夋嫨宸ュ簭锛�", "鎻愮ず");
+                MessageBox.Show("宸ュ簭涓嶅厑璁镐负绌猴紝璇峰厛杈撳叆娴佹按鍙峰悗鍥炶溅纭锛�", "鎻愮ず");
+                return false;
+            }
+            else if (DBUtility.ClsPub.isInt(txtHProcNo.Text) == 0)
+            {
+                MessageBox.Show("璇疯緭鍏ユ纭祦姘村彿锛�", "鎻愮ず");
+                return false;
+            }
+            else if (DBUtility.ClsPub.isLong(txtHSourceID.Tag) == 0)
+            {
+                MessageBox.Show("鐢熶骇璧勬簮涓嶅厑璁镐负绌猴紝璇峰厛閫夋嫨鐢熶骇璧勬簮锛�", "鎻愮ず");
                 return false;
             }
 
@@ -966,13 +978,13 @@
         {
             if (e.KeyCode == Keys.Return)
             {
-                if (txtHProcNo.Text == "")
+                if (DBUtility.ClsPub.isLong(txtHProcNo.Text) == 0)
                 {
-                    MessageBox.Show("娴佹按鍙蜂负绌猴紝璇疯緭鍏ユ祦姘村彿锛�");
+                    MessageBox.Show("娴佹按鍙蜂负绌烘垨鎵�杈撳叆娴佹按鍙蜂笉姝g‘锛岃閲嶆柊杈撳叆娴佹按鍙凤紒");
                     return;
                 }
                 //鏍规嵁杞崱涓籌D銆佹祦姘村彿甯﹀嚭娴佽浆鍗′笂鐩稿簲宸ュ簭銆佺彮缁勩�佸伐浣滀腑蹇冦�佺敓浜ц祫婧�
-                DataSet Ds = oCn.RunProcReturn("exec h_p_KF_GetBCPWeighSource_HProcNo " + HProcessExchangeInterID.ToString() + "," + txtHProcNo.Text, "h_p_KF_GetBCPWeighSource_HProcNo");
+                DataSet Ds = oCn.RunProcReturn("exec h_p_KF_GetBCPWeighSource_HProcNo2 " + HProcessExchangeInterID.ToString() + "," + DBUtility.ClsPub.isLong(txtHProcNo.Text) + ",'" + DBUtility.ClsPub.CurUserID + "'", "h_p_KF_GetBCPWeighSource_HProcNo2");
                 if (Ds == null || Ds.Tables[0].Rows.Count == 0)
                 {
                     txtHProcNo.Text = "";
@@ -984,7 +996,7 @@
                     txtHGroupID.Text = "";
                     txtHSourceID.Tag = 0;
                     txtHSourceID.Text = "";
-                    MessageBox.Show("鎵�杈撳叆娴佹按鍙蜂笉鍦ㄥ綋鍓嶅伐搴忔祦杞崱涓嬶紝璇烽噸鏂拌緭鍏ユ祦姘村彿锛�");
+                    MessageBox.Show("鎵�杈撳叆娴佹按鍙蜂笉鍦ㄥ綋鍓嶅伐搴忔祦杞崱涓嬫垨鐢ㄦ埛鏈叧鑱旇娴佹按鍙锋墍瀵瑰簲鐩稿叧宸ュ簭锛岃閲嶆柊杈撳叆娴佹按鍙凤紒");
                     return;
                 }
                 else

--
Gitblit v1.9.1