コード例 #1
0
        private void ExecuteStatusChangedCommand(LookupValueDto visitStatus)
        {
            var visitStatusUpdateDto = new VisitStatusUpdateDto
            {
                VisitKey       = EditingDto.Key,
                VisitStatus    = visitStatus,
                UpdateDateTime = DateTime.Now
            };

            var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new UpdateVisitStatusRequest {
                VisitStatusUpdateDto = visitStatusUpdateDto
            });
            IsLoading = true;
            requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException);
        }
コード例 #2
0
ファイル: VisitViewModel.cs プロジェクト: girish66/REM
        private void ExecuteStatusUpdatedCommand(LookupValueDto visitStatus)
        {
            if (visitStatus != null && visitStatus.WellKnownName != _visit.VisitStatus.WellKnownName)
            {
                var visitStatusUpdateDto = new VisitStatusUpdateDto
                {
                    VisitKey       = Visit.Key,
                    VisitStatus    = visitStatus,
                    UpdateDateTime = DateTime.Now
                };

                var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();
                requestDispatcher.Add(new UpdateVisitStatusRequest {
                    VisitStatusUpdateDto = visitStatusUpdateDto
                });
                IsLoading = true;
                requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException);
            }
        }
コード例 #3
0
        private void ExecuteStatusUpdatedCommand(ClinicianAppointmentDto clinicianAppointmentDto)
        {
            var visitStatusUpdateDto = new VisitStatusUpdateDto
            {
                VisitKey       = clinicianAppointmentDto.Key,
                VisitStatus    = clinicianAppointmentDto.VisitStatus,
                UpdateDateTime = DateTime.Now
            };

            var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new UpdateVisitStatusRequest {
                VisitStatusUpdateDto = visitStatusUpdateDto
            });
            IsLoading = true;
            requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException);

            RefreshView(this, null);
        }