日期:2014-05-20 浏览次数:20799 次
var reportQuery = from a in examReportTable.AsEnumerable()
join b in rvuTable.AsEnumerable()
on new { exam = a.Field<string>("exam"), examtype = a.Field<string>("examtype") } equals new { exam = b.Field<string>("rvuName"), examtype = b.Field<string>("rvuType") }
group b by new { reportDoc = a.Field<string>("reportDoc"), examtype = a.Field<string>("examtype") } into c
select new
{
DocName = c.Key.reportDoc,
examType = c.Key.examtype,
reportDocRvu = c.Sum(o => double.Parse(o.Field<string>("reportRvu"))),
reportDocNum =//examReportTable中对“exam”计数count这句怎么写?
};