From 7a957dfc35614747481c113cf615323956c83827 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 27 Aug 2010 20:21:56 +0000 Subject: [PATCH] --- .../DlgPrintProcedure.Designer.cs | 747 +++++++++--------- .../DlgPrintProcedure.cs | 128 +-- .../DlgPrintProcedure.resx | 6 +- .../Format/PlantFormat.cs | 6 + 4 files changed, 456 insertions(+), 431 deletions(-) diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs index 802464f3..e91ce9e8 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs @@ -31,27 +31,14 @@ namespace VEPROMS this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DlgPrintProcedure)); this.tabControl1 = new DevComponents.DotNetBar.TabControl(); - this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel(); - this.ppGpbxCBType = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.rbCustom = new System.Windows.Forms.RadioButton(); - this.rbFormatDefault = new System.Windows.Forms.RadioButton(); - this.ppGpbxUserSpecCB = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.ppGpbxUserSpecTxt = new DevComponents.DotNetBar.Controls.GroupPanel(); - this.label14 = new System.Windows.Forms.Label(); - this.ppTxbxChangeBarUserMsgTwo = new System.Windows.Forms.RichTextBox(); - this.docVersionConfigBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.label15 = new System.Windows.Forms.Label(); - this.ppTxbxChangeBarUserMsgOne = new System.Windows.Forms.RichTextBox(); - this.ppCmbxChgBarPos = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label12 = new System.Windows.Forms.Label(); - this.ppCmbxChgBarTxtType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label13 = new System.Windows.Forms.Label(); - this.tbChangeBars = new DevComponents.DotNetBar.TabItem(this.components); this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel(); + this.grpDateSelector = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.calDateSelector = new DevComponents.Editors.DateTimeAdv.MonthCalendarAdv(); this.txbReviewDate = new DevComponents.DotNetBar.Controls.TextBoxX(); this.txbRevDate = new DevComponents.DotNetBar.Controls.TextBoxX(); this.txbPDFLocation = new DevComponents.DotNetBar.Controls.TextBoxX(); this.cbxOpenAfterCreate2 = new System.Windows.Forms.CheckBox(); + this.docVersionConfigBindingSource = new System.Windows.Forms.BindingSource(this.components); this.cbxOverwritePDF2 = new System.Windows.Forms.CheckBox(); this.txbRevNum = new DevComponents.DotNetBar.Controls.TextBoxX(); this.lblReviewDate = new DevComponents.DotNetBar.LabelX(); @@ -61,14 +48,23 @@ namespace VEPROMS this.lblPDFFileName = new DevComponents.DotNetBar.LabelX(); this.lblPDFLoc = new DevComponents.DotNetBar.LabelX(); this.tbGeneral = new DevComponents.DotNetBar.TabItem(this.components); + this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel(); + this.ppGpbxCBType = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.rbCustom = new System.Windows.Forms.RadioButton(); + this.rbFormatDefault = new System.Windows.Forms.RadioButton(); + this.ppGpbxUserSpecCB = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.ppGpbxUserSpecTxt = new DevComponents.DotNetBar.Controls.GroupPanel(); + this.label14 = new System.Windows.Forms.Label(); + this.ppTxbxChangeBarUserMsgTwo = new System.Windows.Forms.RichTextBox(); + this.label15 = new System.Windows.Forms.Label(); + this.ppTxbxChangeBarUserMsgOne = new System.Windows.Forms.RichTextBox(); + this.ppCmbxChgBarPos = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label12 = new System.Windows.Forms.Label(); + this.ppCmbxChgBarTxtType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); + this.label13 = new System.Windows.Forms.Label(); + this.tbChangeBars = new DevComponents.DotNetBar.TabItem(this.components); this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel(); this.lblWatermarkS = new DevComponents.DotNetBar.LabelX(); - this.txbReviewDateS = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txbRevDateS = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txbRevNumS = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.lblReviewDateS = new DevComponents.DotNetBar.LabelX(); - this.lblRevDateS = new DevComponents.DotNetBar.LabelX(); - this.lblRevNumS = new DevComponents.DotNetBar.LabelX(); this.txbPdfLocationS = new DevComponents.DotNetBar.Controls.TextBoxX(); this.btnPdfLocation = new DevComponents.DotNetBar.ButtonX(); this.lblPdfLocS = new DevComponents.DotNetBar.LabelX(); @@ -88,12 +84,13 @@ namespace VEPROMS this.cbxDebug = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit(); this.tabControl1.SuspendLayout(); + this.tabControlPanel3.SuspendLayout(); + this.grpDateSelector.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit(); this.tabControlPanel2.SuspendLayout(); this.ppGpbxCBType.SuspendLayout(); this.ppGpbxUserSpecCB.SuspendLayout(); this.ppGpbxUserSpecTxt.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit(); - this.tabControlPanel3.SuspendLayout(); this.tabControlPanel1.SuspendLayout(); this.SuspendLayout(); // @@ -104,8 +101,8 @@ namespace VEPROMS | System.Windows.Forms.AnchorStyles.Right))); this.tabControl1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125))))); this.tabControl1.CanReorderTabs = true; - this.tabControl1.Controls.Add(this.tabControlPanel2); this.tabControl1.Controls.Add(this.tabControlPanel3); + this.tabControl1.Controls.Add(this.tabControlPanel2); this.tabControl1.Controls.Add(this.tabControlPanel1); this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); @@ -121,6 +118,329 @@ namespace VEPROMS this.tabControl1.Tabs.Add(this.tbChangeBars); this.tabControl1.Text = "tabControl1"; // + // tabControlPanel3 + // + this.tabControlPanel3.AutoScroll = true; + this.tabControlPanel3.Controls.Add(this.grpDateSelector); + this.tabControlPanel3.Controls.Add(this.txbReviewDate); + this.tabControlPanel3.Controls.Add(this.txbRevDate); + this.tabControlPanel3.Controls.Add(this.txbPDFLocation); + this.tabControlPanel3.Controls.Add(this.cbxOpenAfterCreate2); + this.tabControlPanel3.Controls.Add(this.cbxOverwritePDF2); + this.tabControlPanel3.Controls.Add(this.txbRevNum); + this.tabControlPanel3.Controls.Add(this.lblReviewDate); + this.tabControlPanel3.Controls.Add(this.lblRevDate); + this.tabControlPanel3.Controls.Add(this.lblRevNum); + this.tabControlPanel3.Controls.Add(this.txbPDFName); + this.tabControlPanel3.Controls.Add(this.lblPDFFileName); + this.tabControlPanel3.Controls.Add(this.lblPDFLoc); + this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControlPanel3.Location = new System.Drawing.Point(0, 24); + this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.tabControlPanel3.Name = "tabControlPanel3"; + this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1); + this.tabControlPanel3.Size = new System.Drawing.Size(669, 275); + this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); + this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); + this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); + this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) + | DevComponents.DotNetBar.eBorderSide.Bottom))); + this.tabControlPanel3.Style.GradientAngle = 90; + this.tabControlPanel3.TabIndex = 3; + this.tabControlPanel3.TabItem = this.tbGeneral; + // + // grpDateSelector + // + this.grpDateSelector.BackColor = System.Drawing.Color.Transparent; + this.grpDateSelector.CanvasColor = System.Drawing.SystemColors.Control; + this.grpDateSelector.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; + this.grpDateSelector.Controls.Add(this.calDateSelector); + this.grpDateSelector.Location = new System.Drawing.Point(280, 92); + this.grpDateSelector.Name = "grpDateSelector"; + this.grpDateSelector.Size = new System.Drawing.Size(200, 167); + // + // + // + this.grpDateSelector.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.grpDateSelector.Style.BackColorGradientAngle = 90; + this.grpDateSelector.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.grpDateSelector.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpDateSelector.Style.BorderBottomWidth = 1; + this.grpDateSelector.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.grpDateSelector.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpDateSelector.Style.BorderLeftWidth = 1; + this.grpDateSelector.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpDateSelector.Style.BorderRightWidth = 1; + this.grpDateSelector.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.grpDateSelector.Style.BorderTopWidth = 1; + this.grpDateSelector.Style.Class = ""; + this.grpDateSelector.Style.CornerDiameter = 4; + this.grpDateSelector.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.grpDateSelector.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; + this.grpDateSelector.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.grpDateSelector.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near; + // + // + // + this.grpDateSelector.StyleMouseDown.Class = ""; + this.grpDateSelector.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.grpDateSelector.StyleMouseOver.Class = ""; + this.grpDateSelector.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.grpDateSelector.TabIndex = 85; + this.grpDateSelector.Text = "Select Revision Date"; + this.grpDateSelector.Visible = false; + // + // calDateSelector + // + this.calDateSelector.AnnuallyMarkedDates = new System.DateTime[0]; + this.calDateSelector.AutoSize = true; + // + // + // + this.calDateSelector.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.calDateSelector.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.calDateSelector.BackgroundStyle.BorderBottomWidth = 1; + this.calDateSelector.BackgroundStyle.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.calDateSelector.BackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.calDateSelector.BackgroundStyle.BorderLeftWidth = 1; + this.calDateSelector.BackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.calDateSelector.BackgroundStyle.BorderRightWidth = 1; + this.calDateSelector.BackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.calDateSelector.BackgroundStyle.BorderTopWidth = 1; + this.calDateSelector.BackgroundStyle.Class = ""; + this.calDateSelector.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + // + // + // + this.calDateSelector.CommandsBackgroundStyle.Class = ""; + this.calDateSelector.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.calDateSelector.ContainerControlProcessDialogKey = true; + this.calDateSelector.DisplayMonth = new System.DateTime(2010, 8, 1, 0, 0, 0, 0); + this.calDateSelector.Location = new System.Drawing.Point(13, 3); + this.calDateSelector.MarkedDates = new System.DateTime[0]; + this.calDateSelector.MonthlyMarkedDates = new System.DateTime[0]; + this.calDateSelector.Name = "calDateSelector"; + // + // + // + this.calDateSelector.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.calDateSelector.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.calDateSelector.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.calDateSelector.NavigationBackgroundStyle.Class = ""; + this.calDateSelector.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.calDateSelector.Size = new System.Drawing.Size(170, 128); + this.calDateSelector.TabIndex = 84; + this.calDateSelector.Text = "monthCalendarAdv1"; + this.calDateSelector.Visible = false; + this.calDateSelector.WeeklyMarkedDays = new System.DayOfWeek[0]; + this.calDateSelector.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.calDateSelector_DateSelected); + // + // txbReviewDate + // + // + // + // + this.txbReviewDate.Border.Class = "TextBoxBorder"; + this.txbReviewDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txbReviewDate.Location = new System.Drawing.Point(136, 172); + this.txbReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txbReviewDate.Name = "txbReviewDate"; + this.txbReviewDate.Size = new System.Drawing.Size(121, 26); + this.txbReviewDate.TabIndex = 83; + this.txbReviewDate.Leave += new System.EventHandler(this.txbReviewDate_Leave); + this.txbReviewDate.Enter += new System.EventHandler(this.txbReviewDate_Enter); + // + // txbRevDate + // + // + // + // + this.txbRevDate.Border.Class = "TextBoxBorder"; + this.txbRevDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txbRevDate.Location = new System.Drawing.Point(136, 132); + this.txbRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txbRevDate.Name = "txbRevDate"; + this.txbRevDate.Size = new System.Drawing.Size(121, 26); + this.txbRevDate.TabIndex = 82; + this.txbRevDate.Leave += new System.EventHandler(this.txbRevDate_Leave); + this.txbRevDate.Enter += new System.EventHandler(this.txbRevDate_Enter); + // + // txbPDFLocation + // + this.txbPDFLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.txbPDFLocation.Border.Class = "TextBoxBorder"; + this.txbPDFLocation.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txbPDFLocation.Enabled = false; + this.txbPDFLocation.Location = new System.Drawing.Point(136, 10); + this.txbPDFLocation.Name = "txbPDFLocation"; + this.txbPDFLocation.ShortcutsEnabled = false; + this.txbPDFLocation.Size = new System.Drawing.Size(518, 26); + this.txbPDFLocation.TabIndex = 81; + this.txbPDFLocation.WatermarkText = "PDF Location"; + this.txbPDFLocation.Leave += new System.EventHandler(this.txbPDFLocation_Leave); + // + // cbxOpenAfterCreate2 + // + this.cbxOpenAfterCreate2.AutoSize = true; + this.cbxOpenAfterCreate2.BackColor = System.Drawing.Color.Transparent; + this.cbxOpenAfterCreate2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysViewPDFAfterCreate", true)); + this.cbxOpenAfterCreate2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxOpenAfterCreate2.Location = new System.Drawing.Point(16, 240); + this.cbxOpenAfterCreate2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxOpenAfterCreate2.Name = "cbxOpenAfterCreate2"; + this.cbxOpenAfterCreate2.Size = new System.Drawing.Size(177, 22); + this.cbxOpenAfterCreate2.TabIndex = 80; + this.cbxOpenAfterCreate2.Text = "View PDF After Create"; + this.cbxOpenAfterCreate2.UseVisualStyleBackColor = false; + // + // docVersionConfigBindingSource + // + this.docVersionConfigBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.DocVersionConfig); + // + // cbxOverwritePDF2 + // + this.cbxOverwritePDF2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.cbxOverwritePDF2.AutoSize = true; + this.cbxOverwritePDF2.BackColor = System.Drawing.Color.Transparent; + this.cbxOverwritePDF2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true)); + this.cbxOverwritePDF2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxOverwritePDF2.ForeColor = System.Drawing.SystemColors.ControlText; + this.cbxOverwritePDF2.Location = new System.Drawing.Point(471, 48); + this.cbxOverwritePDF2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxOverwritePDF2.Name = "cbxOverwritePDF2"; + this.cbxOverwritePDF2.Size = new System.Drawing.Size(154, 22); + this.cbxOverwritePDF2.TabIndex = 79; + this.cbxOverwritePDF2.Text = "Overwrite PDF File"; + this.cbxOverwritePDF2.UseVisualStyleBackColor = false; + // + // txbRevNum + // + // + // + // + this.txbRevNum.Border.Class = "TextBoxBorder"; + this.txbRevNum.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txbRevNum.Location = new System.Drawing.Point(136, 92); + this.txbRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.txbRevNum.Name = "txbRevNum"; + this.txbRevNum.Size = new System.Drawing.Size(121, 26); + this.txbRevNum.TabIndex = 73; + this.txbRevNum.Leave += new System.EventHandler(this.txbRevNum_Leave); + // + // lblReviewDate + // + this.lblReviewDate.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblReviewDate.BackgroundStyle.Class = ""; + this.lblReviewDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblReviewDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblReviewDate.Location = new System.Drawing.Point(9, 172); + this.lblReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lblReviewDate.Name = "lblReviewDate"; + this.lblReviewDate.Size = new System.Drawing.Size(114, 23); + this.lblReviewDate.TabIndex = 72; + this.lblReviewDate.Text = "Review Date"; + this.lblReviewDate.TextAlignment = System.Drawing.StringAlignment.Far; + // + // lblRevDate + // + this.lblRevDate.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblRevDate.BackgroundStyle.Class = ""; + this.lblRevDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblRevDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblRevDate.Location = new System.Drawing.Point(9, 132); + this.lblRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lblRevDate.Name = "lblRevDate"; + this.lblRevDate.Size = new System.Drawing.Size(114, 23); + this.lblRevDate.TabIndex = 71; + this.lblRevDate.Text = "Revision Date"; + this.lblRevDate.TextAlignment = System.Drawing.StringAlignment.Far; + // + // lblRevNum + // + this.lblRevNum.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblRevNum.BackgroundStyle.Class = ""; + this.lblRevNum.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblRevNum.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblRevNum.Location = new System.Drawing.Point(9, 92); + this.lblRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lblRevNum.Name = "lblRevNum"; + this.lblRevNum.Size = new System.Drawing.Size(114, 23); + this.lblRevNum.TabIndex = 70; + this.lblRevNum.Text = "Revision Number"; + this.lblRevNum.TextAlignment = System.Drawing.StringAlignment.Far; + // + // txbPDFName + // + this.txbPDFName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.txbPDFName.Border.Class = "TextBoxBorder"; + this.txbPDFName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txbPDFName.Location = new System.Drawing.Point(136, 48); + this.txbPDFName.Margin = new System.Windows.Forms.Padding(4); + this.txbPDFName.Name = "txbPDFName"; + this.txbPDFName.Size = new System.Drawing.Size(263, 26); + this.txbPDFName.TabIndex = 8; + // + // lblPDFFileName + // + this.lblPDFFileName.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblPDFFileName.BackgroundStyle.Class = ""; + this.lblPDFFileName.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblPDFFileName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblPDFFileName.Location = new System.Drawing.Point(9, 42); + this.lblPDFFileName.Margin = new System.Windows.Forms.Padding(4); + this.lblPDFFileName.Name = "lblPDFFileName"; + this.lblPDFFileName.Size = new System.Drawing.Size(114, 23); + this.lblPDFFileName.TabIndex = 7; + this.lblPDFFileName.Text = "PDF Name"; + this.lblPDFFileName.TextAlignment = System.Drawing.StringAlignment.Far; + // + // lblPDFLoc + // + this.lblPDFLoc.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblPDFLoc.BackgroundStyle.Class = ""; + this.lblPDFLoc.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblPDFLoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblPDFLoc.Location = new System.Drawing.Point(9, 4); + this.lblPDFLoc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lblPDFLoc.Name = "lblPDFLoc"; + this.lblPDFLoc.Size = new System.Drawing.Size(114, 23); + this.lblPDFLoc.TabIndex = 4; + this.lblPDFLoc.Text = "PDF Location"; + this.lblPDFLoc.TextAlignment = System.Drawing.StringAlignment.Far; + // + // tbGeneral + // + this.tbGeneral.AttachedControl = this.tabControlPanel3; + this.tbGeneral.Name = "tbGeneral"; + this.tbGeneral.Text = "General"; + // // tabControlPanel2 // this.tabControlPanel2.Controls.Add(this.ppGpbxCBType); @@ -325,10 +645,6 @@ namespace VEPROMS this.ppTxbxChangeBarUserMsgTwo.TabIndex = 2; this.ppTxbxChangeBarUserMsgTwo.Text = ""; // - // docVersionConfigBindingSource - // - this.docVersionConfigBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.DocVersionConfig); - // // label15 // this.label15.AutoSize = true; @@ -405,242 +721,9 @@ namespace VEPROMS this.tbChangeBars.Text = "Change Bars"; this.tbChangeBars.Visible = false; // - // tabControlPanel3 - // - this.tabControlPanel3.AutoScroll = true; - this.tabControlPanel3.Controls.Add(this.txbReviewDate); - this.tabControlPanel3.Controls.Add(this.txbRevDate); - this.tabControlPanel3.Controls.Add(this.txbPDFLocation); - this.tabControlPanel3.Controls.Add(this.cbxOpenAfterCreate2); - this.tabControlPanel3.Controls.Add(this.cbxOverwritePDF2); - this.tabControlPanel3.Controls.Add(this.txbRevNum); - this.tabControlPanel3.Controls.Add(this.lblReviewDate); - this.tabControlPanel3.Controls.Add(this.lblRevDate); - this.tabControlPanel3.Controls.Add(this.lblRevNum); - this.tabControlPanel3.Controls.Add(this.txbPDFName); - this.tabControlPanel3.Controls.Add(this.lblPDFFileName); - this.tabControlPanel3.Controls.Add(this.lblPDFLoc); - this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControlPanel3.Location = new System.Drawing.Point(0, 24); - this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.tabControlPanel3.Name = "tabControlPanel3"; - this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1); - this.tabControlPanel3.Size = new System.Drawing.Size(669, 275); - this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254))))); - this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227))))); - this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; - this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199))))); - this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right) - | DevComponents.DotNetBar.eBorderSide.Bottom))); - this.tabControlPanel3.Style.GradientAngle = 90; - this.tabControlPanel3.TabIndex = 3; - this.tabControlPanel3.TabItem = this.tbGeneral; - // - // txbReviewDate - // - // - // - // - this.txbReviewDate.Border.Class = "TextBoxBorder"; - this.txbReviewDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbReviewDate.Enabled = false; - this.txbReviewDate.Location = new System.Drawing.Point(136, 172); - this.txbReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbReviewDate.Name = "txbReviewDate"; - this.txbReviewDate.Size = new System.Drawing.Size(121, 22); - this.txbReviewDate.TabIndex = 83; - // - // txbRevDate - // - // - // - // - this.txbRevDate.Border.Class = "TextBoxBorder"; - this.txbRevDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbRevDate.Enabled = false; - this.txbRevDate.Location = new System.Drawing.Point(136, 132); - this.txbRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbRevDate.Name = "txbRevDate"; - this.txbRevDate.Size = new System.Drawing.Size(121, 22); - this.txbRevDate.TabIndex = 82; - // - // txbPDFLocation - // - this.txbPDFLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txbPDFLocation.Border.Class = "TextBoxBorder"; - this.txbPDFLocation.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbPDFLocation.Enabled = false; - this.txbPDFLocation.Location = new System.Drawing.Point(136, 10); - this.txbPDFLocation.Name = "txbPDFLocation"; - this.txbPDFLocation.ShortcutsEnabled = false; - this.txbPDFLocation.Size = new System.Drawing.Size(518, 22); - this.txbPDFLocation.TabIndex = 81; - this.txbPDFLocation.WatermarkText = "PDF Location"; - this.txbPDFLocation.Leave += new System.EventHandler(this.txbPDFLocation_Leave); - // - // cbxOpenAfterCreate2 - // - this.cbxOpenAfterCreate2.AutoSize = true; - this.cbxOpenAfterCreate2.BackColor = System.Drawing.Color.Transparent; - this.cbxOpenAfterCreate2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysViewPDFAfterCreate", true)); - this.cbxOpenAfterCreate2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxOpenAfterCreate2.Location = new System.Drawing.Point(16, 240); - this.cbxOpenAfterCreate2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.cbxOpenAfterCreate2.Name = "cbxOpenAfterCreate2"; - this.cbxOpenAfterCreate2.Size = new System.Drawing.Size(177, 22); - this.cbxOpenAfterCreate2.TabIndex = 80; - this.cbxOpenAfterCreate2.Text = "View PDF After Create"; - this.cbxOpenAfterCreate2.UseVisualStyleBackColor = false; - // - // cbxOverwritePDF2 - // - this.cbxOverwritePDF2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.cbxOverwritePDF2.AutoSize = true; - this.cbxOverwritePDF2.BackColor = System.Drawing.Color.Transparent; - this.cbxOverwritePDF2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true)); - this.cbxOverwritePDF2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxOverwritePDF2.ForeColor = System.Drawing.SystemColors.ControlText; - this.cbxOverwritePDF2.Location = new System.Drawing.Point(471, 48); - this.cbxOverwritePDF2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.cbxOverwritePDF2.Name = "cbxOverwritePDF2"; - this.cbxOverwritePDF2.Size = new System.Drawing.Size(154, 22); - this.cbxOverwritePDF2.TabIndex = 79; - this.cbxOverwritePDF2.Text = "Overwrite PDF File"; - this.cbxOverwritePDF2.UseVisualStyleBackColor = false; - // - // txbRevNum - // - // - // - // - this.txbRevNum.Border.Class = "TextBoxBorder"; - this.txbRevNum.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbRevNum.Enabled = false; - this.txbRevNum.Location = new System.Drawing.Point(136, 92); - this.txbRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbRevNum.Name = "txbRevNum"; - this.txbRevNum.Size = new System.Drawing.Size(121, 22); - this.txbRevNum.TabIndex = 73; - // - // lblReviewDate - // - this.lblReviewDate.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblReviewDate.BackgroundStyle.Class = ""; - this.lblReviewDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblReviewDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReviewDate.Location = new System.Drawing.Point(9, 172); - this.lblReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblReviewDate.Name = "lblReviewDate"; - this.lblReviewDate.Size = new System.Drawing.Size(114, 23); - this.lblReviewDate.TabIndex = 72; - this.lblReviewDate.Text = "Review Date"; - this.lblReviewDate.TextAlignment = System.Drawing.StringAlignment.Far; - // - // lblRevDate - // - this.lblRevDate.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblRevDate.BackgroundStyle.Class = ""; - this.lblRevDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblRevDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblRevDate.Location = new System.Drawing.Point(9, 132); - this.lblRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblRevDate.Name = "lblRevDate"; - this.lblRevDate.Size = new System.Drawing.Size(114, 23); - this.lblRevDate.TabIndex = 71; - this.lblRevDate.Text = "Revision Date"; - this.lblRevDate.TextAlignment = System.Drawing.StringAlignment.Far; - // - // lblRevNum - // - this.lblRevNum.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblRevNum.BackgroundStyle.Class = ""; - this.lblRevNum.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblRevNum.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblRevNum.Location = new System.Drawing.Point(9, 92); - this.lblRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblRevNum.Name = "lblRevNum"; - this.lblRevNum.Size = new System.Drawing.Size(114, 23); - this.lblRevNum.TabIndex = 70; - this.lblRevNum.Text = "Revision Number"; - this.lblRevNum.TextAlignment = System.Drawing.StringAlignment.Far; - // - // txbPDFName - // - this.txbPDFName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.txbPDFName.Border.Class = "TextBoxBorder"; - this.txbPDFName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbPDFName.Location = new System.Drawing.Point(136, 48); - this.txbPDFName.Margin = new System.Windows.Forms.Padding(4); - this.txbPDFName.Name = "txbPDFName"; - this.txbPDFName.Size = new System.Drawing.Size(263, 22); - this.txbPDFName.TabIndex = 8; - // - // lblPDFFileName - // - this.lblPDFFileName.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblPDFFileName.BackgroundStyle.Class = ""; - this.lblPDFFileName.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblPDFFileName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblPDFFileName.Location = new System.Drawing.Point(9, 42); - this.lblPDFFileName.Margin = new System.Windows.Forms.Padding(4); - this.lblPDFFileName.Name = "lblPDFFileName"; - this.lblPDFFileName.Size = new System.Drawing.Size(114, 23); - this.lblPDFFileName.TabIndex = 7; - this.lblPDFFileName.Text = "PDF Name"; - this.lblPDFFileName.TextAlignment = System.Drawing.StringAlignment.Far; - // - // lblPDFLoc - // - this.lblPDFLoc.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblPDFLoc.BackgroundStyle.Class = ""; - this.lblPDFLoc.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblPDFLoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblPDFLoc.Location = new System.Drawing.Point(9, 4); - this.lblPDFLoc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblPDFLoc.Name = "lblPDFLoc"; - this.lblPDFLoc.Size = new System.Drawing.Size(114, 23); - this.lblPDFLoc.TabIndex = 4; - this.lblPDFLoc.Text = "PDF Location"; - this.lblPDFLoc.TextAlignment = System.Drawing.StringAlignment.Far; - // - // tbGeneral - // - this.tbGeneral.AttachedControl = this.tabControlPanel3; - this.tbGeneral.Name = "tbGeneral"; - this.tbGeneral.Text = "General"; - // // tabControlPanel1 // this.tabControlPanel1.Controls.Add(this.lblWatermarkS); - this.tabControlPanel1.Controls.Add(this.txbReviewDateS); - this.tabControlPanel1.Controls.Add(this.txbRevDateS); - this.tabControlPanel1.Controls.Add(this.txbRevNumS); - this.tabControlPanel1.Controls.Add(this.lblReviewDateS); - this.tabControlPanel1.Controls.Add(this.lblRevDateS); - this.tabControlPanel1.Controls.Add(this.lblRevNumS); this.tabControlPanel1.Controls.Add(this.txbPdfLocationS); this.tabControlPanel1.Controls.Add(this.btnPdfLocation); this.tabControlPanel1.Controls.Add(this.lblPdfLocS); @@ -678,7 +761,7 @@ namespace VEPROMS this.lblWatermarkS.BackgroundStyle.Class = ""; this.lblWatermarkS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.lblWatermarkS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblWatermarkS.Location = new System.Drawing.Point(9, 203); + this.lblWatermarkS.Location = new System.Drawing.Point(40, 104); this.lblWatermarkS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblWatermarkS.Name = "lblWatermarkS"; this.lblWatermarkS.Size = new System.Drawing.Size(114, 23); @@ -686,99 +769,6 @@ namespace VEPROMS this.lblWatermarkS.Text = "Watermark"; this.lblWatermarkS.TextAlignment = System.Drawing.StringAlignment.Far; // - // txbReviewDateS - // - // - // - // - this.txbReviewDateS.Border.Class = "TextBoxBorder"; - this.txbReviewDateS.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbReviewDateS.Location = new System.Drawing.Point(126, 124); - this.txbReviewDateS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbReviewDateS.Name = "txbReviewDateS"; - this.txbReviewDateS.Size = new System.Drawing.Size(121, 22); - this.txbReviewDateS.TabIndex = 105; - this.txbReviewDateS.Leave += new System.EventHandler(this.txbReviewDateS_Leave); - // - // txbRevDateS - // - // - // - // - this.txbRevDateS.Border.Class = "TextBoxBorder"; - this.txbRevDateS.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbRevDateS.Location = new System.Drawing.Point(126, 84); - this.txbRevDateS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbRevDateS.Name = "txbRevDateS"; - this.txbRevDateS.Size = new System.Drawing.Size(121, 22); - this.txbRevDateS.TabIndex = 104; - this.txbRevDateS.Leave += new System.EventHandler(this.txbRevDateS_Leave); - // - // txbRevNumS - // - // - // - // - this.txbRevNumS.Border.Class = "TextBoxBorder"; - this.txbRevNumS.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txbRevNumS.Location = new System.Drawing.Point(126, 44); - this.txbRevNumS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.txbRevNumS.Name = "txbRevNumS"; - this.txbRevNumS.Size = new System.Drawing.Size(121, 22); - this.txbRevNumS.TabIndex = 103; - this.txbRevNumS.Leave += new System.EventHandler(this.txbRevNumS_Leave); - // - // lblReviewDateS - // - this.lblReviewDateS.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblReviewDateS.BackgroundStyle.Class = ""; - this.lblReviewDateS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblReviewDateS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReviewDateS.Location = new System.Drawing.Point(9, 124); - this.lblReviewDateS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblReviewDateS.Name = "lblReviewDateS"; - this.lblReviewDateS.Size = new System.Drawing.Size(114, 23); - this.lblReviewDateS.TabIndex = 102; - this.lblReviewDateS.Text = "Review Date"; - this.lblReviewDateS.TextAlignment = System.Drawing.StringAlignment.Far; - // - // lblRevDateS - // - this.lblRevDateS.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblRevDateS.BackgroundStyle.Class = ""; - this.lblRevDateS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblRevDateS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblRevDateS.Location = new System.Drawing.Point(9, 84); - this.lblRevDateS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblRevDateS.Name = "lblRevDateS"; - this.lblRevDateS.Size = new System.Drawing.Size(114, 23); - this.lblRevDateS.TabIndex = 101; - this.lblRevDateS.Text = "Revision Date"; - this.lblRevDateS.TextAlignment = System.Drawing.StringAlignment.Far; - // - // lblRevNumS - // - this.lblRevNumS.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.lblRevNumS.BackgroundStyle.Class = ""; - this.lblRevNumS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.lblRevNumS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblRevNumS.Location = new System.Drawing.Point(9, 44); - this.lblRevNumS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lblRevNumS.Name = "lblRevNumS"; - this.lblRevNumS.Size = new System.Drawing.Size(114, 23); - this.lblRevNumS.TabIndex = 100; - this.lblRevNumS.Text = "Revision Number"; - this.lblRevNumS.TextAlignment = System.Drawing.StringAlignment.Far; - // // txbPdfLocationS // this.txbPdfLocationS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) @@ -791,7 +781,7 @@ namespace VEPROMS this.txbPdfLocationS.Location = new System.Drawing.Point(126, 4); this.txbPdfLocationS.Name = "txbPdfLocationS"; this.txbPdfLocationS.ShortcutsEnabled = false; - this.txbPdfLocationS.Size = new System.Drawing.Size(497, 22); + this.txbPdfLocationS.Size = new System.Drawing.Size(497, 26); this.txbPdfLocationS.TabIndex = 98; this.txbPdfLocationS.WatermarkText = "PDF Location"; // @@ -799,6 +789,7 @@ namespace VEPROMS // this.btnPdfLocation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnPdfLocation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnPdfLocation.CallBasePaintBackground = true; this.btnPdfLocation.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.btnPdfLocation.Image = ((System.Drawing.Image)(resources.GetObject("btnPdfLocation.Image"))); this.btnPdfLocation.Location = new System.Drawing.Point(628, 4); @@ -829,9 +820,10 @@ namespace VEPROMS // btnWaterMarkOff // this.btnWaterMarkOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnWaterMarkOff.CallBasePaintBackground = true; this.btnWaterMarkOff.Checked = true; this.btnWaterMarkOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnWaterMarkOff.Location = new System.Drawing.Point(181, 203); + this.btnWaterMarkOff.Location = new System.Drawing.Point(219, 104); this.btnWaterMarkOff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnWaterMarkOff.Name = "btnWaterMarkOff"; this.btnWaterMarkOff.Size = new System.Drawing.Size(45, 23); @@ -843,9 +835,10 @@ namespace VEPROMS // btnChgBarOff // this.btnChgBarOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnChgBarOff.CallBasePaintBackground = true; this.btnChgBarOff.Checked = true; this.btnChgBarOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnChgBarOff.Location = new System.Drawing.Point(181, 170); + this.btnChgBarOff.Location = new System.Drawing.Point(219, 71); this.btnChgBarOff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnChgBarOff.Name = "btnChgBarOff"; this.btnChgBarOff.Size = new System.Drawing.Size(45, 23); @@ -857,9 +850,10 @@ namespace VEPROMS // btnDuplxOff // this.btnDuplxOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDuplxOff.CallBasePaintBackground = true; this.btnDuplxOff.Checked = true; this.btnDuplxOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnDuplxOff.Location = new System.Drawing.Point(181, 236); + this.btnDuplxOff.Location = new System.Drawing.Point(219, 137); this.btnDuplxOff.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnDuplxOff.Name = "btnDuplxOff"; this.btnDuplxOff.Size = new System.Drawing.Size(44, 23); @@ -877,7 +871,7 @@ namespace VEPROMS this.lblAutoDuplexing.BackgroundStyle.Class = ""; this.lblAutoDuplexing.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.lblAutoDuplexing.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblAutoDuplexing.Location = new System.Drawing.Point(9, 236); + this.lblAutoDuplexing.Location = new System.Drawing.Point(40, 137); this.lblAutoDuplexing.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblAutoDuplexing.Name = "lblAutoDuplexing"; this.lblAutoDuplexing.Size = new System.Drawing.Size(114, 23); @@ -888,8 +882,9 @@ namespace VEPROMS // btnDuplxOn // this.btnDuplxOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDuplxOn.CallBasePaintBackground = true; this.btnDuplxOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnDuplxOn.Location = new System.Drawing.Point(126, 236); + this.btnDuplxOn.Location = new System.Drawing.Point(164, 137); this.btnDuplxOn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnDuplxOn.Name = "btnDuplxOn"; this.btnDuplxOn.Size = new System.Drawing.Size(45, 23); @@ -901,8 +896,9 @@ namespace VEPROMS // btnWaterMarkOn // this.btnWaterMarkOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnWaterMarkOn.CallBasePaintBackground = true; this.btnWaterMarkOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnWaterMarkOn.Location = new System.Drawing.Point(126, 203); + this.btnWaterMarkOn.Location = new System.Drawing.Point(164, 104); this.btnWaterMarkOn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnWaterMarkOn.Name = "btnWaterMarkOn"; this.btnWaterMarkOn.Size = new System.Drawing.Size(45, 23); @@ -918,7 +914,7 @@ namespace VEPROMS this.cbxWaterMark.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbxWaterMark.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxWaterMark.FormattingEnabled = true; - this.cbxWaterMark.Location = new System.Drawing.Point(239, 203); + this.cbxWaterMark.Location = new System.Drawing.Point(270, 104); this.cbxWaterMark.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.cbxWaterMark.Name = "cbxWaterMark"; this.cbxWaterMark.Size = new System.Drawing.Size(183, 23); @@ -936,7 +932,7 @@ namespace VEPROMS this.lblChgBars.BackgroundStyle.Class = ""; this.lblChgBars.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.lblChgBars.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblChgBars.Location = new System.Drawing.Point(9, 170); + this.lblChgBars.Location = new System.Drawing.Point(40, 71); this.lblChgBars.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.lblChgBars.Name = "lblChgBars"; this.lblChgBars.Size = new System.Drawing.Size(114, 23); @@ -947,8 +943,9 @@ namespace VEPROMS // btnChgBarOn // this.btnChgBarOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnChgBarOn.CallBasePaintBackground = true; this.btnChgBarOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnChgBarOn.Location = new System.Drawing.Point(126, 170); + this.btnChgBarOn.Location = new System.Drawing.Point(164, 71); this.btnChgBarOn.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnChgBarOn.Name = "btnChgBarOn"; this.btnChgBarOn.Size = new System.Drawing.Size(45, 23); @@ -969,6 +966,7 @@ namespace VEPROMS this.btnCreatePDF.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnCreatePDF.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCreatePDF.BackColor = System.Drawing.SystemColors.Control; + this.btnCreatePDF.CallBasePaintBackground = true; this.btnCreatePDF.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.btnCreatePDF.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCreatePDF.Location = new System.Drawing.Point(20, 306); @@ -985,6 +983,7 @@ namespace VEPROMS this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.BackColor = System.Drawing.SystemColors.Control; + this.btnCancel.CallBasePaintBackground = true; this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -1037,6 +1036,11 @@ namespace VEPROMS this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DlgPrintProcedure_FormClosed); ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).EndInit(); this.tabControl1.ResumeLayout(false); + this.tabControlPanel3.ResumeLayout(false); + this.tabControlPanel3.PerformLayout(); + this.grpDateSelector.ResumeLayout(false); + this.grpDateSelector.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).EndInit(); this.tabControlPanel2.ResumeLayout(false); this.ppGpbxCBType.ResumeLayout(false); this.ppGpbxCBType.PerformLayout(); @@ -1044,9 +1048,6 @@ namespace VEPROMS this.ppGpbxUserSpecCB.PerformLayout(); this.ppGpbxUserSpecTxt.ResumeLayout(false); this.ppGpbxUserSpecTxt.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).EndInit(); - this.tabControlPanel3.ResumeLayout(false); - this.tabControlPanel3.PerformLayout(); this.tabControlPanel1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -1096,20 +1097,16 @@ namespace VEPROMS private System.Windows.Forms.BindingSource docVersionConfigBindingSource; private DevComponents.DotNetBar.Controls.TextBoxX txbPDFLocation; private System.Windows.Forms.CheckBox cbxDebug; - private DevComponents.DotNetBar.Controls.TextBoxX txbRevNumS; - private DevComponents.DotNetBar.LabelX lblReviewDateS; - private DevComponents.DotNetBar.LabelX lblRevDateS; - private DevComponents.DotNetBar.LabelX lblRevNumS; private DevComponents.DotNetBar.Controls.TextBoxX txbPdfLocationS; private DevComponents.DotNetBar.ButtonX btnPdfLocation; private DevComponents.DotNetBar.LabelX lblPdfLocS; private DevComponents.DotNetBar.Controls.TextBoxX txbRevDate; private DevComponents.DotNetBar.Controls.TextBoxX txbReviewDate; - private DevComponents.DotNetBar.Controls.TextBoxX txbReviewDateS; - private DevComponents.DotNetBar.Controls.TextBoxX txbRevDateS; private DevComponents.DotNetBar.LabelX lblWatermarkS; private DevComponents.DotNetBar.Controls.GroupPanel ppGpbxCBType; private System.Windows.Forms.RadioButton rbCustom; private System.Windows.Forms.RadioButton rbFormatDefault; + private DevComponents.Editors.DateTimeAdv.MonthCalendarAdv calDateSelector; + private DevComponents.DotNetBar.Controls.GroupPanel grpDateSelector; } } \ No newline at end of file diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs index b3a84cfb..98ab02cf 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs @@ -149,6 +149,10 @@ namespace VEPROMS ppTxbxChangeBarUserMsgOne.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_UserCBMess1; ppTxbxChangeBarUserMsgTwo.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_UserCBMess2; ppGpbxUserSpecTxt.Enabled = ppCmbxChgBarTxtType.SelectedIndex == (int)PrintChangeBarText.UserDef; + bool hasReviewDate = _MyProcedure.ActiveFormat.PlantFormat.HasPageListToken("{REVIEWDATE}"); + foreach (SectionInfo mysection in _MyProcedure.Sections) + hasReviewDate |= mysection.ActiveFormat.PlantFormat.HasPageListToken("{REVIEWDATE}"); + lblReviewDate.Visible = txbReviewDate.Visible = hasReviewDate; } private void btnCancel_Click(object sender, EventArgs e) @@ -338,57 +342,9 @@ namespace VEPROMS // to update the settings for PdfLocation, RevNum, RevDate and ReviewDate _Initializing = true; txbPdfLocationS.Text = txbPDFLocation.Text; - txbRevNumS.Text = txbRevNum.Text; - txbRevDateS.Text = txbRevDate.Text; - txbReviewDateS.Text = txbReviewDate.Text; _Initializing = false; } - private void txbRevNumS_Leave(object sender, EventArgs e) - { - if (_Initializing) return; - // save the RevNum to the procedure's config. - ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; - if (pc == null) return; - pc.Print_Rev = txbRevNumS.Text; - using (Item itm = Item.Get(MyProcedure.ItemID)) - { - itm.MyContent.Config = MyProcedure.MyConfig.ToString(); - itm.Save(); - txbRevNum.Text = txbRevNumS.Text; - } - } - - private void txbRevDateS_Leave(object sender, EventArgs e) - { - if (_Initializing) return; - // save the RevDate to the procedure's config. - ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; - if (pc == null) return; - pc.Print_RevDate = txbRevDateS.Text; - using (Item itm = Item.Get(MyProcedure.ItemID)) - { - itm.MyContent.Config = MyProcedure.MyConfig.ToString(); - itm.Save(); - txbRevDate.Text = txbRevDateS.Text; - } - } - - private void txbReviewDateS_Leave(object sender, EventArgs e) - { - if (_Initializing) return; - // save the ReviewDate to the procedure's config. - ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; - if (pc == null) return; - pc.Print_ReviewDate = txbReviewDateS.Text; - using (Item itm = Item.Get(MyProcedure.ItemID)) - { - itm.MyContent.Config = MyProcedure.MyConfig.ToString(); - itm.Save(); - txbReviewDate.Text = txbReviewDateS.Text; - // need to reset config to !dirty? - } - } private void btnPdfLocation_Click(object sender, EventArgs e) { @@ -438,10 +394,76 @@ namespace VEPROMS if (_Initializing) return; ppGpbxUserSpecTxt.Enabled = ppCmbxChgBarTxtType.SelectedIndex == (int)PrintChangeBarText.UserDef; } - //public string MyStatus - //{ - // get { return lblStatus.Text;} - // set { lblStatus.Text = value; Application.DoEvents(); } - //} + private void txbRevDate_Enter(object sender, EventArgs e) + { + txbDate = txbRevDate; + grpDateSelector.Text = "Select Revision Date"; + grpDateSelector.Visible = calDateSelector.Visible = true; + + } + + private void txbRevDate_Leave(object sender, EventArgs e) + { + if (_Initializing) return; + txbDate = null; + grpDateSelector.Visible = calDateSelector.Visible = false; + // save the RevDate to the procedure's config. + ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; + if (pc == null) return; + pc.Print_RevDate = txbRevDate.Text; + using (Item itm = Item.Get(MyProcedure.ItemID)) + { + itm.MyContent.Config = MyProcedure.MyConfig.ToString(); + itm.Save(); + } + + } + + private void txbReviewDate_Leave(object sender, EventArgs e) + { + if (_Initializing) return; + txbDate = null; + grpDateSelector.Visible = calDateSelector.Visible = false; + // save the ReviewDate to the procedure's config. + ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; + if (pc == null) return; + pc.Print_ReviewDate = txbReviewDate.Text; + using (Item itm = Item.Get(MyProcedure.ItemID)) + { + itm.MyContent.Config = MyProcedure.MyConfig.ToString(); + itm.Save(); + // need to reset config to !dirty? + } + + } + private void txbReviewDate_Enter(object sender, EventArgs e) + { + txbDate = txbReviewDate; + grpDateSelector.Text = "Select Review Date"; + grpDateSelector.Visible = calDateSelector.Visible = true; + } + + private TextBox txbDate = null; + private void calDateSelector_DateSelected(object sender, DateRangeEventArgs e) + { + if (txbDate != null) + txbDate.Text = e.Start.ToShortDateString(); + } + + private void txbRevNum_Leave(object sender, EventArgs e) + { + if (_Initializing) return; + // save the RevNum to the procedure's config. + ProcedureConfig pc = MyProcedure.MyConfig as ProcedureConfig; + if (pc == null) return; + pc.Print_Rev = txbRevNum.Text; + using (Item itm = Item.Get(MyProcedure.ItemID)) + { + itm.MyContent.Config = MyProcedure.MyConfig.ToString(); + itm.Save(); + } + + } + } } \ No newline at end of file diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.resx b/PROMS/VEPROMS User Interface/DlgPrintProcedure.resx index b266a269..64889ac4 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.resx +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.resx @@ -120,9 +120,6 @@ 321, 17 - - 321, 17 - @@ -137,6 +134,9 @@ Xbgb9AAAAABJRU5ErkJggg== + + 321, 17 + 153, 17 diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index a8ccbb3f..f316f4c5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -58,6 +58,12 @@ namespace VEPROMS.CSLA.Library return _DocStyles; } } + public bool HasPageListToken(string token) + {; + string xpath = string.Format("/PlantFormat/PageStyles/PageStyle/Item[@Token = '{0}']", token); + XmlNodeList nl = XmlDoc.SelectNodes(xpath); + return nl.Count > 0; + } } #endregion #region VE_Font