本文整理汇总了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);
}
示例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 );
}
}
示例3: HandleGetAllProblemsByClinicalCaseCompleted
private void HandleGetAllProblemsByClinicalCaseCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<GetAllProblemsByClinicalCaseResponse> ();
_problemList = new List<ProblemDto> ( response.ProblemDtos );
PagedCollectionViewWrapper.WrapInPagedCollectionView ( _problemList, _filter );
IsLoading = false;
}
示例4: HandleGetPayorTypesCompleted
private void HandleGetPayorTypesCompleted( ReceivedResponses receivedResponses )
{
IsLoading = false;
var response = receivedResponses.Get<GetPayorTypesByBillingOfficeKeyResponse> ();
PayorTypeList = response.PayorTypes;
}
示例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" );
}
示例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 );
}
示例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;
}
示例8: GetMedicationByKeyCompleted
private void GetMedicationByKeyCompleted( ReceivedResponses receivedResponses )
{
if ( receivedResponses.HasResponse<GetMedicationByKeyResponse> () )
{
IsLoading = false;
var response = receivedResponses.Get<GetMedicationByKeyResponse> ();
Medication = response.Medication;
DtsMedicationCode = Medication.MedicationCodeCodedConcept;
}
}
示例9: GetTaskSystemRoleListCompleted
private void GetTaskSystemRoleListCompleted( ReceivedResponses receivedResponses )
{
var response = receivedResponses.Get<DtoResponse<TaskSystemRolesDto>> ();
TaskSystemRoleLookupList = new PagedCollectionView ( response.DataTransferObject.SystemRoles );
}
示例10: HandleInitializationCompleted
private void HandleInitializationCompleted( ReceivedResponses receivedResponses )
{
GetDefaultClinicalCaseByPatientRequestCompleted ( receivedResponses );
GetAllClinicalCasesByPatientRequestCompleted ( receivedResponses );
if (SelectedClinicalCase != null)
{
_lastSelectedClinicalCaseKey = SelectedClinicalCase.Key;
}
IsLoading = false;
}
示例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 );
}
}
示例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 );
}
}
示例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 );
}
}
示例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 );
}
}
}
示例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 );
}
}