From 36b7362451203bfb0ee6461411a6b60aa0f8b40c Mon Sep 17 00:00:00 2001 From: liuwf Date: Thu, 17 Oct 2024 09:11:27 +0800 Subject: [PATCH] . --- SlnMesnac.Business/ProdCompletionBusiness.cs | 6 ++++-- SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index c57f507..c6b50b5 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -270,8 +270,7 @@ namespace SlnMesnac.Business // plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010125", 12); - plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "JYHB01010225", 12); - plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), "", 12); + if (!plc.readBoolByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"))) { @@ -292,6 +291,9 @@ namespace SlnMesnac.Business } string epcStr = await ReadEpcStrByRfidKeyAsync("secondFloorOut"); + + + if (string.IsNullOrEmpty(epcStr)) { _logger.LogError("小包出口到位信号触发,读取RFID失败......"); diff --git a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs index dc3f75f..3997c3d 100644 --- a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs @@ -282,6 +282,7 @@ namespace SlnMesnac.WPF.ViewModel column.Title = "鏃ユ姇鏂欓噺"; column.Values = achievement; column.Foreground = Brushes.White; + column.Fill = new SolidColorBrush(Brushes.YellowGreen.Color); OutAchievement.Add(column); })); } @@ -343,6 +344,7 @@ namespace SlnMesnac.WPF.ViewModel column.Title = "鏃ョ敓浜ч噺"; column.Values = achievement; column.Foreground = Brushes.White; + column.Fill = new SolidColorBrush(Brushes.LimeGreen.Color); ProductAchievement.Add(column); })); }