diff --git a/SlnMesnac.WPF/Page/ProdStatisticsPage.xaml b/SlnMesnac.WPF/Page/ProdStatisticsPage.xaml
index 5493fd7..dc4f176 100644
--- a/SlnMesnac.WPF/Page/ProdStatisticsPage.xaml
+++ b/SlnMesnac.WPF/Page/ProdStatisticsPage.xaml
@@ -4,6 +4,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
xmlns:local="clr-namespace:SlnMesnac.WPF.Page"
xmlns:cvt="clr-namespace:SlnMesnac.WPF.ConvertTo"
mc:Ignorable="d"
@@ -95,12 +96,12 @@
@@ -177,7 +178,32 @@ Foreground="#FFFFFF" >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs b/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs
index f917700..765eb06 100644
--- a/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs
+++ b/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs
@@ -54,6 +54,33 @@ namespace SlnMesnac.WPF.ViewModel
#region 参数定义
+
+ #region 日产量柱状图X轴日期
+ ///
+ /// 日产量柱状图X轴日期
+ ///
+ private List productionHourList = new List();
+
+ public List ProductionHourList
+ {
+ get { return productionHourList; }
+ set { productionHourList = value; }
+ }
+ #endregion
+
+ #region 型号统计柱状图
+ ///
+ /// 型号统计柱状图
+ ///
+ private SeriesCollection achievement = new SeriesCollection();
+
+ public SeriesCollection Achievement
+ {
+ get { return achievement; }
+ set { achievement = value; }
+ }
+ #endregion
+
///
/// 工位名称
///
@@ -167,31 +194,7 @@ namespace SlnMesnac.WPF.ViewModel
#endregion
- #region 日产量柱状图X轴日期
- ///
- /// 日产量柱状图X轴日期
- ///
- private List productionHourList = new List();
-
- public List ProductionHourList
- {
- get { return productionHourList; }
- set { productionHourList = value; }
- }
- #endregion
-
- #region 型号统计柱状图
- ///
- /// 型号统计柱状图
- ///
- private SeriesCollection achievement = new SeriesCollection();
-
- public SeriesCollection Achievement
- {
- get { return achievement; }
- set { achievement = value; }
- }
- #endregion
+
#region 事件定义
diff --git a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs
index 224ec54..c22d281 100644
--- a/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs
+++ b/SlnMesnac.WPF/ViewModel/ProdStatisticsViewModel.cs
@@ -1,5 +1,8 @@
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
+using LiveCharts;
+using LiveCharts.Defaults;
+using LiveCharts.Wpf;
using Microsoft.Extensions.DependencyInjection;
using SlnMesnac.Business;
using SlnMesnac.Model.domain;
@@ -14,6 +17,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
+using System.Windows.Media;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
@@ -53,75 +57,44 @@ namespace SlnMesnac.WPF.ViewModel
_palletStowBusiness = App.ServiceProvider.GetService();
_prodCompletionBusiness = App.ServiceProvider.GetService();
sqlClient = App.ServiceProvider.GetService();
- QueryCommand = new RelayCommand