コード例 #1
0
        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));
        }
コード例 #2
0
        public ActionResult HealthInfo(Guid?id)
        {
            Guid userid = id != null ? id.Value : loginId;
            StudentInfoService stuService = new StudentInfoService();
            //体检信息
            IList <StudentInformation.StudentHealth> stuHealthList = stuService.GetStudentHealth(userid, null).ToList();

            ViewBag.StudentHealth = stuHealthList;
            return(PartialView("HealthInfo", userid));
        }