/// <summary>
 /// Constructor for use by service to return requisition back to client for editing.
 /// </summary>
 public ProcedureRequisition(
     EntityRef procedureRef,
     ProcedureTypeSummary procedureType,
     string procedureNumber,
     DateTime?scheduledTime,
     int scheduledDuration,
     ModalitySummary modality,
     EnumValueInfo schedulingCode,
     FacilitySummary performingFacility,
     DepartmentSummary performingDepartment,
     EnumValueInfo laterality,
     bool portableModality,
     bool checkedIn,
     EnumValueInfo status,
     bool canModify,
     bool cancelled)
 {
     this.ProcedureRef         = procedureRef;
     this.ProcedureType        = procedureType;
     this.ProcedureNumber      = procedureNumber;
     this.ScheduledTime        = scheduledTime;
     this.ScheduledDuration    = scheduledDuration;
     this.Modality             = modality;
     this.SchedulingCode       = schedulingCode;
     this.PerformingFacility   = performingFacility;
     this.PerformingDepartment = performingDepartment;
     this.Laterality           = laterality;
     this.PortableModality     = portableModality;
     this.CheckedIn            = checkedIn;
     this.Status    = status;
     this.CanModify = canModify;
     this.Cancelled = cancelled;
 }
		/// <summary>
		/// Constructor for use by service to return requisition back to client for editing.
		/// </summary>
		public ProcedureRequisition(
			EntityRef procedureRef,
			ProcedureTypeSummary procedureType,
			string procedureNumber,
			DateTime? scheduledTime,
			int scheduledDuration,
			ModalitySummary modality,
			EnumValueInfo schedulingCode,
			FacilitySummary performingFacility,
			DepartmentSummary performingDepartment,
			EnumValueInfo laterality,
			bool portableModality,
			bool checkedIn,
			EnumValueInfo status,
			bool canModify,
			bool cancelled)
		{
			this.ProcedureRef = procedureRef;
			this.ProcedureType = procedureType;
			this.ProcedureNumber = procedureNumber;
			this.ScheduledTime = scheduledTime;
			this.ScheduledDuration = scheduledDuration;
			this.Modality = modality;
			this.SchedulingCode = schedulingCode;
			this.PerformingFacility = performingFacility;
			this.PerformingDepartment = performingDepartment;
			this.Laterality = laterality;
			this.PortableModality = portableModality;
			this.CheckedIn = checkedIn;
			this.Status = status;
			this.CanModify = canModify;
			this.Cancelled = cancelled;
		}
 private void SaveChanges()
 {
     if (_isNew)
     {
         Platform.GetService <IDepartmentAdminService>(
             service =>
         {
             var response = service.AddDepartment(new AddDepartmentRequest(_detail));
             _itemRef     = response.Department.DepartmentRef;
             _summary     = response.Department;
         });
     }
     else
     {
         Platform.GetService <IDepartmentAdminService>(
             service =>
         {
             var response = service.UpdateDepartment(new UpdateDepartmentRequest(_detail));
             _itemRef     = response.Department.DepartmentRef;
             _summary     = response.Department;
         });
     }
 }
Esempio n. 4
0
 public UpdateDepartmentResponse(DepartmentSummary summary)
 {
     this.Department = summary;
 }
 public AddDepartmentResponse(DepartmentSummary summary)
 {
     this.Department = summary;
 }
		public AddDepartmentResponse(DepartmentSummary summary)
		{
			this.Department = summary;
		}
Esempio n. 7
0
		public UpdateDepartmentResponse(DepartmentSummary summary)
		{
			this.Department = summary;
		}