public ActionResult GetNoReturnList(string startTime, string endTime) { var list = NoReturnReportApp.GetList(startTime, endTime).Select(p => new { outTime = p.OutTime, count = p.DayCount }); return(Result.Success(list)); }
public ActionResult GetNoReturnListByClass(string classId, string keyboard, string startTime, string endTime) { var list = NoReturnReportApp.GetList(classId, keyboard, startTime, endTime).Select(p => new { name = p.Name, className = p.Organ.Name, address = p.Dorm?.Title, date = p.OutTime, count = p.DayCount }); return(Result.Success(list)); }
public ActionResult GetNoReturnListByStuId(string studentId, string startTime, string endTime) { if (string.IsNullOrEmpty(studentId)) { throw new System.Exception("请输入学生ID"); } var student = new StudentService().GetById(studentId); if (student == null) { throw new System.Exception("未找到学生"); } var list = NoReturnReportApp.GetNoReturnListByStuId(studentId, startTime, endTime).Select(p => new { outTime = p.OutTime, count = p.DayCount }); return(Result.Success(list)); }
public ActionResult GetNoReturnList(Pagination pagination, string startTime, string endTime, string classId) { var list = NoReturnReportApp.GetList(pagination, startTime, endTime, classId).Select(p => { var student = OriginalReportApp.GetOrganIdByStuNum(p.Account); return(new { Account = p.Account, Name = p.Name, DepartmentId = student?.DivisId, GradeId = student?.GradeId, ClassId = student?.ClassId, //Class = p.Class?.Name, Dorm = p.Dorm?.Title, College = p.College, Time = p.OutTime, DayCount = p.DayCount }); }).ToList(); return(Result.PagingRst(list, pagination.Records, pagination.Total)); }