This commit is contained in:
@@ -25,7 +25,7 @@ namespace DataLoader
|
||||
{
|
||||
public partial class Loader
|
||||
{
|
||||
private string MigrateRos(OleDbConnection cn, string textm, string seqcvt, Content content)
|
||||
private string MigrateRos(OleDbConnection cn, string textm, string seqcvt, Content content, DocVersion docver)
|
||||
{
|
||||
StringBuilder rotxt = new StringBuilder();
|
||||
int instance = 0;
|
||||
@@ -61,10 +61,20 @@ namespace DataLoader
|
||||
{
|
||||
DataRow dr = dt.Rows[instance];
|
||||
string ROID = dr["ROID"].ToString();
|
||||
RoUsage ro = RoUsage.MakeRoUsage(content, ROID, null, DateTime.Now, "Migration");
|
||||
string results = string.Format(@"{0}{1}\v #Link:ReferencedObject:{2} {3}\v0",
|
||||
'\x15', rofst.GetRoValue(ROID.Substring(0, 12).ToUpper()), ro.ROUsageID, ROID);
|
||||
rotxt.Append(results);
|
||||
RoUsage ro = RoUsage.MakeRoUsage(content, ROID, null, DateTime.Now, "Migration", rodb);
|
||||
try
|
||||
{
|
||||
string rov = rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper());
|
||||
string results = string.Format(@"{0}{1}\v #Link:ReferencedObject:{2} {3} {4}\v0",
|
||||
'\x15', rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper()), ro.ROUsageID, ROID, rodb.RODbID);
|
||||
rotxt.Append(results);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error("Error setting RO data in text field");
|
||||
log.ErrorFormat("Error Message = {0}", ex.Message);
|
||||
log.ErrorFormat("proc number = {0}, oldstepsequence = {1}, instance = {2}", ProcNumber, seqcvt, instance);
|
||||
}
|
||||
instance++;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user