From 0e86ae3692dc5e5c1dca33615d76660b589a8fd5 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期四, 10 三月 2022 15:04:59 +0800 Subject: [PATCH] 快速生成条码模块 --- WebAPI/Controllers/POStockInBillController.cs | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 56 insertions(+), 4 deletions(-) diff --git a/WebAPI/Controllers/POStockInBillController.cs b/WebAPI/Controllers/POStockInBillController.cs index 36659de..73cdd77 100644 --- a/WebAPI/Controllers/POStockInBillController.cs +++ b/WebAPI/Controllers/POStockInBillController.cs @@ -114,6 +114,59 @@ } } + + + + + /// <summary> + /// 鐢熶骇姹囨姤/鎵潯鐮�/鐩存帴璋冪敤webservice + /// </summary> + /// <returns></returns> + [Route("ICMOReportBill/get_CheckTypeByBarCode_Json1")] + [HttpGet] + public Object get_CheckTypeByBarCode_Json1(string sCode, Int64 sInterID, string sBillType, string sBillNo, string sMaker, Int64 WhID, Int64 SPID, Double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, Int64 HOWNERID) + { + try + { + //if (sRedBlue == true) + //{ + // HBillType = "1239"; + //} + //oBar = webserver.get_CheckTypeByBarCode(sCode, sInterID, sBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, ref DBUtility.ClsPub.sErrInfo); + WebS.WebService1 oWebs = new WebS.WebService1(); + WebS.ClsKf_ICStockBill_WMS WebSoBar = new WebS.ClsKf_ICStockBill_WMS(); + string sExpressNumber = ""; + WebSoBar = oWebs.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, sExpressNumber, ref DBUtility.ClsPub.sErrInfo); + if (WebSoBar == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = DBUtility.ClsPub.sErrInfo; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = DBUtility.ClsPub.sErrInfo; + objJsonResult.data = WebSoBar; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = e.Message + ";" + e.StackTrace; + objJsonResult.data = null; + return objJsonResult; + } + + } + + + /// <summary> /// 涓�閿壂鐮佺孩瀛� /// </summary> @@ -288,9 +341,9 @@ /// </summary> /// <param name="HSourceBillNo"></param> /// <returns></returns> - [Route("ICMOReportBill/set_SaveICMOReportBill")] + [Route("ICMOReportBill/set_SavePonderationBillMain_Temp_Source_Fast_Json_New")] [HttpGet] - public object set_SaveICMOReportBill(string HSourceBillType, string HSourceBillNo, Int64 sInterID, string sBillNo) + public object set_SavePonderationBillMain_Temp_Source_Fast_Json_New(string HSourceBillType, string HSourceBillNo, Int64 sInterID, string sBillNo) { try { @@ -716,7 +769,7 @@ websLsmain.HInterID = lsmain[0].HInterID; websLsmain.HBillNo = lsmain[0].HBillNo; - websLsmain.HBillType = "1201";//鍥哄畾鍊� + websLsmain.HBillType = "3711";//鍥哄畾鍊� websLsmain.HDate = lsmain[0].HDate; websLsmain.HDeptID = lsmain[0].HDeptID; websLsmain.HEmpID = 0; @@ -761,7 +814,6 @@ ds = webserver.GetSPInfoByIDandHWHIDandOrg(HSpID, HWHID, HStockOrgID, ref sErrMsg); if (ds == null || ds.Tables[0].Rows.Count <= 0) { - objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�"; -- Gitblit v1.9.1