From 6afde922e36bcab835e3c17ff976469d6882e776 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 8 Nov 2010 14:16:40 +0000 Subject: [PATCH] --- PROMS/DataLoader/Sections.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index 589c1586..089bf77a 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -30,6 +30,7 @@ namespace DataLoader private Dictionary 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;