Exemplo n.º 1
0
        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();
        }
        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 );
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocationWorkspaceViewModel"/> class.
        /// </summary>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="userDialogService">The user dialog service.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="navigationService">The navigation service.</param>
        /// <param name="commandFactory">The command factory.</param>
        public LocationWorkspaceViewModel(
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IUserDialogService userDialogService,
            IEventAggregator eventAggregator,
            IAccessControlManager accessControlManager,
            INavigationService navigationService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _userDialogService = userDialogService;
            _eventAggregator = eventAggregator;
            _navigationService = navigationService;

            _eventAggregator.GetEvent<LocationChangedEvent> ().Subscribe (
                LocationChangedEventHandler,
                ThreadOption.BackgroundThread,
                false,
                FilterLocationChangedEvents );

            var commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );

            GoToDashboardCommand = commandFactoryHelper.BuildDelegateCommand ( () => GoToDashboardCommand, ExecuteGoToDashboard );
            GoToProfileCommand = commandFactoryHelper.BuildDelegateCommand<object> ( () => GoToProfileCommand, ExecuteGoToProfile );
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClinicianLabResultsTileViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClinicianLabResultsTileViewModel(
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory)
     : base(accessControlManager, commandFactory)
 {
     //TODO:remove and get real data
     _labResults = new ObservableCollection <LabResultDto> ();
     _labResults.Add(
         new LabOrderDto
     {
         PatientName = "Young, Tad",
         LabTestResultNameCodedConcept = new CodedConceptDto
         {
             DisplayName = "Blood Glucose"
         },
         ReferenceRange    = "34-75",
         Value             = 50,
         UnitOfMeasureCode = "mg"
     });
     _labResults.Add(
         new LabOrderDto
     {
         PatientName = "Smith, Albert",
         LabTestResultNameCodedConcept = new CodedConceptDto
         {
             DisplayName = "Heart Rate"
         },
         ReferenceRange    = "75-120",
         Value             = 90,
         UnitOfMeasureCode = "bpm"
     });
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimErrorsListViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClaimErrorsListViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     Errors = new ObservableCollection<TempClaimModel> ();
     var error1 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -10 ),
             PayorName = "Aetna",
             ChargeAmount = ( decimal )50.0,
             PatientName = "Albert Smith",
             Message = "BR897 - The patient name does not match the insurance information on file.",
             PayorTypeName = "Commercial"
         };
     var error2 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -15 ),
             PayorName = "Medicaid",
             ChargeAmount = ( decimal )500.0,
             PatientName = "Tad Young",
             Message = "BR123 - The assessment cannot be incomplete.",
             PayorTypeName = "Medicare"
         };
     Errors.Add ( error1 );
     Errors.Add ( error2 );
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsModule"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="container">The container.</param>
 public ReportsModule(
     IAccessControlManager accessControlManager,
     IUnityContainer container )
 {
     _accessControlManager = accessControlManager;
     _container = container;
 }
Exemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BillingModule"/> class.
        /// </summary>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="container">The container.</param>
        /// <param name="regionManager">The region manager.</param>
        /// <param name="currentUserContextService">The current user context service.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        public BillingModule(
            IAccessControlManager accessControlManager,
            IUnityContainer container,
            IRegionManager regionManager,
            ICurrentUserContextService currentUserContextService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IEventAggregator eventAggregator)
        {
            _accessControlManager          = accessControlManager;
            _container                     = container;
            _regionManager                 = regionManager;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _eventAggregator               = eventAggregator;

            //This is temporary until the main navigation dropdown is fixed
            currentUserContextService.RegisterForContext(
                (u, b) =>
            {
                if (u != null)
                {
                    _agencyKey = u.Agency.Key;
                    HandleCheckBillingOffice();
                }
            },
                true);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageCenterWorkspaceViewModel"/> 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="eventAggregator">The event aggregator.</param>
        /// <param name="dispatcherFactory">The dispatcher factory.</param>
        public MessageCenterWorkspaceViewModel(
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory,
            IPopupService popupService,
            IEventAggregator eventAggregator,
            IAsyncRequestDispatcherFactory dispatcherFactory
            )
            : base(accessControlManager, commandFactory)
        {
            _popupService = popupService;
            _dispatcherFactory = dispatcherFactory;
            IncomingMail = new ObservableCollection<DirectMailDto>();
            SentMail = new ObservableCollection<DirectMailDto>();

            CommandFactoryHelper<MessageCenterWorkspaceViewModel> commandFactoryHelper = CommandFactoryHelper.CreateHelper ( this, commandFactory );
            SendNewMailCommand = commandFactoryHelper.BuildDelegateCommand ( () => SendNewMailCommand, ExecuteSendNewMail );
            OpenSaveToExternalPatientHistoryCommand =
                commandFactoryHelper.BuildDelegateCommand<string> (
                    () => OpenSaveToExternalPatientHistoryCommand, ExecuteOpenSaveToExternalPatientHistory );
            DownloadMailAttachmentCommand = commandFactoryHelper.BuildDelegateCommand<string>(
                () => DownloadMailAttachmentCommand, DownloadMailAttachment);
            DragQueryCommand = commandFactoryHelper.BuildDelegateCommand<DragDropQueryEventArgs>(() => DragQueryCommand, ExecuteDragQuery);

            eventAggregator.GetEvent<MessageSentEvent> ().Subscribe ( HandleMessageSent );

            SetupImapFolderTimers ();
            RequestInboxContent ( null, null );
            RequestSentItemsContent ( null, null );
        }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimOnHoldListViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClaimOnHoldListViewModel( IAccessControlManager accessControlManager, ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     OnHoldList = new ObservableCollection<TempClaimModel> ();
     var claim = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -10 ),
             PayorName = "Aetna",
             ChargeAmount = ( decimal )50.0,
             PatientName = "Albert Smith",
             Message = "Not: This claim may need to be transfered to another payor.",
             PayorTypeName = "Commercial"
         };
     var claim2 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -15 ),
             PayorName = "Medicaid",
             ChargeAmount = ( decimal )500.0,
             PatientName = "Tad Young",
             Message = "Note: The patient has indicated taht they would like to pay for this service out of pocket. Need to follow up.",
             PayorTypeName = "Medicare"
         };
     OnHoldList.Add ( claim );
     OnHoldList.Add ( claim2 );
 }
Exemplo n.º 10
0
        /// <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);
        }
Exemplo n.º 11
0
        /// <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);
        }
Exemplo n.º 12
0
        /// <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);
        }
Exemplo n.º 13
0
        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);
        }
Exemplo n.º 14
0
        /// <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
            };
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClinicianLabResultsTileViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClinicianLabResultsTileViewModel(
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     //TODO:remove and get real data
     _labResults = new ObservableCollection<LabResultDto> ();
     _labResults.Add (
         new LabOrderDto
             {
                 PatientName = "Young, Tad",
                 LabTestResultNameCodedConcept = new CodedConceptDto
                     {
                         DisplayName = "Blood Glucose"
                     },
                 ReferenceRange = "34-75",
                 Value = 50,
                 UnitOfMeasureCode = "mg"
             } );
     _labResults.Add (
         new LabOrderDto
             {
                 PatientName = "Smith, Albert",
                 LabTestResultNameCodedConcept = new CodedConceptDto
                     {
                         DisplayName = "Heart Rate"
                     },
                 ReferenceRange = "75-120",
                 Value = 90,
                 UnitOfMeasureCode = "bpm"
             } );
 }
Exemplo n.º 16
0
 protected override void OnSetup()
 {
     base.OnSetup();
     _mockCurrentUserPermissionService = new MockCurrentUserPermissionService();
     _accessControlManager             = new AccessControlManager(_mockCurrentUserPermissionService);
     _accessControlManager.RegisterPermissionDescriptor(new PermissionDescriptorFixture());
 }
Exemplo n.º 17
0
        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);
        }
Exemplo n.º 18
0
        /// <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 );
        }
Exemplo n.º 19
0
        /// <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);
        }
Exemplo n.º 20
0
        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);
        }
Exemplo n.º 21
0
        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 );
        }
Exemplo n.º 22
0
        /// <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);
        }
Exemplo n.º 23
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PatientListViewModel"/> 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 PatientListViewModel(
            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 );

            PatientListCriteria = new PatientListCriteriaDto ();
            PatientListCriteria.PageSize = DEFAULTPAGESIZE;
            PatientListCriteria.LabResultFilterModifier = FilterModifier.EqualTo;
            PatientListCriteria.AgeFilterModifier = FilterModifier.EqualTo;

            FilterModifierList = new List<string>
                {
                    FilterModifier.EqualTo,
                    FilterModifier.GreaterThan,
                    FilterModifier.GreaterThanOrEqualTo,
                    FilterModifier.LessThen,
                    FilterModifier.LessThenOrEqualTo
                };
        }
Exemplo n.º 24
0
        /// <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 );
        }
Exemplo n.º 25
0
        /// <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);
        }
Exemplo n.º 26
0
        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 );
        }
Exemplo n.º 27
0
        /// <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);
        }
Exemplo n.º 28
0
        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);
        }
Exemplo n.º 29
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BillingModule"/> class.
        /// </summary>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="container">The container.</param>
        /// <param name="regionManager">The region manager.</param>
        /// <param name="currentUserContextService">The current user context service.</param>
        /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        public BillingModule(
            IAccessControlManager accessControlManager,
            IUnityContainer container,
            IRegionManager regionManager,
            ICurrentUserContextService currentUserContextService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IEventAggregator eventAggregator )
        {
            _accessControlManager = accessControlManager;
            _container = container;
            _regionManager = regionManager;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _eventAggregator = eventAggregator;

            //This is temporary until the main navigation dropdown is fixed
            currentUserContextService.RegisterForContext (
                ( u, b ) =>
                    {
                        if ( u != null )
                        {
                            _agencyKey = u.Agency.Key;
                            HandleCheckBillingOffice ();
                        }
                    },
                true );
        }
Exemplo n.º 30
0
        /// <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);
        }
Exemplo n.º 31
0
        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 ();
        }
Exemplo n.º 32
0
        public static async Task SignIn(IRestClient restClient, IAccessControlManager accessControlManager)
        {
            string jwt;

            restClient.Timeout = -1;
            var request = new RestRequest("user/user/sign-in", Method.POST);

            request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
            request.AddParameter("email", "*****@*****.**");
            request.AddParameter("password", "Password1!");
            IRestResponse response = await restClient.ExecuteAsync(request);

            if (response.StatusCode != HttpStatusCode.OK)
            {
                throw new Exception($"Unexpected response from SignIn call: {response.StatusCode} - {response.Content}");
            }

            try
            {
                var jObject = JObject.Parse(response.Content);
                jwt = jObject["oauth2"]["jwt"].ToString();
            }
            catch (Exception e)
            {
                throw new Exception($"Unable to parse response from SignIn: {response.Content}:", e);
            }

            // Store sign-in JWT
            var userAccess = new UserAccess(jwt, "", null);

            accessControlManager.SetUserAccess(userAccess);
        }
Exemplo n.º 33
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ClaimOnHoldListViewModel"/> class.
        /// </summary>
        /// <param name="accessControlManager">The access control manager.</param>
        /// <param name="commandFactory">The command factory.</param>
        public ClaimOnHoldListViewModel(IAccessControlManager accessControlManager, ICommandFactory commandFactory)
            : base(accessControlManager, commandFactory)
        {
            OnHoldList = new ObservableCollection <TempClaimModel> ();
            var claim = new TempClaimModel
            {
                ServiceDate   = DateTime.Now.AddDays(-10),
                PayorName     = "Aetna",
                ChargeAmount  = ( decimal )50.0,
                PatientName   = "Albert Smith",
                Message       = "Not: This claim may need to be transfered to another payor.",
                PayorTypeName = "Commercial"
            };
            var claim2 = new TempClaimModel
            {
                ServiceDate   = DateTime.Now.AddDays(-15),
                PayorName     = "Medicaid",
                ChargeAmount  = ( decimal )500.0,
                PatientName   = "Tad Young",
                Message       = "Note: The patient has indicated taht they would like to pay for this service out of pocket. Need to follow up.",
                PayorTypeName = "Medicare"
            };

            OnHoldList.Add(claim);
            OnHoldList.Add(claim2);
        }
Exemplo n.º 34
0
        /// <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);
        }
Exemplo n.º 35
0
        /// <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 );
        }
Exemplo n.º 36
0
        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);
        }
Exemplo n.º 37
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsModule"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="container">The container.</param>
 public ReportsModule(
     IAccessControlManager accessControlManager,
     IUnityContainer container)
 {
     _accessControlManager = accessControlManager;
     _container            = container;
 }
Exemplo n.º 38
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ActivityViewModelBase&lt;TDto&gt;"/> 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>
        protected ActivityViewModelBase(
            IUserDialogService userDialogService,
            IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
            IAccessControlManager accessControlManager,
            IEventAggregator eventAggregator,
            ICommandFactory commandFactory)
            : base(userDialogService, asyncRequestDispatcherFactory, accessControlManager, commandFactory)
        {
            _eventAggregator = eventAggregator;
            _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
            _userDialogService             = userDialogService;

            _eventAggregator.GetEvent <VisitChangedEvent> ().Subscribe(
                HandleVisitChanged,
                ThreadOption.BackgroundThread,
                false,
                FilterVisitChangedEvents);

            PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == PropertyUtil.ExtractPropertyName(() => EditingDto))
                {
                    UpdateDtoReadOnly();
                }
            };

            EditActivityCommand = NavigationCommandManager.BuildCommand(
                () => EditActivityCommand, NavigateToEditActivityCommand, CanNavigateToEditActivityCommand);
        }
Exemplo n.º 39
0
        static void RegisterServices(IServiceCollection collection, IAccessControlManager accessControlManager)
        {
            //Services
            var restClient = new RestClient("https://api.everydollar.com");

            collection.AddSingleton(accessControlManager);
            collection.AddSingleton <IRestClient>(restClient);
            collection.AddSingleton <IRemoteBudgetCalls, RemoteBudgetCalls>();

            //Models
            var budget  = BudgetBuilder.Build();
            var profile = OnboardingProfileBuilder.Build(budget);

            collection.AddSingleton <BudgetGroupSync>();
            collection.AddSingleton <BudgetSync>();
            collection.AddSingleton <GoalsStatusSync>();
            collection.AddSingleton(budget);
            collection.AddSingleton <BudgetRatio>();
            collection.AddSingleton <BudgetSummary>();
            collection.AddSingleton(profile);

            // View models
            collection.AddSingleton <BudgetViewModel>();
            collection.AddSingleton <BudgetSummaryViewModel>();
            collection.AddSingleton <OnboardingProfileViewModel>();
        }
Exemplo n.º 40
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchViewModelBase"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 /// <param name="advancedSearchCriteriaBase">The advanced search criteria base.</param>
 protected SearchViewModelBase(
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory,
     AdvancedSearchCriteriaBase advancedSearchCriteriaBase)
     : this(accessControlManager, commandFactory, advancedSearchCriteriaBase, true)
 {
 }
Exemplo n.º 41
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageCenterWorkspaceViewModel"/> 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="eventAggregator">The event aggregator.</param>
        /// <param name="dispatcherFactory">The dispatcher factory.</param>
        public MessageCenterWorkspaceViewModel(
            IAccessControlManager accessControlManager,
            ICommandFactory commandFactory,
            IPopupService popupService,
            IEventAggregator eventAggregator,
            IAsyncRequestDispatcherFactory dispatcherFactory
            )
            : base(accessControlManager, commandFactory)
        {
            _popupService      = popupService;
            _dispatcherFactory = dispatcherFactory;
            IncomingMail       = new ObservableCollection <DirectMailDto>();
            SentMail           = new ObservableCollection <DirectMailDto>();

            CommandFactoryHelper <MessageCenterWorkspaceViewModel> commandFactoryHelper = CommandFactoryHelper.CreateHelper(this, commandFactory);

            SendNewMailCommand = commandFactoryHelper.BuildDelegateCommand(() => SendNewMailCommand, ExecuteSendNewMail);
            OpenSaveToExternalPatientHistoryCommand =
                commandFactoryHelper.BuildDelegateCommand <string> (
                    () => OpenSaveToExternalPatientHistoryCommand, ExecuteOpenSaveToExternalPatientHistory);
            DownloadMailAttachmentCommand = commandFactoryHelper.BuildDelegateCommand <string>(
                () => DownloadMailAttachmentCommand, DownloadMailAttachment);
            DragQueryCommand = commandFactoryHelper.BuildDelegateCommand <DragDropQueryEventArgs>(() => DragQueryCommand, ExecuteDragQuery);

            eventAggregator.GetEvent <MessageSentEvent> ().Subscribe(HandleMessageSent);

            SetupImapFolderTimers();
            RequestInboxContent(null, null);
            RequestSentItemsContent(null, null);
        }
Exemplo n.º 42
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimErrorsListViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public ClaimErrorsListViewModel ( IAccessControlManager accessControlManager, ICommandFactory commandFactory )
     : base ( accessControlManager, commandFactory )
 {
     Errors = new ObservableCollection<TempClaimModel> ();
     var error1 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -10 ),
             PayorName = "Aetna",
             ChargeAmount = ( decimal )50.0,
             PatientName = "Albert Smith",
             Message = "BR897 - The patient name does not match the insurance information on file.",
             PayorTypeName = "Commercial"
         };
     var error2 = new TempClaimModel
         {
             ServiceDate = DateTime.Now.AddDays ( -15 ),
             PayorName = "Medicaid",
             ChargeAmount = ( decimal )500.0,
             PatientName = "Tad Young",
             Message = "BR123 - The assessment cannot be incomplete.",
             PayorTypeName = "Medicare"
         };
     Errors.Add ( error1 );
     Errors.Add ( error2 );
 }
Exemplo n.º 43
0
        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;
        }
Exemplo n.º 44
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgencyDashboardViewModel"/> 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 AgencyDashboardViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LabTestNameDtsSearchViewModel"/> 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 LabTestNameDtsSearchViewModel(
     ITerminologyProxy proxy,
     IUserDialogService userDialogService,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(proxy, userDialogService, accessControlManager, commandFactory, NamespaceToUse)
 {
 }
Exemplo n.º 46
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NewCropModalViewModel"/> class.
 /// </summary>
 /// <param name="launcher">The launcher.</param>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="commandFactory">The command factory.</param>
 public NewCropModalViewModel(
     INewCropSessionLauncher launcher,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _launcher = launcher;
 }
Exemplo n.º 47
0
        /// <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 );
        }
Exemplo n.º 48
0
 public CaseSnapshotViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleManagementWorkspaceViewModel"/> 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 RoleManagementWorkspaceViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
Exemplo n.º 50
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VaccineNameDtsSearchViewModel"/> 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 VaccineNameDtsSearchViewModel(
     ITerminologyProxy proxy,
     IUserDialogService userDialogService,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory)
     : base(proxy, userDialogService, accessControlManager, commandFactory, NamespaceToUse)
 {
 }
Exemplo n.º 51
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MUObjectivesViewModel"/> 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 MUObjectivesViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
Exemplo n.º 52
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocationDashboardViewModel"/> 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 LocationDashboardViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory)
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
Exemplo n.º 53
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NewCropModule"/> class.
 /// </summary>
 /// <param name="container">The container.</param>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="metadataService">The metadata service.</param>
 public NewCropModule(
     IUnityContainer container,
     IAccessControlManager accessControlManager,
     IMetadataService metadataService )
 {
     _container = container;
     _accessControlManager = accessControlManager;
     _metadataService = metadataService;
 }
Exemplo n.º 54
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DTSSearchViewModel"/> 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>
 /// <param name="namespaceToUse">The namespace to use.</param>
 protected DTSSearchViewModel(
     ITerminologyProxy proxy,
     IUserDialogService userDialogService,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory,
     string namespaceToUse )
     : this(proxy, userDialogService, accessControlManager, commandFactory, namespaceToUse, null, null)
 {
 }
Exemplo n.º 55
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomePageViewModel"/> class.
 /// </summary>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="navigationService">The navigation service.</param>
 /// <param name="commandFactory">The command factory.</param>
 /// <param name="popupService">The popup service.</param>
 public HomePageViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory,
     IPopupService popupService)
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
     _popupService = popupService;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="BillingAdministrationDashboardViewModel"/> 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 BillingAdministrationDashboardViewModel(
            IAccessControlManager accessControlManager,
            INavigationService navigationService,
            ICommandFactory commandFactory )
            : base(accessControlManager, commandFactory)
        {
            _navigationService = navigationService;

            GoToPayorDashboardCommand = NavigationCommandManager.BuildCommand ( () => GoToPayorDashboardCommand, NavigateToGoToPayorDashboardCommand );
        }
Exemplo n.º 57
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GrowthRateViewModel"/> class.
 /// </summary>
 /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</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 GrowthRateViewModel(
     IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
     IUserDialogService userDialogService,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
     _userDialogService = userDialogService;
 }
Exemplo n.º 58
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StaffSearchViewModel"/> 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 StaffSearchViewModel(
     IUserDialogService userDialogService,
     IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory, new AdvancedSearchCriteriaBase ())
 {
     _userDialogService = userDialogService;
     _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
 }
Exemplo n.º 59
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AgencyModule"/> class.
 /// </summary>
 /// <param name="regionManager">The region manager.</param>
 /// <param name="container">The container.</param>
 /// <param name="accessControlManager">The access control manager.</param>
 /// <param name="metadataService">The metadata service.</param>
 public AgencyModule(
     IRegionManager regionManager,
     IUnityContainer container,
     IAccessControlManager accessControlManager,
     IMetadataService metadataService )
 {
     _regionManager = regionManager;
     _container = container;
     _accessControlManager = accessControlManager;
     _metadataService = metadataService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimBatchDashboardListViewModel"/> 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>
 public ClaimBatchDashboardListViewModel(
     IAccessControlManager accessControlManager,
     ICommandFactory commandFactory,
     IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory,
     IUserDialogService userDialogService )
     : base(accessControlManager, commandFactory)
 {
     _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory;
     _userDialogService = userDialogService;
     PageController = new PageController ( HandlePageChanged ) { PageSize = 50 };
 }