|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 直接扫描源单条码调用 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 生产汇报    扫描源单条码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | [WebMethod] | 
|---|
|  |  |  | public Model.ClsKf_ICStockBill_WMS get_SourceBarCode_ICMOReport(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Int64 HStockOrgID, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //获取系统参数 | 
|---|
|  |  |  | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); | 
|---|
|  |  |  | if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == false) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "单据号:" + HBillNo + ",单据ID:" + HInterID + ";扫描源单时获取系统参数失败! " + sErrMsg; | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Int64 HAccessFlag = 0;   //是否物料条码带出源单信息标志(0为直接扫源单条码,1为物料条码带出源单信息) | 
|---|
|  |  |  | oBar = get_SourceBill_ICMOReport(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HAccessFlag, oSystemParameter.omodel, ref sErrMsg); | 
|---|
|  |  |  | if (oBar == null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return oBar; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 生产入库    扫描源单条码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | [WebMethod] | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 委外入库    扫描源单条码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | [WebMethod] | 
|---|
|  |  |  | public Model.ClsKf_ICStockBill_WMS get_SourceBarCode_EntrustIn(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Int64 HStockOrgID, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Model.ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //获取系统参数 | 
|---|
|  |  |  | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); | 
|---|
|  |  |  | if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == false) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "单据号:" + HBillNo + ",单据ID:" + HInterID + ";扫描源单时获取系统参数失败! " + sErrMsg; | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Int64 HAccessFlag = 0;   //是否物料条码带出源单信息标志(0为直接扫源单条码,1为物料条码带出源单信息) | 
|---|
|  |  |  | oBar = get_SourceBill_EntrustIn(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, HAccessFlag, oSystemParameter.omodel, ref sErrMsg); | 
|---|
|  |  |  | if (oBar == null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return oBar; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 其他入库    扫描源单条码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | [WebMethod] | 
|---|