This commit is contained in:
@@ -30,6 +30,7 @@ namespace DataLoader
|
||||
private Dictionary<string, int> dicOldToNew;
|
||||
private Item AddSection(Item procitem, string Number, string Title, string SecType, DateTime Dts, string Userid, ConfigInfo ci, string stpseq, string fmt, int libdocid, string pth, Item FromItem, FormatInfo activeFormat)
|
||||
{
|
||||
bool missingDocFile = false;
|
||||
//Console.WriteLine("before UpdateLabels");
|
||||
frmMain.UpdateLabels(0, 1, 0);
|
||||
//Console.WriteLine("after UpdateLabels");
|
||||
@@ -80,6 +81,7 @@ namespace DataLoader
|
||||
{
|
||||
if (MissingDocument==null) MissingDocument = Document.MakeDocument("MISSING FILE IN CONVERSION", null, null, null,null);
|
||||
Documentid = MissingDocument.DocID;
|
||||
missingDocFile = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -120,6 +122,13 @@ namespace DataLoader
|
||||
}
|
||||
else
|
||||
itm = Item.MakeItem(FromItem, cont, Dts, Userid);
|
||||
if (missingDocFile)
|
||||
{
|
||||
ItemAnnotation ia = itm.ItemAnnotations.Add(MigrationErrorType);
|
||||
ia.SearchText = "Missing File In Conversion";
|
||||
ia.UserID = "Migration";
|
||||
itm.Save();
|
||||
}
|
||||
dicTrans_ItemDone[ProcNumber+"|"+trstpseq] = itm;
|
||||
dicOldStepSequence[itm] = stpseq;
|
||||
return itm;
|
||||
|
Reference in New Issue
Block a user