C2019-045: For enhanced procedures, allow modification of number & title
This commit is contained in:
@@ -243,6 +243,7 @@ namespace VEPROMS
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumLocY = float.Parse(tbxMOSyloc.Text);
|
||||
_DocVersionConfig.Print_MergedPdfsPageNumCorner = (MergedPdfsPageNumCorner)ppCmbxMOScornerLoc.SelectedIndex;
|
||||
_DocVersionConfig.Print_MergedPdfsViewAfter = ppChbxMOSview.Checked;
|
||||
_DocVersionConfig.Enhanced_AllowMods = ppChbxEnhancedAllowMods.Checked; // C2019-045: allow modification of enhanced procedure num/title
|
||||
|
||||
//docVersionConfigBindingSource.EndEdit();
|
||||
// Save Default settings for User
|
||||
@@ -539,6 +540,7 @@ namespace VEPROMS
|
||||
else
|
||||
ppCmbxMOSfontName.SelectedValue = _DocVersionConfig.Print_MergedPdfsPageNumFont;
|
||||
ppChbxMOSview.Checked = _DocVersionConfig.Print_MergedPdfsViewAfter;
|
||||
ppChbxEnhancedAllowMods.Checked = _DocVersionConfig.Enhanced_AllowMods;
|
||||
|
||||
_Initializing = false;
|
||||
}
|
||||
@@ -591,6 +593,7 @@ namespace VEPROMS
|
||||
// 2) isEnhanced: this docversion has a config/enhanced node that defines it as an enhanced document.
|
||||
bool hasEnhancedPO = true; // for now all can be enhanced
|
||||
bool isEnhanced = (_DocVersionConfig.MyEnhancedDocuments != null && _DocVersionConfig.MyEnhancedDocuments.Count == 1 && _DocVersionConfig.MyEnhancedDocuments[0].Type == 0);
|
||||
ppChbxEnhancedAllowMods.Visible = isEnhanced;
|
||||
// isEnhanced is an already existing enhanced document. Only allow the user to change the Pdf settings:
|
||||
if (isEnhanced)
|
||||
{
|
||||
|
Reference in New Issue
Block a user