// GET: Administrator public ActionResult Index() { List <studentInfo> list = new List <studentInfo>(); list = new StudentInfoService().getStudentInfos(); return(View(list)); }
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 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)); }
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)); }
public List <ChildrenScores> GetStuScoreses() { UCHomeBasePage ucHomeBasePage = new UCHomeBasePage(); if (Session["stuscore"] == null) { StudentInfoService stuService = new StudentInfoService(); List <ChildrenScores> childrenscores = new List <ChildrenScores>(); if (usertype.ToLower() == "s") { IList <StudentInformation.StudentScores> stuScoreList = GetStudentScore(loginId, xxid, null, null, "", "").OrderBy(s => s.SchYear).ThenBy(s => s.SchTerm).ThenBy(s => s.ExamTypeCode).ToList(); List <StuScores> stuscoress = new List <StuScores>(); foreach (StudentInformation.StudentScores items in stuScoreList) { StuScores stuscores = OrderByScores(items); stuscoress.Add(stuscores); } childrenscores.Add(new ChildrenScores { xsid = loginId, XM = username, stuscores = stuscoress }); } else if (usertype.ToLower() == "p") { StudentEntities stu = new StudentEntities(); List <Stu_FamilyStuRel> family = stu.Stu_FamilyStuRel.Where(f => f.JZID == loginId).ToList(); foreach (Stu_FamilyStuRel item in family) { Guid xsid = item.XSID; UserInfo userInfo = ucHomeBasePage.GetUserInfoByRequestId(xsid); Guid schid = userInfo.xxid; IList <StudentInformation.StudentScores> stuScoreList = GetStudentScore(xsid, schid, null, null, "", "").OrderBy(s => s.SchYear).ThenBy(s => s.SchTerm).ThenBy(s => s.ExamTypeCode).ToList(); List <StuScores> stuscoress = new List <StuScores>(); foreach (StudentInformation.StudentScores items in stuScoreList) { StuScores stuscores = OrderByScores(items); stuscoress.Add(stuscores); } childrenscores.Add(new ChildrenScores { xsid = xsid, XM = userInfo.username, stuscores = stuscoress }); } } Session["stuscore"] = childrenscores; return(childrenscores); } return(Session["stuscore"] as List <ChildrenScores>); }
static AccountLogic() { userService = ObjectBuilder <UserService> .Build(); userGradesService = ObjectBuilder <UserGradesService> .Build(); gradeService = ObjectBuilder <GradeService> .Build(); studentInfoService = ObjectBuilder <StudentInfoService> .Build(); mapper = MapBuilder.Build(); }
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)); }
public PanelController( TeacherProfileService teacherProfileService, PackageService packageService, EnrollmentService enrollmentService, StudentInfoService studentInfoService, ImageService imageService, AssignmentService assignmentService ) { _imageService = imageService; _teacherProfileService = teacherProfileService; _packageService = packageService; _enrollmentService = enrollmentService; _studentInfoService = studentInfoService; _assignmentService = assignmentService; }
public UserManagersController(UserManagerService userService, ApplicationUserManager userManager, ApplicationRoleManager roleManager, EnrollmentService enrollmentService, ImageService imageService, StudentInfoService studentProfile, TeacherProfileService teacherService) { _userService = userService; UserManager = userManager; //_classlevelService = classLevelService; RoleManager = roleManager; _imageService = imageService; _studentService = studentProfile; _enrollmentService = enrollmentService; _teacherService = teacherService; }
public PackageController(UserManagerService userService, ApplicationUserManager userManager, ApplicationRoleManager roleManager, StudentInfoService studentProfile, PackageService packageService, TeacherProfileService teacherService, ImageService imageService) { _userService = userService; UserManager = userManager; _teacherService = teacherService; //_classlevelService = classLevelService; RoleManager = roleManager; _packageService = packageService; _imageService = imageService; }
public StudentProfilesController(StudentInfoService studentProfileService) { _studentProfileService = studentProfileService; }