예제 #1
0
		public void UpdateModality(ModalityDetail detail, Modality modality, IPersistenceContext context)
		{
			modality.Id = detail.Id;
			modality.Name = detail.Name;
			modality.Facility = detail.Facility == null ? null : context.Load<Facility>(detail.Facility.FacilityRef, EntityLoadFlags.Proxy);
			modality.AETitle = detail.AETitle;
			modality.DicomModality = EnumUtils.GetEnumValue<DicomModalityEnum>(detail.DicomModality, context);
			modality.Deactivated = detail.Deactivated;
		}
 public ModalityProcedureStepTypeDetail(string id, string name, ModalityDetail defaultModality)
 {
     this.Id = id;
     this.Name = name;
     this.DefaultModality = defaultModality;
 }
 public ModalityProcedureStepTypeDetail(string id, string name, ModalityDetail defaultModality)
 {
     this.Id              = id;
     this.Name            = name;
     this.DefaultModality = defaultModality;
 }