From 81445580560cb34bd087e8d948abac16d1555be9 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期二, 22 六月 2021 16:28:34 +0800
Subject: [PATCH] 根据所输源单号模糊查询源单信息,新增返回源单列表信息方法
---
CLOUDWEB/WebService1.asmx.cs | 67 +++++++++++++++++++++++++++++++++
1 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index f432811..e3837b7 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -4991,6 +4991,21 @@
return false;
}
}
+ else if (sHSourceType == "1243") //璋冩嫧鐢宠鍗�
+ {
+ if (SaveMoveStockBill_MoveStockRequest_CLD(oMain, sHSourceType, oSystemParameterMain, ref sErrMsg))
+ {
+ //"淇濆瓨鎴愬姛锛�";
+ sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo;
+ return true;
+ }
+ else
+ {
+ //"淇濆瓨澶辫触锛�";
+ sErrMsg = "鍗曟嵁鍙凤細" + oMain.HBillNo + "锛屽崟鎹甀D锛�" + oMain.HInterID + "锛�" + sErrMsg;
+ return false;
+ }
+ }
//鐩存帴璋冩嫧
else if (sHSourceType == "-1")
{
@@ -9265,6 +9280,20 @@
[WebMethod]
public bool set_SaveSellOutBackBill_CLD_New(Model.ClsKf_ICStockBillMain oMain, string sHSourceType, Pub_Class.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg)
{
+ ////涓婁紶鍓嶅垽鏂槸鍚﹀瓨鍦ㄧ浉鍚屾潯鐮�
+ //SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+ //DataSet ds = oCn.RunProcReturn("exec h_p_WMS_UpLoadControl " + oMain.HInterID.ToString() + ",'" + oMain.HBillNo + "','" + oMain.HBillType + "'", "h_p_WMS_UpLoadControl");
+ //if (ds == null || ds.Tables[0].Rows.Count == 0)
+ //{
+ //}
+ //else
+ //{
+ // if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0][0]) == 1)
+ // {
+ // sErrMsg = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+ // return false;
+ // }
+ //}
if (sHSourceType == "1403") //閫�璐ч�氱煡鍗�
{
if (SaveSellOutBackBill_SeOutStockBack_CLD_New(oMain, sHSourceType, oSystemParameterMain, ref sErrMsg))
@@ -30633,6 +30662,44 @@
#endregion
+ #region 杩斿洖婧愬崟淇℃伅
+
+ //鏍规嵁鎵�杈撴簮鍗曞彿妯$硦鏌ヨ婧愬崟淇℃伅锛屽苟杩斿洖鏁版嵁
+ [WebMethod]
+ public DataSet GetSourceBillList(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, Int64 HOWNERID, ref string sErrMsg)
+ {
+ try
+ {
+ DataSet ds;
+ SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+ ds = oCN.RunProcReturn("exec h_p_WMS_SourceBillList " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HSourceBillNo + "','" + HSourceBillType + "'," + HOWNERID, "h_p_WMS_SourceBillList");
+ if (ds == null && ds.Tables[0].Rows.Count == 0)
+ {
+ sErrMsg = "杩斿洖婧愬崟鍒楄〃淇℃伅澶辫触锛屾湭鐭ラ敊璇紒";
+ return null;
+ }
+ else
+ {
+ if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0][0]) == 0)
+ {
+ return ds;
+ }
+ else
+ {
+ sErrMsg = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+ return null;
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ sErrMsg = "杩斿洖婧愬崟鍒楄〃淇℃伅澶辫触锛�" + e.Message;
+ return null;
+ }
+ }
+
+ #endregion
+
#region 妗岄潰鏉$爜鐢熸垚澶栫綉鐗�
--
Gitblit v1.9.1