/// <summary> /// Initializes a new instance of the <see cref="PayorCoverageViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="popupService">The popup service.</param> /// <param name="navigationService">The navigation service.</param> public PayorCoverageViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IPopupService popupService, INavigationService navigationService) : base(accessControlManager, commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _popupService = popupService; _navigationService = navigationService; PageSize = 50; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); DeletePayorCoverageCommand = commandFactoryHelper.BuildDelegateCommand <PayorCoverageCacheDto> ( () => DeletePayorCoverageCommand, ExecuteDeletePayorCoverageCommand); ShowPayorCoverageEditorCommand = commandFactoryHelper.BuildDelegateCommand <PayorCoverageCacheDto> ( () => ShowPayorCoverageEditorCommand, ExecuteShowPayorCoverageEditorCommand); GoToPatientHistoryCommand = commandFactoryHelper.BuildDelegateCommand( () => GoToPatientHistoryCommand, ExecuteGoToPatientHistoryCommand); }
public CreateProgramEnrollmentViewModel( IUserDialogService userDialogService, IEventAggregator eventAggregator, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _eventAggregator = eventAggregator; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _popupService = popupService; Wrapper = new EditableDtoWrapper(); _pagedCollectionViewWrapper = new PagedCollectionViewWrapper <ProgramEnrollmentDto> (); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); CreateProgramEnrollmentCommand = commandFactoryHelper.BuildDelegateCommand <ProgramEnrollmentDto> ( () => CreateProgramEnrollmentCommand, ExecuteCreateProgramEnrollment); ProgramSelectionChangedCommand = commandFactoryHelper.BuildDelegateCommand <ProgramDisplayNameDto> ( () => ProgramSelectionChangedCommand, ExecuteProgramSelectionChanged); ProgramOfferingLocationSelectionChangedCommand = commandFactoryHelper.BuildDelegateCommand <ProgramOfferingLocationDto> ( () => ProgramOfferingLocationSelectionChangedCommand, ExecuteProgramOfferingLocationSelectionChanged); }
public ClaimBatchListViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _popupService = popupService; _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _pagedCollectionViewWrapper = new PagedCollectionViewWrapper <ClaimBatchDisplayNameDto> (); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); DownloadHealthCareClaim837ProfessionalCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => DownloadHealthCareClaim837ProfessionalCommand, ExecuteDownloadHealthCareClaim837ProfessionalCommand, CanExecuteDownloadHealthCareClaim837ProfessionalCommand); RefreshCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => RefreshCommand, ExecuteRefreshCommand); ResetTestDataCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => ResetTestDataCommand, ExecuteResetTestDataCommand); }
/// <summary> /// Initializes a new instance of the <see cref="SocialHistoryViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="popupService">The popup service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public SocialHistoryViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IEventAggregator eventAggregator, IPopupService popupService, INavigationService navigationService, ICommandFactory commandFactory) : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, eventAggregator, commandFactory) { var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SmokingWillingToQuitCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => SmokingWillingToQuitCommand, ExecuteSmokingWillingToQuitCommand, CanExecuteSmokingWillingToQuitCommand); ScheduleFollowupCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => ScheduleFollowupCommand, ExecuteScheduleFollowupCommand, CanExecuteScheduleFollowupCommand); _userDialogService = userDialogService; _popupService = popupService; _navigationService = navigationService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _eventAggregator = eventAggregator; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.AddLookupValuesRequest("SmokingStatus"); requestDispatcher.ProcessRequests(GetLookupsCompleted, HandleRequestDispatcherException); }
public EditJobFunctionViewModel( IUserDialogService userDialogService, IEventAggregator eventAggregator, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _eventAggregator = eventAggregator; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _popupService = popupService; Wrapper = new EditableDtoWrapper(); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SaveJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand(() => SaveJobFunctionCommand, ExecuteSaveJobFunctionCommand); GrantSystemRoleCommand = commandFactoryHelper.BuildDelegateCommand(() => GrantSystemRoleCommand, ExecuteGrantSystemRoleCommand); RevokeSystemRoleCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => RevokeSystemRoleCommand, ExecuteRevokeSystemRoleCommand); CancelCommand = commandFactoryHelper.BuildDelegateCommand(() => CancelCommand, ExecuteCancelCommand); CreateCommand = NavigationCommandManager.BuildCommand(() => CreateCommand, NavigateToCreateCommand); EditCommand = NavigationCommandManager.BuildCommand(() => EditCommand, NavigateToEditCommand); CloneCommand = NavigationCommandManager.BuildCommand(() => CloneCommand, NavigateToCloneCommand); }
/// <summary> /// Initializes a new instance of the <see cref="TedsAdmissionInterviewViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="commandFactory">The command factory.</param> public TedsAdmissionInterviewViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IEventAggregator eventAggregator, ICommandFactory commandFactory) : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, eventAggregator, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _primaryDetailedDrugCodeList = new ObservableCollection <DetailedDrugCodeDto> (); _secondaryDetailedDrugCodeList = new ObservableCollection <DetailedDrugCodeDto> (); _tertiaryDetailedDrugCodeList = new ObservableCollection <DetailedDrugCodeDto> (); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); RemoveSubstanceUsageCommand = commandFactoryHelper.BuildDelegateCommand <string> ( () => RemoveSubstanceUsageCommand, ExecuteRemoveSubstanceUsage); var ruleExecutor = new NotifyPropertyChangedRuleExecutor <TedsAdmissionInterviewViewModel, IDataTransferObject>(); ruleExecutor.AddRunAllRulesProperty(vm => vm.EditingDto); ruleExecutor.WatchSubject(this); }
/// <summary> /// Initializes a new instance of the <see cref="SaveMailAttachmentPatientDocumentViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="popupService">The popup service.</param> public SaveMailAttachmentPatientDocumentViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, ICommandFactory commandFactory, IEventAggregator eventAggregator, INavigationService navigationService, IPopupService popupService) : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _eventAggregator = eventAggregator; _navigationService = navigationService; _popupService = popupService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); CreatePatientImportDocumentCommand = commandFactoryHelper.BuildDelegateCommand( () => CreatePatientImportDocumentCommand, ExecuteCreatePatientImportDocumentCommand); var ruleExecutor = new NotifyPropertyChangedRuleExecutor <SaveMailAttachmentPatientDocumentViewModel, IDataTransferObject> (); ruleExecutor.AddRunAllRulesProperty(vm => vm.EditingDto); ruleExecutor.WatchSubject(this); }
/// <summary> /// Initializes a new instance of the <see cref="SendC32ViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="popupService">The popup service.</param> /// <param name="currentUserContextService">The current user context service.</param> public SendC32ViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, ICommandFactory commandFactory, IEventAggregator eventAggregator, IPopupService popupService, ICurrentUserContextService currentUserContextService) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _eventAggregator = eventAggregator; _popupService = popupService; currentUserContextService.RegisterForContext((cuc, b) => _currentContext = cuc); // UI Commands SendC32Command = CommandFactoryHelper .CreateHelper(this, commandFactory) .BuildDelegateCommand(() => SendC32Command, ExecuteSendC32); OpenAddressBookCommand = CommandFactoryHelper .CreateHelper(this, commandFactory) .BuildDelegateCommand(() => OpenAddressBookCommand, ExecuteOpenAddressBook); // Navigation Commands OpenSendC32ViewCommand = NavigationCommandManager.BuildCommand(() => OpenSendC32ViewCommand, NavigateToOpenSendC32ViewCommand); _eventAggregator.GetEvent <DirectAddressRecipientSelectedEvent> ().Subscribe(HandleDirectAddressRecipientSelectedEventHandler); }
/// <summary> /// Initializes a new instance of the <see cref="PatientReminderViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public PatientReminderViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SearchCommand = commandFactoryHelper.BuildDelegateCommand(() => SearchCommand, ExecuteSearchCommand); ClearCommand = commandFactoryHelper.BuildDelegateCommand(() => ClearCommand, ExecuteClearCommand); PageSize = DEFAULTPAGESIZE; PatientReminderCriteria = new PatientReminderCriteriaDto { PageSize = DEFAULTPAGESIZE, LabResultFilterModifier = FilterModifier.EqualTo, AgeFilterModifier = FilterModifier.EqualTo }; FilterModifierList = new List <string> { FilterModifier.EqualTo, FilterModifier.GreaterThan, FilterModifier.GreaterThanOrEqualTo, FilterModifier.LessThen, FilterModifier.LessThenOrEqualTo }; }
public AppointmentSchedulerViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IAccessControlManager accessControlManager, IEventAggregator eventAggregator, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _eventAggregator = eventAggregator; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); _nextDayCommand = commandFactoryHelper.BuildDelegateCommand(() => NextDayCommand, ExecuteNextDayCommand, CanExecuteNextDayCommand); _previousDayCommand = commandFactoryHelper.BuildDelegateCommand( () => PreviousDayCommand, ExecutePreviousDayCommand, CanExecutePreviousDayCommand); _goToTodayCommand = commandFactoryHelper.BuildDelegateCommand( () => GoToTodayCommand, ExecuteGoToTodayCommand, CanExecuteGoToTodayCommand); eventAggregator.GetEvent <FrontDeskDashboardDateChangedEvent> ().Subscribe( OnFrontDeskDashboardDateChanged, ThreadOption.PublisherThread, false, FilterFrontDeskDashboardDateChanged); _selectedDate = DateTime.Now.Date; ApplyContextChanges = true; }
/// <summary> /// Initializes a new instance of the <see cref="AgencyWorkspaceViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public AgencyWorkspaceViewModel( IUserDialogService userDialogService, IEventAggregator eventAggregator, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _eventAggregator = eventAggregator; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); UploadLabResultCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => UploadLabResultCommand, ExecuteUploadLabResultCommand); GoToDashboardCommand = commandFactoryHelper.BuildDelegateCommand(() => GoToDashboardCommand, ExecuteGoToDashboard); GoToProfileCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => GoToProfileCommand, ExecuteGoToProfile); _eventAggregator.GetEvent <AgencyChangedEvent> ().Subscribe( AgencyChangedEventHandler, ThreadOption.BackgroundThread, false, FilterAgencyChangedEvents); }
public ProgramOfferingListViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IUserDialogService userDialogService, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _pagedCollectionViewWrapper = new PagedCollectionViewWrapper <ProgramOfferingDto> (); _userDialogService = userDialogService; _popupService = popupService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); _showAllCommand = commandFactoryHelper.BuildDelegateCommand(() => ShowAllCommand, ExecuteShowAll); _showActiveOnlyCommand = commandFactoryHelper.BuildDelegateCommand(() => ShowActiveOnlyCommand, ExecuteShowActiveOnly); ToggleActiveIndicatorCommand = commandFactoryHelper.BuildDelegateCommand <ProgramOfferingDto> ( () => ToggleActiveIndicatorCommand, ExecuteToggleActiveIndicator); ShowProgramOfferingAddCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => ShowProgramOfferingAddCommand, ExecuteShowProgramOfferingAddCommand); ShowProgramOfferingEditCommand = commandFactoryHelper.BuildDelegateCommand <ProgramOfferingDto> ( () => ShowProgramOfferingEditCommand, ExecuteShowProgramOfferingEditCommand); DeleteProgramOfferingCommand = commandFactoryHelper.BuildDelegateCommand <ProgramOfferingDto> ( () => DeleteProgramOfferingCommand, ExecuteDeleteProgramOfferingCommand); _showOption = ShowOption.ShowActive; _filter = FilterByActiveStatus; InitializeGroupingDescriptions(); }
/// <summary> /// Initializes a new instance of the <see cref="NidaDrugQuestionnaireViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="commandFactory">The command factory.</param> public NidaDrugQuestionnaireViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IEventAggregator eventAggregator, ICommandFactory commandFactory) : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, eventAggregator, commandFactory) { _eventAggregator = eventAggregator; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SaveCommand = commandFactoryHelper.BuildDelegateCommand <KeyedDataTransferObject> ( () => SaveCommand, dto => { var name = PropertyUtil.ExtractPropertyName(() => EditingDto); if (dto != null && EditingDto.GetType() != dto.GetType()) { name = EditingDto.GetType().GetProperties().First(pi => pi.PropertyType == dto.GetType()).Name; } return(name); }, ExecuteSaveCommand, CanExecuteSaveCommand); var ruleExecutor = new NotifyPropertyChangedRuleExecutor <NidaDrugQuestionnaireViewModel, IDataTransferObject> (); ruleExecutor.AddRunAllRulesProperty(vm => vm.EditingDto); ruleExecutor.WatchSubject(this); }
public JobFunctionListViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _popupService = popupService; _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _pagedCollectionViewWrapper = new PagedCollectionViewWrapper <SystemRoleDto> (); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); CreateJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand(() => CreateJobFunctionCommand, ExecuteCreateJobFunctionCommand); EditJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => EditJobFunctionCommand, ExecuteEditJobFunctionCommand); CloneJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => CloneJobFunctionCommand, ExecuteCloneJobFunctionCommand); DeleteJobFunctionCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => DeleteJobFunctionCommand, ExecuteDeleteJobFunction); }
/// <summary> /// Initializes a new instance of the <see cref="ProgramOfferingEditorViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="popupService">The popup service.</param> public ProgramOfferingEditorViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, ICommandFactory commandFactory, IPopupService popupService) : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _popupService = popupService; CreateCommand = NavigationCommandManager.BuildCommand(() => CreateCommand, NavigateToCreateCommand); EditCommand = NavigationCommandManager.BuildCommand(() => EditCommand, NavigateToEditCommand); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SaveCommand = commandFactoryHelper.BuildDelegateCommand <KeyedDataTransferObject> ( () => SaveCommand, dto => { var name = PropertyUtil.ExtractPropertyName(() => EditingDto); if (dto != null && EditingDto.GetType() != dto.GetType()) { name = EditingDto.GetType().GetProperties().First(pi => pi.PropertyType == dto.GetType()).Name; } return(name); }, ExecuteSaveCommand, CanExecuteSaveCommand); }
/// <summary> /// Initializes a new instance of the <see cref="MainPatientSearchViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public MainPatientSearchViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, INavigationService navigationService, ICommandFactory commandFactory) : base( userDialogService, asyncRequestDispatcherFactory, accessControlManager, navigationService, commandFactory ) { _userDialogService = userDialogService; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); DragStartingCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => DragStartingCommand, ExecuteDragStartingCommand); ViewDashboardCommand = commandFactoryHelper.BuildDelegateCommand <PatientSearchResultDto> ( () => ViewDashboardCommand, ExecuteViewDashboard); ViewProfileCommand = commandFactoryHelper.BuildDelegateCommand <PatientSearchResultDto> (() => ViewProfileCommand, ExecuteViewProfile); ApplyPaymentCommand = commandFactoryHelper.BuildDelegateCommand <PatientSearchResultDto> (() => ApplyPaymentCommand, ExecuteApplyPayment); CreateNewAppointmentCommand = commandFactoryHelper.BuildDelegateCommand <PatientSearchResultDto> ( () => CreateNewAppointmentCommand, ExecuteCreateNewAppointment); }
public TaskAndTakGroupListViewModel( IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPopupService popupService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _popupService = popupService; _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _pagedCollectionViewWrapper = new PagedCollectionViewWrapper <SystemRoleDto> (); InitializeGroupingDescriptions(); var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); CreateTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => CreateTaskOrTaskGroupCommand, ExecuteCreateTaskOrTaskGroupCommand); EditTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => EditTaskOrTaskGroupCommand, ExecuteEditTaskOrTaskGroupCommand); CloneTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => CloneTaskOrTaskGroupCommand, ExecuteCloneTaskOrTaskGroupCommand); DeleteTaskOrTaskGroupCommand = commandFactoryHelper.BuildDelegateCommand <SystemRoleDto> ( () => DeleteTaskOrTaskGroupCommand, ExecuteDeleteTaskOrTaskGroup); }
/// <summary> /// Initializes a new instance of the <see cref="BillingViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="navigationService">The navigation service.</param> public BillingViewModel(IAccessControlManager accessControlManager, ICommandFactory commandFactory, INavigationService navigationService) : base(accessControlManager, commandFactory) { _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); GoToFrontDeskCommand = commandFactoryHelper.BuildDelegateCommand(() => GoToFrontDeskCommand, ExecuteGoToFrontDeskCommand); }
/// <summary> /// Initializes a new instance of the <see cref="VisitViewModel"/> class. /// </summary> /// <param name="userDialogService">The user dialog service.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="cdsAlertService">The CDS alert service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="patientAccessService">The patient access service.</param> /// <param name="activityTypeToViewMapperService">The activity type to view mapper service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="popupService">The popup service.</param> public VisitViewModel( IUserDialogService userDialogService, IEventAggregator eventAggregator, ICdsAlertService cdsAlertService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IPatientAccessService patientAccessService, IActivityTypeToViewMapperService activityTypeToViewMapperService, INavigationService navigationService, ICommandFactory commandFactory, IPopupService popupService) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _eventAggregator = eventAggregator; _cdsAlertService = cdsAlertService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _patientAccessService = patientAccessService; _activityTypeToViewMapperService = activityTypeToViewMapperService; _navigationService = navigationService; _popupService = popupService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); SelectAddActivityCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => SelectAddActivityCommand, ExecuteSelectAddActivity); SaveVisitCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => SaveVisitCommand, ExecuteSaveVisit); DetachProblemCommand = commandFactoryHelper.BuildDelegateCommand <ProblemDto> (() => DetachProblemCommand, ExecuteDetachProblem); StatusUpdatedCommand = commandFactoryHelper.BuildDelegateCommand <LookupValueDto> ( () => StatusUpdatedCommand, ExecuteStatusUpdatedCommand, CanExecuteStatusUpdatedCommand); DropQueryCommand = commandFactoryHelper.BuildDelegateCommand <DragDropQueryEventArgs> (() => DropQueryCommand, ExecuteDropQueryCommand); ShowGrowthChartCommand = commandFactoryHelper.BuildDelegateCommand(() => ShowGrowthChartCommand, ExecuteShowGrowthChartCommand); CloseViewCommand = commandFactoryHelper.BuildDelegateCommand(() => CloseViewCommand, ExecuteCloseViewCommand); ProblemList = new ObservableCollection <ProblemDto> (); _eventAggregator.GetEvent <VisitChangedEvent> ().Subscribe( VisitChangedEventHandler, ThreadOption.BackgroundThread, false, FilterVisitChangedEvents); _eventAggregator.GetEvent <ClinicalCaseChangedEvent> ().Subscribe( ClinicalCaseChangedEventHandler, ThreadOption.BackgroundThread, false, FilterClinicalCaseChangedEvents); _eventAggregator.GetEvent <ActivityChangedEvent> ().Subscribe( ActivityChangedEventHandler, ThreadOption.BackgroundThread, false, FilterActivityChangedEvents); }
/// <summary> /// Initializes a new instance of the <see cref="NewCropButtonsViewModel"/> class. /// </summary> /// <param name="newCropSessionLauncher">The new crop session launcher.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public NewCropButtonsViewModel( INewCropSessionLauncher newCropSessionLauncher, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _newCropSessionLauncher = newCropSessionLauncher; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); LaunchSessionCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => LaunchSessionCommand, ExecuteLaunchSession); }
/// <summary> /// Initializes a new instance of the <see cref="PayorDashboardViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public PayorDashboardViewModel( IAccessControlManager accessControlManager, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); GoToBillingDashboardCommand = commandFactoryHelper.BuildDelegateCommand( () => GoToBillingDashboardCommand, ExecuteGoToBillingDashboardCommand); }
/// <summary> /// Initializes a new instance of the <see cref="BillingWorkspaceViewModel"/> class. /// </summary> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public BillingWorkspaceViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IAccessControlManager accessControlManager, IUserDialogService userDialogService, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _navigationService = navigationService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); }
/// <summary> /// Initializes a new instance of the <see cref="ExternalPatientHistoryViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> public ExternalPatientHistoryViewModel( IAccessControlManager accessControlManager, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); AddDocumentCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => AddDocumentCommand, ExecuteAddDocumentCommand, CanExecuteAddDocumentCommand); AddEncryptedDocumentCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => AddEncryptedDocumentCommand, o => { }, o => true); }
/// <summary> /// Initializes a new instance of the <see cref="CreateBillingOfficeButtonViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="popupService">The popup service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> public CreateBillingOfficeButtonViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory, IPopupService popupService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory) : base(accessControlManager, commandFactory) { _popupService = popupService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); CreateBillingOfficeCommand = commandFactoryHelper.BuildDelegateCommand( () => CreateBillingOfficeCommand, ExecuteCreateBillingOfficeCommand, () => !_hasBillingOffice); }
/// <summary> /// Initializes a new instance of the <see cref="ShellViewModel"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="signOffService">The sign off service.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="regionManager">The region manager.</param> /// <param name="regionNavigationService">The region navigation service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="commandFactory">The command factory.</param> /// <param name="eventAggregator">The event aggregator.</param> public ShellViewModel( IAccessControlManager accessControlManager, ISignOffService signOffService, IUserDialogService userDialogService, IRegionManager regionManager, IRegionNavigationService regionNavigationService, INavigationService navigationService, ICommandFactory commandFactory, IEventAggregator eventAggregator) { _regionManager = regionManager; _signOffService = signOffService; _userDialogService = userDialogService; _regionNavigationService = regionNavigationService; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); OpenMessageCenterWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenMessageCenterWorkspaceCommand, ExecuteOpenMessageCenterWorkspace); OpenPatientAccessHistoryWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenPatientAccessHistoryWorkspaceCommand, ExecuteOpenPatientAccessHistoryWorkspace); OpenInteroperabilityWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenInteroperabilityWorkspaceCommand, ExecuteOpenInteroperabilityWorkspace); OpenAgencyWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenAgencyWorkspaceCommand, ExecuteOpenAgencyWorkspaceCommand); OpenPatientListCommand = commandFactoryHelper.BuildDelegateCommand(() => OpenPatientListCommand, ExecuteOpenPatientListCommand); OpenPatientReminderCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenPatientReminderCommand, ExecuteOpenPatientReminderCommand); OpenMuObjectivesCommand = commandFactoryHelper.BuildDelegateCommand(() => OpenMuObjectivesCommand, ExecuteOpenMuObjectivesCommand); OpenCdsEditorCommand = commandFactoryHelper.BuildDelegateCommand(() => OpenCdsEditorCommand, ExecuteOpenCdsEditorCommand); OpenReportsWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenReportsWorkspaceCommand, ExecuteOpenReportsWorkspaceCommand); OpenRoleManagementWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenRoleManagementWorkspaceCommand, ExecuteOpenRoleManagementWorkspaceCommand); OpenBillingWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenBillingWorkspaceCommand, ExecuteOpenBillingWorkspaceCommand); OpenBillingAdministrationWorkspaceCommand = commandFactoryHelper.BuildDelegateCommand( () => OpenBillingAdministrationWorkspaceCommand, ExecuteOpenBillingAdministrationWorkspaceCommand, () => _hasBillingOffice); LogoutCommand = commandFactoryHelper.BuildDelegateCommand(() => LogoutCommand, ExecuteLogout); _regionNavigationService.NavigationFailed += RegionNavigationFailed; ApplyContextChanges = true; _regionManager.RegisterViewWithRegion("WorkspacesRegion", typeof(HomePageView)); eventAggregator.GetEvent <HasBillingOfficeEvent>().Subscribe(HandleHasBillingOfficeEvent, true); }
/// <summary> /// Initializes a new instance of the <see cref="SingleConceptViewModel"/> class. /// </summary> /// <param name="proxy">The proxy.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public SingleConceptViewModel( ITerminologyProxy proxy, IUserDialogService userDialogService, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _proxy = proxy; _userDialogService = userDialogService; _proxy.GetVocabularyListCompleted += GetVocabularyListCompleted; _proxy.GetConceptByCodeSystemCodeCompleted += GetConceptByCodeSystemCodeCompleted; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); NamespaceChangedCommand = commandFactoryHelper.BuildDelegateCommand <TerminologyVocabulary> ( () => NamespaceChangedCommand, ExecuteNamespaceChanged); PerformSearchCommand = commandFactoryHelper.BuildDelegateCommand <string> (() => PerformSearchCommand, ExecutePerformSearch); }
public VisitListViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IEventAggregator eventAggregator, IAccessControlManager accessControlManager, INavigationService navigationService, ICommandFactory commandFactory, IActivityTypeToViewMapperService activityTypeToViewMapper, IPopupService popupService) : base(accessControlManager, commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _eventAggregator = eventAggregator; _navigationService = navigationService; _activityTypeToViewMapper = activityTypeToViewMapper; _popupService = popupService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); GoToVisitCommand = commandFactoryHelper.BuildDelegateCommand <object> (() => GoToVisitCommand, ExecuteGoToVisitCommand); GoToActivityCommand = commandFactoryHelper.BuildDelegateCommand <VisitActivityDto> ( () => GoToActivityCommand, ExecuteGoToActivityCommand); RecentVisitCountChangedCommand = commandFactoryHelper.BuildDelegateCommand( () => RecentVisitCountChangedCommand, ExecuteRecentVisitCountChangedCommand); ScheduledVisitCountChangedCommand = commandFactoryHelper.BuildDelegateCommand( () => ScheduledVisitCountChangedCommand, ExecuteScheduledVisitCountChangedCommand); _eventAggregator.GetEvent <ClinicalCaseChangedEvent> ().Subscribe( ClinicalCaseChangedEventHandler, ThreadOption.BackgroundThread, false, FilterClinicalCaseChangedEvents); _eventAggregator.GetEvent <ActivityChangedEvent> ().Subscribe( ActivityChangedEventHandler, ThreadOption.BackgroundThread, false, FilterActivityChangedEvents); _eventAggregator.GetEvent <VisitChangedEvent> ().Subscribe( VisitChangedEventHandler, ThreadOption.BackgroundThread, false, FilterVisitChangedEvents); RecentVisitCount = ScheduledVisitCount = _lastRecentVisitCount = _lastScheduledVisitCount = 2; }
/// <summary> /// Initializes a new instance of the <see cref="PatientHistoryDocumentViewModel"/> class. /// </summary> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="popupService">The popup service.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="accessControlManager">The access control manager.</param> /// <param name="commandFactory">The command factory.</param> public PatientHistoryDocumentViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, IPopupService popupService, INavigationService navigationService, IEventAggregator eventAggregator, IAccessControlManager accessControlManager, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; _popupService = popupService; _navigationService = navigationService; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <PatientDocumentUploadedEvent> ().Subscribe( PatientDocumentUploadedEventHandler, ThreadOption.BackgroundThread, false, PatientDocumentUploadedEvents); IsOtherTypeReadOnly = true; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); OpenDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto> ( () => OpenDocumentCommand, ExecuteOpenDocumentCommand); OpenEncryptedDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto> ( () => OpenEncryptedDocumentCommand, ExecuteOpenEncryptedDocumentCommand); SaveNewDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto>( () => SaveNewDocumentCommand, ExecuteSaveNewDocument); CancelNewDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto>( () => CancelNewDocumentCommand, ExecuteCancelNewDocument); UpdateDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto> ( () => UpdateDocumentCommand, ExecuteUpdateDocument); DeleteDocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto> ( () => DeleteDocumentCommand, ExecuteDeleteDocumentCommand, CanExecuteDeleteDocumentCommand); DocumentTypeChangedCommand = commandFactoryHelper.BuildDelegateCommand <LookupValueDto> ( () => DocumentTypeChangedCommand, ExecuteDocumentTypeChangedCommand); ClinicalStartDateChangedCommand = commandFactoryHelper.BuildDelegateCommand <object> ( () => ClinicalStartDateChangedCommand, ExecuteClinicalStartDateChangedCommand); ImportC32DocumentCommand = commandFactoryHelper.BuildDelegateCommand <PatientDocumentDto>( () => ImportC32DocumentCommand, ExecuteImportC32DocumentCommand, CanExecuteImportC32DocumnetCommand); }
public InteroperabilityWorkspaceViewModel( IAccessControlManager accessControlManager, IUserDialogService userDialogService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, INavigationService navigationService, ICommandFactory commandFactory) : base(accessControlManager, commandFactory) { _userDialogService = userDialogService; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _navigationService = navigationService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); ExportC32ToPopHealthCommand = commandFactoryHelper.BuildDelegateCommand(() => ExportC32ToPopHealthCommand, ExecuteExportC32ToPopHealth); }
/// <summary> /// Initializes a new instance of the <see cref="LocationQuickPickerViewModel"/> class. /// </summary> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="userDialogService">The user dialog service.</param> /// <param name="commandFactory">The command factory.</param> public LocationQuickPickerViewModel( IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IUserDialogService userDialogService, ICommandFactory commandFactory) : base(commandFactory) { _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _userDialogService = userDialogService; var commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory); ClearCommand = commandFactoryHelper.BuildDelegateCommand(() => ClearCommand, ExecuteClearCommand, CanExecuteClearCommand); AddCommand = commandFactoryHelper.BuildDelegateCommand(() => AddCommand, ExecuteAddCommand, CanExecuteAddCommand); ApplyContextChanges = true; }