C2018-033 added drop-down lists to choose a date/time format for a PDF prefix and suffix
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -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
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -190,21 +190,6 @@ Check "Show Default Settings" to display the "default" duplexing setting (below
 | 
			
		||||
  <metadata name="dlgROFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>17, 113</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsMiniEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>17, 65</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>817, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsMiniApple.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>118, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsApples.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>17, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="documentInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>181, 113</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <data name="btnRoDbProperties.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
 | 
			
		||||
    <value>
 | 
			
		||||
        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
 | 
			
		||||
@@ -221,6 +206,21 @@ Check "Show Default Settings" to display the "default" duplexing setting (below
 | 
			
		||||
        gg==
 | 
			
		||||
</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <metadata name="bsMiniEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>17, 65</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>817, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="documentInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>181, 113</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsMiniApple.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>118, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="bsApples.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>17, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
  <metadata name="ROPrefixBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
 | 
			
		||||
    <value>238, 17</value>
 | 
			
		||||
  </metadata>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user