| | |
| | | //获取系统参数 |
| | | 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") |