B2023-035 fix function call which has newly added parameter. Used for BNPP Alarm data

B2023-035 remember the unit number selected from the print button/menu. Used for BNPP Alarm data.
This commit is contained in:
John Jenko 2023-03-17 18:24:14 +00:00
parent 31fdf41b3e
commit 8395a268a1
2 changed files with 3 additions and 1 deletions

View File

@ -949,6 +949,7 @@ 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;
}
MyProcedure.SelectedChildToPrint = SelectedSlave; // B2023-035 for BNPP Alarms save the number of the child selected to print
// 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.
@ -1024,6 +1025,7 @@ namespace VEPROMS
MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
MyProcedure.SelectedChildToPrint = 0; // B2023-035 reset
this.Close();
ShowDebugFiles();
ProfileTimer.Pop(profileDepth);

View File

@ -1348,7 +1348,7 @@ namespace VEPROMS
AnnotationAuditInfoList aail;
if (pi.MyDocVersion.DocVersionConfig.SelectedSlave > 0)
{
pi = ProcedureInfo.GetItemAndChildrenByUnit(pi.ItemID, 0, pi.MyDocVersion.DocVersionConfig.SelectedSlave);
pi = ProcedureInfo.GetItemAndChildrenByUnit(pi.ItemID, 0, pi.MyDocVersion.DocVersionConfig.SelectedSlave,false, pi.MyDocVersion.DocVersionConfig.SelectedSlave); //B2023-035 added the last parameter for print, need to pass in unit we are approving
pi.ChangeBarDate = myDTS;
cail = ContentAuditInfoList.GetSummaryByUnit(pi.ItemID, pi.ItemID, false, pi.MyDocVersion.DocVersionConfig.SelectedSlave, pi.ChangeBarDate);
aail = AnnotationAuditInfoList.GetChronologyByUnit(pi.ItemID, pi.ItemID, pi.MyDocVersion.DocVersionConfig.SelectedSlave, pi.ChangeBarDate);