|  |  |  | 
|---|
|  |  |  | //return dal.GetInfoByID_View(HInterID, sBillType, sWhere); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool Get_CheckQtyByBarCode(string sBarcode, long HWHID, long HSPID, long HAuxPropID, string sBatchNo, string HMTONo, double sQty, ref double sRelQty) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); | 
|---|
|  |  |  | if (dal.CheckQtyByBarCode(sBarcode, HWHID, HSPID, HAuxPropID, sBatchNo, HMTONo, sQty, ref sRelQty)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public DataSet GetSPInfoByIDandHWHIDandOrg(long sItemID, long sHWHID, long HUSEORGID, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | BLL.ClsIF_StockPlace_View bll = new BLL.ClsIF_StockPlace_View(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //生成其他入库单 | 
|---|
|  |  |  | //public bool set_SaveOtherInBill_New(Model.ClsKf_OtherInBillMain oMain, string sHSourceType, ref string sErrMsg) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    //获取系统参数 | 
|---|
|  |  |  | //    Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); | 
|---|
|  |  |  | //    if (oSystemParameter.ShowBill(ref sErrMsg) == false) | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        sErrMsg = "获取系统参数失败! " + sErrMsg; | 
|---|
|  |  |  | //        return false; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    // | 
|---|
|  |  |  | //    if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "WISE") //判断同步模式是金蝶WISE | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        if (SaveOtherInBill_K3(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg)) | 
|---|
|  |  |  | //        { | 
|---|
|  |  |  | //            //"保存成功!"; | 
|---|
|  |  |  | //            sErrMsg = "保存成功!" + oMain.HBillNo; | 
|---|
|  |  |  | //            return true; | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //        else | 
|---|
|  |  |  | //        { | 
|---|
|  |  |  | //            //"保存失败!"; | 
|---|
|  |  |  | //            sErrMsg = sErrMsg; | 
|---|
|  |  |  | //            return false; | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "CLOUD")  //判断同步模式是金蝶CLOUD | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //       ////上传前必填项判断 | 
|---|
|  |  |  | //       //if (oMain.HDeptID == 0) | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    sErrMsg = "部门没有选择!"; | 
|---|
|  |  |  | //       //    return false; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //       //同步生成CLOUD单据 | 
|---|
|  |  |  | //       //if (SaveOtherInBill_CLD(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg) == true) | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    //"保存成功!"; | 
|---|
|  |  |  | //       //    return true; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //       //else | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    //"保存失败!"; | 
|---|
|  |  |  | //       //    return false; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //   } | 
|---|
|  |  |  | //生成其他入库单 | 
|---|
|  |  |  | //public bool set_SaveOtherInBill_New(Model.ClsKf_OtherInBillMain oMain, string sHSourceType, ref string sErrMsg) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    //获取系统参数 | 
|---|
|  |  |  | //    Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); | 
|---|
|  |  |  | //    if (oSystemParameter.ShowBill(ref sErrMsg) == false) | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        sErrMsg = "获取系统参数失败! " + sErrMsg; | 
|---|
|  |  |  | //        return false; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    // | 
|---|
|  |  |  | //    if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "WISE") //判断同步模式是金蝶WISE | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        if (SaveOtherInBill_K3(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg)) | 
|---|
|  |  |  | //        { | 
|---|
|  |  |  | //            //"保存成功!"; | 
|---|
|  |  |  | //            sErrMsg = "保存成功!" + oMain.HBillNo; | 
|---|
|  |  |  | //            return true; | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //        else | 
|---|
|  |  |  | //        { | 
|---|
|  |  |  | //            //"保存失败!"; | 
|---|
|  |  |  | //            sErrMsg = sErrMsg; | 
|---|
|  |  |  | //            return false; | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "CLOUD")  //判断同步模式是金蝶CLOUD | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //       ////上传前必填项判断 | 
|---|
|  |  |  | //       //if (oMain.HDeptID == 0) | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    sErrMsg = "部门没有选择!"; | 
|---|
|  |  |  | //       //    return false; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //       //同步生成CLOUD单据 | 
|---|
|  |  |  | //       //if (SaveOtherInBill_CLD(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg) == true) | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    //"保存成功!"; | 
|---|
|  |  |  | //       //    return true; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //       //else | 
|---|
|  |  |  | //       //{ | 
|---|
|  |  |  | //       //    //"保存失败!"; | 
|---|
|  |  |  | //       //    return false; | 
|---|
|  |  |  | //       //} | 
|---|
|  |  |  | //   } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    sErrMsg = "保存其他入库单失败!" + sErrMsg; | 
|---|
|  |  |  | //    return false; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | //    sErrMsg = "保存其他入库单失败!" + sErrMsg; | 
|---|
|  |  |  | //    return false; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public bool set_SaveOtherInBill_New(WebAPI.WebS.ClsKf_OtherInBillMain oMain, string sHSourceType,WebS.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | public bool set_SaveOtherInBill_New(WebAPI.WebS.ClsKf_OtherInBillMain oMain, string sHSourceType, WebS.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | WebS.WebService1 oWebs = new WebS.WebService1();//set_SaveOtherInBill_CLD_New | 
|---|
|  |  |  | if (oWebs.set_SaveOtherInBill_CLD_New(oMain, sHSourceType,oSystemParameterMain,ref sErrMsg)) | 
|---|
|  |  |  | if (oWebs.set_SaveOtherInBill_CLD_New(oMain, sHSourceType, oSystemParameterMain, ref sErrMsg)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | sErrMsg = "保存成功!" + oMain.HBillNo; | 
|---|
|  |  |  | return true; | 
|---|