| | |
| | | using Furion.Logging; |
| | | using WCS.Application.Entity; |
| | | using WCS.Application.Util; |
| | | using static SKIT.FlurlHttpClient.Wechat.Api.Models.ComponentTCBBatchCreateContainerServiceVersionRequest.Types; |
| | | |
| | | namespace WCS.Application; |
| | | |
| | |
| | | Code = "0" |
| | | }; |
| | | if (input.robotTaskCode.Substring(0, 3) != "WCS" && input.robotTaskCode.Substring(0, 2) != "TK") |
| | | { |
| | | result.Message = "反馈的任务不是WCS的任务"; |
| | | result.Code = "1"; |
| | | return result; |
| | | } |
| | | PLCUtil modUtil = null; |
| | | try |
| | | { |
| | |
| | | } |
| | | } |
| | | break; |
| | | case "notifyFullSite": |
| | | { |
| | | var palletNo = input.Extra.Values.carrierCode; |
| | | var count = input.Extra.Values.pileCount; |
| | | if (string.IsNullOrWhiteSpace(palletNo) || count <= 0) |
| | | { |
| | | throw new Exception("参数:托盘号/数量验证失败"); |
| | | } |
| | | //向WMS申请空托入库 |
| | | HttpService httpService = new HttpService(); |
| | | var inputs = new NullPallInRequest(); |
| | | |
| | | inputs.PalletNo = palletNo; |
| | | inputs.PallNum = count; |
| | | inputs.Locate = "B100101";//叠托盘机位置 |
| | | inputs.HouseNo = "W02"; |
| | | var modResponseTask = httpService.RequestLiKuPallet(inputs); |
| | | |
| | | } |
| | | break; |
| | | case "cancel"://任务取消 |
| | | { |
| | | PLCService.AGVStatus = false; |