public StudentsController(IStudentService StudentsService, ILookupService lookupService,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IBatchService BatchService, IAreaService AreaService,
            IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService)
            : base()
        {
            this._StudentService = StudentsService;
            this._StudentsParentService = StudentsParentService;
            this._StudentsMedicalService = StudentsMedicalService;
            this._StudentsTransportService = StudentsTransportService;
            this._StudentsDocsService = StudentsDocsService;
            this._StudentsClassService = StudentsClassService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;

            this._lookupService = lookupService;

            this._StudentsAttendanceService = StudentsAttendanceService;
        }
 public FeeStructureController(IFeeStructureService FeeStructureService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     IFeeHeadService FeeHeadService)
     : base()
 {
     this._FeeStructureService = FeeStructureService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._FeeHeadService = FeeHeadService;
 }
示例#3
0
 public ExamController(IExamService ExamService, ILookupService lookupService, IClassService ClassService, IAcademicYearService AcademicYearService, IExamSubjectsService IExamSubjectsService, IExamGradesService IExamGradesService, IExamMarksDetailIsService IExamMarksDetailIsService, IExamMarksService IExamMarksService)
     : base()
 {
     this._ExamService = ExamService;
     this._lookupService = lookupService;
     this._ClassService = ClassService;
     this._AcademicYearService = AcademicYearService;
     this._IExamSubjectsService = IExamSubjectsService;
     this._IExamGradesService = IExamGradesService;
     this._IExamMarksDetailIsService = IExamMarksDetailIsService;
     this._IExamMarksService = IExamMarksService;
 }
示例#4
0
        public EnquiryController(IEnquiryService EnquiryService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService)
            : base()
        {
            this._EnquiryService = EnquiryService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
        }
示例#5
0
 public ReportController(IExamService ExamService, ILookupService lookupService, IExamSubjectsService IExamSubjectsService, IExamMarksDetailIsService IExamMarksDetailIsService, IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IExamMarksService IExamMarksService)
     : base()
 {
     this._ExamService = ExamService;
     this._lookupService = lookupService;
     this._IExamSubjectsService = IExamSubjectsService;
     _IExamMarksDetailIsService = IExamMarksDetailIsService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     _IExamMarksService = IExamMarksService;
 }
        public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IStudentService StudentService)
            : base()
        {
            this._ComplaintService = ComplaintService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._StudentService = StudentService;
        }
 public FeeConcessionController(IFeeConcessionService FeeConcessionService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService)
     : base()
 {
     this._FeeConcessionService = FeeConcessionService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
 }
示例#8
0
        public StudentService(IStudentRepository StudentRepository, IFileHandler FileHandler,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IAcademicYearService AcademicYearService,
            IClassService ClassService, ISectionService SectionService, IBatchService BatchService,
            IAreaService AreaService)
        {
            this._StudentRepository = StudentRepository;
            this._iFileHandler = FileHandler;
            this._IStudentsParentService = StudentsParentService;
            this._IStudentsMedicalService = StudentsMedicalService;
            this._IStudentsTransportService = StudentsTransportService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;
        }
 public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService,
     IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService)
     : base()
 {
     this._FeeReceiptService = FeeReceiptService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
     this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService;
     this._SchoolService = SchoolService;
 }
        public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
        {
            List <ValidationResult> errors = new List <ValidationResult>();

            if (this.StartDate >= this.EndDate)
            {
                errors.Add(new ValidationResult("Start date should not be equal or greater than end date."));
            }

            IAcademicYearService academicYearService = DependencyResolver.Current.GetService <IAcademicYearService>();

            bool yearExistsInDb =
                academicYearService.AcademicYearExistsInDb(this.StartDate, this.EndDate) ? true : false;

            if (yearExistsInDb)
            {
                errors.Add(new ValidationResult(
                               "Academic Year with the entered start year or end year already exists."));
            }

            if (academicYearService.All().Any())
            {
                AcademicYear latestAcademicYear =
                    academicYearService.All().OrderByDescending(ay => ay.StartDate).First();

                if (latestAcademicYear != null && this.StartDate.Year > latestAcademicYear.StartDate.Year + 1)
                {
                    errors.Add(new ValidationResult(
                                   "New academic year cannot be more than 1 year later than latest academic year."));
                }
            }

            if (this.EndDate.Year > this.StartDate.Year + 1)
            {
                errors.Add(new ValidationResult("Academic Year may not last more than 1 astronomical year."));
            }

            return(errors);
        }
