From 179635da5c03219f833cc145595369d2e9b85e14 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 31 十月 2024 16:38:31 +0800
Subject: [PATCH] 工序返工申请单:增加字段 HBillOperationType 审核时根据HBillOperationType进行相关反写

---
 WebAPI/Controllers/LMESController.cs |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs
index 6868284..21336e2 100644
--- a/WebAPI/Controllers/LMESController.cs
+++ b/WebAPI/Controllers/LMESController.cs
@@ -1210,7 +1210,7 @@
         #region 宸ヨ壓璺嚎鍒嗛〉鍒楄〃
         [Route("Gy_RoutingBill/page")]
         [HttpGet]
-        public json Gy_RoutingBillPage(string sWhere, string user, int page, int size)
+        public object Gy_RoutingBillPage(string sWhere, string user, int page, int size)
         {
             DataSet ds;
             json res = new json();
@@ -1256,7 +1256,7 @@
                 res.count = CountConstant.FAIL;
                 res.Message = "Exception锛�" + e.ToString();
                 res.data = null;
-                return objJsonResult;
+                return res;
             }
         }
         #endregion
@@ -3559,7 +3559,23 @@
                         return objJsonResult;
                     }
                 }
-               
+
+                //鑾峰彇绯荤粺鍙傛暟鍒ゆ柇宸ヨ壓璺嚎鏄惁鍚敤澶氱骇瀹℃壒绂佺敤鏅�氬鎵�
+                Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
+                string sReturn = "";
+                if (oSystemParameter.ShowBill(ref sReturn) == true)
+                {
+                    if (oSystemParameter.omodel.Gy_RoutingBill_EnableMultiLevel.ToUpper() == "Y") //绯荤粺鍙傛暟  鍚敤鑷姩瀹℃牳 
+                    {
+                        objJsonResult.code = CodeConstant.FAIL;
+                        objJsonResult.count = CountConstant.FAIL;
+                        objJsonResult.Message = "宸ヨ壓璺嚎宸插惎鐢ㄥ绾у鎵规櫘閫氬鏍哥鐢�";
+                        objJsonResult.data = null;
+                        return objJsonResult;
+                    }
+                }
+
+
 
                 if (string.IsNullOrWhiteSpace(HInterID))
                 {
@@ -3604,7 +3620,7 @@
                         if (oSystemParameter.omodel.WMS_CampanyName == "娣诲悍绉戞妧") //绯荤粺鍙傛暟                      
                         {
                             //鍒锋柊榛樿宸ヨ壓璺嚎
-                            oCN.RunProc("exec h_p_Gy_RoutingBillCheck " + HInterID);
+                            oCN.RunProc("exec h_p_Gy_RoutingBillCheck " + HInterID + ",'" + user + "'");
                         }
                     }                 
 

--
Gitblit v1.9.1