|
|
|
@ -26,6 +26,7 @@ using NPOI.SS.Formula.Functions;
|
|
|
|
|
using Microsoft.Extensions.FileSystemGlobbing.Internal;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
|
|
namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
{
|
|
|
|
@ -48,6 +49,16 @@ namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
MvCodeHelper.DoorReceiveCodeDelegateEvent += OnLoadPlanData;
|
|
|
|
|
|
|
|
|
|
OnLoadPlanData("B24010181060282920001");
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
while(true)
|
|
|
|
|
{
|
|
|
|
|
InitEveryDayMethodAsync();//刷新型号统计图表
|
|
|
|
|
Thread.Sleep(1000);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取今天的数据
|
|
|
|
@ -63,7 +74,7 @@ namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
|
|
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
|
{
|
|
|
|
|
ModelStatistics.Clear();
|
|
|
|
|
// ModelStatistics.Clear();
|
|
|
|
|
|
|
|
|
|
if (info != null)
|
|
|
|
|
{
|
|
|
|
@ -77,8 +88,7 @@ namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
MaterialNameList.Add(FormatMaterialType(groupItem.MaterialName));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ModelStatistics.Add(new ColumnSeries()
|
|
|
|
|
ColumnSeries column = new ColumnSeries()
|
|
|
|
|
{
|
|
|
|
|
DataLabels = true,
|
|
|
|
|
Title = "型号",
|
|
|
|
@ -86,7 +96,19 @@ namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
Fill = new SolidColorBrush(Color.FromRgb(15, 209, 226)),
|
|
|
|
|
Foreground = Brushes.White,
|
|
|
|
|
FontSize = 18
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
if (ModelStatistics.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
for(int i = 0; i < achievement.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
ModelStatistics.FirstOrDefault().Values[i] = achievement[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ModelStatistics.Add(column);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|