| | |
| | | //系统对接后放开 |
| | | var jsonData = JsonConvert.SerializeObject(soInfo); |
| | | |
| | | var response = HttpHelper.DoPost(url, jsonData, "出库单完成上传", "ERP"); |
| | | var response = HttpHelper.DoPost(url, jsonData, "出库单完成上传", "SAP"); |
| | | |
| | | var obj = JsonConvert.DeserializeObject<ErpModel>(response);//解析返回数据 |
| | | if (obj.Success != 0) |
| | | var obj = JsonConvert.DeserializeObject<SapResultModel>(response);//解析返回数据 |
| | | if (obj.RESULT != true) |
| | | { |
| | | throw new Exception("上传失败" + obj.Message); |
| | | throw new Exception("上传失败" + obj.MESSAGE); |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | { |
| | | throw new Exception("未查询到出库单据信息"); |
| | | } |
| | | if (notice.Origin != "WMS" || notice.Status != "0") |
| | | //if (notice.Origin != "WMS" || notice.Status != "0") |
| | | if (notice.Status != "0") |
| | | { |
| | | throw new Exception("参数异常,请检查状态是否未等待执行或来源是否是WMS"); |
| | | } |