| | |
| | | if (taskTypeGroup == TaskTypeGroup.InboundGroup) |
| | | { |
| | | task.Creater = "WMS"; |
| | | task.TaskState = (int)TaskInStatusEnum.InNew; |
| | | stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.NextAddress || x.StationDeviceCode == item.SourceAddress); |
| | | task.TaskState = (int)TaskStatusEnum.New.ObjToInt(); |
| | | stationManger = stationMangers.FirstOrDefault(x => x.StationCode == item.CurrentAddress || x.StationDeviceCode == item.SourceAddress); |
| | | task.DeviceCode = stationManger.StationDeviceCode; |
| | | } |
| | | else |
| | |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 浠诲姟瀹屾垚鍙嶉WMS |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent TaskCompleted(int taskNum) |
| | | { |
| | | try |
| | | { |
| | | string address = AppSettings.Get("WMSApiAddress"); |
| | | string address = AppSettings.Get("FeedBackWMSTaskCompleted"); |
| | | if (string.IsNullOrEmpty(address)) |
| | | { |
| | | return WebResponseContent.Instance.Error($"鏈壘鍒癢MSApi鍦板潃"); |