日期:2014-05-17 浏览次数:20520 次
var list = from info in Model
group info by info.姓名 into g
orderby g.Count() descending
select new
{
Name = g.Key,
Count = g.Count(),
g
};
foreach (var item in list)
{
<tr><td>@item.姓名</td>
<tr><td>@item.部门</td>
@for (int i = 1; i <= days; i++)
{
int _count = item.g.Count(s => s.CreateDate.Day == i);
<td>@(_count > 0 ? @item.要显示的值 : "-")</td>
&nb