当前位置: 首页>>代码示例>>C#>>正文


C# ReceivedResponses类代码示例

本文整理汇总了C#中ReceivedResponses的典型用法代码示例。如果您正苦于以下问题:C# ReceivedResponses类的具体用法?C# ReceivedResponses怎么用?C# ReceivedResponses使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ReceivedResponses类属于命名空间,在下文中一共展示了ReceivedResponses类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BatchRequestsSucceeded

 private void BatchRequestsSucceeded(ReceivedResponses receivedResponses)
 {
     var helloWorldResponse = receivedResponses.Get<HelloWorldResponse>();
     var getServerDateResponse = receivedResponses.Get<GetServerDateResponse>();
     AddSucceededRequestsToView("Batch response", helloWorldResponse.Message,
         "The server date is: " + getServerDateResponse.Date);
 }
开发者ID:hoghweed,项目名称:Agatha,代码行数:7,代码来源:MainPage.xaml.cs

示例2: HandleTaskGroupCommandCompleted

        private void HandleTaskGroupCommandCompleted( ReceivedResponses receivedResponses )
        {
            IsLoading = false;
            var response = receivedResponses.Get<SystemRoleCommandResponse> ();
            var validationErrors = response.DataTransferObject.DataErrorInfoCollection.ToList ();

            if ( validationErrors.Count () == 0 )
            {
                var newlyChangedTaskGroup = response.SystemRole;

                RefreshForTaskGroupChanges ( newlyChangedTaskGroup );
            }
            else
            {
                ProcessValidationErrors ( validationErrors );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:17,代码来源:EditTaskAndTaskGroupViewModel.cs

示例3: HandleGetAllProblemsByClinicalCaseCompleted

        private void HandleGetAllProblemsByClinicalCaseCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<GetAllProblemsByClinicalCaseResponse> ();

            _problemList = new List<ProblemDto> ( response.ProblemDtos );
            PagedCollectionViewWrapper.WrapInPagedCollectionView ( _problemList, _filter );
            IsLoading = false;
        }
开发者ID:divyang4481,项目名称:REM,代码行数:8,代码来源:CaseProblemListViewModel.cs

示例4: HandleGetPayorTypesCompleted

 private void HandleGetPayorTypesCompleted( ReceivedResponses receivedResponses )
 {
     IsLoading = false;
     var response = receivedResponses.Get<GetPayorTypesByBillingOfficeKeyResponse> ();
     PayorTypeList = response.PayorTypes;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:6,代码来源:PayorTypeListViewModel.cs

示例5: HandleGenerateHcc837ProfessionalCompleted

        private void HandleGenerateHcc837ProfessionalCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<GenerateHcc837ProfessionalResponse> ();

            var relativePath = string.Format (
                "../{0}?{1}={2}&{3}={4}",
                HttpHandlerPaths.BillingModuleHttpHandlerPath,
                HttpUtility.UrlEncode ( HttpHandlerQueryStrings.RequestName ),
                HttpUtility.UrlEncode ( HttpHandlerRequestNames.DownloadHealthCareClaim837ProfessionalDocument ),
                HttpUtility.UrlEncode ( HttpHandlerQueryStrings.ClaimBatchKey ),
                _currentClaimBatchKey );

            var uri = Application.Current.Host.Source != null ? new Uri ( Application.Current.Host.Source, relativePath ) : new Uri ( "blank:" );
            HtmlPage.Window.Navigate ( uri, "_blank" );
        }
开发者ID:divyang4481,项目名称:REM,代码行数:15,代码来源:ClaimBatchListViewModel.cs

示例6: PostC32ToPopHealtheRequestRequestDispatcherCompleted

 private void PostC32ToPopHealtheRequestRequestDispatcherCompleted( ReceivedResponses receivedResponses )
 {
     IsLoading = false;
     var response = receivedResponses.Get<PostC32ToPopHealthResponse> ();
     _userDialogService.ShowDialog (
         string.Format ( "Message from PopHealth:\n{0}", response.Message ), "Export C32 to PopHealth", UserDialogServiceOptions.Ok );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:7,代码来源:InteroperabilityWorkspaceViewModel.cs

示例7: HandleSaveRequestComplete

 private void HandleSaveRequestComplete( ReceivedResponses receivedResponses )
 {
     var response = receivedResponses.Get<DtoResponse<MedicationDto>> ();
     Medication = response.DataTransferObject;
     if ( !Medication.HasErrors )
     {
         _eventAggregator.GetEvent<MedicationChangedEvent> ().Publish (
             new MedicationChangedEventArgs { Sender = this, MedicationKey = Medication.Key, PatientKey = Medication.PatientKey } );
         CloseViewCommand.Execute ( null );
     }
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:12,代码来源:EditMedicationViewModel.cs

示例8: GetMedicationByKeyCompleted

 private void GetMedicationByKeyCompleted( ReceivedResponses receivedResponses )
 {
     if ( receivedResponses.HasResponse<GetMedicationByKeyResponse> () )
     {
         IsLoading = false;
         var response = receivedResponses.Get<GetMedicationByKeyResponse> ();
         Medication = response.Medication;
         DtsMedicationCode = Medication.MedicationCodeCodedConcept;
     }
 }
开发者ID:divyang4481,项目名称:REM,代码行数:10,代码来源:EditMedicationViewModel.cs

示例9: GetTaskSystemRoleListCompleted

 private void GetTaskSystemRoleListCompleted( ReceivedResponses receivedResponses )
 {
     var response = receivedResponses.Get<DtoResponse<TaskSystemRolesDto>> ();
     TaskSystemRoleLookupList = new PagedCollectionView ( response.DataTransferObject.SystemRoles );
 }
开发者ID:divyang4481,项目名称:REM,代码行数:5,代码来源:EditJobFunctionViewModel.cs

示例10: HandleInitializationCompleted

 private void HandleInitializationCompleted( ReceivedResponses receivedResponses )
 {
     GetDefaultClinicalCaseByPatientRequestCompleted ( receivedResponses );
     GetAllClinicalCasesByPatientRequestCompleted ( receivedResponses );
     if (SelectedClinicalCase != null)
     {
         _lastSelectedClinicalCaseKey = SelectedClinicalCase.Key;
     }
     IsLoading = false;
 }
开发者ID:divyang4481,项目名称:REM,代码行数:10,代码来源:PatientDashboardViewModel.cs

示例11: GetDefaultClinicalCaseByPatientRequestCompleted

        private void GetDefaultClinicalCaseByPatientRequestCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<GetDefaultClinicalCaseByPatientResponse> ();
            var caseSummaryDto = response.CaseSummaryDto;

            if ( caseSummaryDto == null )
            {
                // Create new clinical case and navigate to clinical case editor.
                CreateClinicalCase ();
            }
            else
            {
                SelectedClinicalCase = new ClinicalCaseSummaryDto
                    {
                        Key = caseSummaryDto.Key,
                        ClinicalCaseNumber = caseSummaryDto.ClinicalCaseNumber,
                        ClinicalCaseStartDate = caseSummaryDto.ClinicalCaseStartDate,
                        ClinicalCaseCloseDate = caseSummaryDto.ClinicalCaseCloseDate
                    };

                RefreshDashboard ( caseSummaryDto.Key );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:23,代码来源:PatientDashboardViewModel.cs

示例12: GetAllClinicalCasesByPatientRequestCompleted

        private void GetAllClinicalCasesByPatientRequestCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<GetAllClinicalCasesByPatientResponse> ();
            var caseSummaryDtos = response.ClinicalCases;

            AllClinicalCases = new ObservableCollection<ClinicalCaseSummaryDto> ( caseSummaryDtos );
            if ( SelectedClinicalCase != null )
            {
                SelectedClinicalCase = AllClinicalCases.SingleOrDefault ( x => x.Key == SelectedClinicalCase.Key );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:11,代码来源:PatientDashboardViewModel.cs

示例13: CreateNewClinicalCaseRequestDispatcherCompleted

        private void CreateNewClinicalCaseRequestDispatcherCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<CreateNewClinicalCaseResponse> ();
            var clinicalCaseDto = response.ClinicalCaseDto;

            SelectedClinicalCase = new ClinicalCaseSummaryDto
                {
                    Key = clinicalCaseDto.Key,
                    ClinicalCaseNumber = clinicalCaseDto.ClinicalCaseProfile.ClinicalCaseNumber
                };

            if ( SelectedClinicalCase != null )
            {
                _lastSelectedClinicalCaseKey = SelectedClinicalCase.Key;
                NavigateToClinicalCase ( true );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:17,代码来源:PatientDashboardViewModel.cs

示例14: GetTaskSystemRoleListCompleted

        private void GetTaskSystemRoleListCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<DtoResponse<TaskSystemRolesDto>> ();
            var taskSystemRoleList = response.DataTransferObject.SystemRoles;
            taskSystemRoleList = new ObservableCollection<SystemRoleDto> ( taskSystemRoleList.OrderBy ( p => p.Name ).ToList () );
            foreach ( var task in taskSystemRoleList )
            {
                task.GrantedSystemPermissions =
                    new ObservableCollection<SystemPermissionDto> ( task.GrantedSystemPermissions.OrderBy ( p => p.DisplayName ) );
            }

            TaskCollectionView = new PagedCollectionView ( taskSystemRoleList );

            if ( IsBegunWithTaskWorkingMode.HasValue && IsBegunWithTaskWorkingMode.Value )
            {
                var initialTaskToEdit = taskSystemRoleList.SingleOrDefault ( p => p.Key == _initialSystemRoleKeyToEdit );
                if ( initialTaskToEdit != null )
                {
                    SelectedItemInTaskList = initialTaskToEdit;
                }
                else if ( _isAddingNewTask )
                {
                    _isAddingNewTask = false;
                    ExecuteCreateNewTaskCommand ();
                    Thread.Sleep ( 500 );
                }
                else if ( !_isTaskGroupWorkingModeInitialized )
                {
                    UpdateSelectedItemInTreeView ( true );
                }
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:32,代码来源:EditTaskAndTaskGroupViewModel.cs

示例15: GetSystemPermissionListCompleted

        private void GetSystemPermissionListCompleted( ReceivedResponses receivedResponses )
        {
            var response = receivedResponses.Get<DtoResponse<SystemPermissionsDto>> ();
            var systemPermissionList = response.DataTransferObject.SystemPermissions;
            PermissionCollectionView = new PagedCollectionView ( systemPermissionList );

            if ( _isTaskGroupWorkingModeInitialized )
            {
                UpdateSelectedItemInTreeView ( true );
            }
        }
开发者ID:divyang4481,项目名称:REM,代码行数:11,代码来源:EditTaskAndTaskGroupViewModel.cs


注:本文中的ReceivedResponses类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。