C2025-028 Add a Quick Print Section option / B2025-032 Fix Section not Printing Applicability Properly
Added an option to quick print a section. Fixed a bug where: If you went to a section that had Applicability and select "Print Section" for a specific unit, it would sometimes print all units.
This commit is contained in:
@@ -533,6 +533,7 @@ namespace VEPROMS
|
||||
|
||||
tv.PrintProcedure += new vlnTreeViewEvent(tv_PrintProcedure);
|
||||
tv.PrintSection += new vlnTreeViewEvent(tv_PrintSection);
|
||||
tv.QPrintSection += new vlnTreeViewEvent(tv_QPrintSection);
|
||||
tv.QPrintProcedure += new vlnTreeViewEvent(tv_QPrintProcedure);
|
||||
tv.PrintAllProcedures += new vlnTreeViewEvent(tv_PrintAllProcedures);
|
||||
tv.ApproveProcedure += new vlnTreeViewEvent(tv_ApproveProcedure);
|
||||
@@ -1213,7 +1214,19 @@ namespace VEPROMS
|
||||
|
||||
}
|
||||
|
||||
void tv_PrintSection(object sender, vlnTreeEventArgs args) // Quick Print right click menu on Procedure name.
|
||||
//Print Section
|
||||
//C2025-028 Add a Quick Print Section option
|
||||
|
||||
void tv_PrintSection(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
PrintSection(sender, args, false);
|
||||
}
|
||||
void tv_QPrintSection(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
PrintSection(sender, args, true);
|
||||
}
|
||||
|
||||
void PrintSection(object sender, vlnTreeEventArgs args, bool quickprint)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -1225,7 +1238,9 @@ namespace VEPROMS
|
||||
|
||||
tc.SaveCurrentEditItem(si2.MyProcedure);
|
||||
|
||||
//B2025-032 Fix Section not Printing Applicability Properly
|
||||
si2.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitIndex;
|
||||
si2.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = args.UnitIndex;
|
||||
|
||||
using (DlgPrintProcedure prnDlg = new DlgPrintProcedure(si2.MyProcedure))
|
||||
{
|
||||
@@ -1233,8 +1248,14 @@ namespace VEPROMS
|
||||
prnDlg.SelectedSlave = args.UnitIndex;
|
||||
prnDlg.MySessionInfo = MySessionInfo;
|
||||
prnDlg.SetupForProcedure(); // Setup filename
|
||||
prnDlg.ShowDialog(this); // Create Print report
|
||||
|
||||
if (quickprint)
|
||||
prnDlg.QPCreatePDF(); // Create Print report
|
||||
else
|
||||
prnDlg.ShowDialog(this); // Create Print report
|
||||
|
||||
//B2025-032 Fix Section not Printing Applicability Properly
|
||||
si2.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
||||
si2.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user