This commit is contained in:
@@ -32,7 +32,7 @@ namespace VEPROMS
|
||||
private string _DefaultROGraficFileExtension = null;
|
||||
private string _DefaultImagePrefix = null;
|
||||
private string _DefaultROPrefix = null;
|
||||
private string _DefaultPagination = null;
|
||||
//private string _DefaultPagination = null;
|
||||
private string _DefaultWatermark = null;
|
||||
private bool _DefaultDisableDuplex = false;
|
||||
private string _DefaultFormatColumns = null;
|
||||
@@ -107,8 +107,8 @@ namespace VEPROMS
|
||||
SetupDefault(_DefaultROGraficFileExtension, ppLblGrphFileExtDefault, ppCmbxGrphFileExt);
|
||||
|
||||
// Get the default Print Pagination
|
||||
_DefaultPagination = _FolderConfig.Print_Pagination.ToString();
|
||||
SetupDefault(EnumDescConverter.GetEnumDescription(_FolderConfig.Print_Pagination), ppLblPaginationDefault, ppCmbxPagination);
|
||||
//_DefaultPagination = _FolderConfig.Print_Pagination.ToString();
|
||||
//SetupDefault(EnumDescConverter.GetEnumDescription(_FolderConfig.Print_Pagination), ppLblPaginationDefault, ppCmbxPagination);
|
||||
|
||||
// Get the default Watermark
|
||||
_DefaultWatermark = _FolderConfig.Print_Watermark.ToString();
|
||||
@@ -234,10 +234,10 @@ namespace VEPROMS
|
||||
ppCmbxChgBarTxtType.ValueMember = "EValue";
|
||||
ppCmbxChgBarTxtType.SelectedValue = -1;
|
||||
|
||||
ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
ppCmbxPagination.DisplayMember = "Name";
|
||||
ppCmbxPagination.ValueMember = "EValue";
|
||||
ppCmbxPagination.SelectedValue = -1;
|
||||
//ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
//ppCmbxPagination.DisplayMember = "Name";
|
||||
//ppCmbxPagination.ValueMember = "EValue";
|
||||
//ppCmbxPagination.SelectedValue = -1;
|
||||
|
||||
ppCmbxWatermark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DisplayMember = "Name";
|
||||
@@ -396,14 +396,14 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
/// <param name="sender">object</param>
|
||||
/// <param name="e">EventArgs</param>
|
||||
private void ppCmbxPagination_SelectedValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_Initializing || !_IsDefaultSettingNode)
|
||||
{
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
}
|
||||
}
|
||||
//private void ppCmbxPagination_SelectedValueChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// if (!_Initializing || !_IsDefaultSettingNode)
|
||||
// {
|
||||
// PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Reset to the parent setting.
|
||||
@@ -412,17 +412,17 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void ppBtnDefPagination_Click(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine("ppBtnDefPagination_Click");
|
||||
// Get the parent setting
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// Compare parent setting with current setting
|
||||
if (pgtn != _FolderConfig.Print_Pagination)
|
||||
_FolderConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
ppCmbxPagination.SelectedIndex = -1; //reset to the default Pagination setting
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
//private void ppBtnDefPagination_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("ppBtnDefPagination_Click");
|
||||
// // Get the parent setting
|
||||
// PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// // Compare parent setting with current setting
|
||||
// if (pgtn != _FolderConfig.Print_Pagination)
|
||||
// _FolderConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
// ppCmbxPagination.SelectedIndex = -1; //reset to the default Pagination setting
|
||||
// //tcpOutputSettings.Focus();
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Selection in Watermark combo box changed.
|
||||
@@ -967,7 +967,7 @@ namespace VEPROMS
|
||||
ppLblStpEditorColsDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefEdCols.Visible;
|
||||
ppLblGrphFileExtDefault.Visible = (ppCbShwDefSettings.Checked || _IsVepromsNode) && ppBtnDefaultGrphFileExt.Visible;
|
||||
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
|
||||
ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
|
||||
//ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
|
||||
ppLblChgBarTxtTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxtTyp.Visible;
|
||||
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
|
||||
ppLblChangeBarTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultChgBar.Visible;
|
||||
|
Reference in New Issue
Block a user