C2019-044 Added RowOverride toTop Continue Message to allow us to place the top continue message on the same row as the checkoff header

C2019-044 Use the value of RowOverride to place the top continue message on the same row as the checkoff header
This commit is contained in:
John Jenko 2021-08-05 13:23:48 +00:00
parent dc6114ba9a
commit 85c4f9694d
2 changed files with 31 additions and 2 deletions

View File

@ -783,6 +783,22 @@ namespace VEPROMS.CSLA.Library
} }
} }
#endregion #endregion
#region RowOverride
// C2019-044 put in for Barakah Single Column format
// specify the row to put the top continue message
// this allows us to put the Top Continue Message on the same row as the checkoff (initials) header - per their writer's guide
private LazyLoad<float?> _RowOverride;
[Category("Continue Msg")]
[DisplayName("Top msg on specific row")]
[Description("Top msg on specific row")]
public float? RowOverride
{
get
{
return LazyLoad(ref _RowOverride, "@RowOverride");
}
}
#endregion
#region UseStepTabs #region UseStepTabs
private LazyLoad<bool> _UseStepTabs; private LazyLoad<bool> _UseStepTabs;
[Category("Continue Msg")] [Category("Continue Msg")]

View File

@ -2673,7 +2673,11 @@ namespace Volian.Print.Library
// then DON'T add two lines to the yPageStart (for the top conitnue message) // then DON'T add two lines to the yPageStart (for the top conitnue message)
if (myMsg != null && myMsg != "" && !MyItemInfo.IsSection && !MyItemInfo.FormatStepData.PageBreakOnStep) // B2020-123 if (myMsg != null && myMsg != "" && !MyItemInfo.IsSection && !MyItemInfo.FormatStepData.PageBreakOnStep) // B2020-123
{ {
yPageStart -= 2 * SixLinesPerInch;// Allow two lines for top continue message // C2019-044 for BNPP put the top continue message on the same row as the Checkoff/Signoff header
// This is done by specifing a row positon in the top continue definition in the format.
// If the top continue messsage RowOverride is being used, don't move the yPageStart down (don't need to make room for it)
if (docstyle.Continue.Top.RowOverride == null)
yPageStart -= 2 * SixLinesPerInch;// Allow two lines for top continue message
if (myMsg.IndexOf(@"%sR") > -1) if (myMsg.IndexOf(@"%sR") > -1)
{ {
ItemInfo myAer = MyItemInfo.IsHigh ? MyItemInfo : MyItemInfo.MyParent; ItemInfo myAer = MyItemInfo.IsHigh ? MyItemInfo : MyItemInfo.MyParent;
@ -2855,7 +2859,16 @@ namespace Volian.Print.Library
float colPos = docstyle.Layout.LeftMargin + docstyle.Continue.Top.Margin ?? 0; float colPos = docstyle.Layout.LeftMargin + docstyle.Continue.Top.Margin ?? 0;
if (!docstyle.Continue.Top.PlaceAtLeftMargin) //F2019-033 when true position with respect only to the left margin if (!docstyle.Continue.Top.PlaceAtLeftMargin) //F2019-033 when true position with respect only to the left margin
colPos += XOffsetBox; //XOffsetbox get set when the tables, figures & equations were beyond the border and needed repositioned colPos += XOffsetBox; //XOffsetbox get set when the tables, figures & equations were beyond the border and needed repositioned
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font); // C2019-044 for BNPP, put the top continue message on the same row as the checkoff/signoff heading
// RowOverride specifies the position of the top continue message
// For BNPP, RowOverride is set to the same row as the checkoff header is set to in the pagelist
if (docstyle.Continue.Top.RowOverride != null)
{
float adjRowPosition = (float)docstyle.Layout.TopMargin - (float)docstyle.Continue.Top.RowOverride;
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F + adjRowPosition, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
}
else
MyPageHelper.TopMessage = new vlnText(cb, this, myMsg, myMsg, colPos, yTopMargin + 0.1F, docstyle.Continue.Top.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font);
} }
else else