Esempio 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();
        }
Esempio n. 2
0
        public NewEmployeeRegisterWindowViewModel(IAccountApiService accountApiService, IAlpDialogService dialogService)
        {
            _accountApiService = accountApiService;
            _dialogService     = dialogService;

            CancelCommand = new RelayCommand <Window>(OnCancelCommand);
        }
Esempio n. 3
0
        public PasswordChangeWindowViewModel(IAccountApiService accountApiService, IAlpDialogService dialogService)
        {
            _accountApiService = accountApiService;
            _dialogService     = dialogService;

            CancelCommand = new RelayCommand <Window>(OnCancelCommand);
        }
Esempio n. 4
0
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection and Initialization
        /// </summary>
        /// <param name="locationApiService"></param>
        public LookupItemTypeEditorWindowViewModel(ILookupApiService <ItemNatureDto> itemNatureApiService, IAlpDialogService dialogService, IAlpLoggingService <LookupItemTypeEditorWindowViewModel> loggingService)
        {
            _itemNatureApiService = itemNatureApiService;
            _dialogService        = dialogService;
            _loggingService       = loggingService;

            Initialization = InitializeAsync();
        }
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection and Initialization
        /// </summary>
        /// <param name="locationApiService"></param>
        public LookupBuildingEditorWindowViewModel(ILookupApiService <LocationDto> locationApiService, IAlpDialogService dialogService, IAlpLoggingService <LookupBuildingEditorWindowViewModel> loggingService)
        {
            _locationApiService = locationApiService;
            _dialogService      = dialogService;
            _loggingService     = loggingService;

            Initialization = InitializeAsync();
        }
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection and Initialization
        /// </summary>
        /// <param name="locationApiService"></param>
        public LookupFloorEditorWindowViewModel(ILookupApiService <BuildingDto> buildingApiService, IAlpDialogService dialogService, IAlpLoggingService <LookupFloorEditorWindowViewModel> loggingService)
        {
            _buildingApiService = buildingApiService;
            _dialogService      = dialogService;
            _loggingService     = loggingService;

            Initialization = InitializeAsync();
        }
Esempio n. 7
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();
        }
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection and Initialization
        /// </summary>
        /// <param name="floorApiService"></param>
        /// <param name="departmentApiService"></param>
        public LookupSectionEditorWindowViewModel(ILookupApiService <FloorDto> floorApiService, ILookupApiService <DepartmentDto> departmentApiService, IAlpDialogService dialogService, IAlpLoggingService <LookupSectionEditorWindowViewModel> loggingService)
        {
            _floorApiService      = floorApiService;
            _departmentApiService = departmentApiService;
            _dialogService        = dialogService;
            _loggingService       = loggingService;

            Initialization = InitializeAsync();
        }
Esempio n. 9
0
        /// <summary>
        /// Constructor
        /// Handles Dependency Injection
        /// Sets commands
        /// Initializes data
        /// </summary>
        public LookupListViewModel(ILookupApiService <T> lookupApiService, IAlpDialogService dialogService, IAlpLoggingService <LookupListViewModel <T> > loggingService)
        {
            _lookupApiService = lookupApiService;
            _dialogService    = dialogService;
            _loggingService   = loggingService;

            NewCommand = new RelayCommand(OnNewCommand);
            ListItemDoubleClickCommand = new RelayCommand(OnListItemDoubleClickCommand);
            LockCommand    = new RelayCommand(OnLockCommand);
            Initialization = InitializeAsync();
        }
Esempio n. 10
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();
        }
Esempio n. 11
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();
        }
Esempio n. 12
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();
        }
Esempio n. 13
0
        public InventoryFilterWindowViewModel(ILookupApiService <BuildingDto> buildingApiService,
                                              ILookupApiService <DepartmentDto> departmentApiService, ILookupApiService <FloorDto> floorApiService,
                                              ILookupApiService <ItemNatureDto> itemNatureApiService, ILookupApiService <ItemStateDto> itemStateApiService,
                                              ILookupApiService <ItemTypeDto> itemTypeApiService, ILookupApiService <LocationDto> locationApiService,
                                              ILookupApiService <SectionDto> sectionApiService, IAlpLoggingService <InventoryFilterWindowViewModel> loggingService,
                                              IAlpDialogService dialogService)
        {
            _buildingApiService   = buildingApiService;
            _departmentApiService = departmentApiService;
            _floorApiService      = floorApiService;
            _itemNatureApiService = itemNatureApiService;
            _itemStateApiService  = itemStateApiService;
            _itemTypeApiService   = itemTypeApiService;
            _locationApiService   = locationApiService;
            _sectionApiService    = sectionApiService;
            _dialogService        = dialogService;
            _loggingService       = loggingService;

            ApplyCommand  = new RelayCommand <Window>(OnApplyCommand);
            CancelCommand = new RelayCommand <Window>(OnCancelCommand);
            SelectedBuildingDoubleClickCommand      = new RelayCommand(OnSelectedBuildingDoubleClickCommand);
            NotSelectedBuildingDoubleClickCommand   = new RelayCommand(OnNotSelectedBuildingDoubleClickCommand);
            SelectedDepartmentDoubleClickCommand    = new RelayCommand(OnSelectedDepartmentDoubleClickCommand);
            NotSelectedDepartmentDoubleClickCommand = new RelayCommand(OnNotSelectedDepartmentDoubleClickCommand);
            SelectedFloorDoubleClickCommand         = new RelayCommand(OnSelectedFloorDoubleClickCommand);
            NotSelectedFloorDoubleClickCommand      = new RelayCommand(OnNotSelectedFloorDoubleClickCommand);
            SelectedItemNatureDoubleClickCommand    = new RelayCommand(OnSelectedItemNatureDoubleClickCommand);
            NotSelectedItemNatureDoubleClickCommand = new RelayCommand(OnNotSelectedItemNatureDoubleClickCommand);
            SelectedItemStateDoubleClickCommand     = new RelayCommand(OnSelectedItemStateDoubleClickCommand);
            NotSelectedItemStateDoubleClickCommand  = new RelayCommand(OnNotSelectedItemStateDoubleClickCommand);
            SelectedItemTypeDoubleClickCommand      = new RelayCommand(OnSelectedItemTypeDoubleClickCommand);
            NotSelectedItemTypeDoubleClickCommand   = new RelayCommand(OnNotSelectedItemTypeDoubleClickCommand);
            SelectedLocationDoubleClickCommand      = new RelayCommand(OnSelectedLocationDoubleClickCommand);
            NotSelectedLocationDoubleClickCommand   = new RelayCommand(OnNotSelectedLocationDoubleClickCommand);
            SelectedSectionDoubleClickCommand       = new RelayCommand(OnSelectedSectionDoubleClickCommand);
            NotSelectedSectionDoubleClickCommand    = new RelayCommand(OnNotSelectedSectionDoubleClickCommand);

            //Initialization = InitializeAsync();
        }