Exemplo n.º 1
0
 public UserController(IEmployeeDataService employeeDataService, ITeamDataService teamDataService)
 {
     this.employeeDataService = employeeDataService;
     this.teamDataService = teamDataService;
     roleManager = Startup.RoleManagerFactory();
     userManager = Startup.UserManagerFactory();
 }
Exemplo n.º 2
0
        public EmployeeProjectsViewModel(IEmployeeDataService dataService)
        {
            if (dataService == null) throw new ArgumentNullException("dataService");

            // Initialize a CollectionView for the project list.
            this.Projects = new PagedCollectionView(dataService.GetProjects());
        }
Exemplo n.º 3
0
        public MainRegionController(IUnityContainer container,
                                    IRegionManager regionManager,
                                    IEventAggregator eventAggregator,
                                    IEmployeeDataService dataService)
        {
            if (container == null)
            {
                throw new ArgumentNullException("container");
            }
            if (regionManager == null)
            {
                throw new ArgumentNullException("regionManager");
            }
            if (eventAggregator == null)
            {
                throw new ArgumentNullException("eventAggregator");
            }
            if (dataService == null)
            {
                throw new ArgumentNullException("dataService");
            }

            this.container       = container;
            this.regionManager   = regionManager;
            this.eventAggregator = eventAggregator;
            this.dataService     = dataService;

            // Subscribe to the EmployeeSelectedEvent event.
            // This event is fired whenever the user selects an
            // employee in the EmployeeListView.
            this.eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true);
        }
Exemplo n.º 4
0
 public EmployeeDetailsViewModel(
     IEmployeeDataService dataService,
     IEventAggregator eventAggregator)
 {
     _dataService = dataService;
     Employees    = dataService.GetEmployees();
     eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true);
 }
Exemplo n.º 5
0
 public JobTitleService(IJobTitleDataService jobTitleDataService,
                        IEmployeeDataService employeeDataService,
                        UserManager <Employee> userManager)
 {
     this.jobTitleDataService = jobTitleDataService;
     this.employeeDataService = employeeDataService;
     this.userManager         = userManager;
 }
        public EmployeeProjectsViewModel(IEmployeeDataService dataService)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException(nameof(dataService));
            }

            Projects = new ListCollectionView(dataService.GetProjects());
        }
 public InputBarViewModel(IEmployeeDataService employeeDataService, IEventAggregator eventAggregator)
 {
     Employees = new ObservableCollection <Employee>();
     this.employeeDataService = employeeDataService;
     this.eventAggregator     = eventAggregator;
     SearchCommand            = new DelegateCommand(OnSearchExecute, OnSearchCanExecute);
     FromDate = DateTime.Now;
     TillDate = DateTime.Now;
 }
        public EmployeeProjectsViewModel(IEmployeeDataService dataService)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException("dataService");
            }

            // Initialize a CollectionView for the project list.
            this.Projects = new ListCollectionView(dataService.GetProjects());
        }
Exemplo n.º 9
0
 public LoggedHomeController(UserManager <Employee> userManager,
                             IEmployeeDataService employeeService,
                             ICompanyDataService companyService,
                             RoleManager <IdentityRole> roleManager)
 {
     this.userManager     = userManager;
     this.employeeService = employeeService;
     this.companyService  = companyService;
     this.roleManager     = roleManager;
 }
Exemplo n.º 10
0
        public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException(nameof(dataService));
            }
            _eventAggregator = eventAggregator ?? throw new ArgumentNullException(nameof(eventAggregator));

            Employees = new ListCollectionView(dataService.GetEmployees());
            Employees.CurrentChanged += new EventHandler(SelectedEmployeeChanged);
        }
Exemplo n.º 11
0
 public EmployeeProjectsViewModel(
     IEmployeeDataService dataService,
     IEventAggregator eventAggregator)
 {
     if (dataService == null)
     {
         throw new ArgumentNullException("dataService");
     }
     _dataService = dataService;
     eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true);
 }
