From f48f7421c9615779c6c8fbeca046ac45333159d2 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 07 十一月 2025 14:35:47 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/CJGL/Cj_SingleStationController.cs |   52 ++++++++++++++++++++++++++--------------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
index 9233cfd..2650cec 100644
--- a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
@@ -2538,7 +2538,7 @@
                 }
 
                 //鏉$爜涓婇亾宸ュ簭鏄惁杩囩珯
-                ds = oCN.RunProcReturn("exec h_p_Sc_SNBarcodeProcCtrl_S '" + barCode_SN + "'," + omodel.HProcID, "h_p_Sc_SNBarcodeProcCtrl_S");
+                ds = oCN.RunProcReturn("exec h_p_Sc_SNBarcodeProcCtrl_XW '" + barCode_SN + "'," + omodel.HProcID, "h_p_Sc_SNBarcodeProcCtrl_XW");
                 if (ClsPub.isInt(ds.Tables[0].Rows.Count) == 0)
                 {
                     objJsonResult.code = "0";
@@ -2547,7 +2547,7 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
-                else if (ds.Tables[0].Rows[0]["HBack"].ToString() == "2")
+                else if (ds.Tables[0].Rows[0]["HBack"].ToString() == "1")
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
@@ -2557,17 +2557,17 @@
                 }
 
                 //鍒ゆ柇鏉$爜鏄惁宸茬粡鍑虹珯
-                ds = oCN.RunProcReturn("select  * from h_v_Gy_QualifiedRecordsList WITH(NOLOCK) where 浜у搧鏉$爜='" + barCode_SN + "' and HProcExchInterID=" + omodel.HProcExchInterID + " and HProcExchEntryID=" + omodel.HProcExchEntryID + " and HProcID=" + omodel.HProcID, "h_v_Gy_QualifiedRecordsList");
+                //ds = oCN.RunProcReturn("select  * from h_v_Gy_QualifiedRecordsList WITH(NOLOCK) where 浜у搧鏉$爜='" + barCode_SN + "' and HProcExchInterID=" + omodel.HProcExchInterID + " and HProcExchEntryID=" + omodel.HProcExchEntryID + " and HProcID=" + omodel.HProcID, "h_v_Gy_QualifiedRecordsList");
 
-                if (ds.Tables[0].Rows.Count > 0)
-                {
-                    oCN.RollBack();
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "[0000-2-039]鏉$爜:" + barCode_SN + ",宸插嚭绔�!";
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
+                //if (ds.Tables[0].Rows.Count > 0)
+                //{
+                //    oCN.RollBack();
+                //    objJsonResult.code = "0";
+                //    objJsonResult.count = 0;
+                //    objJsonResult.Message = "[0000-2-039]鏉$爜:" + barCode_SN + ",宸插嚭绔�!";
+                //    objJsonResult.data = null;
+                //    return objJsonResult;
+                //}
 
                 long HMainInterID = 0;
                 string BillType = "3791";
@@ -2639,7 +2639,7 @@
                 int HTemporaryAreaID = 0;//鏆傛斁鍖�
                 int HShiftsID = 0;
                 string HBatchNo = omodel.HBatchNo;
-                string HWeight = omodel.HWeight;
+                double HWeight = omodel.HWeight;
                 //鑾峰彇褰撳墠鐝
                 //DataSet set = oCN.RunProcReturn("exec h_p_Gy_GetWorkShiftInfo " + HDeptID + "," + HCenterID, "h_p_Gy_GetWorkShiftInfo");
                 //if (set.Tables[0].Rows.Count > 0)
@@ -2997,8 +2997,8 @@
                     return objJsonResult;
                 }
 
-                //鏉$爜涓婇亾宸ュ簭鏄惁杩囩珯
-                ds = oCN.RunProcReturn("exec h_p_Sc_SNBarcodeProcCtrl_S '" + barCode_SN + "'," + omodel.HProcID, "h_p_Sc_SNBarcodeProcCtrl_S");
+                //鏉$爜涓婇亾宸ュ簭鏄惁杩囩珯浠ュ強鏈亾鏉$爜鏄惁宸茬粡鍑虹珯
+                ds = oCN.RunProcReturn("exec h_p_Sc_SNBarcodeProcCtrl_XW '" + barCode_SN + "'," + omodel.HProcID, "h_p_Sc_SNBarcodeProcCtrl_XW");
                 if (ClsPub.isInt(ds.Tables[0].Rows.Count) == 0)
                 {
                     objJsonResult.code = "0";
@@ -3007,7 +3007,7 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
-                else if (ds.Tables[0].Rows[0]["HBack"].ToString() == "2")
+                else if (ds.Tables[0].Rows[0]["HBack"].ToString() == "1")
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
@@ -3017,17 +3017,17 @@
                 }
 
                 //鍒ゆ柇鏉$爜鏄惁宸茬粡鍑虹珯
-                ds = oCN.RunProcReturn("select  * from h_v_Gy_QualifiedRecordsList WITH(NOLOCK) where 浜у搧鏉$爜='" + barCode_SN + "' and HProcExchInterID=" + omodel.HProcExchInterID + " and HProcExchEntryID=" + omodel.HProcExchEntryID + " and HProcID=" + omodel.HProcID, "h_v_Gy_QualifiedRecordsList");
+                //ds = oCN.RunProcReturn("select  * from h_v_Gy_QualifiedRecordsList WITH(NOLOCK) where 浜у搧鏉$爜='" + barCode_SN + "' and HProcExchInterID=" + omodel.HProcExchInterID + " and HProcExchEntryID=" + omodel.HProcExchEntryID + " and HProcID=" + omodel.HProcID, "h_v_Gy_QualifiedRecordsList");
 
-                if (ds.Tables[0].Rows.Count > 0)
-                {
-                    oCN.RollBack();
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = "[0000-2-039]鏉$爜:" + barCode_SN + ",宸插嚭绔�!";
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
+                //if (ds.Tables[0].Rows.Count > 0)
+                //{
+                //    oCN.RollBack();
+                //    objJsonResult.code = "0";
+                //    objJsonResult.count = 0;
+                //    objJsonResult.Message = "[0000-2-039]鏉$爜:" + barCode_SN + ",宸插嚭绔�!";
+                //    objJsonResult.data = null;
+                //    return objJsonResult;
+                //}
 
                 //澧炲姞浜х嚎缁勮杩芥函鍗�
                 DataSet ds1;

--
Gitblit v1.9.1