This commit is contained in:
Kathy Ruffing 2011-07-14 15:54:13 +00:00
parent 981ae7a333
commit d9afe189ca

View File

@ -25,6 +25,7 @@ namespace DataLoader
{
public partial class Loader
{
private List<string> InvalidROs = new List<string>();
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 <START]\v0 {0}\v #Link:ReferencedObject:{1} {2} {3}\v0 \v [END>\v0 ",