B2021-127 Automatically set the Serial Number for BNPP Alarm Point Procedures
This commit is contained in:
@@ -698,6 +698,7 @@ namespace VEPROMS
|
||||
int i = 0;
|
||||
pbPDFsStatus.Maximum = n;
|
||||
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);
|
||||
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
|
||||
{
|
||||
@@ -717,6 +718,7 @@ namespace VEPROMS
|
||||
if (SelectedSlave > 0)
|
||||
{
|
||||
bool includeProc = MyProcedure.ApplInclude(SelectedSlave); // C2021-027: Procedure level PC/PC
|
||||
if (!includeProc) VlnSvgPageHelper.CountInApplProcs++; // B2021-127: BNPPalr - Auto set of serial #
|
||||
if (includeProc)
|
||||
{
|
||||
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)
|
||||
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();
|
||||
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
||||
|
||||
|
Reference in New Issue
Block a user