From c5d064d840e01fec1a728204d3776ab831008309 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期四, 24 十月 2024 14:41:49 +0800
Subject: [PATCH] 15白标生成打印

---
 WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs b/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs
index 0553ab6..3cbb90f 100644
--- a/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs
+++ b/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs
@@ -405,7 +405,7 @@
             foreach (Gy_RoutingBillSub oSub in DetailColl)
             {
                 i++;
-                if (oSystemParameter.omodel.WMS_CampanyName != "榫欏北姹介厤")
+                if (oSystemParameter.omodel.WMS_CampanyName != "榫欏北姹介厤" && oSystemParameter.omodel.WMS_CampanyName != "娣诲悍绉戞妧")
                 {
                     if (oSub.HWorkQty <= 0)
                     {
@@ -1953,7 +1953,7 @@
                         oCN.RunProc(sql04);
 
                         //鏇存柊鍗曟嵁鐨勫崟鎹姸鎬�
-                        if (oBill.CheckBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo) == true)
+                        if (oBill.CheckBill(oCN, oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_Gy_RoutingBill_AfterCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true)
                         {
                             objJsonResult.code = CodeConstant.SUCCEED;
                             objJsonResult.count = CountConstant.SUCCEED;
@@ -1976,23 +1976,23 @@
                 {
                     #region 鍙嶅鏍稿墠鐨勭浉鍏冲垽鏂�
                     //鍙嶅鏍稿墠鎺у埗=========================================
-                    //DataSet ds = oCN.RunProcReturn("Exec h_p_Gy_Routing_BeforeUnCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'", "h_p_Gy_Routing_BeforeUnCheckCtrl");
-                    //if (ds == null)
-                    //{
-                    //    objJsonResult.code = CodeConstant.FAIL;
-                    //    objJsonResult.count = CountConstant.FAIL;
-                    //    objJsonResult.Message = "鍙嶅鏍稿け璐�!鍘熷洜:" + "鍙嶅鏍稿墠鍒ゆ柇澶辫触锛�";
-                    //    objJsonResult.data = null;
-                    //    return objJsonResult;
-                    //}
-                    //if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0")
-                    //{
-                    //    objJsonResult.code = CodeConstant.FAIL;
-                    //    objJsonResult.count = CountConstant.FAIL;
-                    //    objJsonResult.Message = "鍙嶅鏍稿け璐�!鍘熷洜:" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]);
-                    //    objJsonResult.data = null;
-                    //    return objJsonResult;
-                    //}
+                    DataSet ds = oCN.RunProcReturn("Exec h_p_Gy_Routing_BeforeUnCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'", "h_p_Gy_Routing_BeforeUnCheckCtrl");
+                    if (ds == null)
+                    {
+                        objJsonResult.code = CodeConstant.FAIL;
+                        objJsonResult.count = CountConstant.FAIL;
+                        objJsonResult.Message = "鍙嶅鏍稿け璐�!鍘熷洜:" + "鍙嶅鏍稿墠鍒ゆ柇澶辫触锛�";
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                    if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0")
+                    {
+                        objJsonResult.code = CodeConstant.FAIL;
+                        objJsonResult.count = CountConstant.FAIL;
+                        objJsonResult.Message = "鍙嶅鏍稿け璐�!鍘熷洜:" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]);
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
                     //=========================================================
 
                     //杩涜 浼氳鏈熼棿 缁撹处 鐨勫垽鏂拰鎺у埗

--
Gitblit v1.9.1