From b456bc6ce01f4b716d4d5847da0c091f2adb351a Mon Sep 17 00:00:00 2001 From: John Date: Thu, 7 Dec 2017 15:41:11 +0000 Subject: [PATCH] =?UTF-8?q?B2017-267=20Added=20AdjustTopMarginOnStepContin?= =?UTF-8?q?uePages=20used=20in=20Farley=E2=80=99s=20format=20in=20the=20?= =?UTF-8?q?=E2=80=9CAttachment=20Steps=20=E2=80=93=20Two=20Column=E2=80=9D?= =?UTF-8?q?=20docstyle=20definition=20and=20in=20conjunction=20with=20the?= =?UTF-8?q?=20PSOnlyFirst=20pagelist=20flag.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VEPROMS.CSLA.Library/Format/DocStyles.cs | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs b/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs index 36bcdc6a..60a7ed60 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/DocStyles.cs @@ -96,8 +96,24 @@ namespace VEPROMS.CSLA.Library } } #endregion - #region numberingsequence - [Category("Miscellaneous")] + #region AdjustTopMarginOnStepContinuePages + // B2017-267 Put in for Farley who uses the "PSOnlyFirst" in some of their pagelists so that a section title is printed only on the first page of the section. + // This will adjust the top margin when the section title is not printed on the other pages. (CreateStepPDF() in PromsPrinter.cs) + [Category("Miscellaneous")] + [Description("AdjustTopMarginOnStepContinuePages")] + private LazyLoad _AdjustTopMarginOnStepContinuePages; + public int AdjustTopMarginOnStepContinuePages + { + get + { + int? value = LazyLoad(ref _AdjustTopMarginOnStepContinuePages, "@AdjustTopMarginOnStepContinuePages"); + if (value == null) _AdjustTopMarginOnStepContinuePages.Value = 0; + return _AdjustTopMarginOnStepContinuePages.Value??0; + } + } + #endregion + #region numberingsequence + [Category("Miscellaneous")] [Description("Numbering Sequence")] private LazyLoad _NumberingSequence; public E_NumberingSequence? NumberingSequence