public List <GradeInfoSearchMiddleModel> GetGradeListContainId(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
 {
     return(Db.Student_Info_Delete.Where(a => a.SchoolCode == gradeAndClassSearchViewModel.SchoolCode).Select(a => new GradeInfoSearchMiddleModel
     {
         GradeCode = a.GradeCode,
         GradeName = a.GradeName
     }).Distinct().ToList());
 }
 public List <ClassInfoSearchMiddleModel> GetClasslListContainId(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
 {
     return(Db.Student_Info_Delete.Where(a => a.SchoolCode == gradeAndClassSearchViewModel.SchoolCode).Select(a => new ClassInfoSearchMiddleModel
     {
         ClassCode = a.ClassCode,
         ClassName = a.ClassName
     }).Distinct().ToList());
 }
 public List <StationInfoSearchMiddleModel> GetStationListContainId(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
 {
     return(Db.facultystaff_Info.Where(a => a.SchoolCode == gradeAndClassSearchViewModel.SchoolCode).Select(a => new StationInfoSearchMiddleModel
     {
         StaffCode = a.StaffCode,
         StaffName = a.StaffName,
     }).Distinct().ToList());
 }
 public List <DepartInfoSearchMiddleModel> GetDepartlListContainId(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
 {
     return(Db.facultystaff_Info.Where(a => a.SchoolCode == gradeAndClassSearchViewModel.SchoolCode).Select(a => new DepartInfoSearchMiddleModel
     {
         DepartCode = a.DepartCode,
         DepartName = a.DepartName
     }).Distinct().ToList());
 }
Ejemplo n.º 5
0
        public ActionResult <DepartAndStationResModel> getDepartStationInfo(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
        {
            var gradeAndClassResModel = _baseService.getDepartStation(gradeAndClassSearchViewModel);

            gradeAndClassResModel.IsSuccess                  = true;
            gradeAndClassResModel.baseViewModel.Message      = "查询成功";
            gradeAndClassResModel.baseViewModel.ResponseCode = 200;
            return(Ok(gradeAndClassResModel));
        }
Ejemplo n.º 6
0
        public GradeAndClassResModel getGradeAndClass(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
        {
            GradeAndClassResModel gradeAndClassResModel = new GradeAndClassResModel();
            var classList = _StudentInfoRepository.GetClasslListContainId(gradeAndClassSearchViewModel);
            var GradeList = _StudentInfoRepository.GetGradeListContainId(gradeAndClassSearchViewModel);

            gradeAndClassResModel.classInfoSearchMiddleModels = classList;
            gradeAndClassResModel.gradeInfoSearchMiddleModels = GradeList;

            return(gradeAndClassResModel);
        }
Ejemplo n.º 7
0
        public DepartAndStationResModel getDepartStation(GradeAndClassSearchViewModel gradeAndClassSearchViewModel)
        {
            DepartAndStationResModel ResModel = new DepartAndStationResModel();
            var DepartList  = _facultystaffInfoRepository.GetDepartlListContainId(gradeAndClassSearchViewModel);
            var StationList = _facultystaffInfoRepository.GetStationListContainId(gradeAndClassSearchViewModel);

            ResModel.departInfoSearchMiddleModels  = DepartList;
            ResModel.stationInfoSearchMiddleModels = StationList;

            return(ResModel);
        }