//Constructor public BillingExport(IRecordSearchService recordSearchService) { _rss = recordSearchService; Name = "Research Foundation Billing Export"; Description = "Exports a detailed list of every project to be billed by the Research Foundation. The list will open up in a word document that the user can edit, print, and save."; }
// Constructor public RSEntryViewModel(IEventAggregator eventAggregator, IRegionManager regionManager, IPersonService personService, IClientService clientService, IRecordSearchService recordSearchService, IStaffService staffService, IApplicationCommands applicationCommands) : base(applicationCommands) { _ea = eventAggregator; _rm = regionManager; _rss = recordSearchService; _ps = personService; _cs = clientService; _ss = staffService; PeopleList = personService.CompletePeopleList; ClientList = clientService.CompleteClientList; StaffList = staffService.CompleteStaffList; StaffList.Insert(0, new Staff()); regionManager.RegisterViewWithRegion("RequestorAddress", typeof(AddressEntry)); regionManager.RegisterViewWithRegion("BillingAddress", typeof(AddressEntry)); regionManager.RegisterViewWithRegion("CalculatorRegion", typeof(Calculator)); ChangeFileNumCommand = new DelegateCommand(ChangeFileNum); NavigateCommand = new DelegateCommand <string>(Navigate); GoBackCommand = new DelegateCommand(GoBack); CountySelectPopupCommand = new DelegateCommand(RaiseCountySelectPopup); CopyRequestorCommand = new DelegateCommand <string>(CopyRequestor); CopyClientCommand = new DelegateCommand <string>(CopyAffiliation); ChangeFileNumRequest = new InteractionRequest <IChangeICFileNumberNotification>(); CountySelectRequest = new InteractionRequest <IAdditionalCountyNotification>(); DeleteConfirmationRequest = new InteractionRequest <IConfirmation>(); eventAggregator.GetEvent <AdditionalCountySelectionEvent>().Subscribe(ChangeAdditionalCounties); }
//Constructor public ReportingHomeScreenViewModel(IRecordSearchService recordSearchService, IRegionManager regionManager) { _rss = recordSearchService; _rm = regionManager; ExecuteReportCommand = new DelegateCommand(ExecuteReport); GetReportsFromNamespace(Assembly.GetExecutingAssembly(), "mReporting.Reporting"); }
//Constructor public ChangeICFileNumberDialogViewModel(IRecordSearchService recordSearchService) { _rss = recordSearchService; PrefixChoices = new List <Prefix>(RecordSearchPrefixes.Values); CancelCommand = new DelegateCommand(Cancel); AcceptCommand = new DelegateCommand(Accept, CanAccept); IsDistinctWarningVisible = "Hidden"; Year = DateTime.Today.Year.ToString().ToString().Substring(2, 2); }
// Constructor public CountySelectDialogViewModel(IRecordSearchService recordSearchService) { _rss = recordSearchService; SelectableCounties = from c in Counties.Values where c.ICCurator is "NEIC" select c; CancelCommand = new DelegateCommand(Cancel); AcceptCommand = new DelegateCommand(Accept); }
//Constructor public CalculatorViewModel(IEventAggregator eventAggregator, IRecordSearchService recordSearchService) { _rs = recordSearchService; LoadFeeStructures(); LoadFeeData(); _isLoaded = true; eventAggregator.GetEvent <RSEntryChangedEvent>().Subscribe(LoadFeeData); eventAggregator.GetEvent <CalculatorCostChangedEvent>().Subscribe(UpdateTotalCost); }
//Constructor public StaffListViewModel(IStaffService staffService, IRecordSearchService recordSearchService, IEventAggregator eventAggregator, IRegionManager regionManager) { _ss = staffService; _rss = recordSearchService; _ea = eventAggregator; _rm = regionManager; StaffMembers = new ObservableCollection <Staff>(staffService.CompleteStaffList); AddPersonCommand = new DelegateCommand <string>(AddPerson); DeletePersonCommand = new DelegateCommand(DeletePerson); _ea.GetEvent <RecordSearchListSelectEvent>().Subscribe(NavigateToRSEntry); }
//Constructor public RSListViewModel(IEventAggregator eventAggregator, IRegionManager regionManager, IRecordSearchService recordSearchService) { _rm = regionManager; _rss = recordSearchService; PrefixChoices = new List <Prefix>(RecordSearchPrefixes.Values); RecordSearches = _rss.GetAllPartialRecordSearches(); _recordSearchesView = CollectionViewSource.GetDefaultView(RecordSearches); RecordSearchesView.Filter = RecordSearchViewFilter; NewRSRequest = new InteractionRequest <ICreateNewRSNotification>(); CreateNewRSCommand = new DelegateCommand(CreateNewRecordSearch); GoBackCommand = new DelegateCommand(GoBack); eventAggregator.GetEvent <RecordSearchListSelectEvent>().Subscribe(NavigateToRecordSearchEntry); eventAggregator.GetEvent <RSListModifiedEvent>().Subscribe(ModifyRSList); }
//Constructor public SettingsScreenViewModel(IEventAggregator eventAggregator, IRecordSearchService recordSearchService, IPersonService personService, IFeeService feeService, IClientService clientService, IAddressService addressService, IApplicationCommands applicationCommands, IStaffService staffService) { _ea = eventAggregator; _rs = recordSearchService; _ps = personService; _fs = feeService; _cs = clientService; _as = addressService; _ss = staffService; Settings = Settings.Instance; ListFeeStructures(); LocateDatabaseCommand = new DelegateCommand(LocateDatabase); SaveSettingsCommand = new DelegateCommand(SaveSettings); applicationCommands.SaveCompCommand.RegisterCommand(SaveSettingsCommand); }
//Constructor public PersonEntryViewModel(IRegionManager regionManager, IEventAggregator eventAggregator, IPersonService personService, IAddressService addressService, IRecordSearchService recordSearchService, IClientService clientService, IApplicationCommands applicationCommands) : base(applicationCommands) { _rm = regionManager; _ea = eventAggregator; _ps = personService; _cs = clientService; _as = addressService; _rss = recordSearchService; ClientList = clientService.CompleteClientList; SaveCommand = new DelegateCommand(SaveEntry); applicationCommands.SaveCompCommand.RegisterCommand(SaveCommand); DeleteCommand = new DelegateCommand(DeleteEntry); applicationCommands.DeleteCompCommand.RegisterCommand(DeleteCommand); NavigateToClientCommand = new DelegateCommand(NavigateToClient); DeleteConfirmationRequest = new InteractionRequest <IConfirmation>(); eventAggregator.GetEvent <RecordSearchListSelectEvent>().Subscribe(NavigateToRecordSearch); }
//Constructor public CheckingExport(IRecordSearchService recordSearchService) { _rss = recordSearchService; Name = "Checks to Deposit Export"; Description = "This exported view will list any check recieved as payments within a specific date range."; }