| | |
| | | WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | //if (webserver.set_SavePonderationBillMain_Temp_Qty(model, sQty, ref DBUtility.ClsPub.sErrInfo)) |
| | | bool flag = oWebs.Get_CheckQtyByBarCode_GetWhAndSP(model.HInterID, model.HBillType, model.HBarCode, ref SCWhID, ref SCSPID, sRelQty, ref sRelQty); |
| | | //objJsonResult.code = "1"; |
| | | //objJsonResult.count = 1; |
| | | //objJsonResult.Message = "test!sQty=" + sQty.ToString() + ",sRelQty=" + sRelQty.ToString(); |
| | | //objJsonResult.data = null; |
| | | //return objJsonResult; |
| | | if (flag) |
| | | { |
| | | //sQty = sRelQty; |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "2-库存不足!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //else |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "2-库存不足!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | if (oWebs.set_SavePonderationBillMain_Temp_Qty(model, sQty, ref DBUtility.ClsPub.sErrInfo)) |
| | | if (oWebs.set_SavePonderationBillMain_Temp_Qty(model, sRelQty, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |