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:
parent
dc6114ba9a
commit
85c4f9694d
@ -783,6 +783,22 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#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
|
||||
private LazyLoad<bool> _UseStepTabs;
|
||||
[Category("Continue Msg")]
|
||||
|
@ -2673,6 +2673,10 @@ namespace Volian.Print.Library
|
||||
// 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
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
@ -2855,6 +2859,15 @@ namespace Volian.Print.Library
|
||||
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
|
||||
colPos += XOffsetBox; //XOffsetbox get set when the tables, figures & equations were beyond the border and needed repositioned
|
||||
// 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);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user