Exemplo n.º 12
0
 public ProjectController(IProjectDataService projectDataService,
                          UserManager <Employee> userManager,
                          IEmployeeDataService employeeDataService,
                          IJobTitleDataService jobTitleDataService,
                          IDepatmentDataService depatmentDataService)
 {
     this.projectDataService   = projectDataService;
     this.userManager          = userManager;
     this.employeeDataService  = employeeDataService;
     this.jobTitleDataService  = jobTitleDataService;
     this.depatmentDataService = depatmentDataService;
 }
        public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator)
        {
            if (dataService == null) throw new ArgumentNullException("dataService");
            if (eventAggregator == null) throw new ArgumentNullException("eventAggregator");

            this.eventAggregator = eventAggregator;

            // Initialize the CollectionView for the underlying model
            // and track the current selection.
            this.Employees = new ListCollectionView(dataService.GetEmployees());
            this.Employees.CurrentChanged += new EventHandler(this.SelectedEmployeeChanged);
        }
Exemplo n.º 14
0
        public MainRegionController(
            IUnityContainer container,
            IRegionManager regionManager,
            IEventAggregator eventAggregator,
            IEmployeeDataService dataService)
        {
            _container       = container ?? throw new ArgumentNullException(nameof(container));
            _regionManager   = regionManager ?? throw new ArgumentNullException(nameof(regionManager));
            _eventAggregator = eventAggregator ?? throw new ArgumentNullException(nameof(eventAggregator));
            _dataService     = dataService ?? throw new ArgumentNullException(nameof(dataService));

            _eventAggregator.GetEvent <EmployeeSelectedEvent>().Subscribe(EmployeeSelected, true);
        }
Exemplo n.º 15
0
        public EmployeeDetailViewModel(IEventAggregator eventAggregator, IDepartmentLookupDataService employeeTypeLookupDataService, IEmployeeDataService employeeDS, IMessageDialogService messageDialogService) : base(eventAggregator)
        {
            Title       = "Employees";
            _employeeDS = employeeDS;
            _employeeTypeLookupDataService = employeeTypeLookupDataService;

            Employees   = new ObservableCollection <EmployeesWrapper>();
            Departments = new ObservableCollection <LookupItem>();

            FilterCommand   = new DelegateCommand(OnFilterExecuteAsync);
            _searchEmployee = new Employee();

            MessageDialogService = messageDialogService;
        }
Exemplo n.º 16
0
        public EmployeeListViewModel(
            IEmployeeDataService dataService,
            IEventAggregator eventAggregator)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException("dataService");
            }
            if (eventAggregator == null)
            {
                throw new ArgumentNullException("eventAggregator");
            }

            this._eventAggregator = eventAggregator;
            this.Employees        = dataService.GetEmployees();
        }
Exemplo n.º 17
0
 public ManagementController(ITownDataService townDataService,
                             MDManagementDbContext data,
                             IEmployeeService employeeService,
                             IEmployeeDataService employeeDataService,
                             ICompanyDataService comapnyService,
                             UserManager <Employee> userManager,
                             IJobTitleService jobTitleService,
                             IJobTitleDataService jobTitleDataService,
                             RoleManager <IdentityRole> roleManager,
                             IDepatmentDataService depatmentDataService,
                             IAddressDataService addressDataService)
 {
     this.employeeService     = employeeService;
     this.employeeDataService = employeeDataService;
     this.comapnyService      = comapnyService;
     this.userManager         = userManager;
     this.jobTitleService     = jobTitleService;
 }
Exemplo n.º 18
0
        public EmployeeListViewModel(IEmployeeDataService dataService, IEventAggregator eventAggregator)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException("dataService");
            }
            if (eventAggregator == null)
            {
                throw new ArgumentNullException("eventAggregator");
            }

            this.eventAggregator = eventAggregator;

            // Initialize the CollectionView for the underlying model
            // and track the current selection.
            this.Employees = new ListCollectionView(dataService.GetEmployees());
            this.Employees.CurrentChanged += new EventHandler(this.SelectedEmployeeChanged);
        }
        public MainRegionController(IUnityContainer container,
                                    IRegionManager regionManager,
                                    IEventAggregator eventAggregator,
                                    IEmployeeDataService dataService)
        {
            if (container == null) throw new ArgumentNullException("container");
            if (regionManager == null) throw new ArgumentNullException("regionManager");
            if (eventAggregator == null) throw new ArgumentNullException("eventAggregator");
            if (dataService == null) throw new ArgumentNullException("dataService");

            this.container = container;
            this.regionManager = regionManager;
            this.eventAggregator = eventAggregator;
            this.dataService = dataService;

            // Subscribe to the EmployeeSelectedEvent event.
            // This event is fired whenever the user selects an
            // employee in the EmployeeListView.
            this.eventAggregator.GetEvent<EmployeeSelectedEvent>().Subscribe(this.EmployeeSelected, true);
        }
