From 2e9a6c1af752037c756296e24571797d0d42453f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期五, 27 三月 2026 15:02:01 +0800
Subject: [PATCH] 增加生产入库分页

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

diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
index 77f8f2d..a9fd522 100644
--- a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs
@@ -2346,7 +2346,7 @@
                 string sReturn = "";
                 if (oSystemParameter.ShowBill(ref sReturn) == true)
                 {
-                    if (oSystemParameter.omodel.MES_StationEntrustInBill_SaveAutoAddnew == "Y") //绯荤粺鍙傛暟  鑷姩瀹℃牳 
+                    if (oSystemParameter.omodel.MES_StationEntrustInBill_AutoCheck == "Y") //绯荤粺鍙傛暟  鑷姩瀹℃牳 
                     {
                         objJsonResult.Verify = "Y";
                     }
@@ -2689,9 +2689,11 @@
 
                 oCN.RunProc(" Update Sc_StationInBillMain set HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "' Where HInterID=" + lngBillKey.ToString());
                 oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Check_In " + lngBillKey.ToString() + ",1");
-               
-
-
+                //鍚屾閲戣澏浜戝弬鏁�
+                int HProcExchInterID = int.Parse(ds.Tables[0].Rows[0]["HProcExchInterID"].ToString());
+                int HProcExchEntryID = int.Parse(ds.Tables[0].Rows[0]["HProcExchEntryID"].ToString());
+                int HProcNo = int.Parse(ds.Tables[0].Rows[0]["HProcNo"].ToString()); 
+                double HQty = double.Parse(ds.Tables[0].Rows[0]["HQty"].ToString());
                 //瀹℃牳鍚庢帶鍒�================================================================================
                 string sql = "exec h_p_Sc_StationInBill_WW_AfterCheckCtrl " + lngBillKey + ",'" + HBillNo + "','" + CurUserName + "'";
                 ds = oCN.RunProcReturn(sql, "h_p_Sc_StationInBill_WW_AfterCheckCtrl");
@@ -2707,6 +2709,20 @@
                     oCN.RollBack();
                     return false;
                 }
+                //鑾峰彇绯荤粺鍙傛暟
+                oSystemParameter.ShowBill(ref sReturn);
+                //鍒ゆ柇瀹㈡埛涓哄ぉ鎿� 鍚屾閲戣澏宸ュ簭姹囨姤鍗�
+                if (oSystemParameter.omodel.WMS_CampanyName == "澶╂搸")
+                {
+                    
+                    if (!set_SaveStationEntrustInBill_CLD(HBillNo, HProcExchInterID, HProcExchEntryID, HProcNo, HQty, CurUserName, ref DBUtility.ClsPub.sErrInfo))
+                    {
+                        oCN.RollBack();
+                        sReturn = sReturn + DBUtility.ClsPub.sErrInfo;
+                        return false;
+                    }
+
+                }
                 //================================================================================
 
                 sReturn = sReturn + " 瀹℃牳鍔熻兘锛�";

--
Gitblit v1.9.1