C2019-045: For enhanced procedures, allow modification of number & title
This commit is contained in:
parent
ed0b1d2b74
commit
5109fbbddb
@ -124,6 +124,7 @@ namespace VEPROMS
|
||||
this.lblMOSformat = new System.Windows.Forms.Label();
|
||||
this.tiMergedOutputSettings = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppChbxEnhancedAllowMods = new System.Windows.Forms.CheckBox();
|
||||
this.btnUnlinkDocVersion = new System.Windows.Forms.Button();
|
||||
this.btnNewEnh = new System.Windows.Forms.Button();
|
||||
this.cbxEnhVersions = new System.Windows.Forms.ComboBox();
|
||||
@ -208,8 +209,6 @@ namespace VEPROMS
|
||||
this.ROPrefixBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.PDFLocationBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.formatInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.imageCodecInfoBindingSource)).BeginInit();
|
||||
this.ppGpbxUserSpecCB.SuspendLayout();
|
||||
@ -1594,6 +1593,7 @@ namespace VEPROMS
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
this.tabControlPanel1.Controls.Add(this.ppChbxEnhancedAllowMods);
|
||||
this.tabControlPanel1.Controls.Add(this.btnUnlinkDocVersion);
|
||||
this.tabControlPanel1.Controls.Add(this.btnNewEnh);
|
||||
this.tabControlPanel1.Controls.Add(this.cbxEnhVersions);
|
||||
@ -1625,6 +1625,18 @@ namespace VEPROMS
|
||||
this.tabControlPanel1.TabIndex = 20;
|
||||
this.tabControlPanel1.TabItem = this.tiEnhanced;
|
||||
//
|
||||
// ppChbxEnhancedAllowMods
|
||||
//
|
||||
this.ppChbxEnhancedAllowMods.AutoSize = true;
|
||||
this.ppChbxEnhancedAllowMods.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppChbxEnhancedAllowMods.Location = new System.Drawing.Point(135, 206);
|
||||
this.ppChbxEnhancedAllowMods.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppChbxEnhancedAllowMods.Name = "ppChbxEnhancedAllowMods";
|
||||
this.ppChbxEnhancedAllowMods.Size = new System.Drawing.Size(248, 17);
|
||||
this.ppChbxEnhancedAllowMods.TabIndex = 14;
|
||||
this.ppChbxEnhancedAllowMods.Text = "Allow Modifications to Procedure Number and Title";
|
||||
this.ppChbxEnhancedAllowMods.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// btnUnlinkDocVersion
|
||||
//
|
||||
this.btnUnlinkDocVersion.Location = new System.Drawing.Point(137, 150);
|
||||
@ -2634,31 +2646,6 @@ namespace VEPROMS
|
||||
//
|
||||
this.formatInfoListBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.FormatInfo);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button1.Location = new System.Drawing.Point(669, 342);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(56, 21);
|
||||
this.button1.TabIndex = 90;
|
||||
this.button1.Text = "OK";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.btnVersionsPropOK_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.button2.Location = new System.Drawing.Point(742, 342);
|
||||
this.button2.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(56, 21);
|
||||
this.button2.TabIndex = 91;
|
||||
this.button2.Text = "Cancel";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.btnFldrPropCancel_Click);
|
||||
//
|
||||
// frmVersionsProperties
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@ -2672,9 +2659,7 @@ namespace VEPROMS
|
||||
this.Controls.Add(this.tcVersions);
|
||||
this.Controls.Add(this.ppCbShwDefSettings);
|
||||
this.Controls.Add(this.ppLblDefSettingsInfo);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.ppBtnCancel);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.ppBtnOK);
|
||||
this.DoubleBuffered = true;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
@ -2918,7 +2903,6 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxMOSfontName;
|
||||
private DevComponents.DotNetBar.ButtonX btnMergedOutputSettngs;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX ppChbxMOSview;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.CheckBox ppChbxEnhancedAllowMods;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user