protected AbstractAimDetailController(
     ILearningAimsApiService learningAimsApiService,
     ILookupApiService lookupApiService)
 {
     _learningAimsApiService = learningAimsApiService;
     _lookupApiService       = lookupApiService;
 }
Пример #2
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();
        }
        /// <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();
        }
Пример #4
0
 public UnitDetailController(
     IUnitsApiService unitsApiService,
     ILookupApiService lookupApiService)
     : base(unitsApiService, lookupApiService)
 {
     FormController     = "UnitDetail";
     CategoryController = "UnitCategory";
 }
Пример #5
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();
        }
Пример #6
0
 public LearningAimDetailController(
     ILearningAimsApiService learningAimsApiService,
     ILookupApiService lookupApiService)
     : base(learningAimsApiService, lookupApiService)
 {
     FormController     = "LearningAimDetail";
     CategoryController = "LearningAimCategory";
 }
        /// <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();
        }
        /// <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();
        }
Пример #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();
        }
 public AbstractResultsController(
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies,
     ILookupApiService lookupApiService,
     string resultsTemplate,
     LearningType searchType)
 {
     _lookupApiService      = lookupApiService;
     _resultsTemplate       = resultsTemplate;
     _searchType            = searchType;
     _resultRouteStrategies = resultRouteStrategies;
 }
Пример #11
0
 public FrameworkSearchResultController(
     IFrameworkApiService frameworkApiService,
     ISearchModelFactory searchModelFactory,
     ILookupApiService lookupApiService,
     IClientValidationService clientValidationService,
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies)
     : base(resultRouteStrategies, lookupApiService, ResultsTemplate, LearningType.Frameworks)
 {
     _frameworkApiService     = frameworkApiService;
     _searchModelFactory      = searchModelFactory;
     _clientValidationService = clientValidationService;
 }
 public StandardsSearchResultController(
     IStandardApiService standardApiService,
     ISearchModelFactory searchModelFactory,
     ILookupApiService lookupApiService,
     IClientValidationService clientValidationService,
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies)
     : base(resultRouteStrategies, lookupApiService, ResultsTemplate, LearningType.Standards)
 {
     _standardApiService      = standardApiService;
     _searchModelFactory      = searchModelFactory;
     _clientValidationService = clientValidationService;
 }
Пример #13
0
 public UnitSearchResultController(
     ISearchModelFactory searchModelFactory,
     IUnitsApiService unitsApiService,
     ILookupApiService lookupApiService,
     IClientValidationService clientValidationService,
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies)
     : base(resultRouteStrategies, lookupApiService, ResultsTemplate, LearningType.Units)
 {
     _searchModelFactory      = searchModelFactory;
     _unitsApiService         = unitsApiService;
     _clientValidationService = clientValidationService;
 }
 public LearningAimSearchResultController(
     ISearchModelFactory searchModelFactory,
     ILearningAimsApiService learningAimsApiService,
     ILookupApiService lookupApiService,
     IClientValidationService clientValidationService,
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies)
     : base(resultRouteStrategies, lookupApiService, ResultsTemplate, LearningType.Qualifications)
 {
     _searchModelFactory      = searchModelFactory;
     _learningAimsApiService  = learningAimsApiService;
     _clientValidationService = clientValidationService;
 }
Пример #15
0
 public TLevelSearchResultController(
     ISearchModelFactory searchModelFactory,
     ILookupApiService lookupApiService,
     ITLevelApiService itLevelsApiService,
     IEnumerable <ISearchResultsRouteStrategy> resultRouteStrategies,
     IClientValidationService clientValidationService)
     : base(resultRouteStrategies, lookupApiService, ResultsTemplate, LearningType.TLevels)
 {
     _tlevelsApiService       = itLevelsApiService;
     _searchModelFactory      = searchModelFactory;
     _clientValidationService = clientValidationService;
 }
Пример #16
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();
        }
Пример #17
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();
        }
Пример #18
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();
        }
Пример #19
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();
        }