Added Print All Procedures

This commit is contained in:
Rich 2011-08-18 11:18:16 +00:00
parent c2fef5fafe
commit a9882ad357
3 changed files with 413 additions and 274 deletions

View File

@ -45,7 +45,23 @@ namespace VEPROMS
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.txbPdfLocationS = new DevComponents.DotNetBar.Controls.TextBoxX();
this.btnPdfLocation = new DevComponents.DotNetBar.ButtonX();
this.lblPdfLocS = new DevComponents.DotNetBar.LabelX();
this.btnWaterMarkOff = new DevComponents.DotNetBar.ButtonX();
this.btnChgBarOff = new DevComponents.DotNetBar.ButtonX();
this.btnDuplxOff = new DevComponents.DotNetBar.ButtonX();
this.lblAutoDuplexing = new DevComponents.DotNetBar.LabelX();
this.btnDuplxOn = new DevComponents.DotNetBar.ButtonX();
this.btnWaterMarkOn = new DevComponents.DotNetBar.ButtonX();
this.cbxWaterMark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lblChgBars = new DevComponents.DotNetBar.LabelX();
this.btnChgBarOn = new DevComponents.DotNetBar.ButtonX();
this.tbSettings = 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();
@ -62,26 +78,13 @@ namespace VEPROMS
this.lblPDFFileName = new DevComponents.DotNetBar.LabelX();
this.lblPDFLoc = new DevComponents.DotNetBar.LabelX();
this.tbGeneral = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
this.lblWatermarkS = new DevComponents.DotNetBar.LabelX();
this.txbPdfLocationS = new DevComponents.DotNetBar.Controls.TextBoxX();
this.btnPdfLocation = new DevComponents.DotNetBar.ButtonX();
this.lblPdfLocS = new DevComponents.DotNetBar.LabelX();
this.btnWaterMarkOff = new DevComponents.DotNetBar.ButtonX();
this.btnChgBarOff = new DevComponents.DotNetBar.ButtonX();
this.btnDuplxOff = new DevComponents.DotNetBar.ButtonX();
this.lblAutoDuplexing = new DevComponents.DotNetBar.LabelX();
this.btnDuplxOn = new DevComponents.DotNetBar.ButtonX();
this.btnWaterMarkOn = new DevComponents.DotNetBar.ButtonX();
this.cbxWaterMark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lblChgBars = new DevComponents.DotNetBar.LabelX();
this.btnChgBarOn = new DevComponents.DotNetBar.ButtonX();
this.tbSettings = new DevComponents.DotNetBar.TabItem(this.components);
this.btnCreatePDF = new DevComponents.DotNetBar.ButtonX();
this.btnCancel = new DevComponents.DotNetBar.ButtonX();
this.DlgBrowseFolder = new System.Windows.Forms.FolderBrowserDialog();
this.cbxDebug = new System.Windows.Forms.CheckBox();
this.label13 = new System.Windows.Forms.Label();
this.gpnlDebug = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbxDebugPagination = new System.Windows.Forms.CheckBox();
this.cbxDebugText = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
@ -89,9 +92,10 @@ namespace VEPROMS
this.ppGpbxUserSpecCB.SuspendLayout();
this.ppGpbxUserSpecTxt.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit();
this.tabControlPanel1.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.grpDateSelector.SuspendLayout();
this.tabControlPanel1.SuspendLayout();
this.gpnlDebug.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
@ -101,9 +105,9 @@ 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.tabControlPanel3);
this.tabControl1.Controls.Add(this.tabControlPanel2);
this.tabControl1.Controls.Add(this.tabControlPanel1);
this.tabControl1.Controls.Add(this.tabControlPanel3);
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControl1.Name = "tabControl1";
@ -388,6 +392,15 @@ namespace VEPROMS
this.ppCmbxChgBarTxtType.WatermarkText = "select change bar text type";
this.ppCmbxChgBarTxtType.SelectedIndexChanged += new System.EventHandler(this.ppCmbxChgBarTxtType_SelectedIndexChanged);
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(33, 51);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(71, 17);
this.label13.TabIndex = 8;
this.label13.Text = "Text Type";
//
// tbChangeBars
//
this.tbChangeBars.AttachedControl = this.tabControlPanel2;
@ -395,9 +408,243 @@ namespace VEPROMS
this.tbChangeBars.Text = "Change Bars";
this.tbChangeBars.Visible = false;
//
// tabControlPanel1
//
this.tabControlPanel1.Controls.Add(this.lblWatermarkS);
this.tabControlPanel1.Controls.Add(this.txbPdfLocationS);
this.tabControlPanel1.Controls.Add(this.btnPdfLocation);
this.tabControlPanel1.Controls.Add(this.lblPdfLocS);
this.tabControlPanel1.Controls.Add(this.btnWaterMarkOff);
this.tabControlPanel1.Controls.Add(this.btnChgBarOff);
this.tabControlPanel1.Controls.Add(this.btnDuplxOff);
this.tabControlPanel1.Controls.Add(this.lblAutoDuplexing);
this.tabControlPanel1.Controls.Add(this.btnDuplxOn);
this.tabControlPanel1.Controls.Add(this.btnWaterMarkOn);
this.tabControlPanel1.Controls.Add(this.cbxWaterMark);
this.tabControlPanel1.Controls.Add(this.lblChgBars);
this.tabControlPanel1.Controls.Add(this.btnChgBarOn);
this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel1.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel1.Name = "tabControlPanel1";
this.tabControlPanel1.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel1.Size = new System.Drawing.Size(669, 275);
this.tabControlPanel1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel1.Style.GradientAngle = 90;
this.tabControlPanel1.TabIndex = 5;
this.tabControlPanel1.TabItem = this.tbSettings;
//
// lblWatermarkS
//
this.lblWatermarkS.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblWatermarkS.TabIndex = 106;
this.lblWatermarkS.Text = "Watermark";
this.lblWatermarkS.TextAlignment = System.Drawing.StringAlignment.Far;
//
// txbPdfLocationS
//
this.txbPdfLocationS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.txbPdfLocationS.Border.Class = "TextBoxBorder";
this.txbPdfLocationS.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
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, 26);
this.txbPdfLocationS.TabIndex = 98;
this.txbPdfLocationS.WatermarkText = "PDF Location";
//
// btnPdfLocation
//
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.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnPdfLocation.Image = ((System.Drawing.Image)(resources.GetObject("btnPdfLocation.Image")));
this.btnPdfLocation.Location = new System.Drawing.Point(628, 4);
this.btnPdfLocation.Margin = new System.Windows.Forms.Padding(4);
this.btnPdfLocation.Name = "btnPdfLocation";
this.btnPdfLocation.Size = new System.Drawing.Size(27, 23);
this.btnPdfLocation.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnPdfLocation.TabIndex = 99;
this.btnPdfLocation.Click += new System.EventHandler(this.btnPdfLocation_Click);
//
// lblPdfLocS
//
this.lblPdfLocS.BackColor = System.Drawing.Color.Transparent;
//
//
//
this.lblPdfLocS.BackgroundStyle.Class = "";
this.lblPdfLocS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPdfLocS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPdfLocS.Location = new System.Drawing.Point(9, 4);
this.lblPdfLocS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblPdfLocS.Name = "lblPdfLocS";
this.lblPdfLocS.Size = new System.Drawing.Size(114, 23);
this.lblPdfLocS.TabIndex = 97;
this.lblPdfLocS.Text = "PDF Location";
this.lblPdfLocS.TextAlignment = System.Drawing.StringAlignment.Far;
//
// btnWaterMarkOff
//
this.btnWaterMarkOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnWaterMarkOff.Checked = true;
this.btnWaterMarkOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnWaterMarkOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnWaterMarkOff.TabIndex = 93;
this.btnWaterMarkOff.Text = "OFF";
this.btnWaterMarkOff.Click += new System.EventHandler(this.btnAdvWaterMarkOff_Click);
//
// btnChgBarOff
//
this.btnChgBarOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnChgBarOff.Checked = true;
this.btnChgBarOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnChgBarOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChgBarOff.TabIndex = 92;
this.btnChgBarOff.Text = "OFF";
this.btnChgBarOff.Click += new System.EventHandler(this.btnAvChgBarOff_Click);
//
// btnDuplxOff
//
this.btnDuplxOff.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDuplxOff.Checked = true;
this.btnDuplxOff.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnDuplxOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDuplxOff.TabIndex = 91;
this.btnDuplxOff.Text = "OFF";
this.btnDuplxOff.Click += new System.EventHandler(this.btnAdvDuplxOff_Click);
//
// lblAutoDuplexing
//
this.lblAutoDuplexing.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblAutoDuplexing.TabIndex = 90;
this.lblAutoDuplexing.Text = "Auto Duplexing";
this.lblAutoDuplexing.TextAlignment = System.Drawing.StringAlignment.Far;
//
// btnDuplxOn
//
this.btnDuplxOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnDuplxOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnDuplxOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDuplxOn.TabIndex = 89;
this.btnDuplxOn.Text = "ON";
this.btnDuplxOn.Click += new System.EventHandler(this.btnAdvDuplxOn_Click);
//
// btnWaterMarkOn
//
this.btnWaterMarkOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnWaterMarkOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnWaterMarkOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnWaterMarkOn.TabIndex = 88;
this.btnWaterMarkOn.Text = "ON";
this.btnWaterMarkOn.Click += new System.EventHandler(this.btnAdvWaterMarkOn_Click);
//
// cbxWaterMark
//
this.cbxWaterMark.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.docVersionConfigBindingSource, "Print_Watermark", true));
this.cbxWaterMark.DisplayMember = "Text";
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(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);
this.cbxWaterMark.TabIndex = 87;
this.cbxWaterMark.Visible = false;
this.cbxWaterMark.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxWaterMark.WatermarkText = "select watermark option";
//
// lblChgBars
//
this.lblChgBars.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblChgBars.TabIndex = 85;
this.lblChgBars.Text = "Change Bars";
this.lblChgBars.TextAlignment = System.Drawing.StringAlignment.Far;
//
// btnChgBarOn
//
this.btnChgBarOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnChgBarOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
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);
this.btnChgBarOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChgBarOn.TabIndex = 84;
this.btnChgBarOn.Text = "ON";
this.btnChgBarOn.Click += new System.EventHandler(this.btnAvChgBarOn_Click);
//
// tbSettings
//
this.tbSettings.AttachedControl = this.tabControlPanel1;
this.tbSettings.Name = "tbSettings";
this.tbSettings.Text = "Settings";
this.tbSettings.Click += new System.EventHandler(this.tbSettings_Click);
//
// tabControlPanel3
//
this.tabControlPanel3.AutoScroll = true;
this.tabControlPanel3.Controls.Add(this.gpnlDebug);
this.tabControlPanel3.Controls.Add(this.grpDateSelector);
this.tabControlPanel3.Controls.Add(this.txbReviewDate);
this.tabControlPanel3.Controls.Add(this.txbRevDate);
@ -714,252 +961,11 @@ namespace VEPROMS
this.tbGeneral.Name = "tbGeneral";
this.tbGeneral.Text = "General";
//
// tabControlPanel1
//
this.tabControlPanel1.Controls.Add(this.lblWatermarkS);
this.tabControlPanel1.Controls.Add(this.txbPdfLocationS);
this.tabControlPanel1.Controls.Add(this.btnPdfLocation);
this.tabControlPanel1.Controls.Add(this.lblPdfLocS);
this.tabControlPanel1.Controls.Add(this.btnWaterMarkOff);
this.tabControlPanel1.Controls.Add(this.btnChgBarOff);
this.tabControlPanel1.Controls.Add(this.btnDuplxOff);
this.tabControlPanel1.Controls.Add(this.lblAutoDuplexing);
this.tabControlPanel1.Controls.Add(this.btnDuplxOn);
this.tabControlPanel1.Controls.Add(this.btnWaterMarkOn);
this.tabControlPanel1.Controls.Add(this.cbxWaterMark);
this.tabControlPanel1.Controls.Add(this.lblChgBars);
this.tabControlPanel1.Controls.Add(this.btnChgBarOn);
this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel1.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel1.Name = "tabControlPanel1";
this.tabControlPanel1.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel1.Size = new System.Drawing.Size(669, 275);
this.tabControlPanel1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel1.Style.GradientAngle = 90;
this.tabControlPanel1.TabIndex = 5;
this.tabControlPanel1.TabItem = this.tbSettings;
//
// lblWatermarkS
//
this.lblWatermarkS.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblWatermarkS.TabIndex = 106;
this.lblWatermarkS.Text = "Watermark";
this.lblWatermarkS.TextAlignment = System.Drawing.StringAlignment.Far;
//
// txbPdfLocationS
//
this.txbPdfLocationS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
//
//
//
this.txbPdfLocationS.Border.Class = "TextBoxBorder";
this.txbPdfLocationS.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
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, 26);
this.txbPdfLocationS.TabIndex = 98;
this.txbPdfLocationS.WatermarkText = "PDF Location";
//
// btnPdfLocation
//
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);
this.btnPdfLocation.Margin = new System.Windows.Forms.Padding(4);
this.btnPdfLocation.Name = "btnPdfLocation";
this.btnPdfLocation.Size = new System.Drawing.Size(27, 23);
this.btnPdfLocation.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnPdfLocation.TabIndex = 99;
this.btnPdfLocation.Click += new System.EventHandler(this.btnPdfLocation_Click);
//
// lblPdfLocS
//
this.lblPdfLocS.BackColor = System.Drawing.Color.Transparent;
//
//
//
this.lblPdfLocS.BackgroundStyle.Class = "";
this.lblPdfLocS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPdfLocS.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPdfLocS.Location = new System.Drawing.Point(9, 4);
this.lblPdfLocS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblPdfLocS.Name = "lblPdfLocS";
this.lblPdfLocS.Size = new System.Drawing.Size(114, 23);
this.lblPdfLocS.TabIndex = 97;
this.lblPdfLocS.Text = "PDF Location";
this.lblPdfLocS.TextAlignment = System.Drawing.StringAlignment.Far;
//
// 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(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);
this.btnWaterMarkOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnWaterMarkOff.TabIndex = 93;
this.btnWaterMarkOff.Text = "OFF";
this.btnWaterMarkOff.Click += new System.EventHandler(this.btnAdvWaterMarkOff_Click);
//
// 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(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);
this.btnChgBarOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChgBarOff.TabIndex = 92;
this.btnChgBarOff.Text = "OFF";
this.btnChgBarOff.Click += new System.EventHandler(this.btnAvChgBarOff_Click);
//
// 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(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);
this.btnDuplxOff.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDuplxOff.TabIndex = 91;
this.btnDuplxOff.Text = "OFF";
this.btnDuplxOff.Click += new System.EventHandler(this.btnAdvDuplxOff_Click);
//
// lblAutoDuplexing
//
this.lblAutoDuplexing.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblAutoDuplexing.TabIndex = 90;
this.lblAutoDuplexing.Text = "Auto Duplexing";
this.lblAutoDuplexing.TextAlignment = System.Drawing.StringAlignment.Far;
//
// 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(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);
this.btnDuplxOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnDuplxOn.TabIndex = 89;
this.btnDuplxOn.Text = "ON";
this.btnDuplxOn.Click += new System.EventHandler(this.btnAdvDuplxOn_Click);
//
// 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(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);
this.btnWaterMarkOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnWaterMarkOn.TabIndex = 88;
this.btnWaterMarkOn.Text = "ON";
this.btnWaterMarkOn.Click += new System.EventHandler(this.btnAdvWaterMarkOn_Click);
//
// cbxWaterMark
//
this.cbxWaterMark.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.docVersionConfigBindingSource, "Print_Watermark", true));
this.cbxWaterMark.DisplayMember = "Text";
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(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);
this.cbxWaterMark.TabIndex = 87;
this.cbxWaterMark.Visible = false;
this.cbxWaterMark.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxWaterMark.WatermarkText = "select watermark option";
//
// lblChgBars
//
this.lblChgBars.BackColor = System.Drawing.Color.Transparent;
//
//
//
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(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);
this.lblChgBars.TabIndex = 85;
this.lblChgBars.Text = "Change Bars";
this.lblChgBars.TextAlignment = System.Drawing.StringAlignment.Far;
//
// 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(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);
this.btnChgBarOn.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnChgBarOn.TabIndex = 84;
this.btnChgBarOn.Text = "ON";
this.btnChgBarOn.Click += new System.EventHandler(this.btnAvChgBarOn_Click);
//
// tbSettings
//
this.tbSettings.AttachedControl = this.tabControlPanel1;
this.tbSettings.Name = "tbSettings";
this.tbSettings.Text = "Settings";
this.tbSettings.Click += new System.EventHandler(this.tbSettings_Click);
//
// btnCreatePDF
//
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);
@ -976,7 +982,6 @@ 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)));
@ -1007,14 +1012,73 @@ namespace VEPROMS
this.cbxDebug.Text = "Debug";
this.cbxDebug.UseVisualStyleBackColor = false;
//
// label13
// gpnlDebug
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(33, 51);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(71, 17);
this.label13.TabIndex = 8;
this.label13.Text = "Text Type";
this.gpnlDebug.BackColor = System.Drawing.Color.Transparent;
this.gpnlDebug.CanvasColor = System.Drawing.SystemColors.Control;
this.gpnlDebug.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.gpnlDebug.Controls.Add(this.cbxDebugText);
this.gpnlDebug.Controls.Add(this.cbxDebugPagination);
this.gpnlDebug.Location = new System.Drawing.Point(513, 92);
this.gpnlDebug.Name = "gpnlDebug";
this.gpnlDebug.Size = new System.Drawing.Size(120, 91);
//
//
//
this.gpnlDebug.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.gpnlDebug.Style.BackColorGradientAngle = 90;
this.gpnlDebug.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.gpnlDebug.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpnlDebug.Style.BorderBottomWidth = 1;
this.gpnlDebug.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.gpnlDebug.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpnlDebug.Style.BorderLeftWidth = 1;
this.gpnlDebug.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpnlDebug.Style.BorderRightWidth = 1;
this.gpnlDebug.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.gpnlDebug.Style.BorderTopWidth = 1;
this.gpnlDebug.Style.Class = "";
this.gpnlDebug.Style.CornerDiameter = 4;
this.gpnlDebug.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.gpnlDebug.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.gpnlDebug.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.gpnlDebug.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
//
//
//
this.gpnlDebug.StyleMouseDown.Class = "";
this.gpnlDebug.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.gpnlDebug.StyleMouseOver.Class = "";
this.gpnlDebug.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.gpnlDebug.TabIndex = 86;
this.gpnlDebug.Text = "Debug";
//
// cbxDebugPagination
//
this.cbxDebugPagination.AutoSize = true;
this.cbxDebugPagination.BackColor = System.Drawing.Color.Transparent;
this.cbxDebugPagination.Location = new System.Drawing.Point(12, 9);
this.cbxDebugPagination.Name = "cbxDebugPagination";
this.cbxDebugPagination.Size = new System.Drawing.Size(97, 21);
this.cbxDebugPagination.TabIndex = 0;
this.cbxDebugPagination.Text = "Pagination";
this.cbxDebugPagination.UseVisualStyleBackColor = false;
this.cbxDebugPagination.CheckedChanged += new System.EventHandler(this.cbxDebugPagination_CheckedChanged);
//
// cbxDebugText
//
this.cbxDebugText.AutoSize = true;
this.cbxDebugText.BackColor = System.Drawing.Color.Transparent;
this.cbxDebugText.Location = new System.Drawing.Point(11, 37);
this.cbxDebugText.Name = "cbxDebugText";
this.cbxDebugText.Size = new System.Drawing.Size(57, 21);
this.cbxDebugText.TabIndex = 1;
this.cbxDebugText.Text = "Text";
this.cbxDebugText.UseVisualStyleBackColor = false;
this.cbxDebugText.CheckedChanged += new System.EventHandler(this.cbxDebugText_CheckedChanged);
//
// DlgPrintProcedure
//
@ -1046,11 +1110,13 @@ namespace VEPROMS
this.ppGpbxUserSpecTxt.ResumeLayout(false);
this.ppGpbxUserSpecTxt.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).EndInit();
this.tabControlPanel1.ResumeLayout(false);
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
this.grpDateSelector.ResumeLayout(false);
this.grpDateSelector.PerformLayout();
this.tabControlPanel1.ResumeLayout(false);
this.gpnlDebug.ResumeLayout(false);
this.gpnlDebug.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -1110,5 +1176,8 @@ namespace VEPROMS
private DevComponents.Editors.DateTimeAdv.MonthCalendarAdv calDateSelector;
private DevComponents.DotNetBar.Controls.GroupPanel grpDateSelector;
private System.Windows.Forms.Label label13;
private DevComponents.DotNetBar.Controls.GroupPanel gpnlDebug;
private System.Windows.Forms.CheckBox cbxDebugText;
private System.Windows.Forms.CheckBox cbxDebugPagination;
}
}

