Esempio n. 1
0
 protected void ShowDeletedDialog(IList<StudySummary> studyList)
 {
     DeleteStudyConfirmDialog.Initialize(CollectionUtils.Map(
         studyList,
         delegate(StudySummary study)
         {
             var info = new DeleteStudyInfo
                            {
                                StudyKey = study.Key,
                                ServerPartitionAE = study.ThePartition.AeTitle,
                                AccessionNumber = study.AccessionNumber,
                                Modalities = study.ModalitiesInStudy,
                                PatientId = study.PatientId,
                                PatientsName = study.PatientsName,
                                StudyDate = study.StudyDate,
                                StudyDescription = study.StudyDescription,
                                StudyInstanceUid = study.StudyInstanceUid
                            };
             return info;
         }
         ));
     DeleteStudyConfirmDialog.Show();
 }
Esempio n. 2
0
        public void DeleteStudy()
        {
            string reason;
            if (!_study.CanScheduleDelete(out reason))
            {
                MessageDialog.MessageType = MessageBox.MessageTypeEnum.ERROR;
                MessageDialog.Message = reason;
                MessageDialog.Show();
            }
            else
            {
                //DeleteConfirmDialog.MessageType = MessageBox.MessageTypeEnum.YESNO;
                //DeleteConfirmDialog.Message = App_GlobalResources.SR.SingleStudyDelete;
                //DeleteConfirmDialog.Data = _study.TheStudy;

                //DeleteConfirmDialog.Show();
                List<StudySummary> studyList = new List<StudySummary> {_study };

                DeleteStudyConfirmDialog.DeletingStudies = CollectionUtils.Map(
                    studyList,
                    delegate(StudySummary study)
                        {
                            var info = new DeleteStudyInfo
                                           {
                                               StudyKey = study.Key,
                                               AccessionNumber = study.AccessionNumber,
                                               Modalities = study.ModalitiesInStudy,
                                               PatientId = study.PatientId,
                                               PatientsName = study.PatientsName,
                                               StudyDate = study.StudyDate,
                                               StudyDescription = study.StudyDescription,
                                               StudyInstanceUid = study.StudyInstanceUid,
                                               ServerPartitionAE = study.ThePartition.AeTitle
                                           };
                        return info;
                    }
                );

                DeleteStudyConfirmDialog.Show();
                updatepanel.Update();
            }
        }