diff --git a/Aucma.Core.Palletiz/Views/IndexPageView.xaml b/Aucma.Core.Palletiz/Views/IndexPageView.xaml index 0df3b904..8ebdfcd6 100644 --- a/Aucma.Core.Palletiz/Views/IndexPageView.xaml +++ b/Aucma.Core.Palletiz/Views/IndexPageView.xaml @@ -6,11 +6,12 @@ xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf" xmlns:local="clr-namespace:Aucma.Core.Palletiz.Views" mc:Ignorable="d" - d:DesignHeight="800" + d:DesignHeight="800" FontFamily="Microsoft YaHei" d:DesignWidth="1000" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -129,7 +77,7 @@ - + + + @@ -49,7 +49,7 @@ - + @@ -68,59 +68,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -142,7 +89,7 @@ - + - + - + diff --git a/Aucma.Core.ScannerGun/ScannerGunService.cs b/Aucma.Core.ScannerGun/ScannerGunService.cs index c89a49e5..9b814ac5 100644 --- a/Aucma.Core.ScannerGun/ScannerGunService.cs +++ b/Aucma.Core.ScannerGun/ScannerGunService.cs @@ -72,13 +72,12 @@ namespace Aucma.Core.ScannerGun string code = serialPort.ReadExisting(); - if (!string.IsNullOrEmpty(code)) + if (string.IsNullOrEmpty(code)) { - Console.WriteLine(code.Trim()); return; } //业务处理 - + Console.WriteLine(code.Trim()); } catch (Exception ex) {