Esempio n. 1
0
 public InternshipService(IUnitOfWork unitOfWork, ISemesterService semesterService, IEmailService emailService, IEmailHistoryService emailHistoryService) :
     base(unitOfWork)
 {
     _semesterService     = semesterService;
     _emailService        = emailService;
     _emailHistoryService = emailHistoryService;
 }
Esempio n. 2
0
        public ExamsViewModel(
            IExamService examService,
            ICourseService courseService,
            IEnrolmentService enrolmentService,
            IStudentExamService studentExamService,
            ISemesterService semesterService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            _examService         = examService;
            _courseService       = courseService;
            _enrolmentService    = enrolmentService;
            _studentExamService  = studentExamService;
            _semesterService     = semesterService;
            _exportService       = exportService;
            _downloadFileService = downloadFileService;

            _startExportCommand        = new DelegateCommand(OnStartExport, CanStartExport);
            _exportCommand             = new DelegateCommand(OnExport, CanExport);
            _addStudentsCommand        = new DelegateCommand(OnAddStudents, CanAddStudents);
            _addStudentsSaveCommand    = new DelegateCommand(OnAddStudentsSave, CanAddStudentsSave);
            _addStudentsDiscardCommand = new DelegateCommand(OnAddStudentsDiscard, CanAddStudentsDiscard);
            _studentsCommand           = new DelegateCommand(OnStudents, CanStudents);
            _saveEditStudentsCommand   = new DelegateCommand(OnSaveEditStudents, CanSaveEditStudents);
            _deleteStudentsCommand     = new DelegateCommand(OnDeleteStudents, CanDeleteStudents);
            _saveAllStudentsCommand    = new DelegateCommand(OnSaveAllStudents, CanSaveAllStudents);
        }
        public async Task <IActionResult> Profile(
            [FromServices] IUserSevice userService,
            [FromServices] ISemesterService semesterService,
            [FromServices] IThemeService themeService,
            [FromServices] ISubjectService subjectService,
            [FromServices] IGroupService groupService,
            [FromServices] IMapper mapper)
        {
            var user = await userService.GetUserByIdAsync(User.GetId());

            if (user == null)
            {
                return(NotFound());
            }

            var semester = await semesterService.GetCurrentSemesterAsync();

            var themes = await themeService.GetThemesAsync(new ThemeFilter { AuthorId = user.Id });

            var model = mapper.Map <UserModel, ProfileViewModel>(user);

            if (user.GroupId.HasValue)
            {
                var subjects = await subjectService.GetSubjectsAsync(user.GroupId.Value, semester.Id);

                var group = await groupService.GetGroupAsync(user.GroupId.Value);

                model.Subjects = mapper.Map <ICollection <SubjectModel>, ICollection <SubjectViewModel> >(subjects);
                model.Group    = mapper.Map <GroupModel, GroupViewModel>(group);
            }

            model.Themes = mapper.Map <ICollection <ThemeModel>, ICollection <ThemeViewModel> >(themes);

            return(Ok(model));
        }
Esempio n. 4
0
 public frmEmployeeWorkload(IEmployeeService empSvc, ISemesterService semSvc, IWorkloadService wsvc, IDropdownService drp)
 {
     this.empSvc = empSvc;
     this.semSvc = semSvc;
     this.wsvc   = wsvc;
     this.drp    = drp;
 }
 public InternshipController(IInternshipService internshipService, IGroupService groupService,
                             ISemesterService semesterService)
 {
     _internshipService = internshipService;
     _groupService      = groupService;
     _semesterService   = semesterService;
 }
Esempio n. 6
0
 public ExamProgramController(ICurrentContext CurrentContext,
                              IExamProgramService ExamProgramService,
                              ISemesterService SemesterService
                              ) : base(CurrentContext)
 {
     this.ExamProgramService = ExamProgramService;
     this.SemesterService    = SemesterService;
 }
Esempio n. 7
0
        public CourseInstances(ICourseService courseService, ISemesterService semesterService)
        {
            viewModel = new CourseInstancesViewModel(courseService, semesterService);

            InitializeComponent();

            this.Loaded += CourseInstancesTable_Load;
        }
Esempio n. 8
0
 public PlanService(AppDbContext context,
                    ISemesterService semesterService,
                    IMapper mapper)
 {
     _context         = context;
     _semesterService = semesterService;
     _mapper          = mapper;
 }
