From d9afe189caaaf3bbec917127bd848fdbb3e7e1de Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 14 Jul 2011 15:54:13 +0000 Subject: [PATCH] --- PROMS/DataLoader/RefObjs.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PROMS/DataLoader/RefObjs.cs b/PROMS/DataLoader/RefObjs.cs index 7a5da128..b68b3ec3 100644 --- a/PROMS/DataLoader/RefObjs.cs +++ b/PROMS/DataLoader/RefObjs.cs @@ -25,6 +25,7 @@ namespace DataLoader { public partial class Loader { + private List InvalidROs = new List(); private string MigrateRos(OleDbConnection cn, string textm, string seqcvt, Content content, DocVersion docver, bool conv_caret,ref int rotype) { StringBuilder rotxt = new StringBuilder(); @@ -72,7 +73,7 @@ namespace DataLoader RoUsage ro = RoUsage.MakeRoUsage(content, ROID, null, DateTime.Now, "Migration", rodb); try { - string rov = rofstinfo.ROFSTLookup.GetRoValue(ROID.ToUpper()); + //string rov = rofstinfo.ROFSTLookup.GetRoValue(ROID.ToUpper()); ROFSTLookup.rochild myro = rofstinfo.ROFSTLookup.GetRoChild12(ROID.ToUpper()); rotype = Math.Max(rotype, myro.type); //jsj string rov = TextConvert.ConvertText(rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper())); @@ -86,7 +87,10 @@ namespace DataLoader { roval = roval.Substring(0, roval.IndexOf('\n')); } - + // add an annotation stating "Invalid Unit RO 'ROID'. Need an Item for this, so just add + // it to a list of 'invalid ros' so that calling method can add annotations to the Item. + if (roval == "?") + InvalidROs.Add(string.Format("Invalid RO '{0}'", ROID.Substring(0, 12))); //if (roval.Contains("\r") || roval.Contains("\n")) // Console.WriteLine("RO has new Lines"); //string results = string.Format(@"\v \v0 ",