This commit is contained in:
parent
047909f8fe
commit
3a49176ee3
@ -32,6 +32,7 @@ namespace VEPROMS
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DlgPrintProcedure));
|
||||
this.tabControl1 = new DevComponents.DotNetBar.TabControl();
|
||||
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.lblStatus = new DevComponents.DotNetBar.LabelX();
|
||||
this.txbPDFLocation = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.btnSelect = new DevComponents.DotNetBar.ButtonX();
|
||||
this.cbxOpenAfterCreate2 = new System.Windows.Forms.CheckBox();
|
||||
@ -47,20 +48,6 @@ 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.txbModPDFLoc = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.lblAdvPDFLoc = 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.lblWaterMark = new System.Windows.Forms.Label();
|
||||
this.cbxWaterMark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.lblChgBars = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnChgBarOn = new DevComponents.DotNetBar.ButtonX();
|
||||
this.tbAdvanced = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppCmbxChangeBarType = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
@ -75,20 +62,31 @@ namespace VEPROMS
|
||||
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.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.lblWaterMark = new System.Windows.Forms.Label();
|
||||
this.cbxWaterMark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.lblChgBars = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnChgBarOn = new DevComponents.DotNetBar.ButtonX();
|
||||
this.tbAdvanced = 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.lblStatus = new DevComponents.DotNetBar.LabelX();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabControlPanel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dtReviewDate)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dtRevDate)).BeginInit();
|
||||
this.tabControlPanel1.SuspendLayout();
|
||||
this.tabControlPanel2.SuspendLayout();
|
||||
this.ppGpbxUserSpecCB.SuspendLayout();
|
||||
this.ppGpbxUserSpecTxt.SuspendLayout();
|
||||
this.tabControlPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tabControl1
|
||||
@ -99,8 +97,8 @@ namespace VEPROMS
|
||||
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.tabControlPanel1);
|
||||
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);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
@ -138,16 +136,29 @@ namespace VEPROMS
|
||||
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)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
|
||||
this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
|
||||
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)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
|
||||
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;
|
||||
//
|
||||
// lblStatus
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblStatus.BackgroundStyle.Class = "";
|
||||
this.lblStatus.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblStatus.Location = new System.Drawing.Point(31, 210);
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new System.Drawing.Size(601, 23);
|
||||
this.lblStatus.TabIndex = 97;
|
||||
this.lblStatus.Text = "labelX1";
|
||||
//
|
||||
// txbPDFLocation
|
||||
//
|
||||
this.txbPDFLocation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
@ -264,7 +275,6 @@ namespace VEPROMS
|
||||
this.dtReviewDate.Size = new System.Drawing.Size(145, 22);
|
||||
this.dtReviewDate.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.dtReviewDate.TabIndex = 75;
|
||||
this.dtReviewDate.Click += new System.EventHandler(this.dtReviewDate_Click);
|
||||
//
|
||||
// dtRevDate
|
||||
//
|
||||
@ -317,7 +327,6 @@ namespace VEPROMS
|
||||
this.dtRevDate.Size = new System.Drawing.Size(145, 22);
|
||||
this.dtRevDate.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.dtRevDate.TabIndex = 74;
|
||||
this.dtRevDate.TextChanged += new System.EventHandler(this.dtRevDate_TextChanged);
|
||||
//
|
||||
// txbRevNum
|
||||
//
|
||||
@ -331,7 +340,6 @@ namespace VEPROMS
|
||||
this.txbRevNum.Name = "txbRevNum";
|
||||
this.txbRevNum.Size = new System.Drawing.Size(121, 22);
|
||||
this.txbRevNum.TabIndex = 73;
|
||||
this.txbRevNum.TextChanged += new System.EventHandler(this.txbRevNum_TextChanged);
|
||||
//
|
||||
// lblReviewDate
|
||||
//
|
||||
@ -434,212 +442,6 @@ namespace VEPROMS
|
||||
this.tbGeneral.Name = "tbGeneral";
|
||||
this.tbGeneral.Text = "General";
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
this.tabControlPanel1.Controls.Add(this.txbModPDFLoc);
|
||||
this.tabControlPanel1.Controls.Add(this.lblAdvPDFLoc);
|
||||
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.lblWaterMark);
|
||||
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)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
|
||||
this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
|
||||
this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
|
||||
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.tbAdvanced;
|
||||
//
|
||||
// txbModPDFLoc
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txbModPDFLoc.Border.Class = "TextBoxBorder";
|
||||
this.txbModPDFLoc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txbModPDFLoc.Location = new System.Drawing.Point(582, 245);
|
||||
this.txbModPDFLoc.Name = "txbModPDFLoc";
|
||||
this.txbModPDFLoc.Size = new System.Drawing.Size(583, 22);
|
||||
this.txbModPDFLoc.TabIndex = 97;
|
||||
this.txbModPDFLoc.Visible = false;
|
||||
this.txbModPDFLoc.WatermarkText = "Click the folder button at right to change the PDF destinatino folder";
|
||||
//
|
||||
// lblAdvPDFLoc
|
||||
//
|
||||
this.lblAdvPDFLoc.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblAdvPDFLoc.BackgroundStyle.Class = "";
|
||||
this.lblAdvPDFLoc.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblAdvPDFLoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblAdvPDFLoc.Location = new System.Drawing.Point(549, 217);
|
||||
this.lblAdvPDFLoc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.lblAdvPDFLoc.Name = "lblAdvPDFLoc";
|
||||
this.lblAdvPDFLoc.Size = new System.Drawing.Size(92, 23);
|
||||
this.lblAdvPDFLoc.TabIndex = 94;
|
||||
this.lblAdvPDFLoc.Text = "PDF Location";
|
||||
this.lblAdvPDFLoc.Visible = false;
|
||||
//
|
||||
// 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(191, 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(191, 42);
|
||||
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(191, 163);
|
||||
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(31, 163);
|
||||
this.lblAutoDuplexing.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.lblAutoDuplexing.Name = "lblAutoDuplexing";
|
||||
this.lblAutoDuplexing.Size = new System.Drawing.Size(100, 23);
|
||||
this.lblAutoDuplexing.TabIndex = 90;
|
||||
this.lblAutoDuplexing.Text = "Auto Duplexing";
|
||||
//
|
||||
// btnDuplxOn
|
||||
//
|
||||
this.btnDuplxOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnDuplxOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnDuplxOn.Location = new System.Drawing.Point(137, 163);
|
||||
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(137, 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);
|
||||
//
|
||||
// lblWaterMark
|
||||
//
|
||||
this.lblWaterMark.AutoSize = true;
|
||||
this.lblWaterMark.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblWaterMark.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblWaterMark.Location = new System.Drawing.Point(49, 108);
|
||||
this.lblWaterMark.Name = "lblWaterMark";
|
||||
this.lblWaterMark.Size = new System.Drawing.Size(77, 17);
|
||||
this.lblWaterMark.TabIndex = 86;
|
||||
this.lblWaterMark.Text = "Watermark";
|
||||
//
|
||||
// cbxWaterMark
|
||||
//
|
||||
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(249, 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(46, 42);
|
||||
this.lblChgBars.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.lblChgBars.Name = "lblChgBars";
|
||||
this.lblChgBars.Size = new System.Drawing.Size(85, 23);
|
||||
this.lblChgBars.TabIndex = 85;
|
||||
this.lblChgBars.Text = "Change Bars";
|
||||
//
|
||||
// btnChgBarOn
|
||||
//
|
||||
this.btnChgBarOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnChgBarOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnChgBarOn.Location = new System.Drawing.Point(137, 42);
|
||||
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);
|
||||
//
|
||||
// tbAdvanced
|
||||
//
|
||||
this.tbAdvanced.AttachedControl = this.tabControlPanel1;
|
||||
this.tbAdvanced.Name = "tbAdvanced";
|
||||
this.tbAdvanced.Text = "Advanced";
|
||||
//
|
||||
// tabControlPanel2
|
||||
//
|
||||
this.tabControlPanel2.Controls.Add(this.ppCmbxChangeBarType);
|
||||
@ -651,10 +453,10 @@ namespace VEPROMS
|
||||
this.tabControlPanel2.Name = "tabControlPanel2";
|
||||
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
|
||||
this.tabControlPanel2.Size = new System.Drawing.Size(669, 275);
|
||||
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
|
||||
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
|
||||
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
|
||||
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tabControlPanel2.Style.GradientAngle = 90;
|
||||
@ -875,6 +677,180 @@ namespace VEPROMS
|
||||
this.tbChangeBars.Text = "Change Bars";
|
||||
this.tbChangeBars.Visible = false;
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
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.lblWaterMark);
|
||||
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.tbAdvanced;
|
||||
//
|
||||
// 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(191, 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(191, 42);
|
||||
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(191, 163);
|
||||
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(31, 163);
|
||||
this.lblAutoDuplexing.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.lblAutoDuplexing.Name = "lblAutoDuplexing";
|
||||
this.lblAutoDuplexing.Size = new System.Drawing.Size(100, 23);
|
||||
this.lblAutoDuplexing.TabIndex = 90;
|
||||
this.lblAutoDuplexing.Text = "Auto Duplexing";
|
||||
//
|
||||
// btnDuplxOn
|
||||
//
|
||||
this.btnDuplxOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnDuplxOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnDuplxOn.Location = new System.Drawing.Point(137, 163);
|
||||
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(137, 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);
|
||||
//
|
||||
// lblWaterMark
|
||||
//
|
||||
this.lblWaterMark.AutoSize = true;
|
||||
this.lblWaterMark.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblWaterMark.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblWaterMark.Location = new System.Drawing.Point(49, 108);
|
||||
this.lblWaterMark.Name = "lblWaterMark";
|
||||
this.lblWaterMark.Size = new System.Drawing.Size(77, 17);
|
||||
this.lblWaterMark.TabIndex = 86;
|
||||
this.lblWaterMark.Text = "Watermark";
|
||||
//
|
||||
// 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(249, 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(46, 42);
|
||||
this.lblChgBars.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.lblChgBars.Name = "lblChgBars";
|
||||
this.lblChgBars.Size = new System.Drawing.Size(85, 23);
|
||||
this.lblChgBars.TabIndex = 85;
|
||||
this.lblChgBars.Text = "Change Bars";
|
||||
//
|
||||
// btnChgBarOn
|
||||
//
|
||||
this.btnChgBarOn.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnChgBarOn.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnChgBarOn.Location = new System.Drawing.Point(137, 42);
|
||||
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);
|
||||
//
|
||||
// tbAdvanced
|
||||
//
|
||||
this.tbAdvanced.AttachedControl = this.tabControlPanel1;
|
||||
this.tbAdvanced.Name = "tbAdvanced";
|
||||
this.tbAdvanced.Text = "Advanced";
|
||||
//
|
||||
// btnCreatePDF
|
||||
//
|
||||
this.btnCreatePDF.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
@ -908,19 +884,6 @@ namespace VEPROMS
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// lblStatus
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblStatus.BackgroundStyle.Class = "";
|
||||
this.lblStatus.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblStatus.Location = new System.Drawing.Point(31, 210);
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new System.Drawing.Size(601, 23);
|
||||
this.lblStatus.TabIndex = 97;
|
||||
this.lblStatus.Text = "labelX1";
|
||||
//
|
||||
// DlgPrintProcedure
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
@ -930,6 +893,7 @@ namespace VEPROMS
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnCreatePDF);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.DoubleBuffered = true;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.MaximizeBox = false;
|
||||
@ -946,14 +910,14 @@ namespace VEPROMS
|
||||
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dtReviewDate)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dtRevDate)).EndInit();
|
||||
this.tabControlPanel1.ResumeLayout(false);
|
||||
this.tabControlPanel1.PerformLayout();
|
||||
this.tabControlPanel2.ResumeLayout(false);
|
||||
this.tabControlPanel2.PerformLayout();
|
||||
this.ppGpbxUserSpecCB.ResumeLayout(false);
|
||||
this.ppGpbxUserSpecCB.PerformLayout();
|
||||
this.ppGpbxUserSpecTxt.ResumeLayout(false);
|
||||
this.ppGpbxUserSpecTxt.PerformLayout();
|
||||
this.tabControlPanel1.ResumeLayout(false);
|
||||
this.tabControlPanel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -981,7 +945,6 @@ namespace VEPROMS
|
||||
private System.Windows.Forms.CheckBox cbxOpenAfterCreate2;
|
||||
private DevComponents.DotNetBar.TabControlPanel tabControlPanel1;
|
||||
private DevComponents.DotNetBar.ButtonX btnSelect;
|
||||
private DevComponents.DotNetBar.LabelX lblAdvPDFLoc;
|
||||
private DevComponents.DotNetBar.ButtonX btnWaterMarkOff;
|
||||
private DevComponents.DotNetBar.ButtonX btnChgBarOff;
|
||||
private DevComponents.DotNetBar.ButtonX btnDuplxOff;
|
||||
@ -1007,7 +970,6 @@ namespace VEPROMS
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.BindingSource docVersionConfigBindingSource;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txbPDFLocation;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txbModPDFLoc;
|
||||
private DevComponents.DotNetBar.LabelX lblStatus;
|
||||
}
|
||||
}
|
@ -14,52 +14,48 @@ namespace VEPROMS
|
||||
public partial class DlgPrintProcedure : DevComponents.DotNetBar.Office2007Form
|
||||
{
|
||||
private DocVersionConfig _DocVersionConfig;
|
||||
private string _RevNum;
|
||||
//private string _RevNum;
|
||||
|
||||
public string RevNum
|
||||
{
|
||||
get { return _RevNum; }
|
||||
set { _RevNum = value; }
|
||||
get { return txbRevNum.Text; }
|
||||
set { txbRevNum.Text = value; }
|
||||
}
|
||||
private string _ProcNum;
|
||||
//private string ProcNum;
|
||||
|
||||
public string ProcNum
|
||||
{
|
||||
get { return _ProcNum; }
|
||||
set { _ProcNum = value; }
|
||||
get { return MyProcedure.DisplayNumber; }
|
||||
}
|
||||
private string _PDFPath;
|
||||
//private string _PDFPath;
|
||||
|
||||
public string PDFPath
|
||||
{
|
||||
get { return _PDFPath; }
|
||||
set { _PDFPath = value; }
|
||||
get { return txbPDFLocation.Text; }
|
||||
set { txbPDFLocation.Text = value; }
|
||||
}
|
||||
|
||||
private DateTime _RevDate = DateTime.Today;
|
||||
//private DateTime _RevDate = DateTime.Today;
|
||||
|
||||
public DateTime RevDate
|
||||
{
|
||||
get { return _RevDate; }
|
||||
set { _RevDate = value; }
|
||||
get { return dtRevDate.Value; }
|
||||
set { dtRevDate.Value = value; }
|
||||
}
|
||||
|
||||
private DateTime _ReviewDate = DateTime.Today;
|
||||
//private DateTime _ReviewDate = DateTime.Today;
|
||||
|
||||
public DateTime ReviewDate
|
||||
{
|
||||
get { return _ReviewDate; }
|
||||
set { _ReviewDate = value; }
|
||||
get { return dtReviewDate.Value; }
|
||||
set { dtReviewDate.Value = value; }
|
||||
}
|
||||
|
||||
|
||||
public DlgPrintProcedure(ProcedureInfo pi)
|
||||
{
|
||||
InitializeComponent();
|
||||
_DocVersionConfig = (pi.ActiveParent as DocVersionInfo).DocVersionConfig; //docVersionConfig;
|
||||
_ProcNum = pi.DisplayNumber;//procNum;
|
||||
_RevNum = "0"; // need to get from procedure config?
|
||||
_RevDate = DateTime.Today; // need to get from procedure config?
|
||||
_ReviewDate = DateTime.Today; // need to get from procedure config?
|
||||
_MyProcedure = pi;
|
||||
|
||||
GetDocVersionSettings();
|
||||
@ -70,19 +66,19 @@ namespace VEPROMS
|
||||
_DocVersionConfig.SaveChangesToDocVersionConfig = false;
|
||||
_DocVersionConfig.ParentLookup = false;
|
||||
// PDF Location
|
||||
_PDFPath = _DocVersionConfig.Print_PDFLocation;
|
||||
txbPDFLocation.Text = _PDFPath;
|
||||
PDFPath = _DocVersionConfig.Print_PDFLocation;
|
||||
//txbPDFLocation.Text = PDFPath;
|
||||
// Overwrite PDF
|
||||
cbxOverwritePDF2.Checked = _DocVersionConfig.Print_AlwaysOverwritePDF;
|
||||
// Open PDF After Create
|
||||
cbxOpenAfterCreate2.Checked = _DocVersionConfig.Print_AlwaysViewPDFAfterCreate;
|
||||
// Changebars on/off
|
||||
if (_DocVersionConfig.Print_ChangeBar == DocVersionConfig.PrintChangeBar.Without)
|
||||
if (_DocVersionConfig.Print_ChangeBar == PrintChangeBar.Without)
|
||||
btnChgBarOff.PerformClick();
|
||||
else
|
||||
btnChgBarOn.PerformClick();
|
||||
// Watermark on/off
|
||||
if (_DocVersionConfig.Print_Watermark == DocVersionConfig.PrintWatermark.None)
|
||||
if (_DocVersionConfig.Print_Watermark == PrintWatermark.None)
|
||||
btnWaterMarkOff.PerformClick();
|
||||
else
|
||||
btnWaterMarkOn.PerformClick();
|
||||
@ -97,7 +93,7 @@ namespace VEPROMS
|
||||
|
||||
private void DlgPrintProcedure_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Text = "Create PDF for " + _ProcNum;
|
||||
this.Text = "Create PDF for " + ProcNum;
|
||||
//dtRevDate.Value = _RevDate;
|
||||
//dtReviewDate.Value = _ReviewDate;
|
||||
//tbxRevNum.Text = _RevNum;
|
||||
@ -106,13 +102,42 @@ namespace VEPROMS
|
||||
// dlgSelectFile.InitialDirectory = pdf path from frmVersionProperties
|
||||
//cbxPDF.Text = string.Format(@"{0}\{1}.pdf", _PDFPath, _ProcNum);
|
||||
// General 2 settings
|
||||
txbPDFLocation.Text = _PDFPath;
|
||||
tbxPDFName.Text = string.Format("{0}.pdf", _ProcNum);
|
||||
txbRevNum.Text = _RevNum;
|
||||
dtRevDate.Value = _RevDate;
|
||||
dtReviewDate.Value = _ReviewDate;
|
||||
//txbPDFLocation.Text = _PDFPath;
|
||||
tbxPDFName.Text = string.Format("{0}.pdf", ProcNum);
|
||||
//txbRevNum.Text = _RevNum;
|
||||
//dtRevDate.Value = _RevDate;
|
||||
//dtReviewDate.Value = _ReviewDate;
|
||||
// Advanced tab
|
||||
//cbxPDFloc.Text = _PDFPath;
|
||||
RevNum = "0"; // need to get from procedure config?
|
||||
RevDate = DateTime.Today; // need to get from procedure config?
|
||||
ReviewDate = DateTime.Today; // need to get from procedure config?
|
||||
|
||||
cbxWaterMark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
cbxWaterMark.DisplayMember = "Description";
|
||||
cbxWaterMark.ValueMember = "EValue";
|
||||
PrintWatermark pw = MyProcedure.ProcedureConfig.Print_Watermark;
|
||||
cbxWaterMark.Text = pw.ToString();
|
||||
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DisplayMember = "Description";
|
||||
ppCmbxChangeBarType.ValueMember = "EValue";
|
||||
ppCmbxChangeBarType.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_ChangeBar.ToString();
|
||||
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DisplayMember = "Description";
|
||||
ppCmbxChgBarPos.ValueMember = "EValue";
|
||||
ppCmbxChgBarPos.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_ChangeBarLoc.ToString();
|
||||
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DisplayMember = "Description";
|
||||
ppCmbxChgBarTxtType.ValueMember = "EValue";
|
||||
ppCmbxChgBarTxtType.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_ChangeBarText.ToString();
|
||||
|
||||
ppTxbxChangeBarUserMsgOne.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_UserCBMess1;
|
||||
|
||||
ppTxbxChangeBarUserMsgTwo.Text = MyProcedure.MyDocVersion.DocVersionConfig.Print_UserCBMess2;
|
||||
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
@ -152,7 +177,7 @@ namespace VEPROMS
|
||||
|
||||
private void buttonX9_Click(object sender, EventArgs e)
|
||||
{
|
||||
DlgBrowseFolder.SelectedPath = _PDFPath;
|
||||
DlgBrowseFolder.SelectedPath = PDFPath;
|
||||
DialogResult drslt = DlgBrowseFolder.ShowDialog();
|
||||
if (drslt == DialogResult.OK)
|
||||
{
|
||||
@ -239,25 +264,26 @@ namespace VEPROMS
|
||||
|
||||
private void txbPDFLocation_Leave(object sender, EventArgs e)
|
||||
{
|
||||
string curpdfloc = _PDFPath;
|
||||
_PDFPath = txbPDFLocation.Text;
|
||||
if (!Directory.Exists(_PDFPath))
|
||||
if (!Directory.Exists(PDFPath))
|
||||
{
|
||||
string msg = string.Format("'{0}' does not exist. \n\nCreate it?", _PDFPath);
|
||||
string msg = string.Format("'{0}' does not exist. \n\nCreate it?", PDFPath);
|
||||
DialogResult dr= MessageBox.Show(msg, "Folder Not Found", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(_PDFPath);
|
||||
Directory.CreateDirectory(PDFPath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Error trying to create folder", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
_PDFPath = curpdfloc;
|
||||
txbModPDFLoc.Text = _PDFPath;
|
||||
PDFPath = _DocVersionConfig.Print_PDFLocation;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PDFPath = _DocVersionConfig.Print_PDFLocation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -280,53 +306,58 @@ namespace VEPROMS
|
||||
{
|
||||
Volian.Print.Library.Rtf2Pdf.PdfDebug = true;
|
||||
//tbTimings.Text = "";
|
||||
Cursor saveCursor = this.Cursor;
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
ProcedureConfig.PrintWatermark pw = MyProcedure.ProcedureConfig.Print_Watermark;
|
||||
PromsPrinter pp = new PromsPrinter(MyProcedure, _RevNum, _RevDate.ToShortDateString(),pw.ToString(), true, @"C:\TEMP\16Bit");
|
||||
//Cursor saveCursor = this.Cursor;
|
||||
//this.Cursor = Cursors.WaitCursor;
|
||||
//ProcedureConfig.PrintWatermark pw = MyProcedure.ProcedureConfig.Print_Watermark;
|
||||
PrintWatermark pw = (PrintWatermark)cbxWaterMark.SelectedValue;
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate.ToShortDateString(), pw.ToString(), true, @"C:\TEMP\16Bit", cbxOpenAfterCreate2.Checked, PDFPath);
|
||||
frmStatus.Show();
|
||||
this.Close();
|
||||
|
||||
//PromsPrinter pp = new PromsPrinter(MyProcedure, RevNum, RevDate.ToShortDateString(), pw.ToString(), true, @"C:\TEMP\16Bit", cbxOpenAfterCreate2.Checked);
|
||||
////pp.StatusChanged += new PromsPrinterStatusEvent(pp_StatusChanged);
|
||||
//pp.StatusChanged += new PromsPrinterStatusEvent(pp_StatusChanged);
|
||||
pp.StatusChanged += new PromsPrinterStatusEvent(pp_StatusChanged);
|
||||
//_ElapsedTime = new Dictionary<PromsPrinterStatusType, TimeSpan>();
|
||||
DateTime tStart = DateTime.Now;
|
||||
string pdfFile = pp.Print(_PDFPath);
|
||||
DateTime tEnd = DateTime.Now;
|
||||
//_ElapsedTime.Add(PromsPrinterStatusType.Total, DateTime.Now - tStart);
|
||||
MyStatus = pdfFile + " created.";
|
||||
this.Cursor = saveCursor;
|
||||
//ShowElapsedTime();
|
||||
MyStatus = string.Format("{0} created in {1:0.} milliseconds", pdfFile, (TimeSpan.FromTicks(tEnd.Ticks - tStart.Ticks).TotalMilliseconds));
|
||||
////_ElapsedTime = new Dictionary<PromsPrinterStatusType, TimeSpan>();
|
||||
//DateTime tStart = DateTime.Now;
|
||||
//string pdfFile = pp.Print(PDFPath);
|
||||
//DateTime tEnd = DateTime.Now;
|
||||
////_ElapsedTime.Add(PromsPrinterStatusType.Total, DateTime.Now - tStart);
|
||||
//MyStatus = pdfFile + " created.";
|
||||
////this.Cursor = saveCursor;
|
||||
////ShowElapsedTime();
|
||||
//MyStatus = string.Format("{0} created in {1:0.} milliseconds", pdfFile, (TimeSpan.FromTicks(tEnd.Ticks - tStart.Ticks).TotalMilliseconds));
|
||||
}
|
||||
|
||||
void pp_StatusChanged(object sender, PromsPrintStatusArgs args)
|
||||
{
|
||||
MyStatus = args.MyStatus;
|
||||
}
|
||||
//void pp_StatusChanged(object sender, PromsPrintStatusArgs args)
|
||||
//{
|
||||
// MyStatus = args.MyStatus;
|
||||
//}
|
||||
|
||||
private void btnCreatePDF_Click(object sender, EventArgs e)
|
||||
{
|
||||
CreatePDF();
|
||||
}
|
||||
|
||||
private void txbRevNum_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
RevNum = txbRevNum.Text;
|
||||
}
|
||||
//private void txbRevNum_TextChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// RevNum = txbRevNum.Text;
|
||||
//}
|
||||
|
||||
private void dtRevDate_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
RevDate = dtRevDate.Value;
|
||||
}
|
||||
//private void dtRevDate_TextChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// RevDate = dtRevDate.Value;
|
||||
//}
|
||||
|
||||
private void dtReviewDate_Click(object sender, EventArgs e)
|
||||
{
|
||||
ReviewDate = dtReviewDate.Value;
|
||||
}
|
||||
//private void dtReviewDate_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// ReviewDate = dtReviewDate.Value;
|
||||
//}
|
||||
|
||||
public string MyStatus
|
||||
{
|
||||
get { return lblStatus.Text;}
|
||||
set { lblStatus.Text = value; Application.DoEvents(); }
|
||||
}
|
||||
//public string MyStatus
|
||||
//{
|
||||
// get { return lblStatus.Text;}
|
||||
// set { lblStatus.Text = value; Application.DoEvents(); }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
@ -219,32 +219,32 @@ namespace VEPROMS
|
||||
* */
|
||||
|
||||
// Assign the data sources to the combo boxes
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<FolderConfig.PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DisplayMember = "Name";
|
||||
ppCmbxChangeBarType.ValueMember = "EValue";
|
||||
ppCmbxChangeBarType.SelectedValue = -1;
|
||||
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<FolderConfig.PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DisplayMember = "Name";
|
||||
ppCmbxChgBarPos.ValueMember = "EValue";
|
||||
ppCmbxChgBarPos.SelectedValue = -1;
|
||||
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<FolderConfig.PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DisplayMember = "Name";
|
||||
ppCmbxChgBarTxtType.ValueMember = "EValue";
|
||||
ppCmbxChgBarTxtType.SelectedValue = -1;
|
||||
|
||||
ppCmbxPagination.DataSource = EnumDetail<FolderConfig.PrintPagination>.Details();
|
||||
ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
ppCmbxPagination.DisplayMember = "Name";
|
||||
ppCmbxPagination.ValueMember = "EValue";
|
||||
ppCmbxPagination.SelectedValue = -1;
|
||||
|
||||
ppCmbxWatermark.DataSource = EnumDetail<FolderConfig.PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DisplayMember = "Name";
|
||||
ppCmbxWatermark.ValueMember = "EValue";
|
||||
ppCmbxWatermark.SelectedValue = -1;
|
||||
|
||||
ppCmbxStpEditorCols.DataSource = EnumDetail<FolderConfig.FormatColumns>.Details();
|
||||
ppCmbxStpEditorCols.DataSource = EnumDetail<FormatColumns>.Details();
|
||||
ppCmbxStpEditorCols.DisplayMember = "Name";
|
||||
ppCmbxStpEditorCols.ValueMember = "EValue";
|
||||
ppCmbxStpEditorCols.SelectedValue = -1;
|
||||
@ -400,7 +400,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing || !_IsDefaultSettingNode)
|
||||
{
|
||||
FolderConfig.PrintPagination pgtn = (FolderConfig.PrintPagination)Enum.Parse(typeof(FolderConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
}
|
||||
}
|
||||
@ -416,7 +416,7 @@ namespace VEPROMS
|
||||
{
|
||||
Console.WriteLine("ppBtnDefPagination_Click");
|
||||
// Get the parent setting
|
||||
FolderConfig.PrintPagination pgtn = (FolderConfig.PrintPagination)Enum.Parse(typeof(FolderConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// Compare parent setting with current setting
|
||||
if (pgtn != _FolderConfig.Print_Pagination)
|
||||
_FolderConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
@ -433,7 +433,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
FolderConfig.PrintWatermark wtr = (FolderConfig.PrintWatermark)Enum.Parse(typeof(FolderConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxWatermark, wtr, ppBtnDefWatermark, ppLblWatermarkDefault);
|
||||
}
|
||||
}
|
||||
@ -448,7 +448,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefWatermark_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
FolderConfig.PrintWatermark wtr = (FolderConfig.PrintWatermark)Enum.Parse(typeof(FolderConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
// Compare parent setting with current setting
|
||||
if (wtr != _FolderConfig.Print_Watermark)
|
||||
_FolderConfig.Print_Watermark = wtr; // this will force a database update (write)
|
||||
@ -520,7 +520,7 @@ namespace VEPROMS
|
||||
/// Enable or disable the user specified change bar options base on the type
|
||||
/// of change bar selected.
|
||||
/// </summary>
|
||||
private void setEnabledUserSpecifiedChgBarCombos(FolderConfig.PrintChangeBar pcb)
|
||||
private void setEnabledUserSpecifiedChgBarCombos(PrintChangeBar pcb)
|
||||
{
|
||||
//ppGpbxUserSpecCB.Enabled =
|
||||
//ppCmbxChgBarPos.Enabled =
|
||||
@ -531,8 +531,8 @@ namespace VEPROMS
|
||||
//(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(FolderConfig.PrintChangeBar.WithUserSpecified));
|
||||
|
||||
ppGpbxUserSpecCB.Enabled = (ppCmbxChangeBarType.SelectedValue != null &&
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(FolderConfig.PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(FolderConfig.PrintChangeBar.WithUserSpecified));
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(PrintChangeBar.WithUserSpecified));
|
||||
|
||||
}
|
||||
|
||||
@ -545,7 +545,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
FolderConfig.PrintChangeBar pcb = (FolderConfig.PrintChangeBar)Enum.Parse(typeof(FolderConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChangeBarType, pcb, ppBtnDefaultChgBar, ppLblChangeBarTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarCombos(pcb);
|
||||
}
|
||||
@ -561,7 +561,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultChgBar_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
FolderConfig.PrintChangeBar pcb = (FolderConfig.PrintChangeBar)Enum.Parse(typeof(FolderConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
// Compare parent setting with current setting
|
||||
//_Initializing = true;
|
||||
if (pcb != _FolderConfig.Print_ChangeBar)
|
||||
@ -580,7 +580,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
FolderConfig.PrintChangeBarLoc cbl = (FolderConfig.PrintChangeBarLoc)Enum.Parse(typeof(FolderConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarPos, cbl, ppBtnDefaultCbPos, ppLblChgBarPosDefault);
|
||||
}
|
||||
}
|
||||
@ -595,7 +595,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultCbPos_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
FolderConfig.PrintChangeBarLoc cbl = (FolderConfig.PrintChangeBarLoc)Enum.Parse(typeof(FolderConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
// Compare parent setting with current setting
|
||||
if (cbl != _FolderConfig.Print_ChangeBarLoc)
|
||||
_FolderConfig.Print_ChangeBarLoc = cbl; // this will force a database update (write)
|
||||
@ -612,7 +612,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
FolderConfig.PrintChangeBarText cbt = (FolderConfig.PrintChangeBarText)Enum.Parse(typeof(FolderConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarTxtType, cbt, ppBtnDefCbTxtTyp, ppLblChgBarTxtTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarText();
|
||||
//tcpFmtSettings.Focus();
|
||||
@ -629,7 +629,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefCbTxtTyp_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
FolderConfig.PrintChangeBarText cbt = (FolderConfig.PrintChangeBarText)Enum.Parse(typeof(FolderConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
// Compare parent setting with current setting
|
||||
if (cbt != _FolderConfig.Print_ChangeBarText)
|
||||
_FolderConfig.Print_ChangeBarText = cbt; // this will force a database update (write)
|
||||
@ -651,10 +651,10 @@ namespace VEPROMS
|
||||
//ppCmbxChgBarTxtType.SelectedValue.Equals(FolderConfig.PrintChangeBarText.UserDef));
|
||||
|
||||
// This string is used to check against our default setting to see if User Defined Changebar Text is active
|
||||
string decUserDef = DocVersionConfig.PrintChangeBarText.UserDef.ToString();
|
||||
string decUserDef = PrintChangeBarText.UserDef.ToString();
|
||||
|
||||
ppGpbxUserSpecTxt.Enabled = (ppCmbxChgBarTxtType.SelectedValue != null &&
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(FolderConfig.PrintChangeBarText.UserDef)) ||
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(PrintChangeBarText.UserDef)) ||
|
||||
(ppCmbxChgBarTxtType.SelectedIndex == -1 && _DefaultChgBarText.Equals(decUserDef));
|
||||
}
|
||||
|
||||
@ -863,7 +863,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
FolderConfig.FormatColumns fcl = (FolderConfig.FormatColumns)Enum.Parse(typeof(FolderConfig.FormatColumns), _DefaultFormatColumns);
|
||||
FormatColumns fcl = (FormatColumns)Enum.Parse(typeof(FormatColumns), _DefaultFormatColumns);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxStpEditorCols, fcl, ppBtnDefEdCols, ppLblStpEditorColsDefault);
|
||||
}
|
||||
}
|
||||
@ -878,7 +878,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefEdCols_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
FolderConfig.FormatColumns fcl = (FolderConfig.FormatColumns)Enum.Parse(typeof(FolderConfig.FormatColumns), _DefaultFormatColumns);
|
||||
FormatColumns fcl = (FormatColumns)Enum.Parse(typeof(FormatColumns), _DefaultFormatColumns);
|
||||
// Compare parent setting with current setting
|
||||
if (fcl != _FolderConfig.Format_Columns)
|
||||
_FolderConfig.Format_Columns = fcl; // this will force a database update (write)
|
||||
|
91
PROMS/VEPROMS User Interface/frmPDFStatusForm.Designer.cs
generated
Normal file
91
PROMS/VEPROMS User Interface/frmPDFStatusForm.Designer.cs
generated
Normal file
@ -0,0 +1,91 @@
|
||||
namespace VEPROMS
|
||||
{
|
||||
partial class frmPDFStatusForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPDFStatusForm));
|
||||
this.lblStatus = new DevComponents.DotNetBar.LabelX();
|
||||
this.pb = new DevComponents.DotNetBar.Controls.ProgressBarX();
|
||||
this.tmrRun = new System.Windows.Forms.Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblStatus
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblStatus.BackgroundStyle.Class = "";
|
||||
this.lblStatus.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblStatus.Location = new System.Drawing.Point(12, 21);
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new System.Drawing.Size(304, 23);
|
||||
this.lblStatus.TabIndex = 0;
|
||||
this.lblStatus.Text = "Ready";
|
||||
//
|
||||
// pb
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.pb.BackgroundStyle.Class = "";
|
||||
this.pb.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.pb.Location = new System.Drawing.Point(12, 65);
|
||||
this.pb.Name = "pb";
|
||||
this.pb.Size = new System.Drawing.Size(721, 23);
|
||||
this.pb.TabIndex = 1;
|
||||
this.pb.TextVisible = true;
|
||||
//
|
||||
// tmrRun
|
||||
//
|
||||
this.tmrRun.Tick += new System.EventHandler(this.tmrRun_Tick);
|
||||
//
|
||||
// frmPDFStatusForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(745, 104);
|
||||
this.Controls.Add(this.pb);
|
||||
this.Controls.Add(this.lblStatus);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "frmPDFStatusForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "frmPDFStatusForm";
|
||||
this.TopMost = true;
|
||||
this.Load += new System.EventHandler(this.frmPDFStatusForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevComponents.DotNetBar.LabelX lblStatus;
|
||||
private DevComponents.DotNetBar.Controls.ProgressBarX pb;
|
||||
private System.Windows.Forms.Timer tmrRun;
|
||||
}
|
||||
}
|
76
PROMS/VEPROMS User Interface/frmPDFStatusForm.cs
Normal file
76
PROMS/VEPROMS User Interface/frmPDFStatusForm.cs
Normal file
@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Volian.Print.Library;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace VEPROMS
|
||||
{
|
||||
public partial class frmPDFStatusForm : Form
|
||||
{
|
||||
private string _PDFPath;
|
||||
|
||||
public string PDFPath
|
||||
{
|
||||
get { return _PDFPath; }
|
||||
set { _PDFPath = value; }
|
||||
}
|
||||
private PromsPrinter _MyPromsPrinter;
|
||||
|
||||
public PromsPrinter MyPromsPrinter
|
||||
{
|
||||
get { return _MyPromsPrinter; }
|
||||
set { _MyPromsPrinter = value; }
|
||||
}
|
||||
|
||||
public frmPDFStatusForm(ItemInfo myItem, string rev, string revDate, string watermark, bool debugOutput, string backgroundFolder, bool openPDF, string pdfPath)
|
||||
{
|
||||
InitializeComponent();
|
||||
MyPromsPrinter = new PromsPrinter(myItem, rev, revDate, watermark, debugOutput, backgroundFolder, openPDF);
|
||||
PDFPath = pdfPath;
|
||||
this.Text = "Creating PDF of " + myItem.DisplayNumber;
|
||||
|
||||
}
|
||||
void pp_StatusChanged(object sender, PromsPrintStatusArgs args)
|
||||
{
|
||||
if (args.Type == PromsPrinterStatusType.ProgressSetup)
|
||||
pb.Maximum = args.Progress;
|
||||
else if (args.Type == PromsPrinterStatusType.Progress)
|
||||
{
|
||||
pb.Value = args.Progress;
|
||||
if (args.Progress == pb.Maximum)
|
||||
pb.Text = args.MyStatus;
|
||||
else
|
||||
pb.Text = string.Format("Processing {0} ({1} of {2})", args.MyStatus, args.Progress + 1, pb.Maximum);
|
||||
}
|
||||
MyStatus = args.MyStatus;
|
||||
}
|
||||
public string MyStatus
|
||||
{
|
||||
get { return lblStatus.Text; }
|
||||
set { lblStatus.Text = value; Application.DoEvents(); }
|
||||
}
|
||||
|
||||
private void frmPDFStatusForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
tmrRun.Enabled = true;
|
||||
}
|
||||
|
||||
private void tmrRun_Tick(object sender, EventArgs e)
|
||||
{
|
||||
tmrRun.Enabled = false;
|
||||
MyPromsPrinter.StatusChanged += new PromsPrinterStatusEvent(pp_StatusChanged);
|
||||
DateTime tStart = DateTime.Now;
|
||||
string pdfFile = MyPromsPrinter.Print(PDFPath);
|
||||
DateTime tEnd = DateTime.Now;
|
||||
MyStatus = pdfFile + " created.";
|
||||
MyStatus = string.Format("{0} created in {1:0.} milliseconds", pdfFile, (TimeSpan.FromTicks(tEnd.Ticks - tStart.Ticks).TotalMilliseconds));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
2037
PROMS/VEPROMS User Interface/frmPDFStatusForm.resx
Normal file
2037
PROMS/VEPROMS User Interface/frmPDFStatusForm.resx
Normal file
File diff suppressed because it is too large
Load Diff
@ -165,32 +165,32 @@ namespace VEPROMS
|
||||
FindDefaultValues();
|
||||
|
||||
// Assign the data sources to the combo boxes
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<ProcedureConfig.PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DisplayMember = "Description";
|
||||
ppCmbxChgBarPos.ValueMember = "EValue";
|
||||
ppCmbxChgBarPos.SelectedIndex = -1;
|
||||
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<ProcedureConfig.PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DisplayMember = "Description";
|
||||
ppCmbxChgBarTxtType.ValueMember = "EValue";
|
||||
ppCmbxChgBarTxtType.SelectedIndex = -1;
|
||||
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<ProcedureConfig.PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DisplayMember = "Description";
|
||||
ppCmbxChangeBarType.ValueMember = "EValue";
|
||||
ppCmbxChangeBarType.SelectedIndex = -1;
|
||||
|
||||
ppCmbxPagination.DataSource = EnumDetail<ProcedureConfig.PrintPagination>.Details();
|
||||
ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
ppCmbxPagination.DisplayMember = "Description";
|
||||
ppCmbxPagination.ValueMember = "EValue";
|
||||
ppCmbxPagination.SelectedIndex = -1;
|
||||
|
||||
ppCmbxWatermark.DataSource = EnumDetail<ProcedureConfig.PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DisplayMember = "Description";
|
||||
ppCmbxWatermark.ValueMember = "EValue";
|
||||
ppCmbxWatermark.SelectedIndex = -1;
|
||||
|
||||
ppCmbxStpEditorCols.DataSource = EnumDetail<ProcedureConfig.FormatColumns>.Details();
|
||||
ppCmbxStpEditorCols.DataSource = EnumDetail<FormatColumns>.Details();
|
||||
ppCmbxStpEditorCols.DisplayMember = "Description";
|
||||
ppCmbxStpEditorCols.ValueMember = "EValue";
|
||||
ppCmbxStpEditorCols.SelectedIndex = -1;
|
||||
@ -219,7 +219,7 @@ namespace VEPROMS
|
||||
{
|
||||
//if (!_Initializing)
|
||||
//{
|
||||
ProcedureConfig.FormatColumns fc = (ProcedureConfig.FormatColumns)Enum.Parse(typeof(ProcedureConfig.FormatColumns), _DefaultFormatColumns);
|
||||
FormatColumns fc = (FormatColumns)Enum.Parse(typeof(FormatColumns), _DefaultFormatColumns);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxStpEditorCols, fc, ppBtnDefEdCols, ppLblStpEditorColsDefault);
|
||||
//if ((ppCmbxStpEditorCols.SelectedIndex != -1) && ppCmbxStpEditorCols.SelectedValue.Equals(fc))
|
||||
//{
|
||||
@ -265,7 +265,7 @@ namespace VEPROMS
|
||||
/// Enable or disable the user specified change bar options base on the type
|
||||
/// of change bar selected.
|
||||
/// </summary>
|
||||
private void setEnabledUserSpecifiedChgBarCombos(ProcedureConfig.PrintChangeBar pcb)
|
||||
private void setEnabledUserSpecifiedChgBarCombos(PrintChangeBar pcb)
|
||||
{
|
||||
//ppGpbxUserSpecCB.Enabled =
|
||||
//ppCmbxChgBarPos.Enabled =
|
||||
@ -276,8 +276,8 @@ namespace VEPROMS
|
||||
// (ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(DocVersionConfig.PrintChangeBar.WithUserSpecified));
|
||||
|
||||
ppGpbxUserSpecCB.Enabled = (ppCmbxChangeBarType.SelectedValue != null &&
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(ProcedureConfig.PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(ProcedureConfig.PrintChangeBar.WithUserSpecified));
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(PrintChangeBar.WithUserSpecified));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -290,7 +290,7 @@ namespace VEPROMS
|
||||
//Console.WriteLine("### SelectedValueChanged");
|
||||
if (!_Initializing)
|
||||
{
|
||||
ProcedureConfig.PrintChangeBar pcb = (ProcedureConfig.PrintChangeBar)Enum.Parse(typeof(ProcedureConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChangeBarType, pcb, ppBtnDefaultChgBar, ppLblChangeBarTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarCombos(pcb);
|
||||
//tcpFormatSettings.Focus();
|
||||
@ -307,7 +307,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultChgBar_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintChangeBar pcb = (ProcedureConfig.PrintChangeBar)Enum.Parse(typeof(ProcedureConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
// Compare parent setting with current setting
|
||||
_Initializing = true;
|
||||
if (pcb != _ProcedureConfig.Print_ChangeBar)
|
||||
@ -326,7 +326,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
ProcedureConfig.PrintChangeBarLoc cbl = (ProcedureConfig.PrintChangeBarLoc)Enum.Parse(typeof(ProcedureConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarPos, cbl, ppBtnDefaultCbPos, ppLblChgBarPosDefault);
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
@ -342,7 +342,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultCbPos_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintChangeBarLoc cbl = (ProcedureConfig.PrintChangeBarLoc)Enum.Parse(typeof(ProcedureConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
// Compare parent setting with current setting
|
||||
if (cbl != _ProcedureConfig.Print_ChangeBarLoc)
|
||||
_ProcedureConfig.Print_ChangeBarLoc = cbl; // this will force a database update (write)
|
||||
@ -359,7 +359,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
ProcedureConfig.PrintChangeBarText cbt = (ProcedureConfig.PrintChangeBarText)Enum.Parse(typeof(ProcedureConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarTxtType, cbt, ppBtnDefCbTxtTyp, ppLblChgBarTxtTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarText();
|
||||
//tcpFormatSettings.Focus();
|
||||
@ -376,7 +376,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefCbTxtTyp_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintChangeBarText cbt = (ProcedureConfig.PrintChangeBarText)Enum.Parse(typeof(ProcedureConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
// Compare parent setting with current setting
|
||||
if (cbt != _ProcedureConfig.Print_ChangeBarText)
|
||||
_ProcedureConfig.Print_ChangeBarText = cbt; // this will force a database update (write)
|
||||
@ -398,10 +398,10 @@ namespace VEPROMS
|
||||
//ppCmbxChgBarTxtType.SelectedValue.Equals(ProcedureConfig.PrintChangeBarText.UserDef));
|
||||
|
||||
// This string is used to check against our default setting to see if User Defined Changebar Text is active
|
||||
string decUserDef = ProcedureConfig.PrintChangeBarText.UserDef.ToString();
|
||||
string decUserDef = PrintChangeBarText.UserDef.ToString();
|
||||
|
||||
ppGpbxUserSpecTxt.Enabled = (ppCmbxChgBarTxtType.SelectedValue != null &&
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(ProcedureConfig.PrintChangeBarText.UserDef)) ||
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(PrintChangeBarText.UserDef)) ||
|
||||
(ppCmbxChgBarTxtType.SelectedIndex == -1 && _DefaultChgBarText.Equals(decUserDef));
|
||||
|
||||
}
|
||||
@ -429,7 +429,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
ProcedureConfig.PrintPagination pgtn = (ProcedureConfig.PrintPagination)Enum.Parse(typeof(ProcedureConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
@ -445,7 +445,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefPagination_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintPagination pgtn = (ProcedureConfig.PrintPagination)Enum.Parse(typeof(ProcedureConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// Compare parent setting with current setting
|
||||
if (pgtn != _ProcedureConfig.Print_Pagination)
|
||||
_ProcedureConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
@ -462,7 +462,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
ProcedureConfig.PrintWatermark wtr = (ProcedureConfig.PrintWatermark)Enum.Parse(typeof(ProcedureConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxWatermark, wtr, ppBtnDefWatermark, ppLblWatermarkDefault);
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
@ -478,7 +478,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefWatermark_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintWatermark wtr = (ProcedureConfig.PrintWatermark)Enum.Parse(typeof(ProcedureConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
// Compare parent setting with current setting
|
||||
if (wtr != _ProcedureConfig.Print_Watermark)
|
||||
_ProcedureConfig.Print_Watermark = wtr; // this will force a database update (write)
|
||||
@ -659,7 +659,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefEdCols_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.FormatColumns fc = (ProcedureConfig.FormatColumns)Enum.Parse(typeof(ProcedureConfig.FormatColumns), _DefaultFormatColumns);
|
||||
FormatColumns fc = (FormatColumns)Enum.Parse(typeof(FormatColumns), _DefaultFormatColumns);
|
||||
if (fc != _ProcedureConfig.Format_Columns)
|
||||
_ProcedureConfig.Format_Columns = fc; // this will force a database update (write)
|
||||
ppCmbxStpEditorCols.SelectedIndex = -1; //reset to the default
|
||||
@ -669,7 +669,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefWatermark_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
ProcedureConfig.PrintWatermark wtr = (ProcedureConfig.PrintWatermark)Enum.Parse(typeof(ProcedureConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
// Compare parent setting with current setting
|
||||
if (wtr != _ProcedureConfig.Print_Watermark)
|
||||
_ProcedureConfig.Print_Watermark = wtr; // this will force a database update (write)
|
||||
|
@ -188,27 +188,27 @@ namespace VEPROMS
|
||||
// Get the default values for the property page information
|
||||
FindDefaultValues();
|
||||
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<DocVersionConfig.PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DataSource = EnumDetail<PrintChangeBar>.Details();
|
||||
ppCmbxChangeBarType.DisplayMember = "Description";
|
||||
ppCmbxChangeBarType.ValueMember = "EValue";
|
||||
ppCmbxChangeBarType.SelectedIndex = -1;
|
||||
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<DocVersionConfig.PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DisplayMember = "Description";
|
||||
ppCmbxChgBarPos.ValueMember = "EValue";
|
||||
ppCmbxChgBarPos.SelectedIndex = -1;
|
||||
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<DocVersionConfig.PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DataSource = EnumDetail<PrintChangeBarText>.Details();
|
||||
ppCmbxChgBarTxtType.DisplayMember = "Description";
|
||||
ppCmbxChgBarTxtType.ValueMember = "EValue";
|
||||
ppCmbxChgBarTxtType.SelectedItem = -1;
|
||||
|
||||
ppCmbxWatermark.DataSource = EnumDetail<DocVersionConfig.PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DisplayMember = "Description";
|
||||
ppCmbxWatermark.ValueMember = "EValue";
|
||||
ppCmbxWatermark.SelectedIndex = -1;
|
||||
|
||||
ppCmbxPagination.DataSource = EnumDetail<DocVersionConfig.PrintPagination>.Details();
|
||||
ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
ppCmbxPagination.DisplayMember = "Description";
|
||||
ppCmbxPagination.ValueMember = "EValue";
|
||||
ppCmbxPagination.SelectedIndex = -1;
|
||||
@ -276,7 +276,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
DocVersionConfig.PrintPagination pgtn = (DocVersionConfig.PrintPagination)Enum.Parse(typeof(DocVersionConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
}
|
||||
}
|
||||
@ -291,7 +291,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefPagination_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
DocVersionConfig.PrintPagination pgtn = (DocVersionConfig.PrintPagination)Enum.Parse(typeof(DocVersionConfig.PrintPagination), _DefaultPagination);
|
||||
PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// Compare parent setting with current setting
|
||||
if (pgtn != _DocVersionConfig.Print_Pagination)
|
||||
_DocVersionConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
@ -308,7 +308,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
DocVersionConfig.PrintWatermark wtr = (DocVersionConfig.PrintWatermark)Enum.Parse(typeof(DocVersionConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxWatermark, wtr, ppBtnDefWatermark, ppLblWatermarkDefault);
|
||||
}
|
||||
}
|
||||
@ -323,7 +323,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefWatermark_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
DocVersionConfig.PrintWatermark wtr = (DocVersionConfig.PrintWatermark)Enum.Parse(typeof(DocVersionConfig.PrintWatermark), _DefaultWatermark);
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
// Compare parent setting with current setting
|
||||
if (wtr != _DocVersionConfig.Print_Watermark)
|
||||
_DocVersionConfig.Print_Watermark = wtr; // this will force a database update (write)
|
||||
@ -381,7 +381,7 @@ namespace VEPROMS
|
||||
/// Enable or disable the user specified change bar options base on the type
|
||||
/// of change bar selected.
|
||||
/// </summary>
|
||||
private void setEnabledUserSpecifiedChgBarCombos(DocVersionConfig.PrintChangeBar pcb)
|
||||
private void setEnabledUserSpecifiedChgBarCombos(PrintChangeBar pcb)
|
||||
{
|
||||
//ppGpbxUserSpecCB.Enabled =
|
||||
//ppCmbxChgBarPos.Enabled =
|
||||
@ -392,8 +392,8 @@ namespace VEPROMS
|
||||
//(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(DocVersionConfig.PrintChangeBar.WithUserSpecified));
|
||||
|
||||
ppGpbxUserSpecCB.Enabled = (ppCmbxChangeBarType.SelectedValue != null &&
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(DocVersionConfig.PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(DocVersionConfig.PrintChangeBar.WithUserSpecified));
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(PrintChangeBar.WithUserSpecified));
|
||||
|
||||
}
|
||||
|
||||
@ -406,7 +406,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
DocVersionConfig.PrintChangeBar pcb = (DocVersionConfig.PrintChangeBar)Enum.Parse(typeof(DocVersionConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChangeBarType, pcb, ppBtnDefaultChgBar, ppLblChangeBarTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarCombos(pcb);
|
||||
}
|
||||
@ -422,7 +422,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultChgBar_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
DocVersionConfig.PrintChangeBar pcb = (DocVersionConfig.PrintChangeBar)Enum.Parse(typeof(DocVersionConfig.PrintChangeBar), _DefaultChgBarType);
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
// Compare parent setting with current setting
|
||||
if (pcb != _DocVersionConfig.Print_ChangeBar)
|
||||
_DocVersionConfig.Print_ChangeBar = pcb; // this will force a database update (write)
|
||||
@ -439,7 +439,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
DocVersionConfig.PrintChangeBarLoc cbl = (DocVersionConfig.PrintChangeBarLoc)Enum.Parse(typeof(DocVersionConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarPos, cbl, ppBtnDefaultCbPos, ppLblChgBarPosDefault);
|
||||
}
|
||||
}
|
||||
@ -454,7 +454,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefaultCbPos_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
DocVersionConfig.PrintChangeBarLoc cbl = (DocVersionConfig.PrintChangeBarLoc)Enum.Parse(typeof(DocVersionConfig.PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
// Compare parent setting with current setting
|
||||
if (cbl != _DocVersionConfig.Print_ChangeBarLoc)
|
||||
_DocVersionConfig.Print_ChangeBarLoc = cbl; // this will force a database update (write)
|
||||
@ -478,10 +478,10 @@ namespace VEPROMS
|
||||
//string decUserDef = EnumDescConverter.GetEnumDescription(DocVersionConfig.PrintChangeBarText.UserDef);
|
||||
|
||||
// This string is used to check against our default setting to see if User Defined Changebar Text is active
|
||||
string decUserDef = DocVersionConfig.PrintChangeBarText.UserDef.ToString();
|
||||
string decUserDef = PrintChangeBarText.UserDef.ToString();
|
||||
|
||||
ppGpbxUserSpecTxt.Enabled = (ppCmbxChgBarTxtType.SelectedValue != null &&
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(DocVersionConfig.PrintChangeBarText.UserDef)) ||
|
||||
ppCmbxChgBarTxtType.SelectedValue.Equals(PrintChangeBarText.UserDef)) ||
|
||||
(ppCmbxChgBarTxtType.SelectedIndex == -1 && _DefaultChgBarText.Equals(decUserDef));
|
||||
|
||||
}
|
||||
@ -495,7 +495,7 @@ namespace VEPROMS
|
||||
{
|
||||
if (!_Initializing)
|
||||
{
|
||||
DocVersionConfig.PrintChangeBarText cbt = (DocVersionConfig.PrintChangeBarText)Enum.Parse(typeof(DocVersionConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarTxtType, cbt, ppBtnDefCbTxtTyp, ppLblChgBarTxtTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarText();
|
||||
}
|
||||
@ -511,7 +511,7 @@ namespace VEPROMS
|
||||
private void ppBtnDefCbTxtTyp_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Get the parent setting
|
||||
DocVersionConfig.PrintChangeBarText cbt = (DocVersionConfig.PrintChangeBarText)Enum.Parse(typeof(DocVersionConfig.PrintChangeBarText), _DefaultChgBarText);
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
// Compare parent setting with current setting
|
||||
if (cbt != _DocVersionConfig.Print_ChangeBarText)
|
||||
_DocVersionConfig.Print_ChangeBarText = cbt; // this will force a database update (write)
|
||||
|
Loading…
x
Reference in New Issue
Block a user