| | |
| | | /// <returns></returns> |
| | | [Route("MoveStockBill/get_InfoByBarCode_Source_Json")] |
| | | [HttpGet] |
| | | public object get_InfoByBarCode_Source_Json(string sCode, Int64 sInterID, string sBillNo, Double sQty, Int64 HWHID, Int64 HSPID, Int64 SCWhID, Int64 SCSPID) |
| | | public object get_InfoByBarCode_Source_Json(string sCode, Int64 sInterID, string sBillNo, Double sQty, Int64 HWHID, Int64 HSPID, Int64 SCWhID, Int64 SCSPID, string HMaker, Int64 HOrgID) |
| | | { |
| | | try |
| | | { |
| | |
| | | dal.GetInfoByNumber_View(sCode); |
| | | if (dal.omodel_View.HBarCodeType != "托盘条码") |
| | | { |
| | | return get_InfoByBarCode_Source_Json_s(sCode, sInterID, sBillNo, sQty, HWHID, HSPID, SCWhID, SCSPID); |
| | | return get_InfoByBarCode_Source_Json_s(sCode, sInterID, sBillNo, sQty, HWHID, HSPID, SCWhID, SCSPID, HMaker, HOrgID); |
| | | } |
| | | else |
| | | { |
| | |
| | | for (int i = 0; i < dsTBarCode.Tables[0].Rows.Count; i++) |
| | | { |
| | | sBarCode_MX = DBUtility.ClsPub.isStrNull(dsTBarCode.Tables[0].Rows[i]["HBarCodeMX"]); |
| | | objJsonResult = (JsonResult)get_InfoByBarCode_Source_Json_s(sBarCode_MX, sInterID, sBillNo, sQty, HWHID, HSPID, SCWhID, SCSPID); |
| | | objJsonResult = (JsonResult)get_InfoByBarCode_Source_Json_s(sBarCode_MX, sInterID, sBillNo, sQty, HWHID, HSPID, SCWhID, SCSPID, HMaker,HOrgID); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | return objJsonResult; |
| | |
| | | } |
| | | } |
| | | |
| | | public object get_InfoByBarCode_Source_Json_s(string sCode, Int64 sInterID, string sBillNo, Double sQty, Int64 HWHID, Int64 HSPID, Int64 SCWhID, Int64 SCSPID) |
| | | public object get_InfoByBarCode_Source_Json_s(string sCode, Int64 sInterID, string sBillNo, Double sQty, Int64 HWHID, Int64 HSPID, Int64 SCWhID, Int64 SCSPID, string HMaker,Int64 HOrgID) |
| | | { |
| | | try |
| | | { |
| | |
| | | model.HInterID = DBUtility.ClsPub.isLong(sInterID); |
| | | model.HBillNo = DBUtility.ClsPub.isStrNull(sBillNo); |
| | | model.HBillType = this.HBillType; |
| | | model.HMaker = DBUtility.ClsPub.CurUserName; |
| | | model.HMaker = HMaker; |
| | | // |
| | | model.HMaterID = oView.HMaterID; |
| | | model.HAuxPropID = oView.HAuxPropID; |
| | |
| | | model.HSourceBillType = oView.HSourceBillType; |
| | | model.HRedBlueFlag = false; |
| | | model.HPieceQty = 1; |
| | | //model.HSTOCKORGID = DBUtility.ClsPub.HORGANIZATIONSID; |
| | | //model.HOWNERID = DBUtility.ClsPub.HORGANIZATIONSID; |
| | | model.HSTOCKORGID = HOrgID; |
| | | model.HOWNERID = HOrgID; |
| | | |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | //if (webserver.set_SavePonderationBillMain_Temp_Qty(model, sQty, ref DBUtility.ClsPub.sErrInfo)) |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //else |
| | | //{ |
| | | // sQty = sRelQty; |
| | | //} |
| | | |
| | | if (oWebs.set_SavePonderationBillMain_Temp_Qty(model, sQty, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | |
| | | websLsmain.HStockStyle = ""; |
| | | websLsmain.HBillType = "1207"; |
| | | websLsmain.HSupID = 0; |
| | | websLsmain.HGroupID = lsmain[0].HGroupID; |
| | | //websLsmain.HGroupID = lsmain[0].HGroupID; |
| | | |
| | | if (webserver.set_SaveMoveStockBill(websLsmain, "-1", ref DBUtility.ClsPub.sErrInfo)) |
| | | { |