Ejemplo n.º 1
0
 private bool PrvParseData(string[] sInput)
 {
     try
     {
         if (sInput[0] != RecordType)
         {
             return(false);
         }
         _prvSeqNumber.PubFieldData    = sInput[_prvSeqNumber.PubFieldIndex - 1];
         _prvTestIdString.PubFieldData = sInput[_prvTestIdString.PubFieldIndex - 1];
         _prvDataValue.PubFieldData    = sInput[_prvDataValue.PubFieldIndex - 1];
         string[] sTemp = _prvTestIdString.PubFieldData.Split(ComponentDelimiter);
         TestId                             = sTemp[3];
         ResultAspects                      = sTemp[7];
         _prvUnits.PubFieldData             = sInput[_prvUnits.PubFieldIndex - 1];
         _prvDateTestCompleted.PubFieldData = sInput[_prvDateTestCompleted.PubFieldIndex - 1];
         TestDate                           = _prvDateTestCompleted.PubFieldData.Substring(0, 8);
         TestDate                           = string.Format("{0}/{1}/{2}", TestDate.Substring(6, 2), TestDate.Substring(4, 2),
                                                            TestDate.Substring(0, 4));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }