From 260bf4a5fc73b40b7ed296b7b409602363408730 Mon Sep 17 00:00:00 2001 From: jhz <jinghz@oceic.com> Date: 星期四, 04 五月 2023 00:50:48 +0800 Subject: [PATCH] 新增一键扫码,扫描源单条码调用方法 --- CLOUDWEB/WebService1.asmx.cs | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 174 insertions(+), 2 deletions(-) diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs index c5a7acb..2ca707e 100644 --- a/CLOUDWEB/WebService1.asmx.cs +++ b/CLOUDWEB/WebService1.asmx.cs @@ -47087,7 +47087,7 @@ else { //鏍规嵁閫掑叆鐨勬潯鐮佸墠涓変綅锛屽垽鏂潯鐮佺被鍨嬶紙浠撳簱鏉$爜銆佷粨浣嶆潯鐮併�侀儴闂ㄦ潯鐮併�佹簮鍗曟潯鐮併�佺墿鏂欐潯鐮侊級 - DataSet Dss = oCn.RunProcReturn(" select HSourceName,BarCodeType from Xt_BarCodeType with(nolock) where HSourceNumber= '" + sBarCodePrefix + "'", "Xt_BarCodeType"); + DataSet Dss = oCn.RunProcReturn(" select HSourceName,BarCodeType,HSourceBillType from Xt_BarCodeType with(nolock) where HSourceNumber= '" + sBarCodePrefix + "'", "Xt_BarCodeType"); //鏃犺繑鍥炴暟鎹垯涓虹墿鏂欐潯鐮� if (Dss == null || Dss.Tables[0].Rows.Count == 0) @@ -47203,6 +47203,7 @@ { string sBarBillName = Pub_Class.ClsPub.isStrNull(Dss.Tables[0].Rows[0]["HSourceName"]); string sBarBillType = Pub_Class.ClsPub.isStrNull(Dss.Tables[0].Rows[0]["BarCodeType"]); + string sSourceBillType = Pub_Class.ClsPub.isStrNull(Dss.Tables[0].Rows[0]["HSourceBillType"]); //鍒ゆ柇鏉$爜绫诲瀷涓� 鍩虹璧勬枡鏉$爜 鎴� 婧愬崟鏉$爜 if (sBarBillType == "鍩虹璧勬枡鏉$爜") @@ -47221,7 +47222,7 @@ //婧愬崟鏉$爜 else if (sBarBillType == "婧愬崟鏉$爜") { - oBar = get_BillBarCode_BillCheck(HBillNo, HBillType, HMaker, HStockOrgID, ref sErrMsg); + oBar = get_BillBarCode(HInterID, HBillNo, HBillType, sBarCode, sSourceBillType, HMaker, 0, 0, 0, HStockOrgID, oSystemParameter.omodel, ref sErrMsg); if (oBar == null) { sErrMsg = "鍚敤涓�閿壂鐮佹ā寮忥紝" + sErrMsg; @@ -47878,6 +47879,177 @@ #endregion + #region 涓�閿壂鐮� 鎵弿婧愬崟鏉$爜 杩斿洖婧愬崟淇℃伅 + [WebMethod] + public Model.ClsKf_ICStockBill_WMS get_BillBarCode(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Double HPTQty, Int64 HPlanMode, Int64 HFIFOWhID, Int64 HStockOrgID, Pub_Class.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) + { + Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS(); + Int64 HAccessFlag = 0; //鏄惁鐗╂枡鏉$爜甯﹀嚭婧愬崟淇℃伅鏍囧織锛�0涓虹洿鎺ユ壂婧愬崟鏉$爜锛�1涓虹墿鏂欐潯鐮佸甫鍑烘簮鍗曚俊鎭級 + if (HBillType == "3711") + { + //鐢熶骇姹囨姤鍗� + oBar = get_SourceBill_ICMOReport(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HAccessFlag, oSystemParameterMain, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1201") + { + //閲囪喘鍏ュ簱鍗� + oBar = get_SourceBill_POStockIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HAccessFlag, oSystemParameterMain, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1202") + { + //鐢熶骇鍏ュ簱鍗� + oBar = get_SourceBarCode_ProductIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1203") + { + //鍏朵粬鍏ュ簱鍗� + oBar = get_SourceBarCode_OtherIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1210") + { + //濮斿鍏ュ簱鍗� + oBar = get_SourceBill_EntrustIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HAccessFlag, oSystemParameterMain, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1204") + { + //鐢熶骇棰嗘枡鍗� + oBar = get_SourceBarCode_MateOut(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HPTQty, HPlanMode, HFIFOWhID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1205") + { + //閿�鍞嚭搴撳崟 + oBar = get_SourceBarCode_SellOut(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HFIFOWhID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1211") + { + //濮斿鍑哄簱鍗� + oBar = get_SourceBarCode_EntrustOut(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HFIFOWhID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1206") + { + //鍏朵粬鍑哄簱鍗� + oBar = get_SourceBarCode_OtherOut(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HFIFOWhID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1207") + { + //鐩存帴璋冩嫧鍗� + oBar = get_SourceBarCode_MoveStock(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HFIFOWhID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1250") + { + //鍒嗘寮忚皟鍑哄崟 + oBar = get_SourceBarCode_MoveStockStepOut(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HFIFOWhID, HStockOrgID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else if (HBillType == "1251") + { + //鍒嗘寮忚皟鍏ュ崟 + oBar = get_SourceBarCode_MoveStockStepIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HStockOrgID, ref sErrMsg); + if (oBar == null) + { + return null; + } + else + { + return oBar; + } + } + else + { + sErrMsg = "鍗曟嵁绫诲瀷閿欒锛�"; + return null; + } + } + + #endregion + #region 鎵弿鐗╂枡鏉$爜 璋冩嫧 [WebMethod] -- Gitblit v1.9.1