|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region 外购退料    外购入库(红字)   * | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool set_SavePOStockInBackBill_New(WebAPI.WebS.ClsKf_ICStockBillMain oMain, string sHSourceType, ref string sErrMsg) | 
|---|
|  |  |  | 
|---|
|  |  |  | public DataSet GetKf_ProductInBillList(string sWhere) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.Cls_S_IF_ProductInBill_Lite dal = new DAL.Cls_S_IF_ProductInBill_Lite(); | 
|---|
|  |  |  | return dal.DisSourceBillList(sWhere); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public DataSet GetKf_MoveStockRequestBillList(string sWhere) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.Cls_S_IF_MoveStockRequestBill_Lite dal = new DAL.Cls_S_IF_MoveStockRequestBill_Lite(); | 
|---|
|  |  |  | return dal.DisSourceBillList(sWhere); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  | 
|---|
|  |  |  | //sErrMsg = "保存调拨单失败!" + sErrMsg; | 
|---|
|  |  |  | //return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool set_MoveStockStepOutBill(WebAPI.WebS.ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebS.WebService1 oWebs = new WebS.WebService1(); | 
|---|
|  |  |  | if (oWebs.set_SaveMoveStockStepOutBill_New(oMain, sHSourceType, ref sErrMsg)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "保存成功!" + oMain.HBillNo; | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "单据号:" + oMain.HBillNo + ", 单据ID:" + oMain.HInterID + ";" + sErrMsg; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //删除记录 | 
|---|
|  |  |  | public bool set_DelPonderationBillMain_Temp_InterIDAndSource(long HInterID, long HMaterID, long HAuxPropID, string HMTONo, long HSourceInterID, long HSourceEntryID, string sHBillType, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //返回缓存列表信息  同步资料 | 
|---|
|  |  |  | public DataSet GetKf_PonderationBillMain_TempList_New(string sHBillType, string sHMaker, Int64 sHOWNERID) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | return dal.GetKf_PonderationBillMain_TempList_New(sHBillType, sHMaker, sHOWNERID); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //返回缓存列表信息  同步资料 | 
|---|
|  |  |  | public DataSet GetKf_PonderationBillMain_TempList(string sHBillType, string sWhere) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | return dal.GetKf_PonderationBillMain_TempList(sHBillType, sWhere); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool set_SaveICMOReportBill_Json(WebAPI.WebS.ClsSc_ICMOReportBillMain oMain, string sHSourceType, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | //BLL.ClsKf_POStockInBill bll = new BLL.ClsKf_POStockInBill(); | 
|---|
|  |  |  | //return bll.set_SavePOStockInBill_New(oMain, sHSourceType, ref DBUtility.ClsPub.sExeReturnInfo); | 
|---|
|  |  |  | WebS.WebService1 oWebs = new WebS.WebService1(); | 
|---|
|  |  |  | if (oWebs.set_SaveICMOReportBill_New(oMain, sHSourceType, ref sErrMsg)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | //判断是否反写成功 | 
|---|
|  |  |  | //if (set_UpdateHStatus(oMain.HInterID, oMain.HExplanation.ToString())) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | sErrMsg = "保存成功!" + oMain.HBillNo; | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | //else | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    sErrMsg = "保存成功!" + oMain.HBillNo + "状态反写失败!"; | 
|---|
|  |  |  | //    return true; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "单据号:" + oMain.HBillNo + ", 单据ID:" + oMain.HInterID + ";" + sErrMsg; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 生成外购入库单K3 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #region [获取打印模板] | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 打印模板列表 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | /// <param name="sWhere"></param> | 
|---|
|  |  |  | /// <param name="sErr"></param> | 
|---|
|  |  |  | /// <returns></returns> | 
|---|
|  |  |  | public DataSet GetOpenTmpList(string sWhere, ref string sErr) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); | 
|---|
|  |  |  | DataSet ds = new DataSet(); | 
|---|
|  |  |  | ds = oCn.RunProcReturn("select * from h_v_IF_OpenTmpList " + sWhere, "h_v_IF_OpenTmpList"); | 
|---|
|  |  |  | return ds; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #endregion | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 返回扫码明细信息 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public DataSet GetBarcodeList(long HInterID, string HBillNo, string sBillType, ref string sMouldManagerCtl, ref string sFIFOCtl, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_View bll = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | return bll.GetBillEntry_TmpList(HInterID, HBillNo, sBillType, ref sMouldManagerCtl, ref sFIFOCtl, ref sErrMsg); | 
|---|
|  |  |  | //DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | //return dal.GetInfoByID_View(HInterID, sBillType, sWhere); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //撤销缓存列表选中数据 | 
|---|
|  |  |  | public bool RescindBillList(Int64 sHInterID, string sBillNo, string sBillType, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_Ctl dal = new DAL.ClsKF_PonderationBillMain_Temp_Ctl(); | 
|---|
|  |  |  | if (dal.DeleteICStockBillAndWMS(sHInterID, sBillNo, sBillType, ref sErrMsg)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "删除成功!"; | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "删除失败!"; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //返回缓存列表已上传列表信息 | 
|---|
|  |  |  | public DataSet GetDisBillUpdateLoad_Json(string sHBillType, string HMaker, Int64 HOrgID) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | return dal.GetKf_ICStockBillList(sHBillType, HMaker, HOrgID); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|