Exemplo n.º 1
0
 /// <summary>
 /// 作者:Kylin
 /// 时间:2014.07.29
 /// 描述:get eme student progress total data
 /// </summary>
 /// <param name="reportDate"></param>
 /// <param name="productSCode"></param>
 /// <param name="rateCourses"></param>
 /// <returns></returns>
 public static List<StudyProgressTotal> GetStudyProgressTotal(DateTime reportDate, string productSCode, decimal rateCourses)
 {
     using (var edb = new EmeEntities(dbRead))
     {
         return edb.GetStudyProgressTotal(0, reportDate, productSCode, rateCourses).Select(p => new StudyProgressTotal()
         {
             AreaId = p.AreaId,
             BranchId = p.BranchId,
             BranchName = p.BranchName,
             HighStandard = p.HighStandard,
             BelowStandard = p.BelowStandard,
             HighUsual = p.HighUsual,
             BelowUsual = p.BelowUsual,
             OprDate = p.OprDate,
             ProductSCode = productSCode,
             RateCourses = rateCourses
         }).ToList();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 作者:Kylin
 /// 时间:2014.07.29
 /// 描述:get eme student progress total data
 /// </summary>
 /// <param name="reportAreaId"></param>
 /// <param name="reportDate"></param>
 /// <param name="productSCode"></param>
 /// <param name="rateCourses"></param>
 /// <returns></returns>
 public static List<GetStudyProgressTotal_Result> GetStudyProgressTotal(int reportAreaId, DateTime reportDate, string productSCode, decimal rateCourses)
 {
     using (var edb = new EmeEntities(dbRead))
     {
         return edb.GetStudyProgressTotal(reportAreaId, reportDate, productSCode, rateCourses).ToList();
     }
 }