B2021-127 Automatically set the Serial Number for BNPP Alarm Point Procedures

This commit is contained in:
2021-11-02 15:06:17 +00:00
parent a14dae6f91
commit f35b8c03c5
3 changed files with 25 additions and 0 deletions

View File

@@ -234,6 +234,12 @@ namespace Volian.Print.Library
get { return _PrintedSectionPage; }
set { _PrintedSectionPage = value; }
}
private static int _CountInApplProcs; // B2021-127: BNPPalr - Auto set of serial #
public static int CountInApplProcs
{
get { return _CountInApplProcs; }
set { _CountInApplProcs = value; }
}
//private bool _AddBlankPagesForDuplexPrinting = false;
//public bool AddBlankPagesForDuplexPrinting // Tells us if a the option to add a blank page is turn on (for procedures with duplex foldouts)
//{
@@ -2167,6 +2173,10 @@ i = 0;
string un = MySection.MyDocVersion.DocVersionConfig.Print_UnitNumberForPageList;
plstr = plstr.Replace(token, un);
break;
case "{MCRSERNUM}": // B2021-127: BNPPalr - Auto set of serial #
int sernum = section.MyProcedure.Ordinal - VlnSvgPageHelper.CountInApplProcs;
plstr = plstr.Replace(token, sernum.ToString());
break;
default:
if (token.Contains(@"SI-")) // procedure set specific information. (at folder or working draft levels)
{