示例#11
0
 public LookupIndexPopulationService(
     ISearchServiceClient searchServiceClient,
     IPopulationConfiguration populationConfiguration,
     ILarsContextFactory contextFactory,
     IAcademicYearService academicYearService,
     ISortingService <IssuingAuthorityLookupModel> issuingAuthoritySortingService,
     ISortingService <NotionalNVQLevel2LookupModel> levelSortingService,
     ISortingService <FrameworkTypeLookupModel> tLevelTypeSortingService,
     ISortingService <SectorSubjectAreaTier1LookupModel> sectorSubjectAreaTier1SortingService,
     ISortingService <StandardSectorLookupModel> standardSectorCodeSortingService,
     ISortingService <AwardingBodyLookupModel> awardingBodySortingService)
     : base(searchServiceClient, populationConfiguration)
 {
     _contextFactory                       = contextFactory;
     _academicYearService                  = academicYearService;
     _issuingAuthoritySortingService       = issuingAuthoritySortingService;
     _levelSortingService                  = levelSortingService;
     _tLevelTypeSortingService             = tLevelTypeSortingService;
     _sectorSubjectAreaTier1SortingService = sectorSubjectAreaTier1SortingService;
     _standardSectorCodeSortingService     = standardSectorCodeSortingService;
     _awardingBodySortingService           = awardingBodySortingService;
 }
示例#12
0
        public IEnumerable <ValidationResult> Validate(ValidationContext validationContext)
        {
            if (this.StartDate >= this.EndDate)
            {
                yield return(new ValidationResult("Start date should not be equal or greater than end date."));
            }

            IAcademicYearService academicYearService = DependencyResolver.Current.GetService <IAcademicYearService>();

            bool uniqueOnEdit = academicYearService.AcademicYearUniqueOnEdit(this.Id, this.StartDate, this.EndDate);

            if (!uniqueOnEdit)
            {
                yield return(new ValidationResult(
                                 "Academic Year with the entered start year or end year already exists."));
            }

            if (academicYearService.All().Any())
            {
                AcademicYear latestAcademicYear = academicYearService
                                                  .All()
                                                  .OrderByDescending(ay => ay.StartDate)
                                                  .First();

                if (latestAcademicYear != null && this.StartDate.Year > latestAcademicYear.StartDate.Year + 1)
                {
                    yield return(new ValidationResult(
                                     "New academic year cannot be more than 1 year later than latest academic year."));
                }
            }

            if (this.EndDate.Year > this.StartDate.Year + 1)
            {
                yield return(new ValidationResult(
                                 "Academic Year may not last more than 1 astronomical year."));
            }
        }
 public AcademicYearController(IUserService userService, IRoleService roleService, IAcademicYearService academicYearService) : base(userService, roleService)
 {
     _academicYearService = academicYearService;
 }
示例#14
0
 public AcademicYearsController(IAcademicYearService academicYearService)
 {
     this.academicYearService = academicYearService;
 }
示例#15
0
 public UsersController(IUserService userService, IAcademicYearService academicYearService,
                        IRolePermissionsCache rolePermissionsCache) : base(userService, academicYearService, rolePermissionsCache)
 {
 }
 public AcademicYearController()
 {
     _service = new AcademicYearService(this.ModelState);
 }
示例#17
0
 private DevolvedAdultEducationFundingSummaryReportModelBuilder NewBuilder(IDateTimeProvider dateTimeProvider = null, IAcademicYearService academicYearService = null)
 {
     return(new DevolvedAdultEducationFundingSummaryReportModelBuilder(dateTimeProvider, academicYearService));
 }
示例#18
0
 public SchoolsController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, ISchoolService schoolService) : base(userService, academicYearService, rolePermissionsCache)
 {
     _schoolService = schoolService;
 }
 public AcademicYearController(IAcademicYearService service)
 {
     _service = service;
 }
示例#20
0
 public AuthenticationController(IUserService userService, IAcademicYearService academicYearService,
     IRolePermissionsCache rolePermissionsCache, ITokenService tokenService) : base(userService,
     academicYearService, rolePermissionsCache)
 {
     _tokenService = tokenService;
 }
示例#21
0
 public GradesController(IGradeService gradeService, IAcademicYearService academicYearService)
 {
     this.gradeService        = gradeService;
     this.academicYearService = academicYearService;
 }
示例#22
0
 public StudentsController(IAcademicYearService academicYearService, IStudentService studentService,
     IPersonService personService, IUserService userService, IRoleService roleService) :
     base(studentService, personService, userService, roleService)
 {
     _academicYearService = academicYearService;
 }