View File

@ -15,6 +15,8 @@ namespace VEPROMS
{
public partial class DlgPrintProcedure : DevComponents.DotNetBar.Office2007Form
{
private DocVersionInfo _DocVersionInfo = null;
private bool _AllProcedures;
private DocVersionConfig _DocVersionConfig;
public string RevNum
{
@ -45,11 +47,42 @@ namespace VEPROMS
get { return txbPdfLocationS.Text; }
set { txbPdfLocationS.Text = value; }
}
public DlgPrintProcedure(DocVersionInfo dvi)
{
InitializeComponent();
_AllProcedures = true;
_DocVersionConfig = dvi.DocVersionConfig;
_DocVersionInfo = dvi;
_MyProcedure = dvi.Procedures[0].MyProcedure;
btnCreatePDF.Text = "Create PDFs";
HandleDocVersionSettings();
PrepForAllOrOne(false);
}
private void PrepForAllOrOne(bool oneProcedure)
{
txbPDFName.Visible = lblPDFFileName.Visible = oneProcedure;
txbRevNum.Visible = lblRevNum.Visible = oneProcedure;
txbReviewDate.Visible = lblReviewDate.Visible = oneProcedure;
txbRevDate.Visible = lblRevDate.Visible = oneProcedure;
cbxOpenAfterCreate2.Visible = oneProcedure;
cbxOpenAfterCreate2.Checked = false;
cbxOverwritePDF2.Visible = oneProcedure;
cbxOverwritePDF2.Checked = true;
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
}
public DlgPrintProcedure(ProcedureInfo pi)
{
InitializeComponent();
_AllProcedures = false;
_DocVersionConfig = (pi.ActiveParent as DocVersionInfo).DocVersionConfig;
_MyProcedure = pi;
btnCreatePDF.Text = "Create PDF";
HandleDocVersionSettings();
PrepForAllOrOne(true);
}
private void HandleDocVersionSettings()
{
GetDocVersionSettings();
@ -120,6 +153,11 @@ namespace VEPROMS
}
private void DlgPrintProcedure_Load(object sender, EventArgs e)
{
SetupForProcedure();
}
private void SetupForProcedure()
{
this.Text = "Create PDF for " + ProcNum;
// get list of previous pdf files
@ -128,7 +166,7 @@ namespace VEPROMS
//cbxPDF.Text = string.Format(@"{0}\{1}.pdf", _PDFPath, _ProcNum);
// General 2 settings
//txbPDFLocation.Text = _PDFPath;
txbPDFName.Text = string.Format("{0}.pdf", ProcNum.Replace('/','_').Replace('\\','_'));
txbPDFName.Text = string.Format("{0}.pdf", ProcNum.Replace('/', '_').Replace('\\', '_'));
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
if (pc != null)
{
@ -152,7 +190,7 @@ namespace VEPROMS
//ppCmbxChgBarPos.DisplayMember = "Description";
//ppCmbxChgBarPos.ValueMember = "EValue";
//ppCmbxChgBarPos.SelectedIndex = (int)MyProcedure.MyDocVersion.DocVersionConfig.Print_ChangeBarLoc;
ppCmbxChgBarTxtType.DataSource = EnumDetail<PrintChangeBarText>.Details();
ppCmbxChgBarTxtType.DisplayMember = "Description";
ppCmbxChgBarTxtType.ValueMember = "EValue";
@ -164,7 +202,7 @@ namespace VEPROMS
bool hasReviewDate = _MyProcedure.ActiveFormat.PlantFormat.HasPageListToken("{REVIEWDATE}");
foreach (SectionInfo mysection in _MyProcedure.Sections)
hasReviewDate |= mysection.ActiveFormat.PlantFormat.HasPageListToken("{REVIEWDATE}");
lblReviewDate.Visible = txbReviewDate.Visible = hasReviewDate;
lblReviewDate.Visible = txbReviewDate.Visible = !_AllProcedures && hasReviewDate;
}
private void btnCancel_Click(object sender, EventArgs e)
@ -280,11 +318,29 @@ namespace VEPROMS
get { return _MyProcedure; }
set { _MyProcedure = value; }
}
private void CreatePDF()
private void CreatePDFs()
{
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
Volian.Print.Library.Rtf2Pdf.PdfDebug = true;
PrintWatermark pw = (PrintWatermark)cbxWaterMark.SelectedValue;
// Determine change bar settings. First get from config & then see if override from dialog.
// Also check that format allows override.
ChangeBarDefinition cbd = DetermineChangeBarSettings();
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
{
MyProcedure = myProc;
SetupForProcedure();
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate, pw.ToString(), cbxDebug.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text);
frmStatus.CloseWhenDone = true;
frmStatus.ShowDialog();
}
this.Close();
}
private void CreatePDF()
{
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
Volian.Print.Library.Rtf2Pdf.PdfDebug = true;
PrintWatermark pw = (PrintWatermark)cbxWaterMark.SelectedValue;
// Determine change bar settings. First get from config & then see if override from dialog.
@ -346,7 +402,10 @@ namespace VEPROMS
}
private void btnCreatePDF_Click(object sender, EventArgs e)
{
CreatePDF();
if (_AllProcedures)
CreatePDFs();
else
CreatePDF();
}
private bool _Initializing = false;
private void tbSettings_Click(object sender, EventArgs e)
@ -477,5 +536,13 @@ namespace VEPROMS
}
}
private void cbxDebugPagination_CheckedChanged(object sender, EventArgs e)
{
Volian.Base.Library.VlnSettings.DebugPagination = cbxDebugPagination.Checked;
}
private void cbxDebugText_CheckedChanged(object sender, EventArgs e)
{
Volian.Base.Library.VlnSettings.DebugText = cbxDebugText.Checked;
}
}
}

View File

@ -134,6 +134,9 @@
Xbgb9AAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value>
</metadata>
<metadata name="DlgBrowseFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>153, 17</value>
</metadata>