|
|
|
@ -22,47 +22,28 @@ namespace Aucma.Core.DoorFoam.ViewModels
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private void InitEveryDayMethodAsync()
|
|
|
|
|
{
|
|
|
|
|
DateTime startTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
|
|
|
|
|
DateTime endTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
|
|
|
|
|
|
|
|
|
|
//var list = await _doorFoamRecordServices.QueryAsync(d => d.BeginTime >= startTime && d.EndTime <= endTime);
|
|
|
|
|
|
|
|
|
|
ChartValues<double> achievement = new ChartValues<double>();
|
|
|
|
|
Random random = new Random();
|
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
|
for (int i = 0; i < 2; i++)
|
|
|
|
|
{
|
|
|
|
|
achievement.Add(random.Next(60, 100));
|
|
|
|
|
achievement.Add(random.Next(0, 50));
|
|
|
|
|
}
|
|
|
|
|
var column = new ColumnSeries();
|
|
|
|
|
column.DataLabels = true;
|
|
|
|
|
column.Title = "型号";
|
|
|
|
|
column.Values = achievement;
|
|
|
|
|
column.Foreground = Brushes.White;
|
|
|
|
|
|
|
|
|
|
ModelStatistics.Add(column);
|
|
|
|
|
|
|
|
|
|
ProductionHourList = new List<string>()
|
|
|
|
|
ModelStatistics.Add(new ColumnSeries()
|
|
|
|
|
{
|
|
|
|
|
"12",
|
|
|
|
|
"13",
|
|
|
|
|
"14",
|
|
|
|
|
"15",
|
|
|
|
|
"16",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ChartValues<double> achievement2 = new ChartValues<double>();
|
|
|
|
|
Random random2 = new Random();
|
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
|
DataLabels = true,
|
|
|
|
|
Title = "型号",
|
|
|
|
|
Values = achievement,
|
|
|
|
|
Fill = new SolidColorBrush(Color.FromRgb(15, 209, 226)),
|
|
|
|
|
Foreground = Brushes.White,
|
|
|
|
|
FontSize = 18
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
MaterialNameList = new List<string>()
|
|
|
|
|
{
|
|
|
|
|
achievement2.Add(random2.Next(60, 100));
|
|
|
|
|
}
|
|
|
|
|
var column2 = new ColumnSeries();
|
|
|
|
|
column2.DataLabels = true;
|
|
|
|
|
column2.Title = "产量";
|
|
|
|
|
column2.Values = achievement2;
|
|
|
|
|
column2.Foreground = Brushes.White;
|
|
|
|
|
"BCD-287CHN",
|
|
|
|
|
"BCD-287CHN"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Achievement.Add(column2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 扫描信息
|
|
|
|
|