arrStrFilterColumn 为string[] 类型
if (!Array.Exists(arrStrFilterColumn, a =>
{
return a.Equals(dt.Columns[j].Caption.Trim(),
StringComparison.OrdinalIgnoreCase);
}))
{代码。。。。。。。。。。
}
//List<EmployeeWorkTypeStatisticsModel> employeeWorkTypeStatistics =...; var listAddress = (from a in employeeWorkTypeStatistics group a by new { a.EmployeeType, a.WorkType } into g select new EmployeeWorkTypeStatisticsModel { EmployeeType = g.Key.EmployeeType, WorkType = g.Key.WorkType, EmployeeCount = g.Sum(c => c.EmployeeCount) }).OrderBy(t => t.EmployeeType);