|
|
@ -217,9 +217,11 @@ namespace Aucma.Core.OldBoxFoam.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
var hourFoamDataList = _boxFoamDataServices.Query(x=>x.ProductLineCode == "CX_01" && x.StationCode == "1105");
|
|
|
|
var hourFoamDataList = _boxFoamDataServices.Query(x=>x.ProductLineCode == "CX_01" && x.StationCode == "1105");
|
|
|
|
|
|
|
|
|
|
|
|
if(hourFoamDataList != null)
|
|
|
|
List<int> hours = new List<int>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hourFoamDataList != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HourAchievement.Clear();
|
|
|
|
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.AnHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.AnHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.TwoHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.TwoHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.ThreeHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.ThreeHour));
|
|
|
@ -233,11 +235,27 @@ namespace Aucma.Core.OldBoxFoam.ViewModels
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.ElevenHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.ElevenHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.TwelveHour));
|
|
|
|
hourAchievement.Add(hourFoamDataList.Sum(x => x.TwelveHour));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var shellColumn = new ColumnSeries();
|
|
|
|
var shellColumn = new ColumnSeries();
|
|
|
|
shellColumn.DataLabels = true;
|
|
|
|
shellColumn.DataLabels = true;
|
|
|
|
shellColumn.Title = "小时产量";
|
|
|
|
shellColumn.Title = "小时产量";
|
|
|
|
shellColumn.Values = hourAchievement;
|
|
|
|
shellColumn.Values = hourAchievement;
|
|
|
|
HourAchievement.Add(shellColumn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(HourAchievement.Count > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (int i = 0; i < hourAchievement.Count; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//hours
|
|
|
|
|
|
|
|
HourAchievement.FirstOrDefault().Values[i] = hourAchievement.ElementAt(i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
HourAchievement.Add(shellColumn);
|
|
|
|
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -258,8 +276,6 @@ namespace Aucma.Core.OldBoxFoam.ViewModels
|
|
|
|
|
|
|
|
|
|
|
|
if (hourFoamDataList != null)
|
|
|
|
if (hourFoamDataList != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MaterialTypeAchievement.Clear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var grouped = hourFoamDataList.GroupBy(x => x.Fixtureboxtype);
|
|
|
|
var grouped = hourFoamDataList.GroupBy(x => x.Fixtureboxtype);
|
|
|
|
foreach (var item in grouped)
|
|
|
|
foreach (var item in grouped)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -273,7 +289,18 @@ namespace Aucma.Core.OldBoxFoam.ViewModels
|
|
|
|
shellColumn.DataLabels = true;
|
|
|
|
shellColumn.DataLabels = true;
|
|
|
|
shellColumn.Title = "型号统计";
|
|
|
|
shellColumn.Title = "型号统计";
|
|
|
|
shellColumn.Values = materialTypeAchievement;
|
|
|
|
shellColumn.Values = materialTypeAchievement;
|
|
|
|
MaterialTypeAchievement.Add(shellColumn);
|
|
|
|
|
|
|
|
|
|
|
|
if (MaterialTypeAchievement.Count > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (int i = 0; i < materialTypeAchievement.Count; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MaterialTypeAchievement.FirstOrDefault().Values[i] = materialTypeAchievement.ElementAt(i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MaterialTypeAchievement.Add(shellColumn);
|
|
|
|
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|