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; }
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; }
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; }
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; }
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); }
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; }
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; }
public AcademicYearsController(IAcademicYearService academicYearService) { this.academicYearService = academicYearService; }
public UsersController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache) : base(userService, academicYearService, rolePermissionsCache) { }
public AcademicYearController() { _service = new AcademicYearService(this.ModelState); }
private DevolvedAdultEducationFundingSummaryReportModelBuilder NewBuilder(IDateTimeProvider dateTimeProvider = null, IAcademicYearService academicYearService = null) { return(new DevolvedAdultEducationFundingSummaryReportModelBuilder(dateTimeProvider, academicYearService)); }
public SchoolsController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, ISchoolService schoolService) : base(userService, academicYearService, rolePermissionsCache) { _schoolService = schoolService; }
public AcademicYearController(IAcademicYearService service) { _service = service; }
public AuthenticationController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, ITokenService tokenService) : base(userService, academicYearService, rolePermissionsCache) { _tokenService = tokenService; }
public GradesController(IGradeService gradeService, IAcademicYearService academicYearService) { this.gradeService = gradeService; this.academicYearService = academicYearService; }
public StudentsController(IAcademicYearService academicYearService, IStudentService studentService, IPersonService personService, IUserService userService, IRoleService roleService) : base(studentService, personService, userService, roleService) { _academicYearService = academicYearService; }
public DocumentsController(IUserService userService, IAcademicYearService academicYearService, IDocumentService documentService, IRolePermissionsCache rolePermissionsCache) : base(userService, academicYearService, rolePermissionsCache) { _documentService = documentService; }
public NonContractedAppsActivityReportModelBuilder(IAcademicYearService academicYearService, IIlrModelMapper ilrModelMapper) { _academicYearService = academicYearService; _ilrModelMapper = ilrModelMapper; }
private DevolvedAdultEducationOccupancyReportModelBuilder NewBuilder(IIlrModelMapper ilrModelMapper = null, IAcademicYearService academicYearService = null) { return(new DevolvedAdultEducationOccupancyReportModelBuilder(ilrModelMapper, academicYearService)); }
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; }
public LogNotesController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, IStudentService studentService, ILogNoteService logNoteService) : base(userService, academicYearService, rolePermissionsCache, studentService) { _logNoteService = logNoteService; }
public AcademicYearController(IAcademicYearService academicYearService) { AcademicYearService = academicYearService; }
public BaseApiController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache) { UserService = userService; AcademicYearService = academicYearService; _rolePermissionsCache = rolePermissionsCache; }
public DevolvedAdultEducationFundingSummaryReportModelBuilder(IDateTimeProvider dateTimeProvider, IAcademicYearService academicYearService) { _dateTimeProvider = dateTimeProvider; _academicYearService = academicYearService; }
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) { }
public StudentsController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, IStudentService studentService) : base(userService, academicYearService, rolePermissionsCache, studentService) { }
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; }
public RolesController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, IRoleService roleService) : base(userService, academicYearService, rolePermissionsCache) { _roleService = roleService; }
protected StudentApiController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, IStudentService studentService) : base(userService, academicYearService, rolePermissionsCache) { StudentService = studentService; }
public YearGroupsController(IUserService userService, IAcademicYearService academicYearService, IRolePermissionsCache rolePermissionsCache, IYearGroupService yearGroupService) : base(userService, academicYearService, rolePermissionsCache) { _yearGroupService = yearGroupService; }