diff --git a/Admin.Core.Service/Service_New/CodeBindingRecordServices.cs b/Admin.Core.Service/Service_New/CodeBindingRecordServices.cs index 9e7f15a1..f01ac8da 100644 --- a/Admin.Core.Service/Service_New/CodeBindingRecordServices.cs +++ b/Admin.Core.Service/Service_New/CodeBindingRecordServices.cs @@ -37,7 +37,7 @@ namespace Admin.Core.Service { List list = null; var _db = this.BaseDal.Db; - list = await _db.Ado.SqlQueryAsync("SELECT BOX_NAME as BoxName,COUNT(*) as Amount FROM CODE_BINDING GROUP BY BOX_NAME"); + list = await _db.Ado.SqlQueryAsync("SELECT BOX_NAME as BoxName,COUNT(*) as Amount FROM CODE_BINDING WHERE PRODUCT_CODE IS NOT NULL GROUP BY BOX_NAME "); return list; } diff --git a/Aucma.Core.CodeBinding/ViewModels/IndexPageViewModel.cs b/Aucma.Core.CodeBinding/ViewModels/IndexPageViewModel.cs index cab35e7c..b88448a1 100644 --- a/Aucma.Core.CodeBinding/ViewModels/IndexPageViewModel.cs +++ b/Aucma.Core.CodeBinding/ViewModels/IndexPageViewModel.cs @@ -217,7 +217,7 @@ namespace Aucma.Core.CodeBinding.ViewModels bindingInfo = value; OnPropertyChanged(nameof(BindingInfo)); } - } + } #region 日产量柱状图X轴日期 /// /// 日产量柱状图X轴日期 diff --git a/Aucma.Core.CodeBinding/Views/IndexPageView.xaml b/Aucma.Core.CodeBinding/Views/IndexPageView.xaml index 4463a9ff..b3829f8b 100644 --- a/Aucma.Core.CodeBinding/Views/IndexPageView.xaml +++ b/Aucma.Core.CodeBinding/Views/IndexPageView.xaml @@ -4,6 +4,8 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf" + Background="#1152AC" + FontFamily="Microsoft YaHei" xmlns:local="clr-namespace:Aucma.Core.CodeBinding.Views" mc:Ignorable="d" d:DesignHeight="800" @@ -12,10 +14,65 @@ - + + + + + @@ -25,8 +82,11 @@ - + + + @@ -40,19 +100,19 @@ - + - + - + @@ -64,20 +124,23 @@ - + - - - - - + + + + + + + + - + @@ -85,6 +148,8 @@ + + @@ -98,8 +163,11 @@ - + + + @@ -110,21 +178,7 @@ BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True" Foreground="White" > - - - - - - - - - + diff --git a/Aucma.Core.CodeBinding/Views/MainWindow.xaml b/Aucma.Core.CodeBinding/Views/MainWindow.xaml index 83871b90..8a070abf 100644 --- a/Aucma.Core.CodeBinding/Views/MainWindow.xaml +++ b/Aucma.Core.CodeBinding/Views/MainWindow.xaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" mc:Ignorable="d" + FontFamily="Microsoft YaHei" Title="SCADA" Height="1080" Width="1920" Icon="/Assets/images/Icon.png" WindowState="Maximized" WindowStyle="None" ResizeMode="NoResize"> @@ -17,11 +18,11 @@ - - + + - + @@ -59,12 +60,12 @@ - - - - - - - - - - - + ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True" + Foreground="White" > +