Exemplo n.º 20
0
 public EmployeeService(IEmployeeDataService employeeDataService,
                        IJobTitleService jobTitleService,
                        IJobTitleDataService jobTitleDataService,
                        IDepatmentDataService depatmentDataService,
                        ITownDataService townDataService,
                        IAddressDataService addressDataService,
                        MDManagementDbContext data,
                        RoleManager <IdentityRole> roleManager,
                        UserManager <Employee> userManager)
 {
     this.employeeDataService  = employeeDataService;
     this.jobTitleService      = jobTitleService;
     this.jobTitleDataService  = jobTitleDataService;
     this.depatmentDataService = depatmentDataService;
     this.townDataService      = townDataService;
     this.addressDataService   = addressDataService;
     this.data        = data;
     this.roleManager = roleManager;
     this.userManager = userManager;
 }
 public EmployeeController(IEmployeeDataService DataService)
 {
     _DataService = DataService;
 }
Exemplo n.º 22
0
 public EmployeeController(IEmployeeSalaryService employeeSalaryService, IEmployeeDataService employeeDataService)
 {
     _employeeSalaryService = employeeSalaryService;
     _employeeDataService   = employeeDataService;
 }
Exemplo n.º 23
0
 protected EmployeeDataServiceBaseIntegrationTests(IEmployeeDataService employeeDataService) : base(employeeDataService, x => x.Id)
 {
 }
Exemplo n.º 24
0
 public EmployeeDomainService(IEmployeeDataService employeeDataService) : base(employeeDataService)
 {
     _employeeDataService = employeeDataService;
 }
Exemplo n.º 25
0
 public IndexViewModel(IEmployeeDataService employeeDataService)
 {
     EmployeeDataService = employeeDataService;
 }
Exemplo n.º 26
0
 public ManagerApprovalService(IEmployeeDataService employeeDataService)
 {
     _employeeDataService = employeeDataService;
 }
 public EmployeeBusinessService(IEmployeeDataService employeeDataService)
 {
     _employeeDataService = employeeDataService;
 }
 public ExpenseApprovalService(IEmployeeDataService employeeService)
 {
     _employeeService = employeeService ?? throw new System.ArgumentNullException(nameof(employeeService));
 }
Exemplo n.º 29
0
 public EmployeeListingViewModel(IEmployeeDataService employeeDataService)
 {
     EmployeeDataService = employeeDataService;
 }
Exemplo n.º 30
0
 public ExpenseApprovalService(IEmployeeDataService employeeService)
 {
     _employeeService = employeeService;
 }
Exemplo n.º 31
0
 public SearchResultViewModel(IMvxMessenger messenger, IEmployeeDataService employeeDataService) : base(messenger)
 {
     _employeeDataService = employeeDataService;
 }
 public EmployeeController(IEmployeeDataService employeeDataService, ITeamDataService teamDataService)
 {
     this.employeeDataService = employeeDataService;
     this.teamDataService = teamDataService;
 }
Exemplo n.º 33
0
 public EmployeeDetailViewModel(IMvxMessenger messenger,
                                IEmployeeDataService employeeDataService) : base(messenger)
 {
     _employeeDataService = employeeDataService;
 }
Exemplo n.º 34
0
 public EmployeesController(IEmployeeDataService _empDs)
 {
     this.employeeDS = _empDs;
 }
Exemplo n.º 35
0
 public EmployeeController()
 {
     _dataService = new EmployeeDataService();
 }