From 1b8cce65d4987e4b7e94d1b178abb3af0978a2d4 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <1247017146@qq.com> Date: 星期三, 26 三月 2025 09:24:26 +0800 Subject: [PATCH] 123123 --- CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/CommonConveyorLine_GWJob.cs | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/CommonConveyorLine_GWJob.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/CommonConveyorLine_GWJob.cs index a4a9afc..d0f6b0d 100644 --- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/CommonConveyorLine_GWJob.cs +++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_GW/CommonConveyorLine_GWJob.cs @@ -120,19 +120,19 @@ List<string> childDeviceCodes = _routerService.QueryAllPositions(conveyorLine.DeviceCode); foreach (string childDeviceCode in childDeviceCodes) { - ConveyorLineTaskCommand_After command = null; - if (childDeviceCode == "2236") - { - var stationPLC = _stationManagerRepository.QueryFirst(x => x.stationType == 1 && x.stationChildCode == childDeviceCode).stationPLC; - IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == stationPLC); - CommonConveyorLine_After conveyorLine1 = (CommonConveyorLine_After)device; - command = conveyorLine1.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); - } - else - { - command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); - } - + //ConveyorLineTaskCommand_After command = null; + //if (childDeviceCode == "2236") + //{ + // var stationPLC = _stationManagerRepository.QueryFirst(x => x.stationType == 1 && x.stationChildCode == childDeviceCode).stationPLC; + // IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == stationPLC); + // CommonConveyorLine_After conveyorLine1 = (CommonConveyorLine_After)device; + // command = conveyorLine1.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); + //} + //else + //{ + // command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); + //} + ConveyorLineTaskCommand_After command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand_After>(childDeviceCode); if (command == null) continue; if (command.ConveyorLineBarcode.Trim().Contains("\0")) command.ConveyorLineBarcode = ""; @@ -463,7 +463,7 @@ /// <param name="command">璇诲彇鐨勮姹備俊鎭�</param> /// <param name="childDeviceCode">瀛愯澶囩紪鍙�</param> /// <param name="index">绾夸綋褰撳墠bool璇诲彇鍋忕Щ鍦板潃</param> - public async void EmptyTrayReturn(CommonConveyorLine_GW conveyorLine, ConveyorLineTaskCommand_After command, string childDeviceCode, int index, WIDESEAWCS_Model.Models.Platform platform) + public async void EmptyTrayReturn(CommonConveyorLine_GW conveyorLine, ConveyorLineTaskCommand_After command, string childDeviceCode, int index, Platform platform) { try { -- Gitblit v1.9.3