示例#1
0
 public TaggedObservationArray(string tag, LabObservation observation)
 {
     this.tag = tag;
     if (observation == null)
     {
         this.count = 0;
         return;
     }
     this.observations = new LabObservationTO[1];
     this.observations[0] = new LabObservationTO(observation);
     this.count = 1;
 }
示例#2
0
 public TaggedObservationArray(string tag, LabObservation[] observations)
 {
     this.tag = tag;
     if (observations == null)
     {
         this.count = 0;
         return;
     }
     this.observations = new LabObservationTO[observations.Length];
     for (int i = 0; i < observations.Length; i++)
     {
         this.observations[i] = new LabObservationTO(observations[i]);
     }
     this.count = observations.Length;
 }
示例#3
0
 public LabObservationTO(LabObservation mdoObj)
 {
     if (mdoObj == null)
     {
         return;
     }
     if (mdoObj.Type != null)
     {
         this.observationType = new LabObservationTypeTO(mdoObj.Type);
     }
     if (mdoObj.Value != "")
     {
         this.value = mdoObj.Value;
     }
     if (mdoObj.Value1 != "")
     {
         this.value1 = mdoObj.Value1;
     }
     if (mdoObj.Value2 != "")
     {
         this.value2 = mdoObj.Value2;
     }
     if (mdoObj.Method != "")
     {
         this.method = mdoObj.Method;
     }
     if (mdoObj.Qualifier != "")
     {
         this.qualifier = mdoObj.Qualifier;
     }
     if (mdoObj.Standardized != "")
     {
         this.standardized = mdoObj.Standardized;
     }
     if (mdoObj.Device != "")
     {
         this.device = mdoObj.Device;
     }
     if (mdoObj.Status != "")
     {
         this.status = mdoObj.Status;
     }
     if (mdoObj.Timestamp != null)
     {
         this.timestamp = mdoObj.Timestamp.ToString("yyyyMMdd.HHmmss");
     }
 }