C2018-033 added drop-down lists to choose a date/time format for a PDF prefix and suffix

This commit is contained in:
2018-10-16 16:05:19 +00:00
parent 204a8591cd
commit 97808ce081
3 changed files with 584 additions and 539 deletions

View File

@@ -38,6 +38,13 @@ namespace VEPROMS
private string _DefaultChgBarUsrMsg1 = null;
private string _DefaultChgBarUsrMsg2 = null;
private bool _DefaultDisableDuplex = false;
private DisplaySearch _DisplaySearch1 = null;
public DisplaySearch DisplaySearch1
{
get { return _DisplaySearch1; }
set { _DisplaySearch1 = value; }
}
private DisplaySearch _DisplaySearch1 = null;
@@ -374,6 +381,16 @@ namespace VEPROMS
ppCmbxWatermark.ValueMember = "EValue";
ppCmbxWatermark.SelectedIndex = -1;
ppCmbxPDFdtPrefix.DataSource = EnumDetail<PDFDTPrefix>.Details(); // C2018-033 dropdown for PDF Prefix date/time format
ppCmbxPDFdtPrefix.DisplayMember = "Description";
ppCmbxPDFdtPrefix.ValueMember = "EValue";
ppCmbxPDFdtPrefix.SelectedIndex = -1;
ppCmbxPDFdtSuffix.DataSource = EnumDetail<PDFDTSuffix>.Details(); // C2018-033 dropdown for PDF Suffix date/time format
//ppCmbxPDFdtSuffix.DisplayMember = "Description";
ppCmbxPDFdtSuffix.ValueMember = "EValue";
ppCmbxPDFdtSuffix.SelectedIndex = -1;
//ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
//ppCmbxPagination.DisplayMember = "Description";
//ppCmbxPagination.ValueMember = "EValue";
@@ -1554,6 +1571,46 @@ namespace VEPROMS
ppBtnDefaultFmt.Visible = !(ppCmbxFormat.SelectedValue == null || ppCmbxFormat.SelectedIndex == -1);
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
}
// C2018-033 save the Prefix date/time format selection to config
private void ppCmbxPDFdtPrefix_SelectedValueChanged(object sender, EventArgs e)
{
if (!_Initializing)
{
if (ppCmbxPDFdtPrefix.SelectedIndex > 0)
{
ppTxtBxPdfPre.Enabled = false; // cannot have both entered text and a date/time format
}
else
{
ppTxtBxPdfPre.Enabled = true; // not using the date/time format so allow for text entry
_Initializing = true;
ppCmbxPDFdtPrefix.SelectedIndex = -1;
_DocVersionConfig.Print_PDFdtFilePrefix = 0; // this will force a database update (write)
_Initializing = false;
}
}
}
// C2018-033 save the Suffix date/time format selection to config
private void ppCmbxPDFdtSuffix_SelectedValueChanged(object sender, EventArgs e)
{
if (!_Initializing)
{
if (ppCmbxPDFdtSuffix.SelectedIndex > 0)
{
ppTxtBxPDFSuf.Enabled = false; // cannot have both entered text and a date/time format
}
else
{
ppTxtBxPDFSuf.Enabled = true; // not using the date/time format so allow for text entry
_Initializing = true;
ppCmbxPDFdtSuffix.SelectedIndex = -1;
_DocVersionConfig.Print_PDFdtFileSuffix = 0; // this will force a database update (write)
_Initializing = false;
}
}
}
}
[XmlRoot("Enhanced")]
public class EnhancedMiniConfig
@@ -1808,4 +1865,4 @@ namespace VEPROMS
//}
//#endregion
}
}
}