| | |
| | | //public string sSourceType = "3710"; |
| | | public WebServer webserver =new WebServer(); |
| | | public DataSet ds =new DataSet(); |
| | | |
| | | public ClsGy_BarCodeBill_WMS_Model_View oView =new ClsGy_BarCodeBill_WMS_Model_View(); |
| | | public ClsKF_PonderationBillMain_Temp model = new ClsKF_PonderationBillMain_Temp(); |
| | | public ClsKf_ICStockBill_WMS oBar = new Model.ClsKf_ICStockBill_WMS(); |
| | |
| | | // } |
| | | |
| | | /// <summary> |
| | | /// 生成产品入库单 |
| | | /// 生成产品入库单(产品入库提交) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("ProductIn/set_SaveProductInBill_Json")] |
| | |
| | | { |
| | | var _value = oMain["oMain"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | //List<Model.ClsKf_ProductInBillMain> lsmain = new List<Model.ClsKf_ProductInBillMain>(); |
| | | //ListModels oListModels = new ListModels(); |
| | | //lsmain = oListModels.getProductInBillMainByJson(msg1); |
| | | //lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); |
| | | //lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); |
| | | //string sSourceBillType = lsmain[0].HBillType; |
| | | //BLL.ClsKf_ProductInBill bll = new BLL.ClsKf_ProductInBill(); |
| | | //return bll.set_SaveProductInBill_New(lsmain[0], sSourceBillType, ref DBUtility.ClsPub.sErrInfo); |
| | | try |
| | | { |
| | | List<Model.ClsKf_ProductInBillMain> lsmain = new List<Model.ClsKf_ProductInBillMain>(); |
| | |
| | | string sSourceBillType = lsmain[0].HBillType; |
| | | |
| | | WebAPI.WebS.ClsKf_ProductInBillMain websLsmain = new WebS.ClsKf_ProductInBillMain(); |
| | | |
| | | websLsmain.HInterID = lsmain[0].HInterID; |
| | | websLsmain.HDate = lsmain[0].HDate; |
| | | websLsmain.HBillNo = lsmain[0].HBillNo; |
| | |
| | | websLsmain.HWHID = lsmain[0].HWHID; |
| | | websLsmain.HSupID = lsmain[0].HSupID; |
| | | websLsmain.HExplanation = lsmain[0].HExplanation; |
| | | websLsmain.HGroupID = lsmain[0].HGroupID; |
| | | websLsmain.HJiaYe = lsmain[0].HJiaYe; |
| | | |
| | | //保存人员 |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | string saveGroupEmpsql = $"exec h_p_saveGroupEmp '{lsmain[0].HMaker}','{lsmain[0].HGroupID}',{lsmain[0].HJiaYe.Split(',')[0]},{lsmain[0].HJiaYe.Split(',')[1]},'{lsmain[0].HJiaYe}'"; |
| | | |
| | | oCn.RunProc(saveGroupEmpsql); |
| | | |
| | | if (webserver.set_SaveProductInBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |