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 );
        }
        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="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 );
        }
 /// <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 );
 }
        /// <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 );
        }
        /// <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
                };
        }
 /// <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"
             } );
 }
        /// <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 );
        }
Beispiel #9
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 );
        }
Beispiel #10
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 );
        }
        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 ();
        }
Beispiel #12
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;
 }
        /// <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 );
        }
 /// <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 );
 }
        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="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)
 {
 }
 /// <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;
 }
Beispiel #18
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 );
        }
 public CaseSnapshotViewModel(
     IAccessControlManager accessControlManager,
     INavigationService navigationService,
     ICommandFactory commandFactory )
     : base(accessControlManager, commandFactory)
 {
     _navigationService = navigationService;
 }
 /// <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="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;
 }
 /// <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;
 }
Beispiel #23
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;
 }
Beispiel #24
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)
 {
 }
Beispiel #25
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 );
        }
Beispiel #27
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;
 }
Beispiel #28
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;
 }
Beispiel #29
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 };
 }