From ae84d8ffcebaf9d340d3c43051c955f5956ef8e1 Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期五, 12 九月 2025 08:15:26 +0800
Subject: [PATCH] 一键扫码调用方法中扫描仓库调用方式修改

---
 CLOUDWEB/WebService1.asmx.cs |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index 155fdb2..9165c44 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -57229,6 +57229,7 @@
         [WebMethod]
         public Model.ClsKf_ICStockBill_WMS get_BaseSet(string sBarCode, Int64 HOWNERID, string sBarBillName, ref string sErrMsg)
         {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
             Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS();
             //浠撳簱鏉$爜
             if (sBarBillName == "浠撳簱")
@@ -57238,20 +57239,24 @@
                 int ID;
                 if (int.TryParse(sBarCode.Remove(0, 3), out ID))
                 {
-                    if (dal.GetInfoByID(ID, HOWNERID))
-                    {
-                        oBar.HBarType = "浠撳簱鏉$爜";
-                        oBar.HWhID = dal.omodel.HItemID;
-                        oBar.HWhNumber = dal.omodel.HNumber;
-                        oBar.HWhName = dal.omodel.HName;
-                        oBar.HSPFlag = dal.omodel.HIsStockMgr;
-                        return oBar;
-                    }
-                    else
+                    DataSet ds = oCn.RunProcReturn("exec h_p_Gy_Warehouse_PDA " + ID.ToString() + "," + HOWNERID.ToString(), "h_p_Gy_Warehouse_PDA");
+                    if (ds == null || ds.Tables[0].Rows.Count == 0)
                     {
                         sErrMsg = "鏃犳晥浠撳簱鏉$爜锛�";
                         return null;
                     }
+                    else
+                    {
+                        oBar.HBarType = "浠撳簱鏉$爜";
+                        oBar.HWhID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HItemID"]);
+                        oBar.HWhNumber = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HNumber"]);
+                        oBar.HWhName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HName"]);
+                        oBar.HSPFlag = DBUtility.ClsPub.isBool(ds.Tables[0].Rows[0]["HSPFlag"]);
+                        oBar.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HSPID"]);
+                        oBar.HSPNumber = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HSPNumber"]);
+                        oBar.HSPName = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HSPName"]);
+                        return oBar;
+                    }
                 }
                 else
                 {

--
Gitblit v1.9.1