| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 输送线请求空框 |
| | | /// </summary> |
| | | /// <param name="conveyorLine"></param> |
| | | /// <param name="command"></param> |
| | | /// <param name="stationInfo"></param> |
| | | public void RequestEmptyOutbound(CommonConveyorLine_After conveyorLine, ConveyorLineTaskCommand_After command, Dt_StationManager stationInfo) |
| | | { |
| | | if (stationInfo.stationType != 7) return; |
| | | var taskNew = _taskRepository.QueryFirst(x => x.Roadway == stationInfo.Roadway && x.TaskType == (int)TaskOutboundTypeEnum.OutTray); |
| | | if (taskNew == null) //不存在空框出库任务 则请求WMS出空库 |
| | | { |
| | | if (_taskService.RequestTask(command.ConveyorLineBarcode, stationInfo).Result.Status) |
| | | { |
| | | Dt_Task task = _taskService.QueryTaskByPalletCode(command.ConveyorLineBarcode, stationInfo.Roadway); |
| | | if (task != null) |
| | | { |
| | | //ConveyorLineTaskCommand_After taskCommand = _mapper.Map<ConveyorLineTaskCommand_After>(task); |
| | | //taskCommand.InteractiveSignal = command.InteractiveSignal; |
| | | //taskCommand.ResponState = 1; |
| | | //taskCommand.ConveyorLineTaskNum = task.TaskNum; |
| | | //taskCommand.ConveyorLineTargetAddress = Convert.ToInt16(task.NextAddress); |
| | | //conveyorLine.SetValue(ConveyorLineDBName_After.ResponState, 1, stationInfo.stationChildCode); |
| | | //conveyorLine.SetValue(ConveyorLineDBName_After.ConveyorLineTargetAddress, 1, task.NextAddress); |
| | | //ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 输送线请求入库 |
| | | /// </summary> |
| | | /// <param name="conveyorLine">输送线实例对象</param> |