C2019-004: Allow user to define duplex blank page text (for build only).
C2019-004: Allow user to define duplex blank page text.
This commit is contained in:
@@ -158,7 +158,11 @@ namespace VEPROMS
|
||||
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) swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData)
|
||||
{
|
||||
swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
tbBlankPage.Enabled = true; // C2019-004: Allow user to define duplex blank page text (similar changes throughout file are not commented)
|
||||
}
|
||||
btnCreatePDF.Text = "Create PDFs";
|
||||
HandleDocVersionSettings();
|
||||
PrepForAllOrOne(false);
|
||||
@@ -176,8 +180,13 @@ namespace VEPROMS
|
||||
_DocVersionConfig = dvi.DocVersionConfig;
|
||||
_DocVersionInfo = dvi;
|
||||
swtbtnBlankPgsForDuplex.Value = dvi.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
|
||||
tbBlankPage.Enabled = swtbtnBlankPgsForDuplex.Value;
|
||||
MyProcedure = dvi.Procedures[0].MyProcedure;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData)
|
||||
{
|
||||
swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
tbBlankPage.Enabled = true;
|
||||
}
|
||||
btnCreatePDF.Text = "Create PDFs";
|
||||
HandleDocVersionSettings();
|
||||
PrepForAllOrOne(false);
|
||||
@@ -221,8 +230,13 @@ namespace VEPROMS
|
||||
_AllProcedures = false;
|
||||
_DocVersionConfig = pi.MyDocVersion.DocVersionConfig;
|
||||
swtbtnBlankPgsForDuplex.Value = pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
|
||||
tbBlankPage.Enabled = swtbtnBlankPgsForDuplex.Value;
|
||||
MyProcedure = pi;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData)
|
||||
{
|
||||
swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
tbBlankPage.Enabled = true;
|
||||
}
|
||||
btnCreatePDF.Text = "Create PDF";
|
||||
HandleDocVersionSettings();
|
||||
PrepForAllOrOne(true);
|
||||
@@ -238,8 +252,13 @@ namespace VEPROMS
|
||||
_AllProcedures = false;
|
||||
_DocVersionConfig = pi.MyDocVersion.DocVersionConfig;
|
||||
swtbtnBlankPgsForDuplex.Value = pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts;
|
||||
tbBlankPage.Enabled = swtbtnBlankPgsForDuplex.Value;
|
||||
MyProcedure = pi;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData) swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
if (_MyProcedure != null && _MyProcedure.ProcHasSupInfoData)
|
||||
{
|
||||
swtbtnBlankPgsForDuplex.Enabled = false;
|
||||
tbBlankPage.Enabled = true;
|
||||
}
|
||||
btnCreatePDF.Text = "Create PDF";
|
||||
HandleDocVersionSettings();
|
||||
PrepForAllOrOne(true);
|
||||
@@ -551,7 +570,10 @@ namespace VEPROMS
|
||||
_MyProcedure = value;
|
||||
// if procedure has supplemental information, the automatially check the add blank pages for duplex printing
|
||||
if (_MyProcedure.ProcHasSupInfoData)
|
||||
{
|
||||
swtbtnBlankPgsForDuplex.Value = true;
|
||||
tbBlankPage.Enabled = true;
|
||||
}
|
||||
SetupPrefixSuffixSwitch(); // C2018-033 Enable the switch to control whether to add Prefix and/or Suffix to PDF file name
|
||||
}
|
||||
}
|
||||
@@ -624,7 +646,7 @@ namespace VEPROMS
|
||||
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked,
|
||||
cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, myPDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50),
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true);//C2018-009 print PROMS version
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true, tbBlankPage.Text);//C2018-009 print PROMS version
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -650,7 +672,7 @@ namespace VEPROMS
|
||||
// B2016-249 Output Procedure to folder associated with Parent Child
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked,
|
||||
cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, GetMultiunitPDFPath(), cbd, txbPDFName.Text, new Point(Left, Bottom - 50),
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true);//C2018-009 print PROMS version
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true, tbBlankPage.Text);//C2018-009 print PROMS version
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -679,7 +701,7 @@ namespace VEPROMS
|
||||
// B2016-249 Output Procedure to folder associated with Parent Child
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked,
|
||||
cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, GetMultiunitPDFPath(), cbd, txbPDFName.Text,
|
||||
new Point(Left, Bottom - 50), swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true);//C2018-009 print PROMS version
|
||||
new Point(Left, Bottom - 50), swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, true, tbBlankPage.Text);//C2018-009 print PROMS version
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
frmStatus.CancelStop = true;
|
||||
@@ -778,8 +800,8 @@ namespace VEPROMS
|
||||
// B2016-249 Output Procedure to folder associated with Parent Child
|
||||
// B2018-124 use text of watermark form drop down list instead of enum value
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, waterMarkText, cbxDebug.Checked, cbxOrPgBrk.Checked,
|
||||
cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, GetMultiunitPDFPath(), cbd, txbPDFName.Text, new Point(Left, Bottom - 50),
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic,Prefix,SaveLinks,RemoveTrailingHardReturnsAndManualPageBreaks,swtbtnPROMSVersion.Value, false); //C2018-009 print PROMS version
|
||||
cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, GetMultiunitPDFPath(), cbd, txbPDFName.Text, new Point(Left, Bottom - 50),
|
||||
swtbtnBlankPgsForDuplex.Value, _AllProcedures || Automatic, Prefix, SaveLinks, RemoveTrailingHardReturnsAndManualPageBreaks, swtbtnPROMSVersion.Value, false, tbBlankPage.Text); //C2018-009 print PROMS version
|
||||
frmStatus.MakePlaceKeeper = swtbtnGeneratePlacekeeper.Value;
|
||||
frmStatus.MakeContinuousActionSummary = cbxGenerateConActSum.Checked;
|
||||
if (Automatic && cbxGenerateConActSum.Checked)
|
||||
@@ -1046,8 +1068,12 @@ namespace VEPROMS
|
||||
BuildPDFFileName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// C2019-004: Allow user to define duplex blank page text. The text box for blank page text is always enabled for procedures with
|
||||
// supplemental information. For other types of procedures, the text box is enabled if duplex printing is turned on.
|
||||
private void swtbtnBlankPgsForDuplex_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbBlankPage.Enabled = swtbtnBlankPgsForDuplex.Value;
|
||||
}
|
||||
|
||||
//private void cbxDebug_CheckedChanged(object sender, EventArgs e)
|
||||
//{
|
||||
|
Reference in New Issue
Block a user