yxj
2024-12-17 8ff84891a3186222df0a37342ff48992dd5c29e9
校验缓存列表模块,返回缓存信息调用方法优化
1个文件已修改
97 ■■■■■ 已修改文件
CLOUDWEB/WebService1.asmx.cs 97 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CLOUDWEB/WebService1.asmx.cs
@@ -56669,18 +56669,105 @@
            //获取系统参数
            string sErrMsg = "";
            Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
            if (oSystemParameter.ShowBill(ref sErrMsg) == false)
            if (oSystemParameter.ShowBillByOrgID(sHOWNERID, ref sErrMsg) == false)
            {
                sErrMsg = "获取系统参数失败! " + sErrMsg;
                return null;
            }
            string sSourceBarCodeCtl = "N";     //校验-是否进行源单对应条码核对('Y'为核对)
            string sSourceBarCodeCtl = "N";   //校验-是否进行源单对应条码核对('Y'为核对)
            if (sHBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl == "Y")
            #region 系统参数获取
            //采购入库单
            if (sHBillType == "1201")
            {
                //销售出库单
                sSourceBarCodeCtl = "Y";
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_POStockInBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //生产入库单
            else if (sHBillType == "1202")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_ProductInBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //其他入库单
            else if (sHBillType == "1203")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_OtherInBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //领料出库单
            else if (sHBillType == "1204")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_MateOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //销售出库单
            else if (sHBillType == "1205")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //其他出库单
            else if (sHBillType == "1206")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_OtherOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //委外领料单
            else if (sHBillType == "1211")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_EntrustOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //生产补料单
            else if (sHBillType == "1254")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_MateReplenishOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //委外补料单
            else if (sHBillType == "1255")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_EntrustReplenishOutBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            //直接调拨单
            else if (sHBillType == "1207")
            {
                //校验-是否进行源单对应条码核对('Y'为核对)
                if (oSystemParameter.omodel.Kf_MoveStockBillCheck_SourceBarCodeCtl.ToUpper() == "Y")
                {
                    sSourceBarCodeCtl = "Y";
                }
            }
            #endregion
            //原单据为扫码生成,对原扫描的条码进行核对
            if (sSourceBarCodeCtl == "Y")