public ManagerController(IUserService userService, IManagerService managerService, IDepartmantService departmantService, IPersonalService personalService)
 {
     _userService       = userService;
     _managerService    = managerService;
     _departmantService = departmantService;
     _personalService   = personalService;
 }
Beispiel #2
0
 public OperationsUI()
 {
     InitializeComponent();
     //_productManager = new ProductManager();
     _workerManager      = new WorkerManager();
     _titleManager       = new TitleManager();
     _departmantsManager = new DepartmantManager();
 }
Beispiel #3
0
 public JobAdvertisementService(IJobAdvertisementRepository jobAdvertisementRepository, ICityService cityService, IEducationLevelService educationLevelService, IDepartmantService departmantService, IWorkTypeService workTypeService, IPositionService positionService, ICompanyDetailService companyDetailService, ISectorService sectorService, IUserService userService, IAdvertisementApplyRepository advertisementApplyRepository, IAdvertisementViewCountRepository advertisementViewCountRepository, INationalityService nationalityService, IDrivingLicenseService drivingLicenseService, IUserDetailService userDetailService)
 {
     _jobAdvertisementRepository = jobAdvertisementRepository;
     _cityService                      = cityService;
     _educationLevelService            = educationLevelService;
     _departmantService                = departmantService;
     _workTypeService                  = workTypeService;
     _positionService                  = positionService;
     _companyDetailService             = companyDetailService;
     _sectorService                    = sectorService;
     _nationalityService               = nationalityService;
     _drivingLicenseService            = drivingLicenseService;
     _userService                      = userService;
     _advertisementApplyRepository     = advertisementApplyRepository;
     _advertisementViewCountRepository = advertisementViewCountRepository;
     _userDetailService                = userDetailService;
 }
Beispiel #4
0
        public List <SelectListItem> GetDepartmantItems(Personal personal, IDepartmantService departmantService)
        {
            var departmantItems = new List <SelectListItem>();
            var departmants     = departmantService.GetAll();

            foreach (var departmant in departmants)
            {
                departmantItems.Add(departmant.Id == personal.DepartmantId
                    ? new SelectListItem {
                    Text = departmant.Name, Value = departmant.Id.ToString(), Selected = true
                }
                    : new SelectListItem {
                    Text = departmant.Name, Value = departmant.Id.ToString()
                });
            }

            return(departmantItems);
        }
 public DepartmansController(IDepartmantService departmantService, IPersonalService personalService)
 {
     _departmantService = departmantService;
     _personalService   = personalService;
 }