From 5910da86834162c94f03406db4fa1ce842d44e67 Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期五, 12 九月 2025 17:02:18 +0800
Subject: [PATCH] 校验模块一键扫码调用方法中扫描仓库调用方式修改
---
CLOUDWEB/WebService1.asmx.cs | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index 2da50d5..1412f3a 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -57398,7 +57398,6 @@
//浠撳簱鏉$爜
if (sBarBillName == "浠撳簱")
{
- DAL.ClsIF_Warehouse_View dal = new DAL.ClsIF_Warehouse_View();
//灏嗛�掑叆鐨勬潯鐮佸幓鎺夊墠涓変綅鍚庤浆鍖栨垚鏁村舰,TryParse涓嶈兘杞崲鎴愭暣鏁版椂杩斿洖false锛屽苟杩斿洖ID=0
int ID;
if (int.TryParse(sBarCode.Remove(0, 3), out ID))
@@ -63360,25 +63359,28 @@
//浠撳簱鏉$爜
if (sBarBillName == "浠撳簱")
{
- DAL.ClsIF_Warehouse_View dal = new DAL.ClsIF_Warehouse_View();
//灏嗛�掑叆鐨勬潯鐮佸幓鎺夊墠涓変綅鍚庤浆鍖栨垚鏁村舰,TryParse涓嶈兘杞崲鎴愭暣鏁版椂杩斿洖false锛屽苟杩斿洖ID=0
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