Esempio n. 9
0
        public Semesters(ISemesterService semesterService)
        {
            viewModel = new SemestersViewModel(semesterService);

            InitializeComponent();

            this.Loaded += SemestersTable_Load;
        }
 public LearningClassController(ILearningClassService learningClassService, IStudentService studentService,
                                ISubjectService subjectService, ISemesterService semesterService)
 {
     _learningClassService = learningClassService;
     _studentService       = studentService;
     _subjectService       = subjectService;
     _semesterService      = semesterService;
 }
Esempio n. 11
0
 public SemestersController(SchoolDBContext schoolDBContext,
                            IMasterService masterService,
                            ISemesterService semesterService)
 {
     _schoolDBContext = schoolDBContext;
     _masterService   = masterService;
     _semesterService = semesterService;
 }
Esempio n. 12
0
 public TermController(ICurrentContext CurrentContext,
                       ITermService TermService,
                       ISemesterService SemesterService
                       ) : base(CurrentContext)
 {
     this.TermService     = TermService;
     this.SemesterService = SemesterService;
 }
 public RecordController(ISubjectService subjectService, ISemesterService semesterService, IRecordService recordService, IProfessorService professorfService, IStudentService studentService)
 {
     this._subjectService   = subjectService;
     this._semesterService  = semesterService;
     this._recordService    = recordService;
     this._professorService = professorfService;
     this._studentService   = studentService;
 }
Esempio n. 14
0
 public MarksController(IMarkService markService, IStudentService studentService, ITeacherService teacherService, ISubjectService subjectService, IGradeService gradeService, ISemesterService semesterService)
 {
     this.markService     = markService;
     this.studentService  = studentService;
     this.teacherService  = teacherService;
     this.subjectService  = subjectService;
     this.gradeService    = gradeService;
     this.semesterService = semesterService;
 }
 public CurriculumAddedRequestConsumer(ILogger <CurriculumAddedRequestConsumer> logger,
                                       ICurriculumService curriculumService, IStudentService studentService,
                                       ICurriculumScheduleService curriculumScheduleService, ISemesterService semesterService)
 {
     _logger                    = logger;
     _curriculumService         = curriculumService;
     _studentService            = studentService;
     _curriculumScheduleService = curriculumScheduleService;
     _semesterService           = semesterService;
 }
Esempio n. 16
0
 public ReportController(IResultService resultService, IStudentService studentService, IClassService classService, ISubjectService subjectService, ISemesterService semesterService, IReportService reportService, IExistHelper exist)
 {
     _resultService   = resultService;
     _studentService  = studentService;
     _classService    = classService;
     _subjectService  = subjectService;
     _semesterService = semesterService;
     _reportService   = reportService;
     resp             = new ResponseHelper();
 }
Esempio n. 17
0
 public EmailService(ITeacherService teacherService,
                     ISemesterService semesterService, IGroupService groupService,
                     ICompanyTrainingMajorService companyTrainingMajorService, ICompanyService companyService,
                     IEmailHistoryService emailHistoryService)
 {
     _teacherService              = teacherService;
     _semesterService             = semesterService;
     _groupService                = groupService;
     _companyTrainingMajorService = companyTrainingMajorService;
     _companyService              = companyService;
     _emailHistoryService         = emailHistoryService;
 }
Esempio n. 18
0
 public StudentGrpcService(IUserGrpcService userGrpcService, IStudentService studentService,
                           ILogger <StudentGrpcService> logger, ISemesterService semesterService,
                           ICurriculumScheduleService curriculumSchedule, ICurriculumScheduleService curriculumScheduleService,
                           ICurriculumService curriculumService)
 {
     _userGrpcService           = userGrpcService;
     _studentService            = studentService;
     _logger                    = logger;
     _semesterService           = semesterService;
     _curriculumScheduleService = curriculumScheduleService;
     _curriculumService         = curriculumService;
 }
Esempio n. 19
0
 public ExaminationController()
 {
     topicService           = new TopicService();
     learningOutcomeService = new LearningOutcomeService();
     examinationService     = new ExaminationService();
     partOfExamService      = new PartOfExamService();
     categoryService        = new CategoryService();
     semesterService        = new SemesterService();
     logService             = new LogService();
     courseService          = new CourseService();
     questionService        = new QuestionService();
 }
Esempio n. 20
0
        public OralExam(
            IExamService examService,
            ICourseService courseService,
            ISemesterService semesterService,
            IEnrolmentService enrolmentService,
            IStudentService studentService,
            IStudentExamService studentExamService)
        {
            viewModel = new OralExamViewModel(examService, courseService, semesterService, enrolmentService, studentService, studentExamService);

            InitializeComponent();

            this.Loaded += Data_Load;
        }
