解决大于400 不统计数据的问题

dep
我叫锄头 12 months ago
parent 633a70b20d
commit 1356676b13

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

Loading…
Cancel
Save