From a07e4702be045efa9b04b49a561463875dd28e0a Mon Sep 17 00:00:00 2001 From: 肖洋 <cathay_xy@163.com> Date: 星期六, 04 一月 2025 16:18:33 +0800 Subject: [PATCH] 更新配置文件和事件总线逻辑,修复任务处理逻辑 --- Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs index 52cf203..88deaee 100644 --- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs +++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/GWTask/RequestInbound.cs @@ -9,6 +9,7 @@ using WIDESEAWCS_Model.Models; using WIDESEAWCS_QuartzJob; using WIDESEAWCS_Tasks.ConveyorLineJob; +using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database; namespace WIDESEAWCS_Tasks { @@ -66,12 +67,14 @@ ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); } break; - case 1: case 6: case 10: ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); break; + //case 16: + // ExecuteStationAction(stationManager, conveyorLine, command, childDeviceCode); + // break; } #region @@ -159,7 +162,9 @@ case 6: CreateAndSendEmptyTrayTask(conveyorLine, command, childDeviceCode); break; - + case 16: + AbNormalStationBZTask(conveyorLine, command, childDeviceCode); + break; case 1: //if (stationManager.stationArea.Contains("GW")) @@ -346,5 +351,19 @@ //Dt_Task task= _taskRepository.QueryFirst(x=>) //_taskRepository.QueryFirst() } + + /// <summary> + /// 鍖呰寮傚父鎺掑嚭鍙i�昏緫 + /// </summary> + /// <param name="conveyorLine"></param> + /// <param name="command"></param> + /// <param name="childDeviceCode"></param> + private void AbNormalStationBZTask(CommonConveyorLine_GW conveyorLine, ConveyorLineTaskCommand_After command, string childDeviceCode) + { + Dt_StationManager stationManager = _stationManagerRepository.QueryFirst(x => x.stationChildCode == childDeviceCode && x.stationPLC == conveyorLine.DeviceCode); + + + } + } } \ No newline at end of file -- Gitblit v1.9.3