From 1e5c4412216cdba315ab37ebc8e85644f39a7df1 Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期五, 11 七月 2025 16:50:02 +0800 Subject: [PATCH] PDA校验扫描物料条码方法修改,增加校验模块免扫物料条码系统参数 --- WebAPI/Controllers/条码管理/WEBSController.cs | 62 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 1 deletions(-) diff --git "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" index 0912fc6..a2ce7b1 100644 --- "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" +++ "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" @@ -5913,6 +5913,7 @@ string sJXCode = ""; if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true) { + string sAutoBarCode = "N"; //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 string sSourceBarCodeCtl = "N"; //鏍¢獙-鏄惁杩涜婧愬崟瀵瑰簲鏉$爜鏍稿锛�'Y'涓烘牳瀵癸級 #region 绯荤粺鍙傛暟鑾峰彇 @@ -5924,6 +5925,11 @@ { sSourceBarCodeCtl = "Y"; } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_POStockInBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; + } } //鐢熶骇鍏ュ簱鍗� if (HBillType == "1202") @@ -5932,6 +5938,11 @@ if (oSystemParameter.omodel.Kf_ProductInBillCheck_SourceBarCodeCtl == "Y") { sSourceBarCodeCtl = "Y"; + } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_ProductInBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; } } //鍏朵粬鍏ュ簱鍗� @@ -5942,6 +5953,11 @@ { sSourceBarCodeCtl = "Y"; } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_OtherInBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; + } } //棰嗘枡鍑哄簱鍗� else if (HBillType == "1204") @@ -5950,6 +5966,11 @@ if (oSystemParameter.omodel.Kf_MateOutBillCheck_SourceBarCodeCtl == "Y") { sSourceBarCodeCtl = "Y"; + } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_MateOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; } } //閿�鍞嚭搴撳崟 @@ -5960,6 +5981,11 @@ { sSourceBarCodeCtl = "Y"; } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_SellOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; + } } //鍏朵粬鍑哄簱鍗� else if (HBillType == "1206") @@ -5968,6 +5994,11 @@ if (oSystemParameter.omodel.Kf_OtherOutBillCheck_SourceBarCodeCtl == "Y") { sSourceBarCodeCtl = "Y"; + } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_OtherOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; } } //濮斿棰嗘枡鍗� @@ -5978,6 +6009,11 @@ { sSourceBarCodeCtl = "Y"; } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_EntrustOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; + } } //鐢熶骇琛ユ枡鍗� else if (HBillType == "1254") @@ -5986,6 +6022,11 @@ if (oSystemParameter.omodel.Kf_MateReplenishOutBillCheck_SourceBarCodeCtl == "Y") { sSourceBarCodeCtl = "Y"; + } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_MateReplenishOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; } } //濮斿琛ユ枡鍗� @@ -5996,6 +6037,11 @@ { sSourceBarCodeCtl = "Y"; } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_EntrustReplenishOutBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; + } } //鐩存帴璋冩嫧鍗� else if (HBillType == "1207") @@ -6004,6 +6050,11 @@ if (oSystemParameter.omodel.Kf_MoveStockBillCheck_SourceBarCodeCtl == "Y") { sSourceBarCodeCtl = "Y"; + } + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (oSystemParameter.omodel.Kf_MoveStockBillCheck_AutoBarCode.ToUpper() == "Y") + { + sAutoBarCode = "Y"; } } #endregion @@ -6018,8 +6069,17 @@ } try { + //鍏嶆壂鐗╂枡鏉$爜妯″紡锛�'Y'涓轰笉鎵墿鏂欐潯鐮侊級 + if (sAutoBarCode == "Y") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍏嶆壂鐗╂枡鏉$爜妯″紡锛屾棤闇�鎵弿鐗╂枡鏉$爜锛�"; + objJsonResult.data = null; + return objJsonResult; + } //鍘熷崟鎹负鎵爜鐢熸垚锛屾牎楠屾椂涓嶇敓鎴愭潯鐮佽褰曪紝鍙鍘熸壂鎻忕殑鏉$爜杩涜鏍稿 - if (sSourceBarCodeCtl == "Y") + else if (sSourceBarCodeCtl == "Y") { WebSoBar = oWebs.get_BillBarCode_Verify(HBillID, HBillNo, HBillType, sJXCode, HQty, HMaker, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); if (WebSoBar == null) -- Gitblit v1.9.1