B2021-127 Automatically set the Serial Number for BNPP Alarm Point Procedures
This commit is contained in:
parent
a14dae6f91
commit
f35b8c03c5
Binary file not shown.
@ -698,6 +698,7 @@ namespace VEPROMS
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
pbPDFsStatus.Maximum = n;
|
pbPDFsStatus.Maximum = n;
|
||||||
pbPDFsStatus.Visible = true;
|
pbPDFsStatus.Visible = true;
|
||||||
|
VlnSvgPageHelper.CountInApplProcs = 1; // B2021-127: BNPPalr - Auto set of serial #, skip Front Matter as per PAL 11/1/21 (set to 1 not 0)
|
||||||
this.Text = string.Format("Processing {0}", _DocVersionInfo.MyFolder.Name);
|
this.Text = string.Format("Processing {0}", _DocVersionInfo.MyFolder.Name);
|
||||||
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
|
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
|
||||||
{
|
{
|
||||||
@ -717,6 +718,7 @@ namespace VEPROMS
|
|||||||
if (SelectedSlave > 0)
|
if (SelectedSlave > 0)
|
||||||
{
|
{
|
||||||
bool includeProc = MyProcedure.ApplInclude(SelectedSlave); // C2021-027: Procedure level PC/PC
|
bool includeProc = MyProcedure.ApplInclude(SelectedSlave); // C2021-027: Procedure level PC/PC
|
||||||
|
if (!includeProc) VlnSvgPageHelper.CountInApplProcs++; // B2021-127: BNPPalr - Auto set of serial #
|
||||||
if (includeProc)
|
if (includeProc)
|
||||||
{
|
{
|
||||||
MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = SelectedSlave;
|
MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = SelectedSlave;
|
||||||
@ -910,6 +912,19 @@ namespace VEPROMS
|
|||||||
if (MessageBox.Show(this, message + Environment.NewLine + Environment.NewLine + "Do you want to continue to print the procedure?", "Procedure Is Checked Out", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
if (MessageBox.Show(this, message + Environment.NewLine + Environment.NewLine + "Do you want to continue to print the procedure?", "Procedure Is Checked Out", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// B2021-127: BNPPalr - Auto set of serial #, skip Front Matter as per PAL 11/1/21 (set to 1 not 0)
|
||||||
|
// Only do if set has applicability, printing an individual procedure, need to determine
|
||||||
|
// applicability count.
|
||||||
|
if (MyProcedure.MyDocVersion.MultiUnitCount > 1)
|
||||||
|
{
|
||||||
|
VlnSvgPageHelper.CountInApplProcs = 1;
|
||||||
|
foreach (ProcedureInfo pi in MyProcedure.MyDocVersion.Procedures)
|
||||||
|
{
|
||||||
|
if (pi.ItemID == MyProcedure.ItemID) break;
|
||||||
|
bool includeProc = pi.ApplInclude(SelectedSlave);
|
||||||
|
if (!includeProc) VlnSvgPageHelper.CountInApplProcs++;
|
||||||
|
}
|
||||||
|
}
|
||||||
CreateDebugFiles();
|
CreateDebugFiles();
|
||||||
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
||||||
|
|
||||||
|
@ -234,6 +234,12 @@ namespace Volian.Print.Library
|
|||||||
get { return _PrintedSectionPage; }
|
get { return _PrintedSectionPage; }
|
||||||
set { _PrintedSectionPage = value; }
|
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;
|
//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)
|
//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;
|
string un = MySection.MyDocVersion.DocVersionConfig.Print_UnitNumberForPageList;
|
||||||
plstr = plstr.Replace(token, un);
|
plstr = plstr.Replace(token, un);
|
||||||
break;
|
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:
|
default:
|
||||||
if (token.Contains(@"SI-")) // procedure set specific information. (at folder or working draft levels)
|
if (token.Contains(@"SI-")) // procedure set specific information. (at folder or working draft levels)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user