public JobRoleListForm()
 {
     InitializeComponent();
     _service         = new JobRoleService();
     _planningService = new PlanningService();
     Activated       += new EventHandler(JobRoleListForm_Activated);
 }
Exemple #2
0
        public ProjectForm()
        {
            InitializeComponent();
            _service         = new ProjectService();
            _customerService = new CustomerService();
            _jobRoleService  = new JobRoleService();
            _managerService  = new ManagerService();
            _planningService = new PlanningService();

            defaultManager = new Manager()
            {
                Id       = 1,
                Name     = "Gerente",
                Phone    = "11123456789",
                Email    = "*****@*****.**",
                Password = "******"
            };

            Manager foundManager = _managerService.ReadById(defaultManager.Id);

            if (foundManager == null)
            {
                defaultManager = _managerService.Create(defaultManager);
            }

            Activated += new EventHandler(ProjectForm_Activated);
            numReceita.DecimalPlaces = 2;
            numReceita.Maximum       = 999999;
            numHoras.Minimum         = 1;
            numQuantidade.Minimum    = 1;
        }
        public CompanyDepartmentJobRoleViewModel(ISetupService <CompanyDepartmentJobRole> _service, IEventAggregator _eventAggregator)
            : base(new CompanyDepartmentJobRoleService())
        {
            modelName = "Coy Dept Job Role";
            Initialize();

            eventAggregator                 = _eventAggregator;
            companyService                  = new CompanyService();
            departmentService               = new DepartmentService();
            jobRoleService                  = new JobRoleService();
            companyDepartmentService        = new CompanyDepartmentService();
            companyDepartmentJobRoleService = new CompanyDepartmentJobRoleService();

            //LoadAllCompaniesCompleted();
            //companyService.LoadAll();

            //LoadAllJobRolesCompleted();
            //jobRoleService.LoadAll();

            base.addSelector    = cdjr => cdjr.Company.Id == Model.Company.Id && cdjr.Department.Id == Model.Department.Id && cdjr.JobRole.Id == Model.JobRole.Id;
            base.modifySelector = cdjr => cdjr.Company.Id == Model.Company.Id && cdjr.Department.Id == Model.Department.Id && cdjr.JobRole.Id == Model.JobRole.Id && cdjr.Id != Model.Id;

            //eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise);

            OnInitialise("");
        }
 public CargosMaisUsados()
 {
     InitializeComponent();
     projectService  = new ProjectService();
     planningService = new PlanningService();
     jobRoleService  = new JobRoleService();
     dtpInicio.Value = DateTime.Now.AddMonths(-1);
     dtpFim.Value    = DateTime.Now;
 }
        private void LoadToDataGridView()
        {
            _service = new JobRoleService();
            dgvJobRoles.Rows.Clear();
            IEnumerable <JobRole> jobRoles = _service.ReadAll(true);

            foreach (var jobRole in jobRoles)
            {
                dgvJobRoles.Rows.Add(jobRole.Id, jobRole.Name, jobRole.Level, null, null);
            }
        }
Exemple #6
0
 public DeletedJobRolesList()
 {
     InitializeComponent();
     jobRoleService = new JobRoleService();
 }
Exemple #7
0
 public JobRoleForm()
 {
     InitializeComponent();
     _service = new JobRoleService();
 }