public ContractViewModel( IScreen screen, IFilterViewModelFactory filterViewModelFactory) { _filterViewModelFactory = filterViewModelFactory; HostScreen = screen; }
public PlanReceiptOrderViewModelInterceptor( IMessageBus messageBus, IFilterViewModelFactory filterViewModelFactory) { _messageBus = messageBus; _filerObject = filterViewModelFactory.Create <PlanReceiptOrderFilter, PlanReceiptOrderLiteDto>(); }
public EditablePersonalAccountViewModel( IScreen screen, IMessageBus messageBus, IUnitOfWorkFactory unitOfWork, IFilterViewModelFactory filterViewModelFactory, IRoutableViewModelManager routableViewModelManager, IValidatorFactory validatorFactory) : base(screen, messageBus, validatorFactory) { _filterViewModelFactory = filterViewModelFactory; _unitOfWorkFactory = unitOfWork; PersonalAccountFilterViewModel = _filterViewModelFactory.Create <PersonalAccountFilter, PersonalAccountDto>(); ContractViewModel = routableViewModelManager.Get <IContractViewModel>(); this.WhenAny(x => x.UserContractor, x => x.Value) .Where(x => x != null) .Subscribe(x => { ContractViewModel.ContractFilterViewModel.SetFilter(new ContractFilter { Contaractor = x, State = ContractStatusState.Approved }); ContractViewModel.StagesOfTheContractFilterViewModel.SetFilter(new StagesOfTheContractFilter { State = StageStatusState.Open }); ContractViewModel.ContractFilterViewModel.InvokeCommand.Execute(null); }); }
public FilterPaneViewModel( IQueryBus queryBus, IFilterViewModelFactory factory) { _queryBus = queryBus; _factory = factory; }
private User GetUser(IFilterViewModelFactory filterFactory) { var filterPC = filterFactory.Create <UserFilter, UserDto>(); filterPC.Wait(); return(filterPC.Result.First().MapTo <User>()); }
private PlanReceiptOrder GetPlanReceiptOrder(IFilterViewModelFactory filterFactory) { var filterPC = filterFactory.Create <PlanReceiptOrderFilter, PlanReceiptOrderDto>(); filterPC.Wait(); return(filterPC.Result.First().MapTo <PlanReceiptOrder>()); }
private CertificateQuality GetCertificateQuality(IFilterViewModelFactory filterFactory) { var filterPC = filterFactory.Create <CertificateQualityFilter, CertificateQualityDto>(); filterPC.Wait(); return(filterPC.Result.First().MapTo <CertificateQuality>()); }
public PlanCertificateViewModelInterceptor( IMessageBus messageBus, IFilterViewModelFactory filterViewModelFactory) { _messageBus = messageBus; _filerObject = filterViewModelFactory .Create <PlanReceiptOrderPersonalAccountFilter, PersonalAccountOfPlanReceiptOrderLiteDto>(); _filterCertificate = filterViewModelFactory.Create <PlanCertificateFilter, PlanCertificateLiteDto>(); }
public EditablePassViewModel( IScreen screen, IFilterViewModelFactory filterViewModelFactory, IMessageBus messageBus, IValidatorFactory validatorFactory) : base(screen, messageBus, validatorFactory) { DictionaryPassFilterViewModel = filterViewModelFactory.Create <DictionaryPassFilter, DictionaryPassLiteDto>(); DictionaryPassFilterViewModel.InvokeCommand.Execute(null); }
public EditableActSelectionOfProbeViewViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IValidatorFactory validatorFactory, IMessageBus messageBus, IFilterViewModelFactory filterViewModelFactory) : base(screen, messageBus, validatorFactory) { _unitOfWorkFactory = unitOfWorkFactory; }
public ChangeGroupStateViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory, IMessenger messenger) { this.HostScreen = screen; this._unitOfWorkFactory = unitOfWorkFactory; this.messenger = messenger; this.FilteringObject = filterViewModelFactory.Create <PersonalAccountFilter, PersonalAccountDto>(); }
public FilterController( IFilterService filterService, IDashboardService dashboardService, IFilterViewModelFactory filterViewModelFactory, IUserService userService) { this.filterService = filterService ?? throw new ArgumentNullException(nameof(filterService)); this.dashboardService = dashboardService ?? throw new ArgumentNullException(nameof(dashboardService)); this.filterViewModelFactory = filterViewModelFactory ?? throw new ArgumentNullException(nameof(filterViewModelFactory)); this.userService = userService ?? throw new ArgumentNullException(nameof(userService)); }
public DummyViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IPrintManager printManager, IFilterViewModelFactory filterViewModelFactory) { HostScreen = screen; _unitOfWorkFactory = unitOfWorkFactory; _printManager = printManager; _filterViewModelFactory = filterViewModelFactory; }
public ActSelectionOfProbeViewModelInterceptor( IMessageBus messageBus, IFilterViewModelFactory filterViewModelFactory) { _messageBus = messageBus; _filerObject = filterViewModelFactory .Create <ActSelectionOfProbeFilter, ActSelectionOfProbeLiteDto>(); _filterActSelectionOfProbeDepartment = filterViewModelFactory.Create <ActSelectionOfProbeDepartmentFilter, ActSelectionOfProbeDepartmentLiteDto>(); _filterActSelectionOfProbeDepartmentRequirement = filterViewModelFactory.Create <ActSelectionOfProbeDepartmentRequirementFilter, ActSelectionOfProbeDepartmentRequirementLiteDto>(); }
public EditableChemicalViewModel(IScreen screen, IFilterViewModelFactory filterViewModelFactory) : base(screen) { var loader = filterViewModelFactory.Create <ChemicalIndicatorValueFilter, ChemicalIndicatorValueDto>(); loader.WhenAny(x => x.IsBusy, x => x.Value).Subscribe(isBusy => IsLoad = isBusy); loader.WhenAny(x => x.Result, x => x.Value) .Subscribe(res => ChemicalIndicatorValues = res); loader.InvokeCommand.Execute(null); }
public CuttingOrderSpecificationViewModel( IScreen screen, IMessenger messenger, IFilterViewModelFactory filterViewModelFactory, IUnitOfWorkFactory unitOfWorkFactory) { HostScreen = screen; _filterViewModelFactory = filterViewModelFactory; _unitOfWorkFactory = unitOfWorkFactory; CuttingOrderSpecificationFilterViewModel.InvokeCommand.Execute(null); }
public SampleCertificationViewModel( IScreen screen, IMessenger messenger, IFilterViewModelFactory filterViewModelFactory, IUnitOfWorkFactory unitOfWorkFactory) { HostScreen = screen; _filterViewModelFactory = filterViewModelFactory; this._unitOfWorkFactory = unitOfWorkFactory; SampleCertificationFilterViewModel.InvokeCommand.Execute(null); }
public SampleViewModel( IScreen screen, IMessenger messenger, IRoutableViewModelManager routableViewModelManager, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory) { HostScreen = screen; this.routableViewModelManager = routableViewModelManager; _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; }
public EditablePermissionMaterialExtensionViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory, IRoutableViewModelManager routableViewModelManager, IMessageBus messageBus, IValidatorFactory validatorFactory) : base(screen, messageBus) { _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; }
public EditablePermissionMaterialViewModel( IFilterViewModelFactory filterViewModelFactory, IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IValidatorFactory validatorFactory, IMessageBus messageBus, IGetCatalogAccess getCatalogAccess) : base(screen, messageBus, validatorFactory) { _filterViewModelFactory = filterViewModelFactory; _unitOfWorkFactory = unitOfWorkFactory; }
public PrintTheDemandViewModel( IFilterViewModelFactory filterViewModelFactory, IRoutableViewModelManager routableViewModelManager, IPrintManager printManager, IMessageBus messageBus) { messageBus.Listen <WarehouseQualityCertificateLiteDto>() .Subscribe(selectedCertificate => SelectedWarehouseQualityCertificate = selectedCertificate); _filterViewModelFactory = filterViewModelFactory; _routableViewModelManager = routableViewModelManager; _printManager = printManager; }
public PlanCertificateViewModel( IScreen screen, IRoutableViewModelManager routableViewModelManager, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory, IInitializationManager initializationManager) { HostScreen = screen; _routableViewModelManager = routableViewModelManager; _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; _initializationManager = initializationManager; }
public TestSheetsViewModel( IScreen screen, IMessenger messenger, IRoutableViewModelManager viewModelManager, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory) { HostScreen = screen; _messenger = messenger; _viewModelManager = viewModelManager; _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; }
private IEditablePlanCertificateViewModel CreateViewModel( IFilterViewModelFactory filterViewModelFactory = null, IValidatorFactory validatorFactory = null) { return(new EditablePlanCertificateViewModel( new FakeScreen(), new FakeUnitOfWorkFactory(), MockRepository.GenerateMock <IRoutableViewModelManager>(), filterViewModelFactory ?? MockRepository.GenerateMock <IFilterViewModelFactory>(), validatorFactory ?? MockRepository.GenerateMock <IValidatorFactory>(), MockRepository.GenerateMock <IMessageBus>(), MockRepository.GenerateMock <IInitializationManager>())); }
public CertificationViewModel( IScreen screen, IMessenger messenger, IRoutableViewModelManager routableViewModelManager, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory) { HostScreen = screen; this.routableViewModelManager = routableViewModelManager; _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; CertificationFilterViewModel.InvokeCommand.Execute(null); }
public EditablePlanReceiptOrderViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory, IMessageBus messageBus, IValidatorFactory validatorFactory) : base(screen, messageBus, validatorFactory) { _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; GroundDocTypeOfDocumentFilterViewModel.InvokeCommand.Execute(null); GroundReceiptTypeOfDocumentFilterViewModel.InvokeCommand.Execute(null); GasStationOilDepotFilterViewModel.InvokeCommand.Execute(null); }
public EditableTestSheetViewModel( IRoutableViewModelManager viewModelManager, IFilterViewModelFactory filterViewModelFactory, IMessenger messenger, IScreen screen, IUnitOfWorkFactory unitOfWork) : base(screen) { _filterViewModelFactory = filterViewModelFactory; _messenger = messenger; _viewModelManager = viewModelManager; _unitOfWorkFactory = unitOfWork; _isVisibleHeatTreatments = false; }
public EditDepartmentOrderViewModel( IScreen screen, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory, IRoutableViewModelManager routableViewModelManager, IValidatorFactory validatorFactory = null, IMessageBus messageBus = null) : base(screen, messageBus, validatorFactory) { _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; _routableViewModelManager = routableViewModelManager; NavigateBack().ToList(); }
public CuttingOrderMoveViewModel( IScreen screen, IMessenger messenger, IRoutableViewModelManager routableViewModelManager, IUnitOfWorkFactory unitOfWorkFactory, IFilterViewModelFactory filterViewModelFactory) { HostScreen = screen; _disposable = new List <IDisposable>(); this._routableViewModelManager = routableViewModelManager; _unitOfWorkFactory = unitOfWorkFactory; _filterViewModelFactory = filterViewModelFactory; CuttingOrderMoveFilterViewModel.InvokeCommand.Execute(null); }
public ManufacturersCertificateViewModel( IScreen screen, IFilterViewModelFactory filterViewModelFactory, IUnitOfWorkFactory unitOfWorkFactory, IRoutableViewModelManager routableViewModelManager, IMessageBus messenger ) { _messageBus = messenger; _filterViewModelFactory = filterViewModelFactory; _routableViewModelManager = routableViewModelManager; _unitOfWorkFactory = unitOfWorkFactory; HostScreen = screen; Binding().ToList(); }