标签:
//总过夜天数
decimal counts = table.AsEnumerable().Where(n => n.Field<string>("analy_type") == "合计").Sum(n => n.Field<decimal>("counts"));
//培训率
decimal px_rate = table.AsEnumerable().Where(n => n.Field<string>("analy_type") == "合计").Sum(n => n.Field<decimal>("px_rate") * n.Field<decimal>("capNum_type"));
px_rate = Math.Round(capNum_type == 0 ? 0 : px_rate / capNum_type, 4);
标签:
原文地址:http://www.cnblogs.com/zzzzbk/p/5660900.html