public CursosController(ICursoService cursoService, IMapper mapper, INotificator notificator, IProfessorService professorService)
     : base(notificator)
 {
     _cursoService     = cursoService;
     _mapper           = mapper;
     _professorService = professorService;
 }
Esempio n. 2
0
        private void BtExcluir_Click(object sender, EventArgs e)
        {
            var resultado = MessageBox.Show(this, "Tem certeza que deseja excluir este registo"
                                            + TxtId.Text + " - " + TxtNome.Text + " ? ", "LTPV",
                                            MessageBoxButtons.YesNo,
                                            MessageBoxIcon.Question,
                                            MessageBoxDefaultButton.Button2);

            if (resultado == DialogResult.No)
            {
                return;
            }

            IProfessorService service = Program.container.GetInstance <IProfessorService>();

            int id = Convert.ToInt32(TxtId.Text);

            if (service.Excluir(id))
            {
                PreencherGrid();

                MessageBox.Show(this, "Professor excluido com sucesso!",
                                "LTPV",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Information);

                LimparComponentes();
            }
            else
            {
                TxtNome.Focus();
                MessageBox.Show(this, "Não foi possivel excluir as informações! \n\n " + service.ObterNotificacoes(), "LTP5", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 public ScheduleController(IScheduleService scheduleService,
                           ITermService termService,
                           IMappingService mappingService,
                           ICollegeService collegeService,
                           IEducationalGroupService educationalGroupService,
                           IProfessorService professorService,
                           IEducationalClassService educationalClassService,
                           IStudentEducationalClassService studentEducationalClassService,
                           IProfessorScoreService professorScoreService,
                           IIndicatorService indicatorService,
                           IMappingTypeService mappingTypeService,
                           IUniversityLevelMappingService universityLevelMappingService,
                           IEducationalGroupScoreService educationalGroupScoreService,
                           ILogService logService,
                           ILogTypeService logTypeService,
                           IUserService userService)
 {
     _scheduleService                = scheduleService;
     _termService                    = termService;
     _mappingService                 = mappingService;
     _collegeService                 = collegeService;
     _educationalGroupService        = educationalGroupService;
     _professorService               = professorService;
     _educationalClassService        = educationalClassService;
     _studentEducationalClassService = studentEducationalClassService;
     _professorScoreService          = professorScoreService;
     _indicatorService               = indicatorService;
     _logService                    = logService;
     _logTypeService                = logTypeService;
     _mappingTypeService            = mappingTypeService;
     _userService                   = userService;
     _universityLevelMappingService = universityLevelMappingService;
     _educationalGroupScoreService  = educationalGroupScoreService;
 }
 public ProfessorController(
     IProfessorService professorService
     , IProfessorScoreService professorScoreService
     , IEducationalGroupService educationalGroupService
     , ICollegeService collegeService
     , ITermService termService
     , IIndicatorService indicatorService
     , IRoleAccessService roleAccessService
     , IUserRoleService userRoleService
     , ILogService logService
     , IEducationalClassService educationalClassService
     )
 {
     _professorService        = professorService;
     _professorScoreService   = professorScoreService;
     _educationalGroupService = educationalGroupService;
     _collegeService          = collegeService;
     _termService             = termService;
     _indicatorService        = indicatorService;
     _roleAccessService       = roleAccessService;
     _userRoleService         = userRoleService;
     _reportService           = new DapperService(educationalGroupService);
     _logService = logService;
     _educationalClassService = educationalClassService;
 }
Esempio n. 5
0
 public ProfessoresController(IProfessorService professorService, IMapper mapper, INotificator notificator, IEnderecoService enderecoService, ICursoService cursoService) : base(notificator)
 {
     _professorService = professorService;
     _mapper           = mapper;
     _enderecoService  = enderecoService;
     _cursoService     = cursoService;
 }
Esempio n. 6
0
 public ProfessorController(
     IProfessorService professorService,
     IEscolaService escolaService)
 {
     _professorService = professorService;
     _escolaService    = escolaService;
 }
 public ProfessoresController(IProfessorService professorService,
                              ProfessorToProfessorDTOMapper professorToProfessorDTOMapper,
                              ProfessorDTOToProfessorMapper professorDTOToProfessorMapper)
 {
     _professorService = professorService;
     _professorToProfessorDTOMapper = professorToProfessorDTOMapper;
     _professorDTOToProfessorMapper = professorDTOToProfessorMapper;
 }
        //#endregion

        //#region Constructor
        public AvailableCoursesController(IUnitOfWork unitOfWork, IPeresentedCoursesService artService,
                                          IProfessorService pro, ICourseService cor, ITermService te)
        {
            _unitOfWork = unitOfWork;
            _PeresentedCoursesService = artService;
            _ProfessorService         = pro;
            _CourseService            = cor;
            _TermService = te;
        }
 public CourseService(IReadRepository readRepository, IWriteRepository writeRepository,
                      ICourseMapper courseMapper, IProfessorService professorService, IStudentService studentService)
 {
     this.writeRepository  = writeRepository ?? throw new ArgumentNullException();
     this.readRepository   = readRepository ?? throw new ArgumentNullException();
     this.courseMapper     = courseMapper ?? throw new ArgumentNullException();
     this.professorService = professorService ?? throw new ArgumentNullException();
     this.studentService   = studentService ?? throw new ArgumentException();
 }
Esempio n. 10
0
 public AtividadeTurmaController(UserManager <ApplicationUser> userManager, ITurmaService turmaService,
                                 IProfessorService professorService, IAtividadeService atividadeService, IAtividade_TurmaService atividadeTurmaService)
 {
     _userManager           = userManager;
     _turmaService          = turmaService;
     _professorService      = professorService;
     _atividadeService      = atividadeService;
     _atividadeTurmaService = atividadeTurmaService;
 }
Esempio n. 11
0
        //#endregion

        //#region Constructor
        public ProfessorController(IUnitOfWork unitOfWork, IProfessorService artService
                                   , IGroupsService gr, IRoleService ro, IUserService userService)
        {
            _unitOfWork       = unitOfWork;
            _ProfessorService = artService;
            _GroupsService    = gr;
            _roleService      = ro;
            _userService      = userService;
        }
Esempio n. 12
0
 public TurmasController(UserManager <ApplicationUser> userManager, IProfessorService professorService,
                         ITurmaService turmaService, IAlunoService alunoService, ITurma_AlunoService aluno_Turma_Service)
 {
     _userManager         = userManager;
     _turmaService        = turmaService;
     _alunoService        = alunoService;
     _aluno_Turma_Service = aluno_Turma_Service;
     _professorService    = professorService;
 }
Esempio n. 13
0
 public ProfessorTeste(IProfessorService professorService,
                       IAtividadeService atividadeService,
                       IAtividade_TurmaService atividade_TurmaService,
                       ITurmaService turmaService,
                       IQuestaoService questaoService,
                       IOpcaoService opcaoService, IOpcao_CorretaService opcao_CorretaService)
 {
     TestaProfessor();
 }
Esempio n. 14
0
 public ReportService(IStudentService studentService,
                      ILectureService lectureService,
                      IProfessorService professorService,
                      ILoggerFactory factory = null)
 {
     _studentService   = studentService;
     _lectureService   = lectureService;
     _professorService = professorService;
     _logger           = factory?.CreateLogger("Report Service");
 }
 public AtividadeController(IAtividadeService atividadeService, IQuestaoService questaoService,
                            IProfessorService professorService, UserManager <ApplicationUser> userManager, IOpcao_CorretaService opcao_Correta, IOpcaoService opcao)
 {
     _atividadeService = atividadeService;
     _professorService = professorService;
     _userManager      = userManager;
     _questaoService   = questaoService;
     _opcao_Correta    = opcao_Correta;
     _opcao            = opcao;
 }
        public ProfessorValidator(IProfessorService professorService,
                                  IDbContext dbContext)
        {
            //ensure that valid email address is entered if Registered role is checked to avoid registered users with empty email address
            //RuleFor(x => x.TitleName)
            //    .Empty()
            //    .WithMessage("ระบุรหัสคำนำชื่อ!");


            SetDatabaseValidationRules <Professor>(dbContext);
        }
Esempio n. 17
0
 public ProfessorController(UserManager <ApplicationUser> userManager,
                            IProfessorService professorService,
                            SignInManager <ApplicationUser> signInManager,
                            IEmailSender emailSender,
                            ILogger <AccountController> logger)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _emailSender      = emailSender;
     _logger           = logger;
     _professorService = professorService;
 }
Esempio n. 18
0
 public ProfessorModelFactory(IActionContextAccessor actionContextAccessor,
                              IBaseAdminModelFactory baseAdminModelFactory,
                              IProfessorService professorService,
                              IUrlHelperFactory urlHelperFactory,
                              IWebHelper webHelper)
 {
     this._actionContextAccessor = actionContextAccessor;
     this._baseAdminModelFactory = baseAdminModelFactory;
     this._professorService      = professorService;
     this._urlHelperFactory      = urlHelperFactory;
     this._webHelper             = webHelper;
 }
Esempio n. 19
0
        public PagesController(
            ITermService termService
            , ICollegeService collegeService
            , IEducationalGroupService educationalGroupService
            , IProfessorService professorService
            , IRoleService roleService
            , IRoleAccessService roleAccessService
            , IAccessService accessService
            , IUserRoleService userRoleService
            , IMappingService mappingService
            , IIndicatorService indicatorService
            , IUniversityLevelMappingService universityLevelMappingService
            , IUserService userService
            , IScheduleService scheduleService


            , IEducationalClassService educationalClassService
            , IStudentEducationalClassService studentEducationalClassService
            , IProfessorScoreService professorScoreService
            , IMappingTypeService mappingTypeService
            , IEducationalGroupScoreService educationalGroupScoreService
            , ILogService logService
            , ILogTypeService logTypeService
            , IServiceUsersMappingService serviceUsersMappingService
            )
        {
            _termService                   = termService;
            _collegeService                = collegeService;
            _educationalGroupService       = educationalGroupService;
            _professorService              = professorService;
            _roleService                   = roleService;
            _roleAccessService             = roleAccessService;
            _accessService                 = accessService;
            _userRoleService               = userRoleService;
            _mappingService                = mappingService;
            _indicatorService              = indicatorService;
            _universityLevelMappingService = universityLevelMappingService;
            _userService                   = userService;
            _scheduleService               = scheduleService;
            _logService                     = logService;
            _logTypeService                 = logTypeService;
            _educationalClassService        = educationalClassService;
            _studentEducationalClassService = studentEducationalClassService;
            _professorScoreService          = professorScoreService;
            _mappingTypeService             = mappingTypeService;
            _educationalGroupScoreService   = educationalGroupScoreService;
            _serviceUsersMappingService     = serviceUsersMappingService;
            //SyncService.RunAll(termService, mappingService, collegeService, educationalGroupService
            //    , professorService, educationalClassService, studentEducationalClassService, professorScoreService
            //    , indicatorService, mappingTypeService, universityLevelMappingService, educationalGroupScoreService
            //    , logService, logTypeService, userService);
            //var lastUpdate = _logService.LastUpdate();
        }
Esempio n. 20
0
 public RegisterModel(
     UserManager <Usuario> userManager,
     SignInManager <Usuario> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IProfessorService professorService)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _logger           = logger;
     _professorService = professorService;
 }
Esempio n. 21
0
        //#endregion

        //#region Constructor
        public GradingController(IUnitOfWork unitOfWork, IElectionService artService
                                 , IStudentService st, IUserService us, ISettingService set, ITermService tr,
                                 IPeresentedCoursesService pr, IProfessorService prof)
        {
            _unitOfWork               = unitOfWork;
            _ElectionService          = artService;
            _StudentService           = st;
            _UserService              = us;
            _SettingService           = set;
            _TermService              = tr;
            _PeresentedCoursesService = pr;
            _ProfessorService         = prof;
        }
Esempio n. 22
0
 public LoginController(SignInManager <Usuario> signInManager,
                        UserManager <Usuario> userManager,
                        RoleManager <IdentityRole> roleManager,
                        IProfessorService service,
                        IAlunoService alunoService
                        )
 {
     _signInManager    = signInManager;
     _userManager      = userManager;
     _roleManager      = roleManager;
     _professorService = service;
     _alunoService     = alunoService;
 }
 public ProfessorController(IUserActivityService userActivityService,
                            IUserService userService,
                            IPermissionService permissionService,
                            IProfessorModelFactory professorModelFactory,
                            IProfessorService professorService,
                            IPictureService pictureService,
                            IAddressService addressService)
 {
     this._userActivityService   = userActivityService;
     this._userService           = userService;
     this._permissionService     = permissionService;
     this._professorModelFactory = professorModelFactory;
     this._professorService      = professorService;
     this._pictureService        = pictureService;
     this._addressService        = addressService;
 }
Esempio n. 24
0
 public AvaliacaoController(
     IAvaliacaoService avaliacaoService,
     IProfessorService professorService,
     IAvaliacaoQuestaoService avaliacaoQuestaoService,
     IAvaliacaoOpcaoService avaliacaoOpcaoService,
     IAvaliacaoRepository avaliacaoRepository,
     IDisciplinaRepository disciplinaRepository,
     UserManager <Usuario> _user) : base(_user)
 {
     _avaliacaoService        = avaliacaoService;
     _professorService        = professorService;
     _avaliacaoOpcaoService   = avaliacaoOpcaoService;
     _avaliacaoQuestaoService = avaliacaoQuestaoService;
     _avaliacaoRepository     = avaliacaoRepository;
     _disciplinaRepository    = disciplinaRepository;
 }
Esempio n. 25
0
 public Teste(IProfessorService professorService,
              IAtividadeService atividadeService,
              IAtividade_TurmaService atividade_TurmaService,
              ITurmaService turmaService,
              IQuestaoService questaoService,
              IOpcaoService opcaoService, IOpcao_CorretaService opcao_CorretaService)
 {
     _professorService       = professorService;
     _atividadeService       = atividadeService;
     _atividade_TurmaService = atividade_TurmaService;
     _turmaService           = turmaService;
     _questaoService         = questaoService;
     _opcaoService           = opcaoService;
     _opcao_CorretaService   = opcao_CorretaService;
     ProfessorTeste professor = new ProfessorTeste(_professorService,
                                                   _atividadeService, _atividade_TurmaService, _turmaService, _questaoService,
                                                   _opcaoService, _opcao_CorretaService);
 }
Esempio n. 26
0
 public EducationalClassesController(
     IEducationalClassService educationalClassService
     , IEducationalGroupService educationalGroupService
     , ITermService termService
     , IProfessorScoreService professorScoreService
     , IScoreService scoreService
     , IRoleAccessService roleAccessService
     , IUserRoleService userRoleService
     , IProfessorService professorService
     , IIndicatorService indicatorService
     )
 {
     _educationalClassService = educationalClassService;
     _educationalGroupService = educationalGroupService;
     _termService             = termService;
     _professorScoreService   = professorScoreService;
     _scoreService            = scoreService;
     _roleAccessService       = roleAccessService;
     _userRoleService         = userRoleService;
     _professorService        = professorService;
     _indicatorService        = indicatorService;
 }
Esempio n. 27
0
        private void button1_Click(object sender, EventArgs e)
        {
            Aluno model = MapearDominio();

            IProfessorService service = Program.container.GetInstance <IProfessorService>();

            if (service.Adicionar(model))
            {
                PreencherGrid();

                MessageBox.Show(this, "Professor cadastrado com sucesso, certifique-se dos dados informados!", "LTP5", MessageBoxButtons.OK, MessageBoxIcon.Information);

                LimparComponentes();

                TxtNome.Focus();
            }
            else
            {
                TxtNome.Focus();
                MessageBox.Show(this, "Não foi possivel adicionar o professor! \n\n " + service.ObterNotificacoes(), "LTP5", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 28
0
 public BaseAdminModelFactory(IFacultyService facultyService,
                              ICountryService countryService,
                              IUserActivityService userActivityService,
                              IUserService userService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              IProfessorService professorService,
                              IProvinceService provinceService,
                              IStaticCacheManager cacheManager,
                              IAcademicRankService academicRankService,
                              IResearchIssueService researchIssueService,
                              IAgencyService agencyService,
                              IResearcherService researcherService,
                              IEducationLevelService educationLevelService,
                              IStrategyGroupService strategyGroupService,
                              IFiscalScheduleService fiscalScheduleService,
                              ITitleService titleService,
                              IInstituteService instituteService)
 {
     this._facultyService        = facultyService;
     this._countryService        = countryService;
     this._userActivityService   = userActivityService;
     this._userService           = userService;
     this._dateTimeHelper        = dateTimeHelper;
     this._emailAccountService   = emailAccountService;
     this._professorService      = professorService;
     this._provinceService       = provinceService;
     this._cacheManager          = cacheManager;
     this._academicRankService   = academicRankService;
     this._researchIssueService  = researchIssueService;
     this._agencyService         = agencyService;
     this._researcherService     = researcherService;
     this._educationLevelService = educationLevelService;
     this._strategyGroupService  = strategyGroupService;
     this._fiscalScheduleService = fiscalScheduleService;
     this._titleService          = titleService;
     this._instituteService      = instituteService;
 }
 public ProfessorController(IProfessorService professorService)
 {
     _professorService = professorService;
 }
 public ProfessorsController(IProfessorService professorService, ProfessorMapper professorMapper)
 {
     this.professorService = professorService;
     this.professorMapper  = professorMapper;
 }