This commit is contained in:
parent
ec9ac888a0
commit
40a0cd2d24
@ -303,10 +303,8 @@ namespace DataLoader
|
|||||||
if (File.Exists(docfile)) File.Delete(docfile);
|
if (File.Exists(docfile)) File.Delete(docfile);
|
||||||
FileInfo doctmpFile = tmpFile.CopyTo(docfile);
|
FileInfo doctmpFile = tmpFile.CopyTo(docfile);
|
||||||
doc.DocAscii = ascii;
|
doc.DocAscii = ascii;
|
||||||
//doc.UpdateDocAscii(docfile);
|
|
||||||
doc.Save();
|
doc.Save();
|
||||||
File.Delete(docfile);
|
File.Delete(docfile);
|
||||||
DocumentInfo di = DocumentInfo.Get(doc.DocID);
|
|
||||||
return doc.DocID;
|
return doc.DocID;
|
||||||
}
|
}
|
||||||
// for an io exception, keep trying
|
// for an io exception, keep trying
|
||||||
|
@ -91,7 +91,6 @@ namespace DataLoader
|
|||||||
entry.MyDocument = Document.Get(Documentid);
|
entry.MyDocument = Document.Get(Documentid);
|
||||||
entry.DTS = Dts;
|
entry.DTS = Dts;
|
||||||
entry.UserID = Userid;
|
entry.UserID = Userid;
|
||||||
//entry = Entry.MakeEntry(cont.ContentID, Document.Get(Documentid), Dts, Userid);
|
|
||||||
}
|
}
|
||||||
cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq;
|
cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq;
|
||||||
Item itm = null;
|
Item itm = null;
|
||||||
@ -476,7 +475,16 @@ namespace DataLoader
|
|||||||
cont.Save();
|
cont.Save();
|
||||||
}
|
}
|
||||||
thesectid = secitem.ItemID;
|
thesectid = secitem.ItemID;
|
||||||
|
using (ItemInfo seciteminfo = ItemInfo.Get(thesectid))
|
||||||
|
{
|
||||||
|
if (seciteminfo.MyContent.ContentEntryCount != 0)
|
||||||
|
{
|
||||||
|
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
||||||
|
{
|
||||||
|
MSWordToPDF.UpdateDocPdf(di, Color.Red);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// if the editsectid hasn't been set yet, set it to this section id, i.e. the first
|
// if the editsectid hasn't been set yet, set it to this section id, i.e. the first
|
||||||
// one processed. Then if this section has the original edit section flag (sequence[2])
|
// one processed. Then if this section has the original edit section flag (sequence[2])
|
||||||
// save the id. The first step is necessary in case there is no original edit section
|
// save the id. The first step is necessary in case there is no original edit section
|
||||||
|
@ -106,6 +106,7 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
ldr = new Loader(_MyLog, this);
|
ldr = new Loader(_MyLog, this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
MSWordToPDF.FormForPlotGraphics = this;
|
||||||
lblTime.Tag = DateTime.Now;
|
lblTime.Tag = DateTime.Now;
|
||||||
switch (SystemInformation.ComputerName.ToUpper())
|
switch (SystemInformation.ComputerName.ToUpper())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user