B2021-127 Automatically set the Serial Number for BNPP Alarm Point Procedures
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user