public ActionResult HomePage(Guid id) { UCHomeBasePage ucHomeBasePage = new UCHomeBasePage(); Guid xxid = ucHomeBasePage.GetUserInfoByRequestId(id).xxid; StudentInfoService stuService = new StudentInfoService(); //德育信息 IList <StudentInformation.DYInformation> stuDyList = stuService.GetStudentDY(id, null, "", 0).Take(5).ToList(); ViewBag.DYInfo = stuDyList; //奖惩信息 IList <StudentInformation.JCinformation> stuJcList = stuService.GetStudentJC(id, xxid, null, "").Take(5).ToList(); ViewBag.JCInfo = stuJcList; //体检信息 IList <StudentInformation.StudentHealth> stuHealthList = stuService.GetStudentHealth(id, null).Take(5).ToList(); ViewBag.StudentHealth = stuHealthList; //成绩信息 IList <StudentInformation.StudentScores> stuScoreList = stuService.GetStudentScore(id, xxid, null, null, "", "").Take(5).ToList(); ViewBag.ScoreInfo = stuScoreList; return(PartialView("HomePage", id)); }
public ActionResult JCInfo(Guid?id) { Guid userid = id != null ? id.Value : loginId; UCHomeBasePage ucHomeBasePage = new UCHomeBasePage(); Guid xxid = ucHomeBasePage.GetUserInfoByRequestId(userid).xxid; StudentInfoService stuService = new StudentInfoService(); //奖惩信息 IList <StudentInformation.JCinformation> stuJcList = stuService.GetStudentJC(userid, xxid, null, "").ToList(); ViewBag.JCInfo = stuJcList; return(PartialView("JCInfo", userid)); }