| | |
| | | /// <returns></returns> |
| | | public string BindPlnInHouseWcs(string Qty, string palletNo) |
| | | { |
| | | string returnStr = ""; |
| | | |
| | | var model = new BindPalletModel() |
| | | { |
| | | BindType = "1",//申请类型 |
| | |
| | | PalletNo = palletNo,//托盘号 |
| | | }; |
| | | string url = Urls.WMSAddress + ":" + Urls.WMSPort; |
| | | var result = (url + "/api/DownAPi/BindPlnInHouseWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<ResponseOutPallet>().Result; |
| | | var result = (url + "/api/DownAPi/BindPlnInHouseWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<IsBaleModel2>().Result; |
| | | Log.Information("调用WMS接口反馈任务接口" + result.ToJson()); |
| | | |
| | | if (result.Success == 0) |
| | | { |
| | | returnStr = result.TaskList.ToString(); |
| | | } |
| | | else |
| | | { |
| | | returnStr = "-1:" + result.Message; |
| | | return returnStr; |
| | | } |
| | | return returnStr; |
| | | return result.Success.ToString(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | string url = Urls.WMSAddress + ":" + Urls.WMSPort; |
| | | var str = new |
| | | { |
| | | BoxNo = boxNo |
| | | BoxNo = boxNo, |
| | | PalletNo = "", |
| | | TaskNo = "" |
| | | }; |
| | | var result = (url + "/api/DownAPi/ResultBoxInfoCheckWcs").SetBody(str, "application/json", Encoding.UTF8).PostAsAsync<RequestloadingAddre>().Result; |
| | | var result = (url + "/api/DownAPi/ResultBoxInfoExportWcs").SetBody(str, "application/json", Encoding.UTF8).PostAsAsync<RequestloadingAddre>().Result; |
| | | Log.Information("调用WMS接口验证箱码是否可拣货并返回装车口:" + result.ToJson()); |
| | | |
| | | return result; |