예제 #1
0
 public OefOifTO(OEF_OIF o)
 {
     this.location      = o.Location;
     this.fromDate      = o.FromDate.ToString("yyyyMMdd");
     this.toDate        = o.ToDate.ToString("yyyyMMdd");
     this.dataLocked    = o.DataLocked;
     this.recordedDate  = o.RecordedDate.ToString("yyyyMMdd");
     this.recordingSite = new TaggedText(o.RecordingSite);
 }
예제 #2
0
 public TaggedOefOifArray(string tag, OEF_OIF item)
 {
     this.tag = tag;
     if (item == null)
     {
         this.count = 0;
         return;
     }
     this.items    = new OefOifTO[1];
     this.items[0] = new OefOifTO(item);
     this.count    = 1;
 }
예제 #3
0
 internal OEF_OIF[] toOefOif(string[] response)
 {
     if (response == null || response.Length == 0)
     {
         return null;
     }
     OEF_OIF[] result = new OEF_OIF[response.Length];
     for (int i = 0; i < response.Length; i++)
     {
         string[] flds = StringUtils.split(response[i], StringUtils.CARET);
         result[i] = new OEF_OIF();
         result[i].Location = flds[1];
         result[i].FromDate = VistaTimestamp.toDateTime(flds[2]);
         if (flds[3] != "")
         {
             result[i].ToDate = VistaTimestamp.toDateTime(flds[3]);
         }
         result[i].DataLocked = (flds[4] == "1");
         result[i].RecordedDate = VistaTimestamp.toDateTime(flds[5]);
         if (flds[6] != "")
         {
             result[i].RecordingSite = new KeyValuePair<string, string>(flds[6], flds[7]);
         }
     }
     return result;
 }