Added Unit Specif logic
Added “Final Page” logic Added “Final Page” logic, fixed PDF compare where it wasn’t finding the file in the Compare folder Added Caution and Note boxes for Turkey Point Null check and logic for PosAdjust format variable Added “Final Page” message logic Fix to get proper with of tabs containing a solid bullet
This commit is contained in:
@@ -282,7 +282,21 @@ namespace Volian.Print.Library
|
||||
}
|
||||
return PrintProcedureOrFoldout(myProcedure, false, outputFileName);
|
||||
}
|
||||
|
||||
// Find the last section that has a Final Message defined in its format
|
||||
// Return that section's itemID or a -1 if the Final Message is not defined
|
||||
private int GetFinalMessageSectionID(ProcedureInfo myProcedure, bool doingFoldout)
|
||||
{
|
||||
int sectionID = -1;
|
||||
if (!doingFoldout)
|
||||
{
|
||||
foreach (SectionInfo mySection in myProcedure.Sections)
|
||||
{
|
||||
if (mySection.MyDocStyle.Final.Message != null && mySection.MyDocStyle.Final.Message.Length > 0)
|
||||
sectionID = mySection.ItemID;
|
||||
}
|
||||
}
|
||||
return sectionID;
|
||||
}
|
||||
private string PrintProcedureOrFoldout(ProcedureInfo myProcedure, bool doingFoldout, string outputFileName)
|
||||
{
|
||||
// Create an MSWord Pdf
|
||||
@@ -295,6 +309,7 @@ namespace Volian.Print.Library
|
||||
OnStatusChanged("After NewPage", PromsPrinterStatusType.NewPage);
|
||||
OnStatusChanged(myProcedure.DisplayNumber, PromsPrinterStatusType.ProgressSetup, myProcedure.Sections.Count);
|
||||
int progress = 0;
|
||||
int finalMessageSectionID = GetFinalMessageSectionID(myProcedure, doingFoldout);
|
||||
foreach (SectionInfo mySection in myProcedure.Sections)
|
||||
{
|
||||
|
||||
@@ -313,7 +328,7 @@ namespace Volian.Print.Library
|
||||
if (DebugOutput)
|
||||
{
|
||||
// 16-bit background
|
||||
string procedureFileName = BackgroundFolder + "\\" + CreateFileName(myProcedure.DisplayNumber);
|
||||
string procedureFileName = BackgroundFolder + "\\" + PDFFile;//CreateFileName(myProcedure.DisplayNumber);
|
||||
FileInfo VEPromsFile = new FileInfo(procedureFileName);
|
||||
if (VEPromsFile.Exists && !doingFoldout)
|
||||
{
|
||||
@@ -344,7 +359,7 @@ namespace Volian.Print.Library
|
||||
}
|
||||
PdfReader readerWord = null;
|
||||
string myPdfFile = null;
|
||||
|
||||
_MyHelper.FinalMessageSectionID = finalMessageSectionID; // set VlnSvgPageHelper with the finalMessageSectionID
|
||||
if (mySection.IsStepSection)
|
||||
{
|
||||
if ((mySection.MyDocStyle.StructureStyle.Style ?? 0 & E_DocStructStyle.UseSectionFoldout) != 0)
|
||||
|
Reference in New Issue
Block a user