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 ",