| | |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | |
| | | } |
| | | BarCode1 = pickBarCode; |
| | | } |
| | | if (device.DeviceCode == "CL2" && BarCode1 != pickBarCode) |
| | | if (device.DeviceCode == "CL2" && BarCode2 != pickBarCode) |
| | | { |
| | | WebResponseContent content = _taskService.WMSPickUp(station.PickStationCode, pickBarCode); |
| | | if (content.Status) |
| | |
| | | if (InTake==256 && InBarCode.IsNotEmptyOrNull()) |
| | | { |
| | | //鐢宠鍏ュ簱浠诲姟 |
| | | Dt_Task task = _taskRepository.QueryFirst(x => x.PalletCode == InBarCode && x.TaskType == TaskTypeEnum.Inbound.ObjToInt() && x.TaskState != TaskStatusEnum.CL_Executing.ObjToInt() && x.DeviceCode==device.DeviceCode); |
| | | Dt_Task task = _taskRepository.QueryFirst(x => x.PalletCode == InBarCode && x.TaskType == TaskTypeEnum.Inbound.ObjToInt() && x.DeviceCode==device.DeviceCode); |
| | | if (task != null) continue; |
| | | |
| | | Dt_StationManger? stationManger = stationMangers.FirstOrDefault(x=>x.StationType==StationTypeEnum.StationType_OnlyOutbound.ObjToInt()); |
| | | ContainerFlowDTO containerFlowDTO = new ContainerFlowDTO() |
| | | { |
| | | SlotCode = stationManger.PickStationCode, |
| | | ContainerCode= InBarCode, |
| | | Direction="100" |
| | | }; |
| | | WebResponseContent responseContent = _taskService.ContainerFlow(containerFlowDTO, station.StationDeviceCode, stationManger.PickStationCode); |
| | | if (!responseContent.Status) throw new Exception(responseContent.Message); |
| | | WebResponseContent content = _taskService.RequestInTask(station.StationCode, InBarCode); |
| | | if (content.Status) |
| | | { |