C2018-033 added enum lists for the date/time formats to use for a PDF prefix or suffix

C2018-033 added logic to save selected prefix and suffix date/time format to the config
This commit is contained in:
2018-10-16 16:06:37 +00:00
parent 97808ce081
commit f0302b589d
2 changed files with 146 additions and 0 deletions

View File

@@ -89,6 +89,74 @@ namespace VEPROMS.CSLA.Library
[Description("Quad Column")]
FourColumns
}
// C2018-033 PDF file date/time Prefix formats
/// <summary>
/// The description is used in the drop down list
/// The enum is the date/time format that is used as a parameter for dts.ToString() to generate the desired format
/// A "__" will be replaced with a space, a "_" will be replaced with a dash before giving it to ToString().
/// This is used in DlgPrintProcedure.cs BuildPDFFileName()
/// date/time formating:
/// yyyy will give a four digit year
/// MM will give a two digit month
/// dd will give a two digit day
/// HH will give a two digit hour (military time)
/// mm will give a two digit minutes
/// ss will give a two digit sections (but it was decided seconds was not needed so we are not using this)
/// </summary>
[TypeConverter(typeof(EnumDescConverter))]
public enum PDFDTPrefix : int
{
[Description("Use Text Instead")]
None = 0,
[Description("Yr-Mt-Dy")]
yyyy_MM_dd,
[Description("Dy-Mt-Yr")]
dd_MM_yyyy,
[Description("Yr-Mt-Dy HrMn")]
yyyy_MM_dd__HHmm,
[Description("Dy-Mt-Yr HrMn")]
dd_MM_yyyy__HHmm,
[Description("Mt-Dy-Yr HrMn")]
MM_dd_yyyy__HHmm,
[Description("HrMn")]
HHmm,
[Description("HrMn Yr-Mt-Dy")]
HHmm__yyyy_MM_dd
}
// C2018-033 PDF file date/time Suffix formats
/// <summary>
/// The description is used in the drop down list
/// The enum is the date/time format that is used as a parameter for dts.ToString() to generate the desired format
/// A "__" will be replaced with a space, a "_" will be replaced with a dash before giving it to ToString().
/// This is used in DlgPrintProcedure.cs BuildPDFFileName()
/// date/time formating:
/// yyyy will give a four digit year
/// MM will give a two digit month
/// dd will give a two digit day
/// HH will give a two digit hour (military time)
/// mm will give a two digit minutes
/// ss will give a two digit sections (but it was decided seconds was not needed so we are not using this)
/// </summary>
[TypeConverter(typeof(EnumDescConverter))]
public enum PDFDTSuffix : int
{
[Description("Use Text Instead")]
None = 0,
[Description("Yr-Mt-Dy")]
yyyy_MM_dd,
[Description("Dy-Mt-Yr")]
dd_MM_yyyy,
[Description("Yr-Mt-Dy HrMn")]
yyyy_MM_dd__HHmm,
[Description("Dy-Mt-Yr HrMn")]
dd_MM_yyyy__HHmm,
[Description("Mt-Dy-Yr HrMn")]
MM_dd_yyyy__HHmm,
[Description("HrMn")]
HHmm,
[Description("HrMn Yr-Mt-Dy")]
HHmm__yyyy_MM_dd
}
//
//}
}