B2017-188: Toggle off of SAMG facing pages blank pages checkbox on print dialog was still printing blank pages.

This commit is contained in:
Kathy Ruffing 2017-09-22 16:03:51 +00:00
parent 7ba180c67e
commit 61a31cec22

View File

@ -127,6 +127,9 @@ namespace VEPROMS
_DocVersionConfig = dvi.DocVersionConfig;
_DocVersionInfo = dvi;
MyProcedure = dvi.Procedures[0].MyProcedure;
// B2017-188: Don't allow user to uncheck the checkbox for printing blank pages if procedure has supplemental information
// This change was made to each of the DlgPrintProcedure methods.
if (_MyProcedure!=null && _MyProcedure.ProcHasSupInfoData) cbxBlankPgsForDuplex.Enabled = false;
btnCreatePDF.Text = "Create PDFs";
HandleDocVersionSettings();
PrepForAllOrOne(false);
@ -143,6 +146,7 @@ namespace VEPROMS
_DocVersionInfo = dvi;
cbxBlankPgsForDuplex.Checked = dvi.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
MyProcedure = dvi.Procedures[0].MyProcedure;
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) cbxBlankPgsForDuplex.Enabled = false;
btnCreatePDF.Text = "Create PDFs";
HandleDocVersionSettings();
PrepForAllOrOne(false);
@ -184,6 +188,7 @@ namespace VEPROMS
_DocVersionConfig = pi.MyDocVersion.DocVersionConfig;
cbxBlankPgsForDuplex.Checked = pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
MyProcedure = pi;
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) cbxBlankPgsForDuplex.Enabled = false;
btnCreatePDF.Text = "Create PDF";
HandleDocVersionSettings();
PrepForAllOrOne(true);
@ -198,6 +203,7 @@ namespace VEPROMS
_DocVersionConfig = pi.MyDocVersion.DocVersionConfig;
cbxBlankPgsForDuplex.Checked = pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
MyProcedure = pi;
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) cbxBlankPgsForDuplex.Enabled = false;
btnCreatePDF.Text = "Create PDF";
HandleDocVersionSettings();
PrepForAllOrOne(true);