From bffb924c2e6b3005efb54edfaa8da8f1c556cdd0 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 29 Oct 2014 14:42:40 +0000 Subject: [PATCH] BGEVL: added NotesToFootnotes flag Paginate BGE Valve sections --- PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs | 8 ++++++++ PROMS/Volian.Print.Library/Pagination.cs | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index 70e03ee3..eb75b192 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -952,6 +952,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _PrintNoTitle, "@PrintNoTitle"); } } + private LazyLoad _NotesToFootnotes; + public bool NotesToFootnotes + { + get + { + return LazyLoad(ref _NotesToFootnotes, "@NotesToFootnotes"); + } + } private LazyLoad _CountFoldoutPages; public bool CountFoldoutPages { diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 35a0441f..37d3b732 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -172,7 +172,12 @@ namespace Volian.Print.Library } if (!MyItemInfo.IsHigh) return 0; // Don't Paginate on a Substep level bool doSectionTitleContinued = false; - if (MyItemInfo.InList(1148, 391)) Console.Write("Here"); + if (MyPageHelper.NotesToFootNotes != null && MyPageHelper.NotesToFootNotes.Count > 0) + { + float vtnHeight = SixLinesPerInch; + foreach (vlnText vtn in MyPageHelper.NotesToFootNotes) vtnHeight += vtn.Height; + yEndMsg += vtnHeight; // * vlnPrintObject.SixLinesPerInch); + } if (MyItemInfo.MyPrevious != null && !MyItemInfo.IsSection && MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.ContinueSectionHeader) { SectionConfig sch = MyItemInfo.ActiveSection.MyConfig as SectionConfig;