Exemplo n.º 1
0
        public ItemEditPageViewModel(IInventoryApiService inventoryApiService,
                                     IEmployeeApiService employeeApiService,
                                     IAlpNavigationService navigationService,
                                     IAlpDialogService dialogService,
                                     IAlpLoggingService <ItemEditPageViewModel> loggingService,
                                     ILookupApiService <ItemNatureDto> itemNatureApiService,
                                     ILookupApiService <ItemTypeDto> itemTypeApiService,
                                     ILookupApiService <ItemStateDto> itemStateApiService,
                                     ILookupApiService <BuildingDto> buildingApiService,
                                     ILookupApiService <FloorDto> floorApiService,
                                     ILookupApiService <DepartmentDto> departmentApiService,
                                     ILookupApiService <SectionDto> sectionApiService)
        {
            _inventoryApiService  = inventoryApiService;
            _employeeApiService   = employeeApiService;
            _navigationService    = navigationService;
            _itemNatureApiService = itemNatureApiService;
            _itemTypeApiService   = itemTypeApiService;
            _itemStateApiService  = itemStateApiService;
            _buildingApiService   = buildingApiService;
            _floorApiService      = floorApiService;
            _departmentApiService = departmentApiService;
            _sectionApiService    = sectionApiService;
            _loggingService       = loggingService;
            _dialogService        = dialogService;

            SaveCommand   = new RelayCommand(OnSaveCommand);
            CancelCommand = new RelayCommand(OnCancelCommand);

            Item = new ItemDto();

            Initialization = InitializeAsync();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection and Initialization
        /// </summary>
        /// <param name="employeeApiService"></param>
        public LookupDepartmentEditorWindowViewModel(IEmployeeApiService employeeApiService, IAlpLoggingService <LookupDepartmentEditorWindowViewModel> loggingService, IAlpDialogService dialogService)
        {
            _employeeApiService = employeeApiService;
            _loggingService     = loggingService;
            _dialogService      = dialogService;

            Initialization = InitializeAsync();
        }
Exemplo n.º 3
0
        public EmployeeSearchPageViewModel(IEmployeeApiService employeeApiService, IAlpNavigationService navigationService, ILookupApiService <DepartmentDto> departmentApiService, ILookupApiService <SectionDto> sectionApiService, IAlpDialogService dialogService, IAlpLoggingService <EmployeeSearchPageViewModel> loggingService)
        {
            _employeeApiService   = employeeApiService;
            _navigationService    = navigationService;
            _departmentApiService = departmentApiService;
            _sectionApiService    = sectionApiService;
            _dialogService        = dialogService;
            _loggingService       = loggingService;

            SearchCommand              = new RelayCommand(OnSearchCommand);
            NewEmployeeCommand         = new RelayCommand(OnNewEmployeeCommand);
            ListItemDoubleClickCommand = new RelayCommand(OnListItemDoubleClickCommand);

            Initialization = InitializeAsync();
        }
Exemplo n.º 4
0
        public InventoryOperationWindowViewModel(IOperationService operationApiService, IAlpLoggingService <InventoryOperationWindowViewModel> loggingService, IAlpDialogService dialogService, IEmployeeApiService employeeApiService, ILookupApiService <DepartmentDto> departmentApiService)
        {
            _operationApiService  = operationApiService;
            _loggingService       = loggingService;
            _dialogService        = dialogService;
            _employeeApiService   = employeeApiService;
            _departmentApiService = departmentApiService;

            ScrapCommand                        = new RelayCommand <Window>(OnScrapCommand);
            ChangeDepartmentCommand             = new RelayCommand <Window>(OnChangeDepartmentCommand);
            ChangeOwnerCommand                  = new RelayCommand <Window>(OnChangeOwnerCommand);
            ChangeOwnerToDepartmentChiefCommand = new RelayCommand <Window>(OnChangeOwnerToDepartmentChiefCommand);

            Initialization = InitializeAsync();
        }
Exemplo n.º 5
0
        public EmployeeEditPageViewModel(ILookupApiService <DepartmentDto> departmentApiService, ILookupApiService <SectionDto> sectionApiService, IAlpNavigationService navigationService, IEmployeeApiService employeeApiService, IAlpLoggingService <EmployeeEditPageViewModel> loggingService, IAlpDialogService dialogService, IInventoryApiService inventoryApiService)
        {
            Employee = new EmployeeListItemViewModel(new EmployeeDto());

            _departmentApiService = departmentApiService;
            _sectionApiService    = sectionApiService;
            _navigationService    = navigationService;
            _employeeApiService   = employeeApiService;
            _loggingService       = loggingService;
            _dialogService        = dialogService;
            _inventoryApiService  = inventoryApiService;

            SaveCommand          = new RelayCommand(OnSaveCommand);
            CancelCommand        = new RelayCommand(OnCancelCommand);
            ListItemsCommand     = new RelayCommand(OnListItemsCommand);
            RetireCommand        = new RelayCommand(OnRetireCommand);
            CreateAccountCommand = new RelayCommand(OnCreateAccountCommand);

            Initialization = InitializeAsync();
        }
 public EmployeeController(IEmployeeApiService employeeApiService, ILogger <EmployeeController> logger)
 {
     this.employeeApiService = employeeApiService;
     this.logger             = logger;
 }
Exemplo n.º 7
0
 public EmployeeController(IEmployeeApiService employeeApiService)
 {
     _employeeApiService = employeeApiService;
 }