Esempio n. 21
0
        public Exams(
            IExamService examService,
            ICourseService courseService,
            IEnrolmentService enrolmentService,
            IStudentExamService studentExamService,
            ISemesterService semesterService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            viewModel = new ExamsViewModel(examService, courseService, enrolmentService, studentExamService, semesterService, exportService, downloadFileService);

            InitializeComponent();

            this.Loaded += ExamsTable_Load;
        }
Esempio n. 22
0
 public ProfileController(
     IMapper mapper,
     IUserSevice userService,
     ISubjectService subjectService,
     IThemeService themeService,
     ISemesterService semesterService,
     IGroupService groupService)
 {
     Mapper          = mapper;
     UserService     = userService;
     SubjectService  = subjectService;
     ThemeService    = themeService;
     SemesterService = semesterService;
     GroupService    = groupService;
 }
Esempio n. 23
0
 public ExamsViewModel(
     IExamService examService,
     ICourseService courseService,
     IEnrolmentService enrolmentService,
     IStudentExamService studentExamService,
     ISemesterService semesterService,
     IExportService exportService)
 {
     _examService        = examService;
     _courseService      = courseService;
     _enrolmentService   = enrolmentService;
     _studentExamService = studentExamService;
     _semesterService    = semesterService;
     _exportService      = exportService;
 }
        public CourseInstancesViewModel(
            ICourseService courseService,
            ISemesterService semesterService)
        {
            _courseService   = courseService;
            _semesterService = semesterService;

            _courseStartAddCommand   = new DelegateCommand(OnCourseStartAdd, CanCourseStartAdd);
            _semesterStartAddCommand = new DelegateCommand(OnSemesterStartAdd, CanSemesterStartAdd);

            _courseSaveAddCommand   = new DelegateCommand(OnCourseSaveAdd, CanCourseSaveAdd);
            _semesterSaveAddCommand = new DelegateCommand(OnSemesterSaveAdd, CanSemesterSaveAdd);

            _courseDiscardAddCommand   = new DelegateCommand(OnCourseDiscardAdd, CanCourseDiscardAdd);
            _semesterDiscardAddCommand = new DelegateCommand(OnSemesterDiscardAdd, CanSemesterDiscardAdd);
        }
Esempio n. 25
0
        public OralExamViewModel(
            IExamService examService,
            ICourseService courseService,
            ISemesterService semesterService,
            IEnrolmentService enrolmentService,
            IStudentService studentService,
            IStudentExamService studentExamService)
        {
            _examService        = examService;
            _courseService      = courseService;
            _semesterService    = semesterService;
            _enrolmentService   = enrolmentService;
            _studentService     = studentService;
            _studentExamService = studentExamService;

            _startExamCommand   = new DelegateCommand(OnStartExam, CanStartExam);
            _selectExistingExam = new DelegateCommand(OnSelectExistingExam, CanSelectExistingExam);
            _selectNewExam      = new DelegateCommand(OnSelectNewExam, CanSelectNewExam);
        }
Esempio n. 26
0
        public MainWindow(
            ICourseService courseService,
            IStudentService studentService,
            ISemesterService semesterService,
            IStudentExamService studentExamService,
            IEnrolmentService enrolmentService,
            IExamService examService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            _courseService      = courseService;
            _studentService     = studentService;
            _semesterService    = semesterService;
            _studentExamService = studentExamService;
            _enrolmentService   = enrolmentService;
            _examService        = examService;

            _exportService       = exportService;
            _downloadFileService = downloadFileService;


            InitializeComponent();
        }
 public SemestersController(ISemesterService semesterService)
 {
     this.semesterService = semesterService;
 }
Esempio n. 28
0
 public SemestersController(IMapper mapper, ISemesterService semesterService, ITeacherService teacherService, IStudentService studentService)
 {
     _semesterService = semesterService;
 }
 public SemestersController(ISemesterService semesterService)
 {
     this.semesterService = semesterService;
 }
Esempio n. 30
0
 public frmSemester_AE(ISemesterService svc)
 {
     this.svc = svc;
 }
 public SemesterController(ISemesterService semesterService, IExistHelper exist)
 {
     _semesterService = semesterService;
     _exist           = exist;
     resp             = new ResponseHelper();
 }
 public SemesterManagementService(ISemesterService semesterService, ISubjectManagementService subjectManagementService)
 {
     this.semesterService = semesterService;
     this.subjectManagementService = subjectManagementService;
 }