示例#23
0
 public DocumentsController(IUserService userService, IAcademicYearService academicYearService,
                            IDocumentService documentService, IRolePermissionsCache rolePermissionsCache) : base(userService,
                                                                                                                 academicYearService, rolePermissionsCache)
 {
     _documentService = documentService;
 }
示例#24
0
 public NonContractedAppsActivityReportModelBuilder(IAcademicYearService academicYearService, IIlrModelMapper ilrModelMapper)
 {
     _academicYearService = academicYearService;
     _ilrModelMapper      = ilrModelMapper;
 }
 private DevolvedAdultEducationOccupancyReportModelBuilder NewBuilder(IIlrModelMapper ilrModelMapper = null, IAcademicYearService academicYearService = null)
 {
     return(new DevolvedAdultEducationOccupancyReportModelBuilder(ilrModelMapper, academicYearService));
 }
示例#26
0
 public BillsController(IUserService userService, IAcademicYearService academicYearService,
                        IBillService billService, IRolePermissionsCache rolePermissionsCache) : base(userService,
                                                                                                     academicYearService, rolePermissionsCache)
 {
     _billService = billService;
 }
 public DevolvedAdultEducationOccupancyReportModelBuilder(IIlrModelMapper ilrModelMapper, IAcademicYearService academicYearService)
     : base(ilrModelMapper)
 {
     _academicYearService = academicYearService;
 }
示例#28
0
 public LogNotesController(IUserService userService, IAcademicYearService academicYearService,
                           IRolePermissionsCache rolePermissionsCache, IStudentService studentService, ILogNoteService logNoteService)
     : base(userService, academicYearService, rolePermissionsCache, studentService)
 {
     _logNoteService = logNoteService;
 }
示例#29
0
 public AcademicYearController(IAcademicYearService academicYearService)
 {
     AcademicYearService = academicYearService;
 }
示例#30
0
 public BaseApiController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache)
 {
     UserService           = userService;
     AcademicYearService   = academicYearService;
     _rolePermissionsCache = rolePermissionsCache;
 }
示例#31
0
 public DevolvedAdultEducationFundingSummaryReportModelBuilder(IDateTimeProvider dateTimeProvider, IAcademicYearService academicYearService)
 {
     _dateTimeProvider    = dateTimeProvider;
     _academicYearService = academicYearService;
 }
示例#32
0
 public AchievementsController(IStudentService studentService, IPersonService personService, IUserService userService,
                               IRoleService roleService, IBehaviourService behaviourService, IAcademicYearService academicYearService)
     : base(studentService, personService, userService, roleService)
 {
     _behaviourService    = behaviourService;
     _academicYearService = academicYearService;
 }
 public DesktopDevolvedAdultEducationFundingSummaryModelBuilder(IDateTimeProvider dateTimeProvider, IAcademicYearService academicYearService)
     : base(dateTimeProvider, academicYearService)
 {
 }
示例#34
0
 public StudentsController(IUserService userService, IAcademicYearService academicYearService,
                           IRolePermissionsCache rolePermissionsCache, IStudentService studentService) : base(userService,
                                                                                                              academicYearService, rolePermissionsCache, studentService)
 {
 }
示例#35
0
 public HousesController(IUserService userService, IAcademicYearService academicYearService,
                         IRolePermissionsCache rolePermissionsCache, IHouseService houseService) : base(userService,
                                                                                                        academicYearService, rolePermissionsCache)
 {
     _houseService = houseService;
 }
 public AcademicYearController(IAcademicYearService ObjService, ILookupService lookupService)
     : base()
 {
     this._ObjService = ObjService;
     this._lookupService = lookupService;
 }
示例#37
0
 public RolesController(IUserService userService, IAcademicYearService academicYearService,
                        IRolePermissionsCache rolePermissionsCache, IRoleService roleService) : base(userService,
                                                                                                     academicYearService, rolePermissionsCache)
 {
     _roleService = roleService;
 }
示例#38
0
 protected StudentApiController(IUserService userService, IAcademicYearService academicYearService,
                                IRolePermissionsCache rolePermissionsCache, IStudentService studentService) : base(userService,
                                                                                                                   academicYearService, rolePermissionsCache)
 {
     StudentService = studentService;
 }
示例#39
0
 public YearGroupsController(IUserService userService, IAcademicYearService academicYearService,
                             IRolePermissionsCache rolePermissionsCache, IYearGroupService yearGroupService) : base(userService,
                                                                                                                    academicYearService, rolePermissionsCache)
 {
     _yearGroupService = yearGroupService;
 }