C2019-012: Merge pdfs
This commit is contained in:
@@ -234,6 +234,16 @@ namespace VEPROMS
|
||||
|
||||
_DocVersionConfig.Print_UnitNumberForPageList = ppTxbxUnitNum.Text;
|
||||
|
||||
// save the merge pdf settings:
|
||||
_DocVersionConfig.Print_MergedPdfsPageOf = (MergedPdfsPageOf)ppCmbxMOSformat.SelectedIndex;
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumFormatOther = tbxMOSother.Text;
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumFont = (string)ppCmbxMOSfontName.SelectedValue;
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumFontSize = tbxMOSfontSz.Text;
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumLocX = float.Parse(tbxMOSxloc.Text);
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumLocY = float.Parse(tbxMOSyloc.Text);
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumCorner = (MergedPdfsPageNumCorner)ppCmbxMOScornerLoc.SelectedIndex;
|
||||
_DocVersionConfig.Print_MergedPdfsViewAfter = ppChbxMOSview.Checked;
|
||||
|
||||
//docVersionConfigBindingSource.EndEdit();
|
||||
// Save Default settings for User
|
||||
//
|
||||
@@ -415,6 +425,20 @@ namespace VEPROMS
|
||||
ppCmbxProcSetType.ValueMember = "EValue";
|
||||
ppCmbxProcSetType.Enabled = false; // maybe enable this if used for version creation
|
||||
|
||||
ppCmbxMOSformat.DataSource = EnumDetail<MergedPdfsPageOf>.Details();
|
||||
ppCmbxMOSformat.DisplayMember = "Description";
|
||||
ppCmbxMOSformat.ValueMember = "EValue";
|
||||
ppCmbxMOSformat.SelectedIndex = -1;
|
||||
|
||||
ppCmbxMOSfontName.DataSource = FontFamily.Families;// need font list
|
||||
ppCmbxMOSfontName.ValueMember = "Name";
|
||||
ppCmbxMOSfontName.SelectedIndex = -1;
|
||||
|
||||
ppCmbxMOScornerLoc.DataSource = EnumDetail<MergedPdfsPageNumCorner>.Details();
|
||||
ppCmbxMOScornerLoc.DisplayMember = "Description";
|
||||
ppCmbxMOScornerLoc.ValueMember = "EValue";
|
||||
ppCmbxMOScornerLoc.SelectedIndex = -1;
|
||||
|
||||
// check active format to see if the unit number text box on the format tab is visible.
|
||||
if (_DocVersionConfig.MyDocVersion.MyDocVersionInfo.ActiveFormat.PlantFormat.FormatData.PrintData.UnitNumber)
|
||||
{
|
||||
@@ -491,6 +515,29 @@ namespace VEPROMS
|
||||
btnPhoneList.Visible = _DocVersionConfig.MyDocVersion.MyDocVersionInfo.ActiveFormat.PlantFormat.FormatData.SectData.PrintPhoneList;
|
||||
btnUnlinkDocVersion.Visible = false;
|
||||
InitEnhanced();
|
||||
|
||||
// set the merge pdf settings:
|
||||
ppCmbxMOSformat.SelectedIndex = (int)_DocVersionConfig.Print_MergedPdfsPageOf;
|
||||
if (_DocVersionConfig.Print_MergedPdfsPageOf == MergedPdfsPageOf.Other)
|
||||
{
|
||||
tbxMOSother.Text = _DocVersionConfig.Print_MergedPdfsPageNumFormatOther;
|
||||
tbxMOSother.Enabled = true;
|
||||
}
|
||||
else
|
||||
tbxMOSother.Enabled = false;
|
||||
tbxMOSother.Text = _DocVersionConfig.Print_MergedPdfsPageNumFormatOther;
|
||||
tbxMOSfontSz.Text = _DocVersionConfig.Print_MergedPdfsPageNumFontSize;
|
||||
tbxMOSxloc.Text = _DocVersionConfig.Print_MergedPdfsPageNumLocX.ToString();
|
||||
tbxMOSyloc.Text = _DocVersionConfig.Print_MergedPdfsPageNumLocY.ToString();
|
||||
ppCmbxMOScornerLoc.SelectedIndex = (int)_DocVersionConfig.Print_MergedPdfsPageNumCorner;
|
||||
ppCmbxMOSfontName.DataSource = FontFamily.Families;
|
||||
ppCmbxMOSfontName.DisplayMember = "Name";
|
||||
if (_DocVersionConfig.Print_MergedPdfsPageNumFont == null || _DocVersionConfig.Print_MergedPdfsPageNumFont == "")
|
||||
ppCmbxMOSfontName.SelectedIndex = -1;
|
||||
else
|
||||
ppCmbxMOSfontName.SelectedValue = _DocVersionConfig.Print_MergedPdfsPageNumFont;
|
||||
ppChbxMOSview.Checked = _DocVersionConfig.Print_MergedPdfsViewAfter;
|
||||
|
||||
_Initializing = false;
|
||||
}
|
||||
private void InitEnhanced()
|
||||
@@ -984,7 +1031,12 @@ namespace VEPROMS
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region MergedOutputSettings
|
||||
private void btnMergedOutputSettngs_Click(object sender, EventArgs e)
|
||||
{
|
||||
ProcessButtonClick(tiMergedOutputSettings, btnMergedOutputSettngs);
|
||||
}
|
||||
#endregion
|
||||
#region Generic functions used on this property page
|
||||
|
||||
/// <summary>
|
||||
@@ -1625,6 +1677,24 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ppCmbxMOSformat_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
// The Other textbox for defining the merged pdf file page of format is only enabled if the user
|
||||
// has selected 'Other' as the format type.
|
||||
if ((MergedPdfsPageOf)ppCmbxMOSformat.SelectedValue == MergedPdfsPageOf.Other)
|
||||
{
|
||||
tbxMOSother.Text = _DocVersionConfig.Print_MergedPdfsPageNumFormatOther;
|
||||
tbxMOSother.Enabled = true;
|
||||
}
|
||||
else
|
||||
tbxMOSother.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
[XmlRoot("Enhanced")]
|
||||
public class EnhancedMiniConfig
|
||||
|
Reference in New Issue
Block a user