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:
2023-03-17 18:24:14 +00:00
parent 31fdf41b3e
commit 8395a268a1
2 changed files with 3 additions and 1 deletions

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);