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 DYInfo(Guid?id) { Guid userid = id != null ? id.Value : loginId; StudentInfoService stuService = new StudentInfoService(); //德育信息 IList <StudentInformation.DYInformation> stuDyList = stuService.GetStudentDY(userid, null, "", 0).ToList(); ViewBag.DYInfo = stuDyList; return(PartialView("DYInfo", userid)); }