From cf436637560b8d4864b955c06f850b17ee9b3dbb Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期五, 24 三月 2023 14:53:39 +0800
Subject: [PATCH] 新增条码生成时同步生成条码出入库记录调用方法
---
CLOUDWEB/WebService1.asmx.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 57 insertions(+), 0 deletions(-)
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index 336da76..7a198e3 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -50124,6 +50124,63 @@
}
}
+ #region 鏉$爜鐢熸垚鏃跺悓姝ョ敓鎴愭潯鐮佸嚭鍏ュ簱璁板綍
+
+ [WebMethod]
+ public bool set_BarCodeAutoWMS(Int64 HInterID, string HSourceBillType, Int64 HStockOrgID, ref string sErrMsg)
+ {
+ //鑾峰彇绯荤粺鍙傛暟
+ Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
+ if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == false)
+ {
+ sErrMsg = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
+ return false;
+ }
+
+ string sAutoWMS = "N"; //鏉$爜鐢熸垚鏃舵槸鍚﹀悓姝ョ敓鎴愭潯鐮佸嚭鍏ュ簱璁板綍锛�'Y'涓哄悓姝ョ敓鎴愶級
+ if (HSourceBillType == "1201" && oSystemParameter.omodel.BarCode_AutoPOStockInBillWMS == "Y")
+ {
+ //閲囪喘鍏ュ簱鍗�
+ sAutoWMS = "Y";
+ }
+ else if (HSourceBillType == "1202" && oSystemParameter.omodel.BarCode_AutoProductInBillWMS == "Y")
+ {
+ //鐢熶骇鍏ュ簱鍗�
+ sAutoWMS = "Y";
+ }
+ else if (HSourceBillType == "1244" && oSystemParameter.omodel.BarCode_AutoMateOutBackBillWMS == "Y")
+ {
+ //鐢熶骇閫�鏂欏崟
+ sAutoWMS = "Y";
+ }
+ else if (HSourceBillType == "1247" && oSystemParameter.omodel.BarCode_AutoSellOutBackBillWMS == "Y")
+ {
+ //閿�鍞��璐у崟
+ sAutoWMS = "Y";
+ }
+ else
+ {
+ sAutoWMS = "N";
+ }
+
+ if (sAutoWMS == "Y")
+ {
+ try
+ {
+ SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+ oCn.RunProc("exec h_p_Kf_ICStockBillSub_WMS_Insert_AutoBarCode " + HInterID.ToString() + "", ref DBUtility.ClsPub.sExeReturnInfo);
+ return true;
+ }
+ catch (Exception e)
+ {
+ sErrMsg = "鐢熸垚鏉$爜鏃跺悓姝ョ敓鎴愭潯鐮佸嚭鍏ュ簱璁板綍澶辫触,鏈敓鎴愬搴旀潯鐮佸嚭鍏ュ簱璁板綍锛�" + e.Message;
+ return false;
+ }
+ }
+ return true;
+ }
+
+ #endregion
#endregion
--
Gitblit v1.9.1