| | |
| | | PalletCode = result.PalletBarcode, |
| | | RoadWay = location.RoadwayNo, |
| | | SourceAddress = result.LocationID, |
| | | TargetAddress = result.LocationID, |
| | | TargetAddress = "", |
| | | TaskNum = taskNum, //_taskRepository.GetTaskNo().Result, |
| | | TaskState = (int)TaskOutStatusEnum.OutNew, |
| | | TaskType = result.IsNG == 1 ? (int)TaskOutboundTypeEnum.OutNG : (int)TaskOutboundTypeEnum.Outbound, |
| | | }; |
| | | |
| | | var sysConfig = _configService.GetByConfigKey(CateGoryConst.CONFIG_SYS_IPAddress, SysConfigConst.WCSIPAddress); |
| | | var respon = HttpHelper.Post(sysConfig.ConfigValue, JsonConvert.SerializeObject(taskDTO)); |
| | | if (respon != null) |
| | | { |
| | | |
| | | } |
| | | //var respon = HttpHelper.Post("http://localhost:9291/api/Task/ReceiveTask", JsonConvert.SerializeObject(taskDTO)); |
| | | //if (respon != null) |
| | | //{ |
| | | |
| | | //} |
| | | //else |
| | | //{ |
| | | // throw new Exception("WCS处理失败"); |
| | | //} |
| | | |
| | | |
| | | return content.OK(); |