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 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();
        }