|
|
@ -204,14 +204,14 @@ namespace Mesnac.Action.ChemicalWeighing.LjReport.DayWhiteEmbryo
|
|
|
|
dr[0] = "湿混机" + i;
|
|
|
|
dr[0] = "湿混机" + i;
|
|
|
|
var totalWeight = list.Where(x => x.deviceno == i).Sum(x => x.value);
|
|
|
|
var totalWeight = list.Where(x => x.deviceno == i).Sum(x => x.value);
|
|
|
|
dr[1] = totalWeight.ToString();
|
|
|
|
dr[1] = totalWeight.ToString();
|
|
|
|
var totalCount = list.Where(x => x.deviceno == i).Where(x => x.value > 400).Count();
|
|
|
|
var totalCount = list.Where(x => x.deviceno == i).Where(x => x.value > 300).Count();
|
|
|
|
dr[2] = totalCount.ToString();
|
|
|
|
dr[2] = totalCount.ToString();
|
|
|
|
dt.Rows.Add(dr);
|
|
|
|
dt.Rows.Add(dr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var edr = dt.NewRow();
|
|
|
|
var edr = dt.NewRow();
|
|
|
|
edr[0] = "生产总和";
|
|
|
|
edr[0] = "生产总和";
|
|
|
|
edr[1] = list.Sum(x => x.value).ToString();
|
|
|
|
edr[1] = list.Sum(x => x.value).ToString();
|
|
|
|
edr[2] = list.Where(x => x.value > 400).Count();
|
|
|
|
edr[2] = list.Where(x => x.value > 300).Count();
|
|
|
|
dt.Rows.Add(edr);
|
|
|
|
dt.Rows.Add(edr);
|
|
|
|
|
|
|
|
|
|
|
|
dataGridView.DataSource = null;
|
|
|
|
dataGridView.DataSource = null;
|
|
|
|