This commit is contained in:
parent
316c64a981
commit
6f5eefd476
@ -109,7 +109,12 @@ namespace DataLoader
|
|||||||
int nBytesRead = fs.Read(ByteArray, 0, (int)len);
|
int nBytesRead = fs.Read(ByteArray, 0, (int)len);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
string t1 = (title == null || title == "") ? null : title;
|
string t1 = (title == null || title == "") ? null : title;
|
||||||
Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration");
|
Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration", ".Doc");
|
||||||
|
FileInfo tmpFile = new FileInfo(temppath);
|
||||||
|
FileInfo doctmpFile = tmpFile.CopyTo(temppath.Substring(0,temppath.LastIndexOf(".")) + @".doc");
|
||||||
|
doc.UpdateDocAscii(temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc");
|
||||||
|
doc.Save();
|
||||||
|
DocumentInfo di = DocumentInfo.Get(doc.DocID);
|
||||||
return doc.DocID;
|
return doc.DocID;
|
||||||
}
|
}
|
||||||
// for an io exception, keep trying
|
// for an io exception, keep trying
|
||||||
|
@ -65,8 +65,10 @@ namespace DataLoader
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string rov = rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper());
|
string rov = rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper());
|
||||||
string results = string.Format(@"{0}{1}\v #Link:ReferencedObject:{2} {3} {4}\v0",
|
//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);
|
// '\x15', rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper()), ro.ROUsageID, ROID, rodb.RODbID);
|
||||||
|
string results = string.Format(@"\v <START]\v0 {0}\v #Link:ReferencedObject:{1} {2} {3}\v0 \v [END>\v0 ",
|
||||||
|
rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper()), ro.ROUsageID, ROID, rodb.RODbID);
|
||||||
rotxt.Append(results);
|
rotxt.Append(results);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -160,9 +160,9 @@ namespace DataLoader
|
|||||||
}
|
}
|
||||||
string results = null;
|
string results = null;
|
||||||
if (toItem.ItemID == toItem2.ItemID)
|
if (toItem.ItemID == toItem2.ItemID)
|
||||||
results = string.Format(@"(Resolved Transition Text)\v #Link:Transition:{0} {1} {2}\v0", tr.TranType, tr.TransitionID, tr.ToID);
|
results = string.Format(@"\v <START]\v0 (Resolved Transition Text)\v #Link:Transition:{0} {1} {2}\v0 \v [END>\v0 ", tr.TranType, tr.TransitionID, tr.ToID);
|
||||||
else
|
else
|
||||||
results = string.Format(@"(Resolved Transition Text)\v #Link:TransitionRange:{0} {1} {2} {3}\v0", tr.TranType, tr.TransitionID, tr.ToID, tr.RangeID);
|
results = string.Format(@"\v <START]\v0 (Resolved Transition Text)\v #Link:TransitionRange:{0} {1} {2} {3}\v0 \v [END>\v0 ", tr.TranType, tr.TransitionID, tr.ToID, tr.RangeID);
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ namespace DataLoader
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
rectxt = AddTrans(cn, content, dr, null, pth);
|
rectxt = AddTrans(cn, content, dr, null, pth);
|
||||||
trtxt.Append(textm[tok]);
|
//trtxt.Append(textm[tok]);
|
||||||
trtxt.Append(rectxt);
|
trtxt.Append(rectxt);
|
||||||
}
|
}
|
||||||
instance++;
|
instance++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user