public List<IES.CC.Model.Analysis.StudentOnlineExport> DataGet1() { int ocid=Convert.ToInt32(Request["OCID"]); DateTime sdate = Convert.ToDateTime(Request["StartDate"]); DateTime edate = Convert.ToDateTime(Request["EndDate"]); IES.CC.Model.Analysis.Analysis model = new IES.CC.Model.Analysis.Analysis { OCID = ocid, StartDate = sdate, EndDate = edate, TopCount = 1000 }; var list= new AnalysisBLL().StudentOnlineDesc_Get(model); List<IES.CC.Model.Analysis.StudentOnlineExport> exportlist = new List<IES.CC.Model.Analysis.StudentOnlineExport>(); for (var i = 0; i < list.Count; i++) { IES.CC.Model.Analysis.StudentOnlineExport m = new IES.CC.Model.Analysis.StudentOnlineExport(); m.UserName = list[i].UserName; m.DayAvgLogins = list[i].DayAvgLogins; m.WeekAvgLogins = list[i].WeekAvgLogins; m.MonthAvgLogins = list[i].MonthAvgLogins; m.AllLogins = list[i].AllLogins; exportlist.Add(m); } return exportlist; }
public List<IES.CC.Model.Analysis.StudentActiveExport> DataGet2() { int ocid = Convert.ToInt32(Request["OCID"]); IES.CC.Model.Analysis.Analysis model = new IES.CC.Model.Analysis.Analysis { OCID = ocid,TopCount = 1000 }; var list = new AnalysisBLL().StudentLiveness_Get(model); List<IES.CC.Model.Analysis.StudentActiveExport> exportlist = new List<IES.CC.Model.Analysis.StudentActiveExport>(); for (var i = 0; i < list.Count; i++) { IES.CC.Model.Analysis.StudentActiveExport m = new IES.CC.Model.Analysis.StudentActiveExport(); m.UserName = list[i].UserName; m.FileReadCount = list[i].FileReadCount; m.ForumCount = list[i].ForumCount; m.TestCount = list[i].TestCount; m.AllCount = list[i].AllCount; exportlist.Add(m); } return exportlist; }