From 701c5766a312caccc887c42376e5115f49a6a3d3 Mon Sep 17 00:00:00 2001 From: 刘磊 <1161824510@qq.com> Date: 星期六, 23 十一月 2024 19:23:26 +0800 Subject: [PATCH] 更新 --- Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs index 8ee125c..baf6ad8 100644 --- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs +++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_After/CommonConveyorLine_AfterJob.cs @@ -150,6 +150,36 @@ } /// <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) //涓嶅瓨鍦ㄧ┖妗嗗嚭搴撲换鍔� 鍒欒姹俉MS鍑虹┖搴� + { + 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> -- Gitblit v1.9.3