This commit is contained in:
@@ -30,8 +30,8 @@ namespace VEPROMS
|
||||
private string _DefaultChgBarUsrMsg1 = null;
|
||||
private string _DefaultChgBarUsrMsg2 = null;
|
||||
private string _DefaultROGraficFileExtension = null;
|
||||
private string _DefaultImagePrefix = null;
|
||||
private string _DefaultROPrefix = null;
|
||||
//private string _DefaultImagePrefix = null;
|
||||
//private string _DefaultROPrefix = null;
|
||||
//private string _DefaultPagination = null;
|
||||
private string _DefaultWatermark = null;
|
||||
private bool _DefaultDisableDuplex = false;
|
||||
@@ -256,6 +256,25 @@ namespace VEPROMS
|
||||
ppCmbxGrphFileExt.Visible = false;
|
||||
ppLblGrphFileExtDefault.Visible = false;
|
||||
this.lblGrphFileExt.Visible = false;
|
||||
|
||||
// Set the auto duplex controls based on whether the format allows this:
|
||||
// Note that the controls' visibility would not set correctly using the following two lines of code. That
|
||||
// is why the more explicit logic was done.
|
||||
//ppChbxDisAutoDuplex.Visible = _DocVersionConfig.MyDocVersion.MyFormat.PlantFormat.FormatData.PrintData.AllowDuplex;
|
||||
//ppLblAutoDuplexDefault.Visible = ppBtnDeftDisAutoDuplx.Visible = ppLblAutoDuplexDefault.Visible;
|
||||
FolderInfo fi = FolderInfo.Get(_FolderConfig.MyFolder.FolderID);
|
||||
if (fi.ActiveFormat.PlantFormat.FormatData.PrintData.AllowDuplex)
|
||||
{
|
||||
ppChbxDisAutoDuplex.Visible = true;
|
||||
ppLblAutoDuplexDefault.Visible = true;
|
||||
ppBtnDeftDisAutoDuplx.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ppChbxDisAutoDuplex.Visible = false;
|
||||
ppLblAutoDuplexDefault.Visible = false;
|
||||
ppBtnDeftDisAutoDuplx.Visible = false;
|
||||
}
|
||||
}
|
||||
_Initializing = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user