diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index e93417eb..d43134b5 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -82,6 +82,8 @@ namespace VEPROMS _SelectedStepTabPanel.MyStepTabRibbon.ProgressBar = bottomProgBar; _SelectedStepTabPanel.MyStepTabRibbon.ContActionSummaryRequest -= MyStepTabRibbon_ContActionSummaryRequest; _SelectedStepTabPanel.MyStepTabRibbon.ContActionSummaryRequest += MyStepTabRibbon_ContActionSummaryRequest; + _SelectedStepTabPanel.MyStepTabRibbon.AddProcToDVInTree -= new StepTabRibbonEvent(MyStepTabRibbon_AddProcToDocVersionInTree); + _SelectedStepTabPanel.MyStepTabRibbon.AddProcToDVInTree += new StepTabRibbonEvent(MyStepTabRibbon_AddProcToDocVersionInTree); } } } @@ -937,6 +939,12 @@ namespace VEPROMS if (SelectedStepTabPanel!=null && SelectedStepTabPanel.MyStepTabRibbon != null) SelectedStepTabPanel.MyStepTabRibbon.SetUpdRoValBtn(SelectedStepTabPanel.MyStepTabRibbon.NewerRoFst()); } + // Add a tree node for a procedure if this is the first procedure in the docversion, added from + // step editor (used for creating enhanced procedure in empty docversion) + void MyStepTabRibbon_AddProcToDocVersionInTree(object sender, StepTabRibbonEventArgs args) + { + tv.AdjustTree(args.Proc as ProcedureInfo); + } void MyStepTabRibbon_PrintRequest(object sender, StepTabRibbonEventArgs args) { // Fix for B2013-173: diff --git a/PROMS/VEPROMS User Interface/frmVersionsProperties.Designer.cs b/PROMS/VEPROMS User Interface/frmVersionsProperties.Designer.cs index a750c508..391313d3 100644 --- a/PROMS/VEPROMS User Interface/frmVersionsProperties.Designer.cs +++ b/PROMS/VEPROMS User Interface/frmVersionsProperties.Designer.cs @@ -30,8 +30,8 @@ namespace VEPROMS { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmVersionsProperties)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.ppBtnCancel = new System.Windows.Forms.Button(); this.ppBtnOK = new System.Windows.Forms.Button(); this.ppBtnDefaultChgBar = new DevComponents.DotNetBar.ButtonX(); @@ -105,15 +105,8 @@ namespace VEPROMS this.tcVersions = new DevComponents.DotNetBar.TabControl(); this.tcpGeneral = new DevComponents.DotNetBar.TabControlPanel(); this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components); - this.tcpOutputSettings = new DevComponents.DotNetBar.TabControlPanel(); - this.label30 = new System.Windows.Forms.Label(); - this.label29 = new System.Windows.Forms.Label(); - this.ppChbxAddBlankPgs = new System.Windows.Forms.CheckBox(); - this.ppChbxAlwaysViewPDF = new System.Windows.Forms.CheckBox(); - this.ppChbxAlwaysOvrWrtPDF = new System.Windows.Forms.CheckBox(); - this.ppGrpbxPrnAdj = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.tiOutputSettings = new DevComponents.DotNetBar.TabItem(this.components); this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel(); + this.btnNewEnh = new System.Windows.Forms.Button(); this.cbxEnhVersions = new System.Windows.Forms.ComboBox(); this.lblEnhDoc = new System.Windows.Forms.Label(); this.tbEnhPdfXOff = new System.Windows.Forms.TextBox(); @@ -129,23 +122,6 @@ namespace VEPROMS this.lbEnhanced = new System.Windows.Forms.ListBox(); this.bsEnhanced = new System.Windows.Forms.BindingSource(this.components); this.tiEnhanced = new DevComponents.DotNetBar.TabItem(this.components); - this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel(); - this.ppGrdLibDocList = new DevComponents.DotNetBar.Controls.DataGridViewX(); - this.documentEntryCountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.libTitleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.documentInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.tiLibDocs = new DevComponents.DotNetBar.TabItem(this.components); - this.tcpRefereceObjects = new DevComponents.DotNetBar.TabControlPanel(); - this.tbRoDb = new System.Windows.Forms.TextBox(); - this.ppBtnRoDbBrowse = new System.Windows.Forms.Button(); - this.btnRoDbProperties = new DevComponents.DotNetBar.ButtonX(); - this.cmbRoDb = new System.Windows.Forms.ComboBox(); - this.ppGpbxUpROvals = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.tiRefObjs = new DevComponents.DotNetBar.TabItem(this.components); - this.tcpFormatSettings = new DevComponents.DotNetBar.TabControlPanel(); - this.btnPhoneList = new DevComponents.DotNetBar.ButtonX(); - this.ppLblUnitNum = new System.Windows.Forms.Label(); - this.tiFmtSettings = new DevComponents.DotNetBar.TabItem(this.components); this.tcpApplicability = new DevComponents.DotNetBar.TabControlPanel(); this.label28 = new System.Windows.Forms.Label(); this.label27 = new System.Windows.Forms.Label(); @@ -176,6 +152,31 @@ namespace VEPROMS this.bsApples = new System.Windows.Forms.BindingSource(this.components); this.label5 = new System.Windows.Forms.Label(); this.tiApplicability = new DevComponents.DotNetBar.TabItem(this.components); + this.tcpFormatSettings = new DevComponents.DotNetBar.TabControlPanel(); + this.btnPhoneList = new DevComponents.DotNetBar.ButtonX(); + this.ppLblUnitNum = new System.Windows.Forms.Label(); + this.tiFmtSettings = new DevComponents.DotNetBar.TabItem(this.components); + this.tcpOutputSettings = new DevComponents.DotNetBar.TabControlPanel(); + this.label30 = new System.Windows.Forms.Label(); + this.label29 = new System.Windows.Forms.Label(); + this.ppChbxAddBlankPgs = new System.Windows.Forms.CheckBox(); + this.ppChbxAlwaysViewPDF = new System.Windows.Forms.CheckBox(); + this.ppChbxAlwaysOvrWrtPDF = new System.Windows.Forms.CheckBox(); + this.ppGrpbxPrnAdj = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.tiOutputSettings = new DevComponents.DotNetBar.TabItem(this.components); + this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel(); + this.ppGrdLibDocList = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.documentEntryCountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.libTitleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.documentInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.tiLibDocs = new DevComponents.DotNetBar.TabItem(this.components); + this.tcpRefereceObjects = new DevComponents.DotNetBar.TabControlPanel(); + this.tbRoDb = new System.Windows.Forms.TextBox(); + this.ppBtnRoDbBrowse = new System.Windows.Forms.Button(); + this.btnRoDbProperties = new DevComponents.DotNetBar.ButtonX(); + this.cmbRoDb = new System.Windows.Forms.ComboBox(); + this.ppGpbxUpROvals = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.tiRefObjs = new DevComponents.DotNetBar.TabItem(this.components); this.panVerBtns = new System.Windows.Forms.Panel(); this.btnEnhanced = new DevComponents.DotNetBar.ButtonX(); this.btnApplicability = new DevComponents.DotNetBar.ButtonX(); @@ -198,22 +199,22 @@ namespace VEPROMS ((System.ComponentModel.ISupportInitialize)(this.tcVersions)).BeginInit(); this.tcVersions.SuspendLayout(); this.tcpGeneral.SuspendLayout(); - this.tcpOutputSettings.SuspendLayout(); - this.ppGrpbxPrnAdj.SuspendLayout(); this.tabControlPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsMiniEnhanced)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsEnhanced)).BeginInit(); - this.tabControlPanel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.ppGrdLibDocList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.documentInfoListBindingSource)).BeginInit(); - this.tcpRefereceObjects.SuspendLayout(); - this.ppGpbxUpROvals.SuspendLayout(); - this.tcpFormatSettings.SuspendLayout(); this.tcpApplicability.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsMiniApple)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsApples)).BeginInit(); + this.tcpFormatSettings.SuspendLayout(); + this.tcpOutputSettings.SuspendLayout(); + this.ppGrpbxPrnAdj.SuspendLayout(); + this.tabControlPanel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.ppGrdLibDocList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.documentInfoListBindingSource)).BeginInit(); + this.tcpRefereceObjects.SuspendLayout(); + this.ppGpbxUpROvals.SuspendLayout(); this.panVerBtns.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ROPrefixBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).BeginInit(); @@ -223,7 +224,7 @@ namespace VEPROMS // this.ppBtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.ppBtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.ppBtnCancel.Location = new System.Drawing.Point(612, 344); + this.ppBtnCancel.Location = new System.Drawing.Point(634, 348); this.ppBtnCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.ppBtnCancel.Name = "ppBtnCancel"; this.ppBtnCancel.Size = new System.Drawing.Size(56, 21); @@ -235,7 +236,7 @@ namespace VEPROMS // ppBtnOK // this.ppBtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.ppBtnOK.Location = new System.Drawing.Point(539, 344); + this.ppBtnOK.Location = new System.Drawing.Point(561, 348); this.ppBtnOK.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.ppBtnOK.Name = "ppBtnOK"; this.ppBtnOK.Size = new System.Drawing.Size(56, 21); @@ -628,7 +629,7 @@ namespace VEPROMS this.ppCmbxProcSetType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ppCmbxProcSetType.FormattingEnabled = true; this.ppCmbxProcSetType.ItemHeight = 20; - this.ppCmbxProcSetType.Location = new System.Drawing.Point(175, 236); + this.ppCmbxProcSetType.Location = new System.Drawing.Point(174, 246); this.ppCmbxProcSetType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.ppCmbxProcSetType.Name = "ppCmbxProcSetType"; this.ppCmbxProcSetType.Size = new System.Drawing.Size(133, 26); @@ -640,7 +641,7 @@ namespace VEPROMS // this.label9.AutoSize = true; this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Location = new System.Drawing.Point(24, 238); + this.label9.Location = new System.Drawing.Point(23, 249); this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(145, 13); @@ -663,7 +664,7 @@ namespace VEPROMS // this.lblProcSetRev.AutoSize = true; this.lblProcSetRev.BackColor = System.Drawing.Color.Transparent; - this.lblProcSetRev.Location = new System.Drawing.Point(24, 204); + this.lblProcSetRev.Location = new System.Drawing.Point(20, 199); this.lblProcSetRev.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblProcSetRev.Name = "lblProcSetRev"; this.lblProcSetRev.Size = new System.Drawing.Size(119, 13); @@ -673,7 +674,7 @@ namespace VEPROMS // ppRTxtProcSetRev // this.ppRTxtProcSetRev.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.docVersionConfigBindingSource, "ProcedureSetRev", true)); - this.ppRTxtProcSetRev.Location = new System.Drawing.Point(175, 201); + this.ppRTxtProcSetRev.Location = new System.Drawing.Point(171, 196); this.ppRTxtProcSetRev.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.ppRTxtProcSetRev.Multiline = false; this.ppRTxtProcSetRev.Name = "ppRTxtProcSetRev"; @@ -995,7 +996,7 @@ namespace VEPROMS // // this.ppCbShwDefSettings.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ppCbShwDefSettings.Location = new System.Drawing.Point(17, 493); + this.ppCbShwDefSettings.Location = new System.Drawing.Point(17, 529); this.ppCbShwDefSettings.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.ppCbShwDefSettings.Name = "ppCbShwDefSettings"; this.ppCbShwDefSettings.Size = new System.Drawing.Size(154, 20); @@ -1140,7 +1141,7 @@ namespace VEPROMS this.ppLblDefSettingsInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.ppLblDefSettingsInfo.AutoSize = true; this.ppLblDefSettingsInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ppLblDefSettingsInfo.Location = new System.Drawing.Point(10, 474); + this.ppLblDefSettingsInfo.Location = new System.Drawing.Point(10, 510); this.ppLblDefSettingsInfo.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.ppLblDefSettingsInfo.Name = "ppLblDefSettingsInfo"; this.ppLblDefSettingsInfo.Size = new System.Drawing.Size(156, 13); @@ -1156,14 +1157,14 @@ namespace VEPROMS this.tcVersions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.tcVersions.BackColor = System.Drawing.Color.Transparent; this.tcVersions.CanReorderTabs = true; - this.tcVersions.Controls.Add(this.tcpFormatSettings); this.tcVersions.Controls.Add(this.tcpGeneral); - this.tcVersions.Controls.Add(this.tcpOutputSettings); this.tcVersions.Controls.Add(this.tabControlPanel1); + this.tcVersions.Controls.Add(this.tcpApplicability); + this.tcVersions.Controls.Add(this.tcpFormatSettings); + this.tcVersions.Controls.Add(this.tcpOutputSettings); this.tcVersions.Controls.Add(this.tabControlPanel5); this.tcVersions.Controls.Add(this.tcpRefereceObjects); - this.tcVersions.Controls.Add(this.tcpApplicability); - this.tcVersions.Location = new System.Drawing.Point(157, 2); + this.tcVersions.Location = new System.Drawing.Point(178, 2); this.tcVersions.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tcVersions.Name = "tcVersions"; this.tcVersions.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); @@ -1202,7 +1203,7 @@ namespace VEPROMS this.tcpGeneral.Location = new System.Drawing.Point(0, 22); this.tcpGeneral.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tcpGeneral.Name = "tcpGeneral"; - this.tcpGeneral.Padding = new System.Windows.Forms.Padding(2); + this.tcpGeneral.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tcpGeneral.Size = new System.Drawing.Size(514, 314); this.tcpGeneral.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); this.tcpGeneral.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); @@ -1220,161 +1221,9 @@ namespace VEPROMS this.tiGeneral.Name = "tiGeneral"; this.tiGeneral.Text = "General"; // - // tcpOutputSettings - // - this.tcpOutputSettings.Controls.Add(this.ppTxtBxPDFSuf); - this.tcpOutputSettings.Controls.Add(this.ppTxtBxPdfPre); - this.tcpOutputSettings.Controls.Add(this.label30); - this.tcpOutputSettings.Controls.Add(this.label29); - this.tcpOutputSettings.Controls.Add(this.ppChbxAddBlankPgs); - this.tcpOutputSettings.Controls.Add(this.ppTxtBxPDFLoc); - this.tcpOutputSettings.Controls.Add(this.label18); - this.tcpOutputSettings.Controls.Add(this.ppChbxAlwaysViewPDF); - this.tcpOutputSettings.Controls.Add(this.ppBtnPDFLoc); - this.tcpOutputSettings.Controls.Add(this.ppChbxAlwaysOvrWrtPDF); - this.tcpOutputSettings.Controls.Add(this.ppGrpbxPrnAdj); - this.tcpOutputSettings.Controls.Add(this.label17); - this.tcpOutputSettings.Controls.Add(this.ppBtnDeftDisAutoDuplx); - this.tcpOutputSettings.Controls.Add(this.ppBtnDefWatermark); - this.tcpOutputSettings.Controls.Add(this.ppChbxDisAutoDuplex); - this.tcpOutputSettings.Controls.Add(this.ppLblAutoDuplexDefault); - this.tcpOutputSettings.Controls.Add(this.ppCmbxWatermark); - this.tcpOutputSettings.Controls.Add(this.ppLblWatermarkDefault); - this.tcpOutputSettings.DisabledBackColor = System.Drawing.Color.Empty; - this.tcpOutputSettings.Dock = System.Windows.Forms.DockStyle.Fill; - this.tcpOutputSettings.Location = new System.Drawing.Point(0, 22); - this.tcpOutputSettings.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.tcpOutputSettings.Name = "tcpOutputSettings"; - this.tcpOutputSettings.Padding = new System.Windows.Forms.Padding(2); - this.tcpOutputSettings.Size = new System.Drawing.Size(514, 314); - this.tcpOutputSettings.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tcpOutputSettings.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tcpOutputSettings.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tcpOutputSettings.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tcpOutputSettings.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tcpOutputSettings.Style.GradientAngle = 90; - this.tcpOutputSettings.TabIndex = 3; - this.tcpOutputSettings.TabItem = this.tiOutputSettings; - this.tcpOutputSettings.Enter += new System.EventHandler(this.tabpage_Enter); - // - // label30 - // - this.label30.AutoSize = true; - this.label30.BackColor = System.Drawing.Color.Transparent; - this.label30.Location = new System.Drawing.Point(219, 108); - this.label30.Name = "label30"; - this.label30.Size = new System.Drawing.Size(76, 13); - this.label30.TabIndex = 67; - this.label30.Text = "PDF File Suffix"; - // - // label29 - // - this.label29.AutoSize = true; - this.label29.BackColor = System.Drawing.Color.Transparent; - this.label29.Location = new System.Drawing.Point(8, 108); - this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(76, 13); - this.label29.TabIndex = 67; - this.label29.Text = "PDF File Prefix"; - // - // ppChbxAddBlankPgs - // - this.ppChbxAddBlankPgs.AutoSize = true; - this.ppChbxAddBlankPgs.BackColor = System.Drawing.Color.Transparent; - this.ppChbxAddBlankPgs.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AddBlankPagesWhenUsingDuplexFoldouts", true)); - this.ppChbxAddBlankPgs.Location = new System.Drawing.Point(9, 284); - this.ppChbxAddBlankPgs.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppChbxAddBlankPgs.Name = "ppChbxAddBlankPgs"; - this.ppChbxAddBlankPgs.Size = new System.Drawing.Size(249, 17); - this.ppChbxAddBlankPgs.TabIndex = 66; - this.ppChbxAddBlankPgs.Text = "Add Blank Pages When Using Duplex Foldouts"; - this.ppChbxAddBlankPgs.UseVisualStyleBackColor = false; - // - // ppChbxAlwaysViewPDF - // - this.ppChbxAlwaysViewPDF.AutoSize = true; - this.ppChbxAlwaysViewPDF.BackColor = System.Drawing.Color.Transparent; - this.ppChbxAlwaysViewPDF.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysViewPDFAfterCreate", true)); - this.ppChbxAlwaysViewPDF.Location = new System.Drawing.Point(9, 263); - this.ppChbxAlwaysViewPDF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppChbxAlwaysViewPDF.Name = "ppChbxAlwaysViewPDF"; - this.ppChbxAlwaysViewPDF.Size = new System.Drawing.Size(175, 17); - this.ppChbxAlwaysViewPDF.TabIndex = 37; - this.ppChbxAlwaysViewPDF.Text = "Always View PDF after Creation"; - this.ppChbxAlwaysViewPDF.UseVisualStyleBackColor = false; - // - // ppChbxAlwaysOvrWrtPDF - // - this.ppChbxAlwaysOvrWrtPDF.AutoSize = true; - this.ppChbxAlwaysOvrWrtPDF.BackColor = System.Drawing.Color.Transparent; - this.ppChbxAlwaysOvrWrtPDF.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true)); - this.ppChbxAlwaysOvrWrtPDF.Location = new System.Drawing.Point(9, 241); - this.ppChbxAlwaysOvrWrtPDF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppChbxAlwaysOvrWrtPDF.Name = "ppChbxAlwaysOvrWrtPDF"; - this.ppChbxAlwaysOvrWrtPDF.Size = new System.Drawing.Size(131, 17); - this.ppChbxAlwaysOvrWrtPDF.TabIndex = 36; - this.ppChbxAlwaysOvrWrtPDF.Text = "Always Overwrite PDF"; - this.ppChbxAlwaysOvrWrtPDF.UseVisualStyleBackColor = false; - // - // ppGrpbxPrnAdj - // - this.ppGrpbxPrnAdj.BackColor = System.Drawing.Color.Transparent; - this.ppGrpbxPrnAdj.CanvasColor = System.Drawing.SystemColors.Control; - this.ppGrpbxPrnAdj.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOvrdPrnPenWidth); - this.ppGrpbxPrnAdj.Controls.Add(this.label19); - this.ppGrpbxPrnAdj.Controls.Add(this.label22); - this.ppGrpbxPrnAdj.Controls.Add(this.label20); - this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnAdjPrnStartPos); - this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOverdPrnPenBoldWidth); - this.ppGrpbxPrnAdj.Controls.Add(this.label21); - this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOvrdPrnPenULineWidth); - this.ppGrpbxPrnAdj.DisabledBackColor = System.Drawing.Color.Empty; - this.ppGrpbxPrnAdj.Location = new System.Drawing.Point(8, 141); - this.ppGrpbxPrnAdj.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppGrpbxPrnAdj.Name = "ppGrpbxPrnAdj"; - this.ppGrpbxPrnAdj.Size = new System.Drawing.Size(466, 97); - // - // - // - this.ppGrpbxPrnAdj.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.ppGrpbxPrnAdj.Style.BackColorGradientAngle = 90; - this.ppGrpbxPrnAdj.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.ppGrpbxPrnAdj.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGrpbxPrnAdj.Style.BorderBottomWidth = 1; - this.ppGrpbxPrnAdj.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.ppGrpbxPrnAdj.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGrpbxPrnAdj.Style.BorderLeftWidth = 1; - this.ppGrpbxPrnAdj.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGrpbxPrnAdj.Style.BorderRightWidth = 1; - this.ppGrpbxPrnAdj.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGrpbxPrnAdj.Style.BorderTopWidth = 1; - this.ppGrpbxPrnAdj.Style.CornerDiameter = 4; - this.ppGrpbxPrnAdj.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.ppGrpbxPrnAdj.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.ppGrpbxPrnAdj.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.ppGrpbxPrnAdj.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.ppGrpbxPrnAdj.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ppGrpbxPrnAdj.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ppGrpbxPrnAdj.TabIndex = 65; - this.ppGrpbxPrnAdj.Text = "Output Adjustments"; - this.ppGrpbxPrnAdj.Visible = false; - // - // tiOutputSettings - // - this.tiOutputSettings.AttachedControl = this.tcpOutputSettings; - this.tiOutputSettings.Name = "tiOutputSettings"; - this.tiOutputSettings.Text = "Output Settings"; - // // tabControlPanel1 // + this.tabControlPanel1.Controls.Add(this.btnNewEnh); this.tabControlPanel1.Controls.Add(this.cbxEnhVersions); this.tabControlPanel1.Controls.Add(this.lblEnhDoc); this.tabControlPanel1.Controls.Add(this.tbEnhPdfXOff); @@ -1404,6 +1253,17 @@ namespace VEPROMS this.tabControlPanel1.TabIndex = 20; this.tabControlPanel1.TabItem = this.tiEnhanced; // + // btnNewEnh + // + this.btnNewEnh.Location = new System.Drawing.Point(-1, 137); + this.btnNewEnh.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnNewEnh.Name = "btnNewEnh"; + this.btnNewEnh.Size = new System.Drawing.Size(56, 19); + this.btnNewEnh.TabIndex = 12; + this.btnNewEnh.Text = "New"; + this.btnNewEnh.UseVisualStyleBackColor = true; + this.btnNewEnh.Click += new System.EventHandler(this.btnNewEnh_Click); + // // cbxEnhVersions // this.cbxEnhVersions.FormattingEnabled = true; @@ -1540,265 +1400,6 @@ namespace VEPROMS this.tiEnhanced.Name = "tiEnhanced"; this.tiEnhanced.Text = "Enhanced"; // - // tabControlPanel5 - // - this.tabControlPanel5.AutoScroll = true; - this.tabControlPanel5.Controls.Add(this.ppGrdLibDocList); - this.tabControlPanel5.DisabledBackColor = System.Drawing.Color.Empty; - this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel5.Location = new System.Drawing.Point(0, 22); - this.tabControlPanel5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.tabControlPanel5.Name = "tabControlPanel5"; - this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(2); - this.tabControlPanel5.Size = new System.Drawing.Size(514, 314); - this.tabControlPanel5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel5.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel5.Style.GradientAngle = 90; - this.tabControlPanel5.TabIndex = 5; - this.tabControlPanel5.TabItem = this.tiLibDocs; - this.tabControlPanel5.Enter += new System.EventHandler(this.tabpage_Enter); - // - // ppGrdLibDocList - // - this.ppGrdLibDocList.AllowUserToAddRows = false; - this.ppGrdLibDocList.AutoGenerateColumns = false; - this.ppGrdLibDocList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.ppGrdLibDocList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.documentEntryCountDataGridViewTextBoxColumn, - this.libTitleDataGridViewTextBoxColumn}); - this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource; - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.ppGrdLibDocList.DefaultCellStyle = dataGridViewCellStyle4; - this.ppGrdLibDocList.Dock = System.Windows.Forms.DockStyle.Fill; - this.ppGrdLibDocList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); - this.ppGrdLibDocList.HighlightSelectedColumnHeaders = false; - this.ppGrdLibDocList.Location = new System.Drawing.Point(2, 2); - this.ppGrdLibDocList.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppGrdLibDocList.Name = "ppGrdLibDocList"; - this.ppGrdLibDocList.RowHeadersVisible = false; - this.ppGrdLibDocList.RowTemplate.Height = 24; - this.ppGrdLibDocList.SelectAllSignVisible = false; - this.ppGrdLibDocList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.ppGrdLibDocList.Size = new System.Drawing.Size(510, 310); - this.ppGrdLibDocList.TabIndex = 1; - // - // documentEntryCountDataGridViewTextBoxColumn - // - this.documentEntryCountDataGridViewTextBoxColumn.DataPropertyName = "DocumentEntryCount"; - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.documentEntryCountDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; - this.documentEntryCountDataGridViewTextBoxColumn.HeaderText = "Number of Usages"; - this.documentEntryCountDataGridViewTextBoxColumn.Name = "documentEntryCountDataGridViewTextBoxColumn"; - this.documentEntryCountDataGridViewTextBoxColumn.ReadOnly = true; - this.documentEntryCountDataGridViewTextBoxColumn.Width = 95; - // - // libTitleDataGridViewTextBoxColumn - // - this.libTitleDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.libTitleDataGridViewTextBoxColumn.DataPropertyName = "LibTitle"; - this.libTitleDataGridViewTextBoxColumn.HeaderText = "Library Document Title"; - this.libTitleDataGridViewTextBoxColumn.Name = "libTitleDataGridViewTextBoxColumn"; - this.libTitleDataGridViewTextBoxColumn.ReadOnly = true; - // - // documentInfoListBindingSource - // - this.documentInfoListBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.DocumentInfo); - // - // tiLibDocs - // - this.tiLibDocs.AttachedControl = this.tabControlPanel5; - this.tiLibDocs.Name = "tiLibDocs"; - this.tiLibDocs.Text = "Library Docs"; - // - // tcpRefereceObjects - // - this.tcpRefereceObjects.Controls.Add(this.tbRoDb); - this.tcpRefereceObjects.Controls.Add(this.ppBtnRoDbBrowse); - this.tcpRefereceObjects.Controls.Add(this.btnRoDbProperties); - this.tcpRefereceObjects.Controls.Add(this.cmbRoDb); - this.tcpRefereceObjects.Controls.Add(this.ppGpbxUpROvals); - this.tcpRefereceObjects.Controls.Add(this.label6); - this.tcpRefereceObjects.DisabledBackColor = System.Drawing.Color.Empty; - this.tcpRefereceObjects.Dock = System.Windows.Forms.DockStyle.Fill; - this.tcpRefereceObjects.Location = new System.Drawing.Point(0, 22); - this.tcpRefereceObjects.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.tcpRefereceObjects.Name = "tcpRefereceObjects"; - this.tcpRefereceObjects.Padding = new System.Windows.Forms.Padding(2); - this.tcpRefereceObjects.Size = new System.Drawing.Size(514, 314); - this.tcpRefereceObjects.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tcpRefereceObjects.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tcpRefereceObjects.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tcpRefereceObjects.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tcpRefereceObjects.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tcpRefereceObjects.Style.GradientAngle = 90; - this.tcpRefereceObjects.TabIndex = 2; - this.tcpRefereceObjects.TabItem = this.tiRefObjs; - this.tcpRefereceObjects.Enter += new System.EventHandler(this.tabpage_Enter); - // - // tbRoDb - // - this.tbRoDb.Enabled = false; - this.tbRoDb.Location = new System.Drawing.Point(80, 13); - this.tbRoDb.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.tbRoDb.Name = "tbRoDb"; - this.tbRoDb.Size = new System.Drawing.Size(318, 20); - this.tbRoDb.TabIndex = 20; - // - // ppBtnRoDbBrowse - // - this.ppBtnRoDbBrowse.Location = new System.Drawing.Point(406, 34); - this.ppBtnRoDbBrowse.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppBtnRoDbBrowse.Name = "ppBtnRoDbBrowse"; - this.ppBtnRoDbBrowse.Size = new System.Drawing.Size(51, 20); - this.ppBtnRoDbBrowse.TabIndex = 22; - this.ppBtnRoDbBrowse.Text = "Browse..."; - this.ppBtnRoDbBrowse.UseVisualStyleBackColor = true; - this.ppBtnRoDbBrowse.Click += new System.EventHandler(this.ppBtnRoDbBrowse_Click); - // - // btnRoDbProperties - // - this.btnRoDbProperties.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnRoDbProperties.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnRoDbProperties.Image = ((System.Drawing.Image)(resources.GetObject("btnRoDbProperties.Image"))); - this.btnRoDbProperties.Location = new System.Drawing.Point(406, 10); - this.btnRoDbProperties.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.btnRoDbProperties.Name = "btnRoDbProperties"; - this.btnRoDbProperties.Size = new System.Drawing.Size(33, 23); - this.btnRoDbProperties.TabIndex = 21; - this.btnRoDbProperties.Click += new System.EventHandler(this.btnRoDbProperties_Click); - // - // cmbRoDb - // - this.cmbRoDb.FormattingEnabled = true; - this.cmbRoDb.Location = new System.Drawing.Point(80, 13); - this.cmbRoDb.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.cmbRoDb.Name = "cmbRoDb"; - this.cmbRoDb.Size = new System.Drawing.Size(318, 21); - this.cmbRoDb.TabIndex = 47; - this.cmbRoDb.SelectedIndexChanged += new System.EventHandler(this.cmbRoDb_SelectedIndexChanged); - // - // ppGpbxUpROvals - // - this.ppGpbxUpROvals.BackColor = System.Drawing.Color.Transparent; - this.ppGpbxUpROvals.CanvasColor = System.Drawing.SystemColors.Control; - this.ppGpbxUpROvals.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; - this.ppGpbxUpROvals.Controls.Add(this.ppBtnResetRoVals); - this.ppGpbxUpROvals.Controls.Add(this.ppBtnUpRoVals); - this.ppGpbxUpROvals.DisabledBackColor = System.Drawing.Color.Empty; - this.ppGpbxUpROvals.Location = new System.Drawing.Point(34, 69); - this.ppGpbxUpROvals.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.ppGpbxUpROvals.Name = "ppGpbxUpROvals"; - this.ppGpbxUpROvals.Size = new System.Drawing.Size(112, 162); - // - // - // - this.ppGpbxUpROvals.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; - this.ppGpbxUpROvals.Style.BackColorGradientAngle = 90; - this.ppGpbxUpROvals.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; - this.ppGpbxUpROvals.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGpbxUpROvals.Style.BorderBottomWidth = 1; - this.ppGpbxUpROvals.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; - this.ppGpbxUpROvals.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGpbxUpROvals.Style.BorderLeftWidth = 1; - this.ppGpbxUpROvals.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGpbxUpROvals.Style.BorderRightWidth = 1; - this.ppGpbxUpROvals.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; - this.ppGpbxUpROvals.Style.BorderTopWidth = 1; - this.ppGpbxUpROvals.Style.CornerDiameter = 4; - this.ppGpbxUpROvals.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; - this.ppGpbxUpROvals.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; - this.ppGpbxUpROvals.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; - this.ppGpbxUpROvals.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; - // - // - // - this.ppGpbxUpROvals.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ppGpbxUpROvals.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ppGpbxUpROvals.TabIndex = 46; - this.ppGpbxUpROvals.Text = "RO Values"; - // - // tiRefObjs - // - this.tiRefObjs.AttachedControl = this.tcpRefereceObjects; - this.tiRefObjs.Name = "tiRefObjs"; - this.tiRefObjs.Text = "Referenced Objects"; - // - // tcpFormatSettings - // - this.tcpFormatSettings.Controls.Add(this.btnPhoneList); - this.tcpFormatSettings.Controls.Add(this.ppTxbxUnitNum); - this.tcpFormatSettings.Controls.Add(this.ppLblUnitNum); - this.tcpFormatSettings.Controls.Add(this.ppGpbxUserSpecCB); - this.tcpFormatSettings.Controls.Add(this.ppBtnDefaultChgBar); - this.tcpFormatSettings.Controls.Add(this.ppCmbxFormat); - this.tcpFormatSettings.Controls.Add(this.ppCmbxChangeBarType); - this.tcpFormatSettings.Controls.Add(this.label11); - this.tcpFormatSettings.Controls.Add(this.ppBtnDefaultFmt); - this.tcpFormatSettings.Controls.Add(this.label10); - this.tcpFormatSettings.Controls.Add(this.ppLblChangeBarTypeDefault); - this.tcpFormatSettings.Controls.Add(this.ppLblFormatDefault); - this.tcpFormatSettings.DisabledBackColor = System.Drawing.Color.Empty; - this.tcpFormatSettings.Dock = System.Windows.Forms.DockStyle.Fill; - this.tcpFormatSettings.Location = new System.Drawing.Point(0, 22); - this.tcpFormatSettings.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.tcpFormatSettings.Name = "tcpFormatSettings"; - this.tcpFormatSettings.Padding = new System.Windows.Forms.Padding(2); - this.tcpFormatSettings.Size = new System.Drawing.Size(514, 314); - this.tcpFormatSettings.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tcpFormatSettings.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tcpFormatSettings.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tcpFormatSettings.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tcpFormatSettings.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tcpFormatSettings.Style.GradientAngle = 90; - this.tcpFormatSettings.TabIndex = 4; - this.tcpFormatSettings.TabItem = this.tiFmtSettings; - this.tcpFormatSettings.Enter += new System.EventHandler(this.tabpage_Enter); - // - // btnPhoneList - // - this.btnPhoneList.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnPhoneList.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnPhoneList.Location = new System.Drawing.Point(324, 275); - this.btnPhoneList.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.btnPhoneList.Name = "btnPhoneList"; - this.btnPhoneList.Size = new System.Drawing.Size(74, 20); - this.btnPhoneList.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnPhoneList.TabIndex = 52; - this.btnPhoneList.Text = "Phone List"; - this.btnPhoneList.Click += new System.EventHandler(this.btnPhoneList_Click); - // - // ppLblUnitNum - // - this.ppLblUnitNum.AutoSize = true; - this.ppLblUnitNum.BackColor = System.Drawing.Color.Transparent; - this.ppLblUnitNum.Location = new System.Drawing.Point(12, 281); - this.ppLblUnitNum.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.ppLblUnitNum.Name = "ppLblUnitNum"; - this.ppLblUnitNum.Size = new System.Drawing.Size(235, 13); - this.ppLblUnitNum.TabIndex = 50; - this.ppLblUnitNum.Text = "Unit Number for Cover and Header page printing"; - // - // tiFmtSettings - // - this.tiFmtSettings.AttachedControl = this.tcpFormatSettings; - this.tiFmtSettings.Name = "tiFmtSettings"; - this.tiFmtSettings.Text = "Format Settings"; - // // tcpApplicability // this.tcpApplicability.Controls.Add(this.label28); @@ -1827,7 +1428,7 @@ namespace VEPROMS this.tcpApplicability.Location = new System.Drawing.Point(0, 22); this.tcpApplicability.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tcpApplicability.Name = "tcpApplicability"; - this.tcpApplicability.Padding = new System.Windows.Forms.Padding(2); + this.tcpApplicability.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tcpApplicability.Size = new System.Drawing.Size(514, 314); this.tcpApplicability.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); this.tcpApplicability.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); @@ -2123,6 +1724,418 @@ namespace VEPROMS this.tiApplicability.Name = "tiApplicability"; this.tiApplicability.Text = "Applicability"; // + // tcpFormatSettings + // + this.tcpFormatSettings.Controls.Add(this.btnPhoneList); + this.tcpFormatSettings.Controls.Add(this.ppTxbxUnitNum); + this.tcpFormatSettings.Controls.Add(this.ppLblUnitNum); + this.tcpFormatSettings.Controls.Add(this.ppGpbxUserSpecCB); + this.tcpFormatSettings.Controls.Add(this.ppBtnDefaultChgBar); + this.tcpFormatSettings.Controls.Add(this.ppCmbxFormat); + this.tcpFormatSettings.Controls.Add(this.ppCmbxChangeBarType); + this.tcpFormatSettings.Controls.Add(this.label11); + this.tcpFormatSettings.Controls.Add(this.ppBtnDefaultFmt); + this.tcpFormatSettings.Controls.Add(this.label10); + this.tcpFormatSettings.Controls.Add(this.ppLblChangeBarTypeDefault); + this.tcpFormatSettings.Controls.Add(this.ppLblFormatDefault); + this.tcpFormatSettings.DisabledBackColor = System.Drawing.Color.Empty; + this.tcpFormatSettings.Dock = System.Windows.Forms.DockStyle.Fill; + this.tcpFormatSettings.Location = new System.Drawing.Point(0, 22); + this.tcpFormatSettings.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpFormatSettings.Name = "tcpFormatSettings"; + this.tcpFormatSettings.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpFormatSettings.Size = new System.Drawing.Size(514, 314); + this.tcpFormatSettings.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tcpFormatSettings.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tcpFormatSettings.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tcpFormatSettings.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tcpFormatSettings.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tcpFormatSettings.Style.GradientAngle = 90; + this.tcpFormatSettings.TabIndex = 4; + this.tcpFormatSettings.TabItem = this.tiFmtSettings; + this.tcpFormatSettings.Enter += new System.EventHandler(this.tabpage_Enter); + // + // btnPhoneList + // + this.btnPhoneList.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnPhoneList.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnPhoneList.Location = new System.Drawing.Point(324, 275); + this.btnPhoneList.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnPhoneList.Name = "btnPhoneList"; + this.btnPhoneList.Size = new System.Drawing.Size(74, 20); + this.btnPhoneList.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnPhoneList.TabIndex = 52; + this.btnPhoneList.Text = "Phone List"; + this.btnPhoneList.Click += new System.EventHandler(this.btnPhoneList_Click); + // + // ppLblUnitNum + // + this.ppLblUnitNum.AutoSize = true; + this.ppLblUnitNum.BackColor = System.Drawing.Color.Transparent; + this.ppLblUnitNum.Location = new System.Drawing.Point(12, 281); + this.ppLblUnitNum.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.ppLblUnitNum.Name = "ppLblUnitNum"; + this.ppLblUnitNum.Size = new System.Drawing.Size(235, 13); + this.ppLblUnitNum.TabIndex = 50; + this.ppLblUnitNum.Text = "Unit Number for Cover and Header page printing"; + // + // tiFmtSettings + // + this.tiFmtSettings.AttachedControl = this.tcpFormatSettings; + this.tiFmtSettings.Name = "tiFmtSettings"; + this.tiFmtSettings.Text = "Format Settings"; + // + // tcpOutputSettings + // + this.tcpOutputSettings.Controls.Add(this.ppTxtBxPDFSuf); + this.tcpOutputSettings.Controls.Add(this.ppTxtBxPdfPre); + this.tcpOutputSettings.Controls.Add(this.label30); + this.tcpOutputSettings.Controls.Add(this.label29); + this.tcpOutputSettings.Controls.Add(this.ppChbxAddBlankPgs); + this.tcpOutputSettings.Controls.Add(this.ppTxtBxPDFLoc); + this.tcpOutputSettings.Controls.Add(this.label18); + this.tcpOutputSettings.Controls.Add(this.ppChbxAlwaysViewPDF); + this.tcpOutputSettings.Controls.Add(this.ppBtnPDFLoc); + this.tcpOutputSettings.Controls.Add(this.ppChbxAlwaysOvrWrtPDF); + this.tcpOutputSettings.Controls.Add(this.ppGrpbxPrnAdj); + this.tcpOutputSettings.Controls.Add(this.label17); + this.tcpOutputSettings.Controls.Add(this.ppBtnDeftDisAutoDuplx); + this.tcpOutputSettings.Controls.Add(this.ppBtnDefWatermark); + this.tcpOutputSettings.Controls.Add(this.ppChbxDisAutoDuplex); + this.tcpOutputSettings.Controls.Add(this.ppLblAutoDuplexDefault); + this.tcpOutputSettings.Controls.Add(this.ppCmbxWatermark); + this.tcpOutputSettings.Controls.Add(this.ppLblWatermarkDefault); + this.tcpOutputSettings.DisabledBackColor = System.Drawing.Color.Empty; + this.tcpOutputSettings.Dock = System.Windows.Forms.DockStyle.Fill; + this.tcpOutputSettings.Location = new System.Drawing.Point(0, 22); + this.tcpOutputSettings.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpOutputSettings.Name = "tcpOutputSettings"; + this.tcpOutputSettings.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpOutputSettings.Size = new System.Drawing.Size(514, 314); + this.tcpOutputSettings.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tcpOutputSettings.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tcpOutputSettings.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tcpOutputSettings.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tcpOutputSettings.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tcpOutputSettings.Style.GradientAngle = 90; + this.tcpOutputSettings.TabIndex = 3; + this.tcpOutputSettings.TabItem = this.tiOutputSettings; + this.tcpOutputSettings.Enter += new System.EventHandler(this.tabpage_Enter); + // + // label30 + // + this.label30.AutoSize = true; + this.label30.BackColor = System.Drawing.Color.Transparent; + this.label30.Location = new System.Drawing.Point(219, 108); + this.label30.Name = "label30"; + this.label30.Size = new System.Drawing.Size(76, 13); + this.label30.TabIndex = 67; + this.label30.Text = "PDF File Suffix"; + // + // label29 + // + this.label29.AutoSize = true; + this.label29.BackColor = System.Drawing.Color.Transparent; + this.label29.Location = new System.Drawing.Point(8, 108); + this.label29.Name = "label29"; + this.label29.Size = new System.Drawing.Size(76, 13); + this.label29.TabIndex = 67; + this.label29.Text = "PDF File Prefix"; + // + // ppChbxAddBlankPgs + // + this.ppChbxAddBlankPgs.AutoSize = true; + this.ppChbxAddBlankPgs.BackColor = System.Drawing.Color.Transparent; + this.ppChbxAddBlankPgs.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AddBlankPagesWhenUsingDuplexFoldouts", true)); + this.ppChbxAddBlankPgs.Location = new System.Drawing.Point(9, 284); + this.ppChbxAddBlankPgs.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppChbxAddBlankPgs.Name = "ppChbxAddBlankPgs"; + this.ppChbxAddBlankPgs.Size = new System.Drawing.Size(249, 17); + this.ppChbxAddBlankPgs.TabIndex = 66; + this.ppChbxAddBlankPgs.Text = "Add Blank Pages When Using Duplex Foldouts"; + this.ppChbxAddBlankPgs.UseVisualStyleBackColor = false; + // + // ppChbxAlwaysViewPDF + // + this.ppChbxAlwaysViewPDF.AutoSize = true; + this.ppChbxAlwaysViewPDF.BackColor = System.Drawing.Color.Transparent; + this.ppChbxAlwaysViewPDF.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysViewPDFAfterCreate", true)); + this.ppChbxAlwaysViewPDF.Location = new System.Drawing.Point(9, 263); + this.ppChbxAlwaysViewPDF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppChbxAlwaysViewPDF.Name = "ppChbxAlwaysViewPDF"; + this.ppChbxAlwaysViewPDF.Size = new System.Drawing.Size(175, 17); + this.ppChbxAlwaysViewPDF.TabIndex = 37; + this.ppChbxAlwaysViewPDF.Text = "Always View PDF after Creation"; + this.ppChbxAlwaysViewPDF.UseVisualStyleBackColor = false; + // + // ppChbxAlwaysOvrWrtPDF + // + this.ppChbxAlwaysOvrWrtPDF.AutoSize = true; + this.ppChbxAlwaysOvrWrtPDF.BackColor = System.Drawing.Color.Transparent; + this.ppChbxAlwaysOvrWrtPDF.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true)); + this.ppChbxAlwaysOvrWrtPDF.Location = new System.Drawing.Point(9, 241); + this.ppChbxAlwaysOvrWrtPDF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppChbxAlwaysOvrWrtPDF.Name = "ppChbxAlwaysOvrWrtPDF"; + this.ppChbxAlwaysOvrWrtPDF.Size = new System.Drawing.Size(131, 17); + this.ppChbxAlwaysOvrWrtPDF.TabIndex = 36; + this.ppChbxAlwaysOvrWrtPDF.Text = "Always Overwrite PDF"; + this.ppChbxAlwaysOvrWrtPDF.UseVisualStyleBackColor = false; + // + // ppGrpbxPrnAdj + // + this.ppGrpbxPrnAdj.BackColor = System.Drawing.Color.Transparent; + this.ppGrpbxPrnAdj.CanvasColor = System.Drawing.SystemColors.Control; + this.ppGrpbxPrnAdj.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOvrdPrnPenWidth); + this.ppGrpbxPrnAdj.Controls.Add(this.label19); + this.ppGrpbxPrnAdj.Controls.Add(this.label22); + this.ppGrpbxPrnAdj.Controls.Add(this.label20); + this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnAdjPrnStartPos); + this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOverdPrnPenBoldWidth); + this.ppGrpbxPrnAdj.Controls.Add(this.label21); + this.ppGrpbxPrnAdj.Controls.Add(this.ppNumUpDwnOvrdPrnPenULineWidth); + this.ppGrpbxPrnAdj.DisabledBackColor = System.Drawing.Color.Empty; + this.ppGrpbxPrnAdj.Location = new System.Drawing.Point(8, 141); + this.ppGrpbxPrnAdj.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppGrpbxPrnAdj.Name = "ppGrpbxPrnAdj"; + this.ppGrpbxPrnAdj.Size = new System.Drawing.Size(466, 97); + // + // + // + this.ppGrpbxPrnAdj.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.ppGrpbxPrnAdj.Style.BackColorGradientAngle = 90; + this.ppGrpbxPrnAdj.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.ppGrpbxPrnAdj.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGrpbxPrnAdj.Style.BorderBottomWidth = 1; + this.ppGrpbxPrnAdj.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.ppGrpbxPrnAdj.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGrpbxPrnAdj.Style.BorderLeftWidth = 1; + this.ppGrpbxPrnAdj.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGrpbxPrnAdj.Style.BorderRightWidth = 1; + this.ppGrpbxPrnAdj.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGrpbxPrnAdj.Style.BorderTopWidth = 1; + this.ppGrpbxPrnAdj.Style.CornerDiameter = 4; + this.ppGrpbxPrnAdj.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.ppGrpbxPrnAdj.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.ppGrpbxPrnAdj.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.ppGrpbxPrnAdj.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.ppGrpbxPrnAdj.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ppGrpbxPrnAdj.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ppGrpbxPrnAdj.TabIndex = 65; + this.ppGrpbxPrnAdj.Text = "Output Adjustments"; + this.ppGrpbxPrnAdj.Visible = false; + // + // tiOutputSettings + // + this.tiOutputSettings.AttachedControl = this.tcpOutputSettings; + this.tiOutputSettings.Name = "tiOutputSettings"; + this.tiOutputSettings.Text = "Output Settings"; + // + // tabControlPanel5 + // + this.tabControlPanel5.AutoScroll = true; + this.tabControlPanel5.Controls.Add(this.ppGrdLibDocList); + this.tabControlPanel5.DisabledBackColor = System.Drawing.Color.Empty; + this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel5.Location = new System.Drawing.Point(0, 22); + this.tabControlPanel5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tabControlPanel5.Name = "tabControlPanel5"; + this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tabControlPanel5.Size = new System.Drawing.Size(514, 314); + this.tabControlPanel5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel5.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel5.Style.GradientAngle = 90; + this.tabControlPanel5.TabIndex = 5; + this.tabControlPanel5.TabItem = this.tiLibDocs; + this.tabControlPanel5.Enter += new System.EventHandler(this.tabpage_Enter); + // + // ppGrdLibDocList + // + this.ppGrdLibDocList.AllowUserToAddRows = false; + this.ppGrdLibDocList.AutoGenerateColumns = false; + this.ppGrdLibDocList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.ppGrdLibDocList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.documentEntryCountDataGridViewTextBoxColumn, + this.libTitleDataGridViewTextBoxColumn}); + this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.ppGrdLibDocList.DefaultCellStyle = dataGridViewCellStyle2; + this.ppGrdLibDocList.Dock = System.Windows.Forms.DockStyle.Fill; + this.ppGrdLibDocList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.ppGrdLibDocList.HighlightSelectedColumnHeaders = false; + this.ppGrdLibDocList.Location = new System.Drawing.Point(2, 2); + this.ppGrdLibDocList.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppGrdLibDocList.Name = "ppGrdLibDocList"; + this.ppGrdLibDocList.RowHeadersVisible = false; + this.ppGrdLibDocList.RowTemplate.Height = 24; + this.ppGrdLibDocList.SelectAllSignVisible = false; + this.ppGrdLibDocList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.ppGrdLibDocList.Size = new System.Drawing.Size(510, 310); + this.ppGrdLibDocList.TabIndex = 1; + // + // documentEntryCountDataGridViewTextBoxColumn + // + this.documentEntryCountDataGridViewTextBoxColumn.DataPropertyName = "DocumentEntryCount"; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.documentEntryCountDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1; + this.documentEntryCountDataGridViewTextBoxColumn.HeaderText = "Number of Usages"; + this.documentEntryCountDataGridViewTextBoxColumn.Name = "documentEntryCountDataGridViewTextBoxColumn"; + this.documentEntryCountDataGridViewTextBoxColumn.ReadOnly = true; + this.documentEntryCountDataGridViewTextBoxColumn.Width = 95; + // + // libTitleDataGridViewTextBoxColumn + // + this.libTitleDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.libTitleDataGridViewTextBoxColumn.DataPropertyName = "LibTitle"; + this.libTitleDataGridViewTextBoxColumn.HeaderText = "Library Document Title"; + this.libTitleDataGridViewTextBoxColumn.Name = "libTitleDataGridViewTextBoxColumn"; + this.libTitleDataGridViewTextBoxColumn.ReadOnly = true; + // + // documentInfoListBindingSource + // + this.documentInfoListBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.DocumentInfo); + // + // tiLibDocs + // + this.tiLibDocs.AttachedControl = this.tabControlPanel5; + this.tiLibDocs.Name = "tiLibDocs"; + this.tiLibDocs.Text = "Library Docs"; + // + // tcpRefereceObjects + // + this.tcpRefereceObjects.Controls.Add(this.tbRoDb); + this.tcpRefereceObjects.Controls.Add(this.ppBtnRoDbBrowse); + this.tcpRefereceObjects.Controls.Add(this.btnRoDbProperties); + this.tcpRefereceObjects.Controls.Add(this.cmbRoDb); + this.tcpRefereceObjects.Controls.Add(this.ppGpbxUpROvals); + this.tcpRefereceObjects.Controls.Add(this.label6); + this.tcpRefereceObjects.DisabledBackColor = System.Drawing.Color.Empty; + this.tcpRefereceObjects.Dock = System.Windows.Forms.DockStyle.Fill; + this.tcpRefereceObjects.Location = new System.Drawing.Point(0, 22); + this.tcpRefereceObjects.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpRefereceObjects.Name = "tcpRefereceObjects"; + this.tcpRefereceObjects.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tcpRefereceObjects.Size = new System.Drawing.Size(514, 314); + this.tcpRefereceObjects.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tcpRefereceObjects.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tcpRefereceObjects.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tcpRefereceObjects.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tcpRefereceObjects.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tcpRefereceObjects.Style.GradientAngle = 90; + this.tcpRefereceObjects.TabIndex = 2; + this.tcpRefereceObjects.TabItem = this.tiRefObjs; + this.tcpRefereceObjects.Enter += new System.EventHandler(this.tabpage_Enter); + // + // tbRoDb + // + this.tbRoDb.Enabled = false; + this.tbRoDb.Location = new System.Drawing.Point(80, 13); + this.tbRoDb.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tbRoDb.Name = "tbRoDb"; + this.tbRoDb.Size = new System.Drawing.Size(318, 20); + this.tbRoDb.TabIndex = 20; + // + // ppBtnRoDbBrowse + // + this.ppBtnRoDbBrowse.Location = new System.Drawing.Point(406, 34); + this.ppBtnRoDbBrowse.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppBtnRoDbBrowse.Name = "ppBtnRoDbBrowse"; + this.ppBtnRoDbBrowse.Size = new System.Drawing.Size(51, 20); + this.ppBtnRoDbBrowse.TabIndex = 22; + this.ppBtnRoDbBrowse.Text = "Browse..."; + this.ppBtnRoDbBrowse.UseVisualStyleBackColor = true; + this.ppBtnRoDbBrowse.Click += new System.EventHandler(this.ppBtnRoDbBrowse_Click); + // + // btnRoDbProperties + // + this.btnRoDbProperties.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnRoDbProperties.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnRoDbProperties.Image = ((System.Drawing.Image)(resources.GetObject("btnRoDbProperties.Image"))); + this.btnRoDbProperties.Location = new System.Drawing.Point(406, 10); + this.btnRoDbProperties.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnRoDbProperties.Name = "btnRoDbProperties"; + this.btnRoDbProperties.Size = new System.Drawing.Size(33, 23); + this.btnRoDbProperties.TabIndex = 21; + this.btnRoDbProperties.Click += new System.EventHandler(this.btnRoDbProperties_Click); + // + // cmbRoDb + // + this.cmbRoDb.FormattingEnabled = true; + this.cmbRoDb.Location = new System.Drawing.Point(80, 13); + this.cmbRoDb.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbRoDb.Name = "cmbRoDb"; + this.cmbRoDb.Size = new System.Drawing.Size(318, 21); + this.cmbRoDb.TabIndex = 47; + this.cmbRoDb.SelectedIndexChanged += new System.EventHandler(this.cmbRoDb_SelectedIndexChanged); + // + // ppGpbxUpROvals + // + this.ppGpbxUpROvals.BackColor = System.Drawing.Color.Transparent; + this.ppGpbxUpROvals.CanvasColor = System.Drawing.SystemColors.Control; + this.ppGpbxUpROvals.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.ppGpbxUpROvals.Controls.Add(this.ppBtnResetRoVals); + this.ppGpbxUpROvals.Controls.Add(this.ppBtnUpRoVals); + this.ppGpbxUpROvals.DisabledBackColor = System.Drawing.Color.Empty; + this.ppGpbxUpROvals.Location = new System.Drawing.Point(34, 69); + this.ppGpbxUpROvals.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.ppGpbxUpROvals.Name = "ppGpbxUpROvals"; + this.ppGpbxUpROvals.Size = new System.Drawing.Size(112, 162); + // + // + // + this.ppGpbxUpROvals.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.ppGpbxUpROvals.Style.BackColorGradientAngle = 90; + this.ppGpbxUpROvals.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.ppGpbxUpROvals.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGpbxUpROvals.Style.BorderBottomWidth = 1; + this.ppGpbxUpROvals.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.ppGpbxUpROvals.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGpbxUpROvals.Style.BorderLeftWidth = 1; + this.ppGpbxUpROvals.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGpbxUpROvals.Style.BorderRightWidth = 1; + this.ppGpbxUpROvals.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.ppGpbxUpROvals.Style.BorderTopWidth = 1; + this.ppGpbxUpROvals.Style.CornerDiameter = 4; + this.ppGpbxUpROvals.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.ppGpbxUpROvals.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.ppGpbxUpROvals.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.ppGpbxUpROvals.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.ppGpbxUpROvals.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.ppGpbxUpROvals.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.ppGpbxUpROvals.TabIndex = 46; + this.ppGpbxUpROvals.Text = "RO Values"; + // + // tiRefObjs + // + this.tiRefObjs.AttachedControl = this.tcpRefereceObjects; + this.tiRefObjs.Name = "tiRefObjs"; + this.tiRefObjs.Text = "Referenced Objects"; + // // panVerBtns // this.panVerBtns.BackColor = System.Drawing.Color.Transparent; @@ -2241,7 +2254,7 @@ namespace VEPROMS this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.CancelButton = this.ppBtnCancel; this.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ClientSize = new System.Drawing.Size(668, 365); + this.ClientSize = new System.Drawing.Size(701, 368); this.ControlBox = false; this.Controls.Add(this.panVerBtns); this.Controls.Add(this.tcVersions); @@ -2274,28 +2287,28 @@ namespace VEPROMS this.tcVersions.ResumeLayout(false); this.tcpGeneral.ResumeLayout(false); this.tcpGeneral.PerformLayout(); - this.tcpOutputSettings.ResumeLayout(false); - this.tcpOutputSettings.PerformLayout(); - this.ppGrpbxPrnAdj.ResumeLayout(false); - this.ppGrpbxPrnAdj.PerformLayout(); this.tabControlPanel1.ResumeLayout(false); this.tabControlPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsMiniEnhanced)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsEnhanced)).EndInit(); - this.tabControlPanel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.ppGrdLibDocList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.documentInfoListBindingSource)).EndInit(); - this.tcpRefereceObjects.ResumeLayout(false); - this.tcpRefereceObjects.PerformLayout(); - this.ppGpbxUpROvals.ResumeLayout(false); - this.tcpFormatSettings.ResumeLayout(false); - this.tcpFormatSettings.PerformLayout(); this.tcpApplicability.ResumeLayout(false); this.tcpApplicability.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.bsMiniApple)).EndInit(); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.bsApples)).EndInit(); + this.tcpFormatSettings.ResumeLayout(false); + this.tcpFormatSettings.PerformLayout(); + this.tcpOutputSettings.ResumeLayout(false); + this.tcpOutputSettings.PerformLayout(); + this.ppGrpbxPrnAdj.ResumeLayout(false); + this.ppGrpbxPrnAdj.PerformLayout(); + this.tabControlPanel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.ppGrdLibDocList)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.documentInfoListBindingSource)).EndInit(); + this.tcpRefereceObjects.ResumeLayout(false); + this.tcpRefereceObjects.PerformLayout(); + this.ppGpbxUpROvals.ResumeLayout(false); this.panVerBtns.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ROPrefixBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).EndInit(); @@ -2464,5 +2477,6 @@ namespace VEPROMS private System.Windows.Forms.BindingSource bsMiniEnhanced; private System.Windows.Forms.ComboBox cbxEnhVersions; private System.Windows.Forms.Label lblEnhDoc; + private System.Windows.Forms.Button btnNewEnh; } } \ No newline at end of file diff --git a/PROMS/VEPROMS User Interface/frmVersionsProperties.cs b/PROMS/VEPROMS User Interface/frmVersionsProperties.cs index 74139cda..e5a349eb 100644 --- a/PROMS/VEPROMS User Interface/frmVersionsProperties.cs +++ b/PROMS/VEPROMS User Interface/frmVersionsProperties.cs @@ -146,14 +146,55 @@ namespace VEPROMS { if (emc.IsDirty) { + bool isnew = true; foreach (DVEnhancedDocument dved in _DocVersionConfig.MyEnhancedDocuments) { if (dved.Type == Convert.ToInt32(emc.Type)) { - // pdfxoffset must be int? how to check + isnew = false; dved.Name = emc.Name; dved.PdfToken = emc.PdfToken; - dved.PdfX = Convert.ToInt32(emc.PdfXOffset); + try + { + dved.PdfX = Convert.ToInt32(emc.PdfXOffset); + } + catch (Exception ex) + { + dved.PdfX = 0; + } + } + } + if (isnew) // make new link for this and the enhanced it points to. + { + int ipdfx = 0; + try + { + ipdfx = Convert.ToInt32(emc.PdfXOffset); + } + catch (Exception ex) + { + ipdfx = 0; + } + int itype = 0; + try + { + itype = Convert.ToInt32(emc.Type); + } + catch (Exception ex) + { + itype = 1; + } + // get index into combo box for doc version selected. + int selindx = cbxEnhVersions.SelectedIndex; + DocVersionInfo dvisel = NewEnhVersions[selindx]; + _DocVersionConfig.MyEnhancedDocuments.Add(new DVEnhancedDocument(emc.Name, itype, dvisel.VersionID, ipdfx, emc.PdfToken)); + using (DocVersion dv = DocVersion.Get(dvisel.VersionID)) + { + DocVersionConfig dvc = dv.MyConfig as DocVersionConfig; + dvc.MyEnhancedDocuments.Add(new DVEnhancedDocument("Source", 0, (int)_DocVersionConfig.MyDocVersion.VersionID, 10, "S")); + dvc.SaveDVEnhancedDocuments(); + dv.Config = dvc.ToString(); + dv.Save(); } } } @@ -406,6 +447,46 @@ namespace VEPROMS } private void InitEnhanced() { + // if this working draft has no enhanced documents, then put display a button for creating the enhanced links - + // but only if there are enhanced docversions to link to. + // Otherwise, set up the form with the data as it is. + if (_DocVersionConfig.MyEnhancedDocuments == null || _DocVersionConfig.MyEnhancedDocuments.Count == 0) + { + // also check that the format for this docversion does NOT have enhanced back/dev, i.e. it's format is an enhanced + // document + if (!(((_DocVersionConfig.MyDocVersion.MyDocVersionInfo.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds) || + ((_DocVersionConfig.MyDocVersion.MyDocVersionInfo.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedDeviations) == E_PurchaseOptions.EnhancedDeviations))) + { + bool validEmptyEnhancedExists = false; + // See if there are available (enhanced) DocVersions that can be linked to from this (source) DocVersion + DocVersionInfoList nonenhdvs = DocVersionInfoList.GetNonEnhancedDocVersions(); // this is a list of docversions that have no 'Enhanced' in config data + foreach (DocVersionInfo nonenhdv in nonenhdvs) + { + if (nonenhdv.VersionID != _DocVersionConfig.MyDocVersion.VersionID) + { + if (((nonenhdv.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds) || + ((nonenhdv.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedDeviations) == E_PurchaseOptions.EnhancedDeviations)) + { + validEmptyEnhancedExists = true; + break; + } + } + if (validEmptyEnhancedExists) break; + } + if (validEmptyEnhancedExists) + { + Button btnEnh = new Button(); + btnEnh.Text = "Link to Enhanced Document(s)"; + btnEnh.Width = 220; + btnEnh.Location = new Point(290, 271); + btnEnh.Parent = tcpGeneral; + btnEnh.Click += new EventHandler(btnEnh_Click); + } + } + btnEnhanced.Visible = false; + tiEnhanced.Visible = false; + return; + } btnEnhanced.Visible = true; tiEnhanced.Visible = true; // get enhanced tab's data if: @@ -431,16 +512,10 @@ namespace VEPROMS bsMiniEnhanced.DataSource = _Enhanced; cbxEnhVersions.SelectedIndex = 0; cbxEnhVersions.Enabled = false; + btnNewEnh.Visible = false; } else if (hasEnhancedPO) { - // if this is not a source, i.e. does not have myenhanceddocuments, then FOR NOW - UNTIL 'NEW' is done, turn off enhanced tab: - if (_DocVersionConfig.MyEnhancedDocuments == null || _DocVersionConfig.MyEnhancedDocuments.Count == 0) - { - btnEnhanced.Visible = false; - tiEnhanced.Visible = false; - return; - } // first set up existing enhanced linked documents (this is a listbox on left of form) _Enhanced = new List(); lbEnhanced.Visible = true; @@ -460,9 +535,21 @@ namespace VEPROMS if (cbxEnhVersions.Items.Count>0) cbxEnhVersions.SelectedIndex = 0; if (lbEnhanced.Items.Count > 0) lbEnhanced.SelectedIndex = 0; bsMiniEnhanced.DataSource = bsEnhanced.Current as EnhancedMiniConfig; + btnNewEnh.Visible = true; + } + } + + void btnEnh_Click(object sender, EventArgs e) + { + if (MessageBox.Show(this, "Are you sure you want to Link Enhanced Document(s) to this Working Draft?", "Add Enhanced Link", MessageBoxButtons.YesNoCancel) == DialogResult.Yes) + { + btnEnhanced.Visible = true; + tiEnhanced.Visible = true; + Button btnEnh = (Button)sender; + btnEnh.Visible = false; + btnEnhanced_Click(sender, e); } } - void btnPC_Click(object sender, EventArgs e) { if (MessageBox.Show(this, "Are you sure you want to add Applicability to this Working Draft?", "Add Applicability", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Stop) == DialogResult.Yes) @@ -1252,12 +1339,68 @@ namespace VEPROMS private void lbEnhanced_SelectedIndexChanged(object sender, EventArgs e) { - if (!_Initializing && lbEnhanced.SelectedIndex > -1) + if (!_Initializing && lbEnhanced.SelectedIndex > -1 && !doingNew) { bsMiniEnhanced.DataSource = bsEnhanced.Current as EnhancedMiniConfig; - cbxEnhVersions.SelectedIndex = lbEnhanced.SelectedIndex; + if (cbxEnhVersions.Items.Count >= lbEnhanced.Items.Count) + cbxEnhVersions.SelectedIndex = lbEnhanced.SelectedIndex; } } + private List NewEnhVersions = new List(); + private bool doingNew = false; + private void btnNewEnh_Click(object sender, EventArgs e) + { + _Initializing = true; + doingNew = true; + // the 'New' button is only enabled for Source documents. + EnhancedMiniConfig cfg = new EnhancedMiniConfig(); + cfg.Name = "New Enhanced"; + // need to have a unique number for this enhanced link, find largest and then increment by 1. + int maxtype = -1; + if (_DocVersionConfig.MyEnhancedDocuments != null && _DocVersionConfig.MyEnhancedDocuments.Count > 0) + { + foreach (DVEnhancedDocument dve in _DocVersionConfig.MyEnhancedDocuments) + { + maxtype = Math.Max(maxtype, dve.Type); + } + } + if (maxtype < 0) maxtype = 1; + else maxtype++; + cfg.Type = maxtype.ToString(); + + if (_Enhanced == null) + _Enhanced = new List(); + _Enhanced.Add(cfg); + bsEnhanced.DataSource = null; + bsEnhanced.DataSource = _Enhanced; + cbxEnhVersions.Items.Clear(); + NewEnhVersions.Clear(); + DocVersionInfoList nonenhdvs = DocVersionInfoList.GetNonEnhancedDocVersions(); // this is a list of docversions that have no 'Enhanced' in config data + foreach (DocVersionInfo nonenhdv in nonenhdvs) + { + if (nonenhdv.VersionID != _DocVersionConfig.MyDocVersion.VersionID) + { + if (((nonenhdv.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds) || + ((nonenhdv.ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedDeviations) == E_PurchaseOptions.EnhancedDeviations)) + { + NewEnhVersions.Add(nonenhdv); + cbxEnhVersions.Items.Add(nonenhdv.SearchDVPath); + } + } + } + if (cbxEnhVersions.Items.Count > 0) + { + cbxEnhVersions.Enabled = true; + cbxEnhVersions.SelectedIndex = 0; + } + else + cbxEnhVersions.Enabled = false; + bsMiniEnhanced.DataSource = cfg; + lbEnhanced.SelectedItem = cfg; + tbEnhType.Enabled = false; + btnNewEnh.Enabled = false; // for now, only do 1 at a time. + _Initializing = false; + } } [XmlRoot("Enhanced")] public class EnhancedMiniConfig diff --git a/PROMS/VEPROMS User Interface/frmVersionsProperties.resx b/PROMS/VEPROMS User Interface/frmVersionsProperties.resx index b97043a0..725ef1c9 100644 --- a/PROMS/VEPROMS User Interface/frmVersionsProperties.resx +++ b/PROMS/VEPROMS User Interface/frmVersionsProperties.resx @@ -123,12 +123,6 @@ 415, 17 - - 415, 17 - - - 643, 17 - Allows you to specify the default format to use for all procedures in this set. @@ -202,6 +196,12 @@ Check "Show Default Settings" to display the "default" duplexing setting (below 817, 17 + + 118, 17 + + + 17, 17 + 181, 113 @@ -221,24 +221,6 @@ Check "Show Default Settings" to display the "default" duplexing setting (below gg== - - 118, 17 - - - 17, 65 - - - 817, 17 - - - 118, 17 - - - 17, 17 - - - 17, 17 - 238, 17