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); })); }