From e8ae40ef7fc3dd693ad108d47af24a2c8c310713 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 3 Aug 2017 18:08:21 +0000 Subject: [PATCH] C2017-030 consolidated the Amin Tools and created a new user interface C2017-030 passed in session information to the Amin Tools constructor --- .../frmBatchRefresh.Designer.cs | 1468 +++++++++++++---- .../VEPROMS User Interface/frmBatchRefresh.cs | 852 ++++++---- .../frmBatchRefresh.resx | 217 +++ PROMS/VEPROMS User Interface/frmVEPROMS.cs | 3 +- 4 files changed, 1843 insertions(+), 697 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs index 37fe2ebf..b603f469 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs @@ -1,4 +1,4 @@ -namespace VEPROMS +namespace VEPROMS { partial class frmBatchRefresh { @@ -28,17 +28,17 @@ namespace VEPROMS /// private void InitializeComponent() { - this.scBatch = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.lblWarning = new System.Windows.Forms.Label(); - this.lblDescription = new System.Windows.Forms.Label(); - this.lblCaption = new System.Windows.Forms.Label(); - this.cbxAdminTools = new DevComponents.DotNetBar.Controls.ComboBoxEx(); - this.label1 = new System.Windows.Forms.Label(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmBatchRefresh)); this.myTV = new System.Windows.Forms.TreeView(); - this.label2 = new System.Windows.Forms.Label(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.panel2 = new System.Windows.Forms.Panel(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); + this.txtResults = new System.Windows.Forms.TextBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.btnSave = new System.Windows.Forms.Button(); + this.btnClear = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.expandableSplitter2 = new DevComponents.DotNetBar.ExpandableSplitter(); + this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); this.txtProcess = new System.Windows.Forms.TextBox(); this.pbProcess = new System.Windows.Forms.ProgressBar(); this.label6 = new System.Windows.Forms.Label(); @@ -47,308 +47,135 @@ namespace VEPROMS this.label5 = new System.Windows.Forms.Label(); this.dtpTime = new System.Windows.Forms.DateTimePicker(); this.dtpDate = new System.Windows.Forms.DateTimePicker(); - this.btnRefresh = new System.Windows.Forms.Button(); this.chkLater = new System.Windows.Forms.CheckBox(); this.label4 = new System.Windows.Forms.Label(); - this.txtResults = new System.Windows.Forms.TextBox(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btnSave = new System.Windows.Forms.Button(); - this.btnClear = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.scBatch.Panel1.SuspendLayout(); - this.scBatch.Panel2.SuspendLayout(); - this.scBatch.SuspendLayout(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.panel2.SuspendLayout(); + this.expandableSplitter1 = new DevComponents.DotNetBar.ExpandableSplitter(); + this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + this.sideNav1 = new DevComponents.DotNetBar.Controls.SideNav(); + this.sideNavPanel1 = new DevComponents.DotNetBar.Controls.SideNavPanel(); + this.warningBox3 = new DevComponents.DotNetBar.Controls.WarningBox(); + this.labelX7 = new DevComponents.DotNetBar.LabelX(); + this.line1 = new DevComponents.DotNetBar.Controls.Line(); + this.swCkObsoleteROData = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.swHiddenDataLocs = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.swCkOrphanDataRecs = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.btnRunCheck = new DevComponents.DotNetBar.ButtonX(); + this.sideNavPanel4 = new DevComponents.DotNetBar.Controls.SideNavPanel(); + this.btn_ShowUsers = new DevComponents.DotNetBar.ButtonX(); + this.sideNavPanel2 = new DevComponents.DotNetBar.Controls.SideNavPanel(); + this.warningBox4 = new DevComponents.DotNetBar.Controls.WarningBox(); + this.warningBox2 = new DevComponents.DotNetBar.Controls.WarningBox(); + this.swRmObsoleteROData = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.swRefreshWordAttmts = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.swStandardHypenChars = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.labelX4 = new DevComponents.DotNetBar.LabelX(); + this.labelX5 = new DevComponents.DotNetBar.LabelX(); + this.labelX9 = new DevComponents.DotNetBar.LabelX(); + this.swRmOrphanDataRecs = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.labelX10 = new DevComponents.DotNetBar.LabelX(); + this.labelX8 = new DevComponents.DotNetBar.LabelX(); + this.line2 = new DevComponents.DotNetBar.Controls.Line(); + this.btnRunRepair = new DevComponents.DotNetBar.ButtonX(); + this.sideNavPanel3 = new DevComponents.DotNetBar.Controls.SideNavPanel(); + this.warningBox5 = new DevComponents.DotNetBar.Controls.WarningBox(); + this.line3 = new DevComponents.DotNetBar.Controls.Line(); + this.swUpdateROVals = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.swRefreshTrans = new DevComponents.DotNetBar.Controls.SwitchButton(); + this.labelX11 = new DevComponents.DotNetBar.LabelX(); + this.labelX6 = new DevComponents.DotNetBar.LabelX(); + this.warningBox1 = new DevComponents.DotNetBar.Controls.WarningBox(); + this.btnFixLinks = new DevComponents.DotNetBar.ButtonX(); + this.sideNavItem1 = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.separator1 = new DevComponents.DotNetBar.Separator(); + this.sideNavItmCheck = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.sideNavItmRepair = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.sideNavItmLinks = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.sideNavItmUsers = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.sideNavItmExit = new DevComponents.DotNetBar.Controls.SideNavItem(); + this.panelEx4 = new DevComponents.DotNetBar.PanelEx(); + this.progressSteps1 = new DevComponents.DotNetBar.ProgressSteps(); + this.stepItem1 = new DevComponents.DotNetBar.StepItem(); + this.stepItem2 = new DevComponents.DotNetBar.StepItem(); + this.stepItem3 = new DevComponents.DotNetBar.StepItem(); + this.stepItem4 = new DevComponents.DotNetBar.StepItem(); + this.lblAdmToolProgressType = new DevComponents.DotNetBar.LabelX(); + this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + this.panelEx3.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panelEx2.SuspendLayout(); this.panel3.SuspendLayout(); this.pnlLater.SuspendLayout(); - this.panel1.SuspendLayout(); + this.panelEx1.SuspendLayout(); + this.sideNav1.SuspendLayout(); + this.sideNavPanel1.SuspendLayout(); + this.sideNavPanel4.SuspendLayout(); + this.sideNavPanel2.SuspendLayout(); + this.sideNavPanel3.SuspendLayout(); + this.panelEx4.SuspendLayout(); this.SuspendLayout(); // - // scBatch - // - this.scBatch.Dock = System.Windows.Forms.DockStyle.Fill; - this.scBatch.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.scBatch.IsSplitterFixed = true; - this.scBatch.Location = new System.Drawing.Point(0, 0); - this.scBatch.Name = "scBatch"; - // - // scBatch.Panel1 - // - this.scBatch.Panel1.Controls.Add(this.splitContainer2); - // - // scBatch.Panel2 - // - this.scBatch.Panel2.Controls.Add(this.splitContainer1); - this.scBatch.Size = new System.Drawing.Size(994, 472); - this.scBatch.SplitterDistance = 300; - this.scBatch.TabIndex = 1; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.lblWarning); - this.splitContainer2.Panel1.Controls.Add(this.lblDescription); - this.splitContainer2.Panel1.Controls.Add(this.lblCaption); - this.splitContainer2.Panel1.Controls.Add(this.cbxAdminTools); - this.splitContainer2.Panel1.Controls.Add(this.label1); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.myTV); - this.splitContainer2.Panel2.Controls.Add(this.label2); - this.splitContainer2.Size = new System.Drawing.Size(300, 472); - this.splitContainer2.SplitterDistance = 219; - this.splitContainer2.TabIndex = 0; - // - // lblWarning - // - this.lblWarning.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lblWarning.BackColor = System.Drawing.Color.PaleGoldenrod; - this.lblWarning.ForeColor = System.Drawing.Color.Red; - this.lblWarning.Location = new System.Drawing.Point(5, 175); - this.lblWarning.Name = "lblWarning"; - this.lblWarning.Size = new System.Drawing.Size(290, 38); - this.lblWarning.TabIndex = 4; - this.lblWarning.Visible = false; - // - // lblDescription - // - this.lblDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lblDescription.Location = new System.Drawing.Point(5, 66); - this.lblDescription.Name = "lblDescription"; - this.lblDescription.Size = new System.Drawing.Size(290, 109); - this.lblDescription.TabIndex = 3; - // - // lblCaption - // - this.lblCaption.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lblCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblCaption.Location = new System.Drawing.Point(5, 48); - this.lblCaption.Name = "lblCaption"; - this.lblCaption.Size = new System.Drawing.Size(290, 19); - this.lblCaption.TabIndex = 2; - this.lblCaption.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // cbxAdminTools - // - this.cbxAdminTools.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.cbxAdminTools.FlatStyle = System.Windows.Forms.FlatStyle.Standard; - this.cbxAdminTools.FormattingEnabled = true; - this.cbxAdminTools.Location = new System.Drawing.Point(5, 27); - this.cbxAdminTools.Name = "cbxAdminTools"; - this.cbxAdminTools.Size = new System.Drawing.Size(290, 21); - this.cbxAdminTools.TabIndex = 1; - this.cbxAdminTools.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty; - this.cbxAdminTools.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cbxAdminTools.WatermarkText = "Select Adminstrative Tool"; - this.cbxAdminTools.SelectedIndexChanged += new System.EventHandler(this.cbxAdminTools_SelectedIndexChanged); - this.cbxAdminTools.Click += new System.EventHandler(this.cbxAdminTools_Click); - // - // label1 - // - this.label1.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.label1.Dock = System.Windows.Forms.DockStyle.Top; - this.label1.Location = new System.Drawing.Point(0, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(300, 23); - this.label1.TabIndex = 0; - this.label1.Text = "Options"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // // myTV // + this.myTV.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.myTV.CheckBoxes = true; - this.myTV.Dock = System.Windows.Forms.DockStyle.Fill; - this.myTV.Location = new System.Drawing.Point(0, 23); + this.myTV.Location = new System.Drawing.Point(0, 207); this.myTV.Name = "myTV"; - this.myTV.Size = new System.Drawing.Size(300, 226); + this.myTV.Size = new System.Drawing.Size(299, 287); this.myTV.TabIndex = 4; this.myTV.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.myTV_AfterCheck); // - // label2 + // splitContainer3 // - this.label2.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.label2.Dock = System.Windows.Forms.DockStyle.Top; - this.label2.Location = new System.Drawing.Point(0, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(300, 23); - this.label2.TabIndex = 1; - this.label2.Text = "Selected Procedures Or Sets"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.Location = new System.Drawing.Point(0, 0); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; // - // splitContainer1 + // splitContainer3.Panel1 // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; + this.splitContainer3.Panel1.Controls.Add(this.panelEx3); + this.splitContainer3.Panel1.Controls.Add(this.expandableSplitter2); + this.splitContainer3.Panel1.Controls.Add(this.panelEx2); + this.splitContainer3.Panel1.Controls.Add(this.expandableSplitter1); + this.splitContainer3.Panel1.Controls.Add(this.panelEx1); // - // splitContainer1.Panel1 + // splitContainer3.Panel2 // - this.splitContainer1.Panel1.Controls.Add(this.panel2); - this.splitContainer1.Panel1.Controls.Add(this.label4); + this.splitContainer3.Panel2.BackColor = System.Drawing.SystemColors.Control; + this.splitContainer3.Panel2.Controls.Add(this.panelEx4); + this.splitContainer3.Size = new System.Drawing.Size(1177, 586); + this.splitContainer3.SplitterDistance = 526; + this.splitContainer3.TabIndex = 2; // - // splitContainer1.Panel2 + // panelEx3 // - this.splitContainer1.Panel2.Controls.Add(this.txtResults); - this.splitContainer1.Panel2.Controls.Add(this.panel1); - this.splitContainer1.Panel2.Controls.Add(this.label3); - this.splitContainer1.Size = new System.Drawing.Size(690, 472); - this.splitContainer1.SplitterDistance = 300; - this.splitContainer1.TabIndex = 0; - // - // panel2 - // - this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Controls.Add(this.txtProcess); - this.panel2.Controls.Add(this.pbProcess); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.panel3); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(0, 23); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(300, 449); - this.panel2.TabIndex = 4; - // - // txtProcess - // - this.txtProcess.AcceptsReturn = true; - this.txtProcess.Dock = System.Windows.Forms.DockStyle.Fill; - this.txtProcess.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtProcess.Location = new System.Drawing.Point(0, 145); - this.txtProcess.Multiline = true; - this.txtProcess.Name = "txtProcess"; - this.txtProcess.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtProcess.Size = new System.Drawing.Size(298, 302); - this.txtProcess.TabIndex = 5; - // - // pbProcess - // - this.pbProcess.Dock = System.Windows.Forms.DockStyle.Top; - this.pbProcess.Location = new System.Drawing.Point(0, 122); - this.pbProcess.Name = "pbProcess"; - this.pbProcess.Size = new System.Drawing.Size(298, 23); - this.pbProcess.TabIndex = 6; - // - // label6 - // - this.label6.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.label6.Dock = System.Windows.Forms.DockStyle.Top; - this.label6.Location = new System.Drawing.Point(0, 99); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(298, 23); - this.label6.TabIndex = 3; - this.label6.Text = "Process Status"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // panel3 - // - this.panel3.Controls.Add(this.pnlLater); - this.panel3.Controls.Add(this.btnRefresh); - this.panel3.Controls.Add(this.chkLater); - this.panel3.Dock = System.Windows.Forms.DockStyle.Top; - this.panel3.Location = new System.Drawing.Point(0, 0); - this.panel3.Name = "panel3"; - this.panel3.Padding = new System.Windows.Forms.Padding(6); - this.panel3.Size = new System.Drawing.Size(298, 99); - this.panel3.TabIndex = 2; - // - // pnlLater - // - this.pnlLater.Controls.Add(this.label5); - this.pnlLater.Controls.Add(this.dtpTime); - this.pnlLater.Controls.Add(this.dtpDate); - this.pnlLater.Dock = System.Windows.Forms.DockStyle.Top; - this.pnlLater.Enabled = false; - this.pnlLater.Location = new System.Drawing.Point(6, 23); - this.pnlLater.Name = "pnlLater"; - this.pnlLater.Padding = new System.Windows.Forms.Padding(6); - this.pnlLater.Size = new System.Drawing.Size(286, 37); - this.pnlLater.TabIndex = 3; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(105, 15); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(18, 13); - this.label5.TabIndex = 5; - this.label5.Text = "@"; - // - // dtpTime - // - this.dtpTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.dtpTime.CustomFormat = "HH:mm"; - this.dtpTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpTime.Location = new System.Drawing.Point(129, 9); - this.dtpTime.Name = "dtpTime"; - this.dtpTime.ShowUpDown = true; - this.dtpTime.Size = new System.Drawing.Size(140, 20); - this.dtpTime.TabIndex = 4; - // - // dtpDate - // - this.dtpDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; - this.dtpDate.Location = new System.Drawing.Point(9, 9); - this.dtpDate.Name = "dtpDate"; - this.dtpDate.Size = new System.Drawing.Size(90, 20); - this.dtpDate.TabIndex = 3; - // - // btnRefresh - // - this.btnRefresh.Dock = System.Windows.Forms.DockStyle.Bottom; - this.btnRefresh.Location = new System.Drawing.Point(6, 65); - this.btnRefresh.Name = "btnRefresh"; - this.btnRefresh.Size = new System.Drawing.Size(286, 28); - this.btnRefresh.TabIndex = 1; - this.btnRefresh.Text = "NO OPTION SELECTED"; - this.btnRefresh.UseVisualStyleBackColor = true; - this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); - // - // chkLater - // - this.chkLater.AutoSize = true; - this.chkLater.Dock = System.Windows.Forms.DockStyle.Top; - this.chkLater.Location = new System.Drawing.Point(6, 6); - this.chkLater.Name = "chkLater"; - this.chkLater.Size = new System.Drawing.Size(286, 17); - this.chkLater.TabIndex = 4; - this.chkLater.Text = "Process Later"; - this.chkLater.UseVisualStyleBackColor = true; - this.chkLater.CheckedChanged += new System.EventHandler(this.chkLater_CheckedChanged); - // - // label4 - // - this.label4.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.label4.Dock = System.Windows.Forms.DockStyle.Top; - this.label4.Location = new System.Drawing.Point(0, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(300, 23); - this.label4.TabIndex = 3; - this.label4.Text = "Process"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.panelEx3.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx3.Controls.Add(this.txtResults); + this.panelEx3.Controls.Add(this.panel1); + this.panelEx3.Controls.Add(this.label3); + this.panelEx3.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx3.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelEx3.Location = new System.Drawing.Point(688, 0); + this.panelEx3.Name = "panelEx3"; + this.panelEx3.Size = new System.Drawing.Size(489, 526); + this.panelEx3.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx3.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelEx3.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelEx3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx3.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelEx3.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx3.Style.GradientAngle = 90; + this.panelEx3.TabIndex = 31; + this.panelEx3.Text = "panelEx3"; // // txtResults // @@ -358,7 +185,7 @@ namespace VEPROMS this.txtResults.Multiline = true; this.txtResults.Name = "txtResults"; this.txtResults.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtResults.Size = new System.Drawing.Size(386, 420); + this.txtResults.Size = new System.Drawing.Size(489, 474); this.txtResults.TabIndex = 4; // // panel1 @@ -368,7 +195,7 @@ namespace VEPROMS this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 23); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(386, 29); + this.panel1.Size = new System.Drawing.Size(489, 29); this.panel1.TabIndex = 3; // // btnSave @@ -400,73 +227,1046 @@ namespace VEPROMS this.label3.Dock = System.Windows.Forms.DockStyle.Top; this.label3.Location = new System.Drawing.Point(0, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(386, 23); + this.label3.Size = new System.Drawing.Size(489, 23); this.label3.TabIndex = 2; this.label3.Text = "Results"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // + // expandableSplitter2 + // + this.expandableSplitter2.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter2.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter2.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.expandableSplitter2.ExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter2.ExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter2.ExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter2.ExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter2.GripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter2.GripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter2.GripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); + this.expandableSplitter2.GripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.expandableSplitter2.HotBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(151)))), ((int)(((byte)(61))))); + this.expandableSplitter2.HotBackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(184)))), ((int)(((byte)(94))))); + this.expandableSplitter2.HotBackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2; + this.expandableSplitter2.HotBackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground; + this.expandableSplitter2.HotExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter2.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter2.HotExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter2.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter2.HotGripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter2.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter2.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); + this.expandableSplitter2.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.expandableSplitter2.Location = new System.Drawing.Point(682, 0); + this.expandableSplitter2.Name = "expandableSplitter2"; + this.expandableSplitter2.Size = new System.Drawing.Size(6, 526); + this.expandableSplitter2.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007; + this.expandableSplitter2.TabIndex = 38; + this.expandableSplitter2.TabStop = false; + // + // panelEx2 + // + this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx2.Controls.Add(this.txtProcess); + this.panelEx2.Controls.Add(this.pbProcess); + this.panelEx2.Controls.Add(this.label6); + this.panelEx2.Controls.Add(this.panel3); + this.panelEx2.Controls.Add(this.label4); + this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx2.Dock = System.Windows.Forms.DockStyle.Left; + this.panelEx2.Location = new System.Drawing.Point(391, 0); + this.panelEx2.Name = "panelEx2"; + this.panelEx2.Size = new System.Drawing.Size(291, 526); + this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelEx2.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelEx2.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx2.Style.GradientAngle = 90; + this.panelEx2.TabIndex = 22; + this.panelEx2.Text = "panelEx2"; + // + // txtProcess + // + this.txtProcess.AcceptsReturn = true; + this.txtProcess.Dock = System.Windows.Forms.DockStyle.Fill; + this.txtProcess.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtProcess.Location = new System.Drawing.Point(0, 150); + this.txtProcess.Multiline = true; + this.txtProcess.Name = "txtProcess"; + this.txtProcess.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.txtProcess.Size = new System.Drawing.Size(291, 376); + this.txtProcess.TabIndex = 5; + // + // pbProcess + // + this.pbProcess.Dock = System.Windows.Forms.DockStyle.Top; + this.pbProcess.Location = new System.Drawing.Point(0, 125); + this.pbProcess.Name = "pbProcess"; + this.pbProcess.Size = new System.Drawing.Size(291, 25); + this.pbProcess.TabIndex = 6; + // + // label6 + // + this.label6.BackColor = System.Drawing.SystemColors.ActiveCaption; + this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label6.Dock = System.Windows.Forms.DockStyle.Top; + this.label6.Location = new System.Drawing.Point(0, 102); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(291, 23); + this.label6.TabIndex = 3; + this.label6.Text = "Process Status"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel3 + // + this.panel3.Controls.Add(this.pnlLater); + this.panel3.Controls.Add(this.chkLater); + this.panel3.Dock = System.Windows.Forms.DockStyle.Top; + this.panel3.Location = new System.Drawing.Point(0, 23); + this.panel3.Name = "panel3"; + this.panel3.Padding = new System.Windows.Forms.Padding(6); + this.panel3.Size = new System.Drawing.Size(291, 79); + this.panel3.TabIndex = 2; + // + // pnlLater + // + this.pnlLater.Controls.Add(this.label5); + this.pnlLater.Controls.Add(this.dtpTime); + this.pnlLater.Controls.Add(this.dtpDate); + this.pnlLater.Dock = System.Windows.Forms.DockStyle.Top; + this.pnlLater.Enabled = false; + this.pnlLater.Location = new System.Drawing.Point(6, 23); + this.pnlLater.Name = "pnlLater"; + this.pnlLater.Padding = new System.Windows.Forms.Padding(6); + this.pnlLater.Size = new System.Drawing.Size(279, 37); + this.pnlLater.TabIndex = 3; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(105, 15); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(18, 13); + this.label5.TabIndex = 5; + this.label5.Text = "@"; + // + // dtpTime + // + this.dtpTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.dtpTime.CustomFormat = "HH:mm"; + this.dtpTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dtpTime.Location = new System.Drawing.Point(129, 9); + this.dtpTime.Name = "dtpTime"; + this.dtpTime.ShowUpDown = true; + this.dtpTime.Size = new System.Drawing.Size(133, 20); + this.dtpTime.TabIndex = 4; + // + // dtpDate + // + this.dtpDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; + this.dtpDate.Location = new System.Drawing.Point(9, 9); + this.dtpDate.Name = "dtpDate"; + this.dtpDate.Size = new System.Drawing.Size(90, 20); + this.dtpDate.TabIndex = 3; + // + // chkLater + // + this.chkLater.AutoSize = true; + this.chkLater.Dock = System.Windows.Forms.DockStyle.Top; + this.chkLater.Location = new System.Drawing.Point(6, 6); + this.chkLater.Name = "chkLater"; + this.chkLater.Size = new System.Drawing.Size(279, 17); + this.chkLater.TabIndex = 4; + this.chkLater.Text = "Process Later"; + this.chkLater.UseVisualStyleBackColor = true; + this.chkLater.CheckedChanged += new System.EventHandler(this.chkLater_CheckedChanged); + // + // label4 + // + this.label4.BackColor = System.Drawing.SystemColors.ActiveCaption; + this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label4.Dock = System.Windows.Forms.DockStyle.Top; + this.label4.Location = new System.Drawing.Point(0, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(291, 23); + this.label4.TabIndex = 3; + this.label4.Text = "Process"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // expandableSplitter1 + // + this.expandableSplitter1.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter1.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter1.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.expandableSplitter1.ExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter1.ExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter1.ExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter1.ExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter1.GripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter1.GripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter1.GripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); + this.expandableSplitter1.GripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.expandableSplitter1.HotBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(151)))), ((int)(((byte)(61))))); + this.expandableSplitter1.HotBackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(184)))), ((int)(((byte)(94))))); + this.expandableSplitter1.HotBackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2; + this.expandableSplitter1.HotBackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground; + this.expandableSplitter1.HotExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter1.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter1.HotExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.expandableSplitter1.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; + this.expandableSplitter1.HotGripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207))))); + this.expandableSplitter1.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.expandableSplitter1.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); + this.expandableSplitter1.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.expandableSplitter1.Location = new System.Drawing.Point(385, 0); + this.expandableSplitter1.Name = "expandableSplitter1"; + this.expandableSplitter1.Size = new System.Drawing.Size(6, 526); + this.expandableSplitter1.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007; + this.expandableSplitter1.TabIndex = 4; + this.expandableSplitter1.TabStop = false; + // + // panelEx1 + // + this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx1.Controls.Add(this.sideNav1); + this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx1.Dock = System.Windows.Forms.DockStyle.Left; + this.panelEx1.Location = new System.Drawing.Point(0, 0); + this.panelEx1.Name = "panelEx1"; + this.panelEx1.Size = new System.Drawing.Size(385, 526); + this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx1.Style.GradientAngle = 90; + this.panelEx1.TabIndex = 0; + this.panelEx1.Text = "panelEx1"; + // + // sideNav1 + // + this.sideNav1.BackColor = System.Drawing.SystemColors.Control; + this.sideNav1.Controls.Add(this.sideNavPanel1); + this.sideNav1.Controls.Add(this.sideNavPanel4); + this.sideNav1.Controls.Add(this.sideNavPanel3); + this.sideNav1.Controls.Add(this.sideNavPanel2); + this.sideNav1.Dock = System.Windows.Forms.DockStyle.Fill; + this.sideNav1.EnableClose = false; + this.sideNav1.EnableMaximize = false; + this.sideNav1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.sideNavItem1, + this.separator1, + this.sideNavItmCheck, + this.sideNavItmRepair, + this.sideNavItmLinks, + this.sideNavItmUsers, + this.sideNavItmExit}); + this.sideNav1.Location = new System.Drawing.Point(0, 0); + this.sideNav1.Name = "sideNav1"; + this.sideNav1.Padding = new System.Windows.Forms.Padding(1); + this.sideNav1.Size = new System.Drawing.Size(385, 526); + this.sideNav1.TabIndex = 3; + this.sideNav1.Text = "sideNav1"; + // + // sideNavPanel1 + // + this.sideNavPanel1.Controls.Add(this.warningBox3); + this.sideNavPanel1.Controls.Add(this.labelX7); + this.sideNavPanel1.Controls.Add(this.line1); + this.sideNavPanel1.Controls.Add(this.swCkObsoleteROData); + this.sideNavPanel1.Controls.Add(this.swHiddenDataLocs); + this.sideNavPanel1.Controls.Add(this.labelX3); + this.sideNavPanel1.Controls.Add(this.labelX2); + this.sideNavPanel1.Controls.Add(this.swCkOrphanDataRecs); + this.sideNavPanel1.Controls.Add(this.labelX1); + this.sideNavPanel1.Controls.Add(this.btnRunCheck); + this.sideNavPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.sideNavPanel1.Location = new System.Drawing.Point(81, 31); + this.sideNavPanel1.Name = "sideNavPanel1"; + this.sideNavPanel1.Size = new System.Drawing.Size(299, 494); + this.sideNavPanel1.TabIndex = 2; + // + // warningBox3 + // + this.warningBox3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); + this.warningBox3.CloseButtonVisible = false; + this.warningBox3.Image = ((System.Drawing.Image)(resources.GetObject("warningBox3.Image"))); + this.warningBox3.Location = new System.Drawing.Point(17, 207); + this.warningBox3.Name = "warningBox3"; + this.warningBox3.OptionsButtonVisible = false; + this.warningBox3.Size = new System.Drawing.Size(264, 32); + this.warningBox3.TabIndex = 29; + this.warningBox3.Text = "NOTE These tools can take a long time to run"; + // + // labelX7 + // + this.labelX7.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX7.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX7.Location = new System.Drawing.Point(5, 3); + this.labelX7.Name = "labelX7"; + this.labelX7.Size = new System.Drawing.Size(251, 22); + this.labelX7.TabIndex = 19; + this.labelX7.Text = "Check for these Data Issues:"; + // + // line1 + // + this.line1.BackColor = System.Drawing.Color.Transparent; + this.line1.Location = new System.Drawing.Point(8, 179); + this.line1.Name = "line1"; + this.line1.Size = new System.Drawing.Size(285, 12); + this.line1.TabIndex = 18; + this.line1.Text = "line1"; + // + // swCkObsoleteROData + // + // + // + // + this.swCkObsoleteROData.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swCkObsoleteROData.Location = new System.Drawing.Point(10, 99); + this.swCkObsoleteROData.Name = "swCkObsoleteROData"; + this.swCkObsoleteROData.Size = new System.Drawing.Size(91, 22); + this.swCkObsoleteROData.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swCkObsoleteROData, new DevComponents.DotNetBar.SuperTooltipInfo("Obsolete RO Data", "", resources.GetString("swCkObsoleteROData.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 135))); + this.swCkObsoleteROData.SwitchClickTogglesValue = true; + this.swCkObsoleteROData.TabIndex = 14; + this.swCkObsoleteROData.Value = true; + this.swCkObsoleteROData.ValueObject = "Y"; + this.swCkObsoleteROData.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // swHiddenDataLocs + // + // + // + // + this.swHiddenDataLocs.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swHiddenDataLocs.Location = new System.Drawing.Point(10, 71); + this.swHiddenDataLocs.Name = "swHiddenDataLocs"; + this.swHiddenDataLocs.Size = new System.Drawing.Size(91, 22); + this.swHiddenDataLocs.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swHiddenDataLocs, new DevComponents.DotNetBar.SuperTooltipInfo("Hidden Data Locations", "", resources.GetString("swHiddenDataLocs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); + this.swHiddenDataLocs.SwitchClickTogglesValue = true; + this.swHiddenDataLocs.TabIndex = 15; + this.swHiddenDataLocs.Value = true; + this.swHiddenDataLocs.ValueObject = "Y"; + this.swHiddenDataLocs.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // labelX3 + // + this.labelX3.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX3.Location = new System.Drawing.Point(107, 99); + this.labelX3.Name = "labelX3"; + this.labelX3.Size = new System.Drawing.Size(154, 22); + this.superTooltip1.SetSuperTooltip(this.labelX3, new DevComponents.DotNetBar.SuperTooltipInfo("Obsolete RO Data", "", resources.GetString("labelX3.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 135))); + this.labelX3.TabIndex = 11; + this.labelX3.Text = "Obsolete RO Data"; + // + // labelX2 + // + this.labelX2.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX2.Location = new System.Drawing.Point(107, 71); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(140, 22); + this.superTooltip1.SetSuperTooltip(this.labelX2, new DevComponents.DotNetBar.SuperTooltipInfo("Hidden Data Locations", "", resources.GetString("labelX2.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); + this.labelX2.TabIndex = 12; + this.labelX2.Text = "Hidden Data Locations"; + // + // swCkOrphanDataRecs + // + // + // + // + this.swCkOrphanDataRecs.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swCkOrphanDataRecs.Location = new System.Drawing.Point(10, 43); + this.swCkOrphanDataRecs.Name = "swCkOrphanDataRecs"; + this.swCkOrphanDataRecs.Size = new System.Drawing.Size(91, 22); + this.swCkOrphanDataRecs.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swCkOrphanDataRecs, new DevComponents.DotNetBar.SuperTooltipInfo("Orphan Data Records", "", resources.GetString("swCkOrphanDataRecs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(275, 193))); + this.swCkOrphanDataRecs.SwitchClickTogglesValue = true; + this.swCkOrphanDataRecs.TabIndex = 9; + this.swCkOrphanDataRecs.Value = true; + this.swCkOrphanDataRecs.ValueObject = "Y"; + this.swCkOrphanDataRecs.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // labelX1 + // + this.labelX1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX1.Location = new System.Drawing.Point(107, 43); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(172, 22); + this.superTooltip1.SetSuperTooltip(this.labelX1, new DevComponents.DotNetBar.SuperTooltipInfo("Orphan Data Records", "", resources.GetString("labelX1.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(275, 190))); + this.labelX1.TabIndex = 8; + this.labelX1.Text = "Orphan Data Records"; + // + // btnRunCheck + // + this.btnRunCheck.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnRunCheck.Checked = true; + this.btnRunCheck.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnRunCheck.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnRunCheck.Location = new System.Drawing.Point(5, 150); + this.btnRunCheck.Name = "btnRunCheck"; + this.btnRunCheck.Size = new System.Drawing.Size(286, 23); + this.btnRunCheck.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.btnRunCheck, new DevComponents.DotNetBar.SuperTooltipInfo("Run Check", "", "This will run the database check tools selected.\r\n\r\nClick on the on/off switches " + + "to turn on/off each tool.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 100))); + this.btnRunCheck.TabIndex = 7; + this.btnRunCheck.Text = "Run Check"; + this.btnRunCheck.Click += new System.EventHandler(this.btnRunCheck_Click); + // + // sideNavPanel4 + // + this.sideNavPanel4.Controls.Add(this.btn_ShowUsers); + this.sideNavPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.sideNavPanel4.Location = new System.Drawing.Point(81, 31); + this.sideNavPanel4.Name = "sideNavPanel4"; + this.sideNavPanel4.Size = new System.Drawing.Size(299, 494); + this.sideNavPanel4.TabIndex = 14; + this.sideNavPanel4.Visible = false; + // + // btn_ShowUsers + // + this.btn_ShowUsers.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btn_ShowUsers.Checked = true; + this.btn_ShowUsers.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btn_ShowUsers.Location = new System.Drawing.Point(57, 37); + this.btn_ShowUsers.Name = "btn_ShowUsers"; + this.btn_ShowUsers.Size = new System.Drawing.Size(171, 23); + this.btn_ShowUsers.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.btn_ShowUsers, new DevComponents.DotNetBar.SuperTooltipInfo("Show Users", "", "This will return all of the users currently with open sessions in the database an" + + "d the details of any items they have checked out.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 80))); + this.btn_ShowUsers.TabIndex = 0; + this.btn_ShowUsers.Text = "Show Users"; + this.btn_ShowUsers.Click += new System.EventHandler(this.btn_ShowUsers_Click); + // + // sideNavPanel2 + // + this.sideNavPanel2.Controls.Add(this.warningBox4); + this.sideNavPanel2.Controls.Add(this.warningBox2); + this.sideNavPanel2.Controls.Add(this.swRmObsoleteROData); + this.sideNavPanel2.Controls.Add(this.swRefreshWordAttmts); + this.sideNavPanel2.Controls.Add(this.swStandardHypenChars); + this.sideNavPanel2.Controls.Add(this.labelX4); + this.sideNavPanel2.Controls.Add(this.labelX5); + this.sideNavPanel2.Controls.Add(this.labelX9); + this.sideNavPanel2.Controls.Add(this.swRmOrphanDataRecs); + this.sideNavPanel2.Controls.Add(this.labelX10); + this.sideNavPanel2.Controls.Add(this.labelX8); + this.sideNavPanel2.Controls.Add(this.line2); + this.sideNavPanel2.Controls.Add(this.btnRunRepair); + this.sideNavPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.sideNavPanel2.Location = new System.Drawing.Point(81, 31); + this.sideNavPanel2.Name = "sideNavPanel2"; + this.sideNavPanel2.Size = new System.Drawing.Size(299, 494); + this.sideNavPanel2.TabIndex = 6; + this.sideNavPanel2.Visible = false; + // + // warningBox4 + // + this.warningBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); + this.warningBox4.CloseButtonVisible = false; + this.warningBox4.Image = ((System.Drawing.Image)(resources.GetObject("warningBox4.Image"))); + this.warningBox4.Location = new System.Drawing.Point(17, 234); + this.warningBox4.Name = "warningBox4"; + this.warningBox4.OptionsButtonVisible = false; + this.warningBox4.Size = new System.Drawing.Size(264, 32); + this.warningBox4.TabIndex = 30; + this.warningBox4.Text = "NOTE These tools can take a long time to run"; + // + // warningBox2 + // + this.warningBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); + this.warningBox2.CloseButtonVisible = false; + this.warningBox2.Image = ((System.Drawing.Image)(resources.GetObject("warningBox2.Image"))); + this.warningBox2.Location = new System.Drawing.Point(17, 272); + this.warningBox2.Name = "warningBox2"; + this.warningBox2.OptionsButtonVisible = false; + this.warningBox2.Size = new System.Drawing.Size(264, 43); + this.warningBox2.TabIndex = 28; + this.warningBox2.Text = " Be sure there is a current backup of the \r\n database prior to running these func" + + "tions"; + // + // swRmObsoleteROData + // + // + // + // + this.swRmObsoleteROData.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swRmObsoleteROData.Location = new System.Drawing.Point(10, 66); + this.swRmObsoleteROData.Name = "swRmObsoleteROData"; + this.swRmObsoleteROData.Size = new System.Drawing.Size(91, 22); + this.swRmObsoleteROData.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swRmObsoleteROData, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Obsolete RO Data", "", resources.GetString("swRmObsoleteROData.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 205))); + this.swRmObsoleteROData.SwitchClickTogglesValue = true; + this.swRmObsoleteROData.TabIndex = 26; + this.swRmObsoleteROData.Value = true; + this.swRmObsoleteROData.ValueObject = "Y"; + this.swRmObsoleteROData.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // swRefreshWordAttmts + // + // + // + // + this.swRefreshWordAttmts.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swRefreshWordAttmts.Location = new System.Drawing.Point(10, 122); + this.swRefreshWordAttmts.Name = "swRefreshWordAttmts"; + this.swRefreshWordAttmts.Size = new System.Drawing.Size(91, 22); + this.swRefreshWordAttmts.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swRefreshWordAttmts, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("swRefreshWordAttmts.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200))); + this.swRefreshWordAttmts.SwitchClickTogglesValue = true; + this.swRefreshWordAttmts.TabIndex = 27; + this.swRefreshWordAttmts.Value = true; + this.swRefreshWordAttmts.ValueObject = "Y"; + this.swRefreshWordAttmts.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // swStandardHypenChars + // + // + // + // + this.swStandardHypenChars.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swStandardHypenChars.Location = new System.Drawing.Point(10, 94); + this.swStandardHypenChars.Name = "swStandardHypenChars"; + this.swStandardHypenChars.Size = new System.Drawing.Size(91, 22); + this.swStandardHypenChars.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swStandardHypenChars, new DevComponents.DotNetBar.SuperTooltipInfo("Standardize Hyphen Characters", "", resources.GetString("swStandardHypenChars.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(225, 129))); + this.swStandardHypenChars.SwitchClickTogglesValue = true; + this.swStandardHypenChars.TabIndex = 27; + this.swStandardHypenChars.Value = true; + this.swStandardHypenChars.ValueObject = "Y"; + this.swStandardHypenChars.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // labelX4 + // + this.labelX4.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX4.Location = new System.Drawing.Point(107, 66); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(167, 22); + this.superTooltip1.SetSuperTooltip(this.labelX4, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Obsolete RO Data", "", resources.GetString("labelX4.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 205))); + this.labelX4.TabIndex = 24; + this.labelX4.Text = "Remove Obsolete RO Data"; + // + // labelX5 + // + this.labelX5.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX5.Location = new System.Drawing.Point(107, 122); + this.labelX5.Name = "labelX5"; + this.labelX5.Size = new System.Drawing.Size(186, 22); + this.superTooltip1.SetSuperTooltip(this.labelX5, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("labelX5.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200))); + this.labelX5.TabIndex = 25; + this.labelX5.Text = "Refresh Word Attachments"; + // + // labelX9 + // + this.labelX9.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX9.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX9.Location = new System.Drawing.Point(107, 94); + this.labelX9.Name = "labelX9"; + this.labelX9.Size = new System.Drawing.Size(186, 22); + this.superTooltip1.SetSuperTooltip(this.labelX9, new DevComponents.DotNetBar.SuperTooltipInfo("Standardize Hyphen Characters", "", resources.GetString("labelX9.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(225, 129))); + this.labelX9.TabIndex = 25; + this.labelX9.Text = "Standardize Hyphen Characters"; + // + // swRmOrphanDataRecs + // + // + // + // + this.swRmOrphanDataRecs.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swRmOrphanDataRecs.Location = new System.Drawing.Point(10, 38); + this.swRmOrphanDataRecs.Name = "swRmOrphanDataRecs"; + this.swRmOrphanDataRecs.Size = new System.Drawing.Size(91, 22); + this.swRmOrphanDataRecs.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swRmOrphanDataRecs, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Orphan Data Records", "", resources.GetString("swRmOrphanDataRecs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(325, 140))); + this.swRmOrphanDataRecs.SwitchClickTogglesValue = true; + this.swRmOrphanDataRecs.TabIndex = 23; + this.swRmOrphanDataRecs.Value = true; + this.swRmOrphanDataRecs.ValueObject = "Y"; + this.swRmOrphanDataRecs.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); + // + // labelX10 + // + this.labelX10.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX10.Location = new System.Drawing.Point(107, 38); + this.labelX10.Name = "labelX10"; + this.labelX10.Size = new System.Drawing.Size(184, 22); + this.superTooltip1.SetSuperTooltip(this.labelX10, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Orphan Data Records", "", resources.GetString("labelX10.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(325, 140))); + this.labelX10.TabIndex = 22; + this.labelX10.Text = "Remove Orphan Data Records"; + // + // labelX8 + // + this.labelX8.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX8.Location = new System.Drawing.Point(5, 3); + this.labelX8.Name = "labelX8"; + this.labelX8.Size = new System.Drawing.Size(251, 22); + this.labelX8.TabIndex = 21; + this.labelX8.Text = "Repair these Data Issues:"; + // + // line2 + // + this.line2.BackColor = System.Drawing.Color.Transparent; + this.line2.Location = new System.Drawing.Point(9, 207); + this.line2.Name = "line2"; + this.line2.Size = new System.Drawing.Size(281, 12); + this.line2.TabIndex = 20; + this.line2.Text = "line2"; + // + // btnRunRepair + // + this.btnRunRepair.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnRunRepair.Checked = true; + this.btnRunRepair.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnRunRepair.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnRunRepair.Location = new System.Drawing.Point(10, 168); + this.btnRunRepair.Name = "btnRunRepair"; + this.btnRunRepair.Size = new System.Drawing.Size(280, 23); + this.btnRunRepair.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.btnRunRepair, new DevComponents.DotNetBar.SuperTooltipInfo("Run Repair", "", "This will run the database repair tools selected.\r\n\r\nClick on the on/off switches" + + " to turn on/off each tool.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 103))); + this.btnRunRepair.TabIndex = 3; + this.btnRunRepair.Text = "Run Repair"; + this.btnRunRepair.Click += new System.EventHandler(this.btnRunRepair_Click); + // + // sideNavPanel3 + // + this.sideNavPanel3.Controls.Add(this.warningBox5); + this.sideNavPanel3.Controls.Add(this.line3); + this.sideNavPanel3.Controls.Add(this.swUpdateROVals); + this.sideNavPanel3.Controls.Add(this.swRefreshTrans); + this.sideNavPanel3.Controls.Add(this.labelX11); + this.sideNavPanel3.Controls.Add(this.labelX6); + this.sideNavPanel3.Controls.Add(this.warningBox1); + this.sideNavPanel3.Controls.Add(this.myTV); + this.sideNavPanel3.Controls.Add(this.btnFixLinks); + this.sideNavPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.sideNavPanel3.Location = new System.Drawing.Point(81, 31); + this.sideNavPanel3.Name = "sideNavPanel3"; + this.sideNavPanel3.Size = new System.Drawing.Size(299, 494); + this.sideNavPanel3.TabIndex = 10; + this.sideNavPanel3.Visible = false; + // + // warningBox5 + // + this.warningBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); + this.warningBox5.CloseButtonVisible = false; + this.warningBox5.Image = ((System.Drawing.Image)(resources.GetObject("warningBox5.Image"))); + this.warningBox5.Location = new System.Drawing.Point(17, 117); + this.warningBox5.Name = "warningBox5"; + this.warningBox5.OptionsButtonVisible = false; + this.warningBox5.Size = new System.Drawing.Size(262, 32); + this.warningBox5.TabIndex = 31; + this.warningBox5.Text = "NOTE These tools can take a long time to run"; + // + // line3 + // + this.line3.BackColor = System.Drawing.Color.Transparent; + this.line3.Location = new System.Drawing.Point(9, 97); + this.line3.Name = "line3"; + this.line3.Size = new System.Drawing.Size(285, 12); + this.line3.TabIndex = 30; + this.line3.Text = "line3"; + // + // swUpdateROVals + // + // + // + // + this.swUpdateROVals.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swUpdateROVals.Location = new System.Drawing.Point(10, 10); + this.swUpdateROVals.Name = "swUpdateROVals"; + this.swUpdateROVals.Size = new System.Drawing.Size(91, 22); + this.swUpdateROVals.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swUpdateROVals, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("swUpdateROVals.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150))); + this.swUpdateROVals.SwitchClickTogglesValue = true; + this.swUpdateROVals.TabIndex = 29; + this.swUpdateROVals.Value = true; + this.swUpdateROVals.ValueObject = "Y"; + this.swUpdateROVals.ValueChanged += new System.EventHandler(this.swUpdateROVals_ValueChanged); + // + // swRefreshTrans + // + // + // + // + this.swRefreshTrans.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.swRefreshTrans.Location = new System.Drawing.Point(10, 38); + this.swRefreshTrans.Name = "swRefreshTrans"; + this.swRefreshTrans.Size = new System.Drawing.Size(91, 22); + this.swRefreshTrans.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.swRefreshTrans, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("swRefreshTrans.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(265, 175))); + this.swRefreshTrans.SwitchClickTogglesValue = true; + this.swRefreshTrans.TabIndex = 29; + this.swRefreshTrans.ValueChanged += new System.EventHandler(this.swRefreshTrans_ValueChanged); + // + // labelX11 + // + this.labelX11.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX11.Location = new System.Drawing.Point(107, 10); + this.labelX11.Name = "labelX11"; + this.labelX11.Size = new System.Drawing.Size(186, 22); + this.superTooltip1.SetSuperTooltip(this.labelX11, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("labelX11.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150))); + this.labelX11.TabIndex = 28; + this.labelX11.Text = "Update RO Values"; + // + // labelX6 + // + this.labelX6.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelX6.Location = new System.Drawing.Point(107, 38); + this.labelX6.Name = "labelX6"; + this.labelX6.Size = new System.Drawing.Size(186, 22); + this.superTooltip1.SetSuperTooltip(this.labelX6, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("labelX6.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(256, 175))); + this.labelX6.TabIndex = 28; + this.labelX6.Text = "Refresh Transitions"; + // + // warningBox1 + // + this.warningBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); + this.warningBox1.CloseButtonVisible = false; + this.warningBox1.Image = ((System.Drawing.Image)(resources.GetObject("warningBox1.Image"))); + this.warningBox1.Location = new System.Drawing.Point(17, 153); + this.warningBox1.Name = "warningBox1"; + this.warningBox1.OptionsButtonVisible = false; + this.warningBox1.Size = new System.Drawing.Size(262, 43); + this.warningBox1.TabIndex = 7; + this.warningBox1.Text = " Be sure there is a current backup of the \r\n database prior to running these func" + + "tions"; + // + // btnFixLinks + // + this.btnFixLinks.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnFixLinks.Checked = true; + this.btnFixLinks.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnFixLinks.Location = new System.Drawing.Point(10, 71); + this.btnFixLinks.Name = "btnFixLinks"; + this.btnFixLinks.Size = new System.Drawing.Size(280, 23); + this.btnFixLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.superTooltip1.SetSuperTooltip(this.btnFixLinks, new DevComponents.DotNetBar.SuperTooltipInfo("Fix Links", "", "This will run the selected RO Links or Transitions Links tool.\r\n\r\nClick on the on" + + "/off switches to turn on/off each tool.\r\n\r\nNote that only one of these tools can" + + " be run at a time.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 130))); + this.btnFixLinks.TabIndex = 6; + this.btnFixLinks.Text = "Fix Links"; + this.btnFixLinks.Click += new System.EventHandler(this.btnFixLinks_Click); + // + // sideNavItem1 + // + this.sideNavItem1.IsSystemMenu = true; + this.sideNavItem1.Name = "sideNavItem1"; + this.sideNavItem1.Symbol = ""; + this.sideNavItem1.Text = "Admin\r\nTools"; + // + // separator1 + // + this.separator1.FixedSize = new System.Drawing.Size(3, 1); + this.separator1.Name = "separator1"; + this.separator1.Padding.Bottom = 2; + this.separator1.Padding.Left = 6; + this.separator1.Padding.Right = 6; + this.separator1.Padding.Top = 2; + this.separator1.SeparatorOrientation = DevComponents.DotNetBar.eDesignMarkerOrientation.Vertical; + // + // sideNavItmCheck + // + this.sideNavItmCheck.Checked = true; + this.sideNavItmCheck.Name = "sideNavItmCheck"; + this.sideNavItmCheck.Panel = this.sideNavPanel1; + this.sideNavItmCheck.Symbol = ""; + this.sideNavItmCheck.Text = "Check"; + this.sideNavItmCheck.Click += new System.EventHandler(this.sideNavItmCheck_Click); + // + // sideNavItmRepair + // + this.sideNavItmRepair.Name = "sideNavItmRepair"; + this.sideNavItmRepair.Panel = this.sideNavPanel2; + this.sideNavItmRepair.Symbol = ""; + this.sideNavItmRepair.Text = "Repair"; + this.sideNavItmRepair.Click += new System.EventHandler(this.sideNavItmRepair_Click); + // + // sideNavItmLinks + // + this.sideNavItmLinks.Name = "sideNavItmLinks"; + this.sideNavItmLinks.Panel = this.sideNavPanel3; + this.sideNavItmLinks.Symbol = ""; + this.sideNavItmLinks.Text = "Links"; + this.sideNavItmLinks.Click += new System.EventHandler(this.sideNavItmLinks_Click); + // + // sideNavItmUsers + // + this.sideNavItmUsers.Name = "sideNavItmUsers"; + this.sideNavItmUsers.Panel = this.sideNavPanel4; + this.sideNavItmUsers.Symbol = ""; + this.sideNavItmUsers.Text = "Users"; + this.sideNavItmUsers.Click += new System.EventHandler(this.sideNavItmUsers_Click); + // + // sideNavItmExit + // + this.sideNavItmExit.Name = "sideNavItmExit"; + this.sideNavItmExit.Symbol = ""; + this.sideNavItmExit.Text = "Exit"; + this.sideNavItmExit.Click += new System.EventHandler(this.sideNavItmExit_Click); + // + // panelEx4 + // + this.panelEx4.CanvasColor = System.Drawing.SystemColors.Control; + this.panelEx4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelEx4.Controls.Add(this.progressSteps1); + this.panelEx4.Controls.Add(this.lblAdmToolProgressType); + this.panelEx4.DialogResult = System.Windows.Forms.DialogResult.OK; + this.panelEx4.DisabledBackColor = System.Drawing.Color.Empty; + this.panelEx4.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelEx4.Location = new System.Drawing.Point(0, 0); + this.panelEx4.Name = "panelEx4"; + this.panelEx4.Size = new System.Drawing.Size(1177, 56); + this.panelEx4.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelEx4.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelEx4.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelEx4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelEx4.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelEx4.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelEx4.Style.GradientAngle = 90; + this.panelEx4.TabIndex = 20; + // + // progressSteps1 + // + this.progressSteps1.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.progressSteps1.BackgroundStyle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); + this.progressSteps1.BackgroundStyle.Class = "ProgressSteps"; + this.progressSteps1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.progressSteps1.ContainerControlProcessDialogKey = true; + this.progressSteps1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.progressSteps1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.stepItem1, + this.stepItem2, + this.stepItem3, + this.stepItem4}); + this.progressSteps1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + this.progressSteps1.Location = new System.Drawing.Point(123, 18); + this.progressSteps1.Name = "progressSteps1"; + this.progressSteps1.Size = new System.Drawing.Size(1032, 26); + this.progressSteps1.TabIndex = 18; + // + // stepItem1 + // + this.stepItem1.Maximum = 10; + this.stepItem1.Name = "stepItem1"; + this.stepItem1.SymbolSize = 13F; + this.stepItem1.Text = "Discon"; + // + // stepItem2 + // + this.stepItem2.Maximum = 10; + this.stepItem2.Name = "stepItem2"; + this.stepItem2.SymbolSize = 13F; + this.stepItem2.Text = "Non-Edit"; + // + // stepItem3 + // + this.stepItem3.Maximum = 10; + this.stepItem3.Name = "stepItem3"; + this.stepItem3.SymbolSize = 13F; + this.stepItem3.Text = "RO Assoc"; + // + // stepItem4 + // + this.stepItem4.Maximum = 10; + this.stepItem4.Name = "stepItem4"; + this.stepItem4.SymbolSize = 13F; + this.stepItem4.Text = "FST+Figs"; + // + // lblAdmToolProgressType + // + this.lblAdmToolProgressType.BackColor = System.Drawing.Color.Transparent; + // + // + // + this.lblAdmToolProgressType.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.lblAdmToolProgressType.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAdmToolProgressType.Location = new System.Drawing.Point(19, 10); + this.lblAdmToolProgressType.Name = "lblAdmToolProgressType"; + this.lblAdmToolProgressType.Size = new System.Drawing.Size(98, 34); + this.lblAdmToolProgressType.TabIndex = 19; + this.lblAdmToolProgressType.Text = "Checking:"; + // + // superTooltip1 + // + this.superTooltip1.DefaultTooltipSettings = new DevComponents.DotNetBar.SuperTooltipInfo("", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Gray); + this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; + // // frmBatchRefresh // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(994, 472); - this.Controls.Add(this.scBatch); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.ClientSize = new System.Drawing.Size(1177, 586); + this.Controls.Add(this.splitContainer3); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmBatchRefresh"; + this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Administrative Tools"; this.Load += new System.EventHandler(this.frmBatchRefresh_Load); - this.scBatch.Panel1.ResumeLayout(false); - this.scBatch.Panel2.ResumeLayout(false); - this.scBatch.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.ResumeLayout(false); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - this.splitContainer1.Panel2.PerformLayout(); - this.splitContainer1.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel2.ResumeLayout(false); + this.splitContainer3.ResumeLayout(false); + this.panelEx3.ResumeLayout(false); + this.panelEx3.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panelEx2.ResumeLayout(false); + this.panelEx2.PerformLayout(); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.pnlLater.ResumeLayout(false); this.pnlLater.PerformLayout(); - this.panel1.ResumeLayout(false); + this.panelEx1.ResumeLayout(false); + this.sideNav1.ResumeLayout(false); + this.sideNav1.PerformLayout(); + this.sideNavPanel1.ResumeLayout(false); + this.sideNavPanel4.ResumeLayout(false); + this.sideNavPanel2.ResumeLayout(false); + this.sideNavPanel3.ResumeLayout(false); + this.panelEx4.ResumeLayout(false); this.ResumeLayout(false); } #endregion - private System.Windows.Forms.SplitContainer scBatch; - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.Button btnSave; - private System.Windows.Forms.Button btnClear; - private System.Windows.Forms.Button btnRefresh; - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; + private System.Windows.Forms.TreeView myTV; + private System.Windows.Forms.SplitContainer splitContainer3; + private DevComponents.DotNetBar.PanelEx panelEx3; private System.Windows.Forms.TextBox txtResults; private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.TreeView myTV; - private System.Windows.Forms.DateTimePicker dtpTime; - private System.Windows.Forms.DateTimePicker dtpDate; - private System.Windows.Forms.Panel pnlLater; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; + private System.Windows.Forms.Button btnSave; + private System.Windows.Forms.Button btnClear; + private System.Windows.Forms.Label label3; + private DevComponents.DotNetBar.PanelEx panelEx2; private System.Windows.Forms.TextBox txtProcess; private System.Windows.Forms.ProgressBar pbProcess; - private DevComponents.DotNetBar.Controls.ComboBoxEx cbxAdminTools; - private System.Windows.Forms.Label lblCaption; - private System.Windows.Forms.Label lblDescription; - private System.Windows.Forms.Label lblWarning; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel pnlLater; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.DateTimePicker dtpTime; + private System.Windows.Forms.DateTimePicker dtpDate; private System.Windows.Forms.CheckBox chkLater; + private System.Windows.Forms.Label label4; + private DevComponents.DotNetBar.Controls.SideNav sideNav1; + private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel1; + private DevComponents.DotNetBar.LabelX labelX7; + private DevComponents.DotNetBar.Controls.Line line1; + private DevComponents.DotNetBar.Controls.SwitchButton swCkObsoleteROData; + private DevComponents.DotNetBar.Controls.SwitchButton swHiddenDataLocs; + private DevComponents.DotNetBar.LabelX labelX3; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.Controls.SwitchButton swCkOrphanDataRecs; + private DevComponents.DotNetBar.LabelX labelX1; + private DevComponents.DotNetBar.ButtonX btnRunCheck; + private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel2; + private DevComponents.DotNetBar.Controls.SwitchButton swRmObsoleteROData; + private DevComponents.DotNetBar.Controls.SwitchButton swRefreshWordAttmts; + private DevComponents.DotNetBar.Controls.SwitchButton swStandardHypenChars; + private DevComponents.DotNetBar.LabelX labelX4; + private DevComponents.DotNetBar.LabelX labelX5; + private DevComponents.DotNetBar.LabelX labelX9; + private DevComponents.DotNetBar.Controls.SwitchButton swRmOrphanDataRecs; + private DevComponents.DotNetBar.LabelX labelX10; + private DevComponents.DotNetBar.LabelX labelX8; + private DevComponents.DotNetBar.Controls.Line line2; + private DevComponents.DotNetBar.ButtonX btnRunRepair; + private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel4; + private DevComponents.DotNetBar.ButtonX btn_ShowUsers; + private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel3; + private DevComponents.DotNetBar.ButtonX btnFixLinks; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItem1; + private DevComponents.DotNetBar.Separator separator1; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItmCheck; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItmRepair; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItmLinks; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItmUsers; + private DevComponents.DotNetBar.Controls.SideNavItem sideNavItmExit; + private DevComponents.DotNetBar.LabelX lblAdmToolProgressType; + private DevComponents.DotNetBar.ProgressSteps progressSteps1; + private DevComponents.DotNetBar.StepItem stepItem1; + private DevComponents.DotNetBar.StepItem stepItem2; + private DevComponents.DotNetBar.StepItem stepItem3; + private DevComponents.DotNetBar.StepItem stepItem4; + private DevComponents.DotNetBar.SuperTooltip superTooltip1; + private DevComponents.DotNetBar.ExpandableSplitter expandableSplitter2; + private DevComponents.DotNetBar.ExpandableSplitter expandableSplitter1; + private DevComponents.DotNetBar.PanelEx panelEx1; + private DevComponents.DotNetBar.PanelEx panelEx4; + private DevComponents.DotNetBar.Controls.WarningBox warningBox1; + private DevComponents.DotNetBar.Controls.SwitchButton swUpdateROVals; + private DevComponents.DotNetBar.Controls.SwitchButton swRefreshTrans; + private DevComponents.DotNetBar.LabelX labelX11; + private DevComponents.DotNetBar.LabelX labelX6; + private DevComponents.DotNetBar.Controls.WarningBox warningBox5; + private DevComponents.DotNetBar.Controls.Line line3; + private DevComponents.DotNetBar.Controls.WarningBox warningBox3; + private DevComponents.DotNetBar.Controls.WarningBox warningBox4; + private DevComponents.DotNetBar.Controls.WarningBox warningBox2; } } \ No newline at end of file diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs index 672218ba..31d0e4f2 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs @@ -21,117 +21,70 @@ namespace VEPROMS get { return _MySessionInfo; } set { _MySessionInfo = value; } } - public frmBatchRefresh() + + // C2017-030 - new Admin Tools user interface + // pass in session info to constructor + public frmBatchRefresh(SessionInfo sessionInfo) { InitializeComponent(); + _MySessionInfo = sessionInfo; + setupProgessSteps1(); // C2017-030 - new Admin Tools user interface } - private AdminTools adminToolsList; - private AdminTool selectedAdminTool; - // removed the Refresh ROs and Refresh Transitions and ROs options (now only Transitions can be refreshed) + // NOTE: removed the Refresh ROs and Refresh Transitions and ROs options (now only Transitions can be refreshed) // the Update ROs and Refresh ROs logic was merged together. The Update ROs will functionally do both // also annotations will be placed on step elements that have RO changes - private void SetUpAdminTools() - { - adminToolsList = new AdminTools(); - adminToolsList.Add("Update RO Values" - , "Update RO Values Guidance" - , "This allows the user to update referenced objects values for multiple working drafts in a batch mode." - , "It is recommended that this be done during off hours." - , "WARNING:" - , true // True means Exclude Procedures - , false - , UpdateROValues); - adminToolsList.Add("Refresh Transitions", "Refresh Transitions Guidance", "Occasionally, transitions do not get updated.\r\n\r\nThis function will refresh transitions in all procedures selected below whether they were selected individually or as a group via a procedure set.", "If more than one procedure is selected, it is recommened that this be performed during off hours.", "WARNING:", false, false, RefreshTransitions); - adminToolsList.Add("Fix Hyphens", "Fix Hyphens", "Replace various forms of Hyphens with a consistent Hyphen so that search will find all Hyphens", "", "", true, true, "vesp_FixHyphens", FixHyphens); - adminToolsList.Add("Delete PDFs", "Delete PDFs Guidance", "It is sometimes desirable to clean up the database by removing extra pdf files. This process allows for this to occur", "", "", true, true, "vesp_DeletePDFs", DeletePDFs); - adminToolsList.Add("Identify Disconnected Items" - , "Identify Disconnected Items Guidance" - , "Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.\r\n\r\nOccasionally, an item will become disconnected and does not know where it fits into the relationships. This tool identifies whether the database has this condition." - , "This tool may take an extended period of time to execute." - , "NOTE:" - , true - , true - , "vesp_GetDisconnectedItemsCount" - , IdentifyDisconnectedItems); - adminToolsList.Add("Purge Disconnected Items" - , "Purge Disconnected Items Guidance" - , "Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.\r\n\r\nOccasionally, an item will become disconnected and does not know where it fits into the relationships. This tool removes any disconnected items from the database." - , "Be sure to have a backup prior to running this!!\r\n\r\nThis tool may take an extended period of time to execute." - , "Warning:" - , true - , true - , "vesp_PurgeDisconnectedData" - , PurgeDisconnectedItems); - adminToolsList.Add("Identify Non-Editable Items", "Identify Non-Editable Items Guidance", "Typically, a section in PROMS only has sub-sections or sub-steps. There are times when a section has both. When this occurs, the sub-step data can be marked as non-editable. If this occurs, the user can no longer get to these steps and they can become forgotten.\r\n\r\nThis tool will identify if the database has non-editable steps and provide a listing of these steps.", "This tool may take an extended period of time to execute.", "NOTE:", true, true, "vesp_GetNonEditableItems", IdentifyNonEditableItems); - adminToolsList.Add("Get Database Users", "Get Database Users Guidance", "This administrative tool will return all of the users currently with open sessions in the database and the details of any items they have checked out", "", "", true, true, "vesp_GetDatabaseSessions", GetDatabaseSessions); - adminToolsList.Add("Clean Up Referenced Object Associations" - , "Clean Up Referenced Object Associations Guidance" - , "Referenced Objects are associated with a procedure set (such as Working Draft). If unnecessary associations exist, these can be removed." - , "Be sure to have a backup prior to running this!!" - , "NOTE:" - , true - , true - , "vesp_CleanUpROAssociations" - , CleanUpROAssociations); - adminToolsList.Add("Remove Unused ROFSTs and Figures" - , "Remove Unused ROFSTs and Figures Guidance" - , "This tool removes any ROFSTs and Figures that are no longer used." - , "Be sure to have a backup prior to running this!!" - , "NOTE:" - , true - , true - , "vesp_RemoveUnusedRoFstsAndFigures" - , RemoveUnusedRoFstsAndFigures); - adminToolsList.Add("Identify Unused RO Associations" - , "Identify Unused RO Associations Guidance" - , "Referenced Objects are associated with a procedure set (such as Working Draft). If unnecessary associations exist, these can be removed." - , "" - , "NOTE:" - , true - , true - , "vesp_GetUnusedROAssociationsCount" - , IdentifyROAssociations); - adminToolsList.Add("Identify Unused ROFSTs and Figures" - , "Identify Unused ROFSTs and Figures Guidance" - , "This tool identifies any ROFSTs and Figures that are no longer used." - , "" - , "NOTE:" - , true - , true - , "vesp_GetUnusedRoFstsCount" - , IdentifyUnusedRoFstsAndFigures); - //adminToolsList.Add("Find Referenced Object Problems", "Find Referenced Object Problems Guidance", "description for find ro problems", "", "", true, true, "vesp_FindROProblems", FindROProblems); - adminToolsList.Sort(); - cbxAdminTools.DataSource = adminToolsList; - cbxAdminTools.DisplayMember = "Title"; - cbxAdminTools.SelectedIndex = -1; - } + // make all of the hyphen character consistant so they can all be found with the Search function private void FixHyphens() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Standardizing Hyphens"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); - int affectedRows = ESP_FixHyphens.Execute(selectedAdminTool.StoredProcedure)/2;// Two results for each change + int affectedRows = ESP_FixHyphens.Execute("vesp_FixHyphens") / 2;// Two results for each change txtProcess.AppendText(string.Format("Fixed {0} Hyphens", affectedRows)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); + //txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText(string.Format("{0} Hyphens were Fixed.", affectedRows)); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + private Dictionary myProcedures = new Dictionary(); private Dictionary myDocVersions = new Dictionary(); private void frmBatchRefresh_Load(object sender, EventArgs e) { - SetUpAdminTools(); - lblWarning.Visible = false; } + // C2017-030 - new Admin Tools user interface + // check to see if at least one tree node is checked. + // Used to determin whether to make the process button active for + // Refresh Transitions and for Update RO Values + private bool AtLeastOneNodeChecked() + { + foreach (TreeNode tn in myTV.Nodes) + if (NodeIsChecked(tn)) + return true; + return false; + } + private bool NodeIsChecked(TreeNode tn) + { + if (tn.Checked) return true; + if (tn.GetNodeCount(true) > 0) + foreach (TreeNode chnd in tn.Nodes) + if (NodeIsChecked(chnd)) + return true; + return false; + } + private List myTreeNodePath; private void ResetTV() { @@ -139,19 +92,18 @@ namespace VEPROMS } private void ResetTV(bool noProcs) { + btnFixLinks.Enabled = false; this.Cursor = Cursors.WaitCursor; myTreeNodePath = new List(); myTV.Nodes.Clear(); - if (!selectedAdminTool.NoTreeView) - { - FolderInfo fi = FolderInfo.GetTop(); - TreeNode tn = myTV.Nodes.Add(fi.Name); - tn.Tag = fi; - if (fi.ChildFolderCount > 0) - LoadChildFolders(fi, tn, noProcs); - if (myTV.SelectedNode != null) - myTV.SelectedNode.Expand(); - } + myDocVersions.Clear(); + FolderInfo fi = FolderInfo.GetTop(); + TreeNode tn = myTV.Nodes.Add(fi.Name); + tn.Tag = fi; + if (fi.ChildFolderCount > 0) + LoadChildFolders(fi, tn, noProcs); + if (myTV.SelectedNode != null) + myTV.SelectedNode.Expand(); this.Cursor = Cursors.Default; } private void LoadChildFolders(FolderInfo fi, TreeNode tn, bool noProcs) @@ -219,6 +171,7 @@ namespace VEPROMS foreach (FolderInfo cf in f.SortedChildFolders) LoadFolderInfo(cf); } + private void UpdateROValues() { this.Cursor = Cursors.WaitCursor; @@ -227,8 +180,9 @@ namespace VEPROMS if (tn.Checked) dvil.Add(myDocVersions[tn]); DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Update RO Values"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); pbProcess.Minimum = 0; @@ -262,15 +216,15 @@ namespace VEPROMS Application.DoEvents(); } } + DateTime pEnd = DateTime.Now; + txtProcess.AppendText(string.Format("Completed: {0} {1} Seconds Elapsed", pEnd.ToString("MM/dd/yyyy @ HH:mm"), TimeSpan.FromTicks(pEnd.Ticks - pStart.Ticks).TotalSeconds)); + Application.DoEvents(); // when processing more than one procedure set, display only one completed message after all are processed if (ROFstInfo.MessageList != null) { FlexibleMessageBox.Show(ROFstInfo.MessageList.ToString(), "RO Update Complete"); ROFstInfo.MessageList = null; } - DateTime pEnd = DateTime.Now; - txtProcess.AppendText(string.Format("{0} {1} Seconds Elapsed", pEnd.ToString("MM/dd/yyyy @ HH:mm"), TimeSpan.FromTicks(pEnd.Ticks - pStart.Ticks).TotalSeconds)); - Application.DoEvents(); if (dvil.Count > 0) { StringBuilder sb = new StringBuilder(); @@ -293,9 +247,12 @@ namespace VEPROMS } } this.Cursor = Cursors.Default; - } + } + private void RefreshTransitions() { + int numTransProcessed = 0; + int numTransFixed = 0; this.Cursor = Cursors.WaitCursor; List pil = new List(); foreach (TreeNode tn in myProcedures.Keys) @@ -303,8 +260,9 @@ namespace VEPROMS pil.Add(myProcedures[tn]); //PopulateTransitionInfoLists(pil); DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Refresh Transitions"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); pbProcess.Minimum = 0; @@ -329,14 +287,18 @@ namespace VEPROMS } else { + txtResults.AppendText(string.Format("Processing {0} {1}", pq.DisplayNumber, pq.DisplayText)); + txtResults.AppendText(Environment.NewLine); RefreshProcedureTransitions(pq); + numTransProcessed += ProcedureInfo.TranCheckCount; + numTransFixed += ProcedureInfo.TranFixCount; pbProcess.PerformStep(); Application.DoEvents(); } } ContentInfo.StaticContentInfoChange -= new StaticContentInfoEvent(ContentInfo_StaticContentInfoChange); DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); Application.DoEvents(); if (pil.Count > 0) { @@ -360,112 +322,145 @@ namespace VEPROMS } } this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); + if (numTransFixed == 0) + MessageBox.Show(string.Format("{0} Transitions Checked.\n\nNo Transitions needed fixed.",numTransProcessed), "Refresh Transitions Completed"); + else + MessageBox.Show(string.Format("{0} Transitions Checked.\n\n {1} Transitions needed fixed.", numTransProcessed, numTransFixed), "Refresh Transitions Completed"); } + + // C2017-030 - new Admin Tools user interface + // tool renamed to Refresh Word Attachments + // removes the saved attachment PDFs from the database to force PROMS to regenerate them + // the next time the procedures are printed. This also forces ROs to be refreshed in the attachments private void DeletePDFs() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Refreshing Word Attachments"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); - int affectedRows = ESP_DeletePDFs.Execute(selectedAdminTool.StoredProcedure); - txtProcess.AppendText(string.Format("Deleted {0} PDFs", affectedRows)); - txtProcess.AppendText(Environment.NewLine); + int affectedRows = ESP_DeletePDFs.Execute("vesp_DeletePDFs"); + txtProcess.AppendText(string.Format("Word Attachments Refreshed: {0}", affectedRows)); txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText(string.Format("{0} Word Attachments Refreshed.", affectedRows)); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // tool renamed to Identify Orphan Items private void IdentifyDisconnectedItems() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Identifing Orphan Items"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); - int rowCount = ESP_IdentifyDisconnectedItems.Execute(selectedAdminTool.StoredProcedure); - txtProcess.AppendText(string.Format("Disconnected Items Count: {0}", rowCount)); - txtProcess.AppendText(Environment.NewLine); + int rowCount = ESP_IdentifyDisconnectedItems.Execute("vesp_GetDisconnectedItemsCount"); + txtProcess.AppendText(string.Format("Orphan Items Count: {0}", rowCount)); txtProcess.AppendText(Environment.NewLine); if (rowCount > 0) { - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contains {0} disconnected items.", rowCount)); + txtResults.AppendText(string.Format("The database contains {0} Orphan items.", rowCount)); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText("These can be removed via the Remove Orphan Data Records in the Repair tools"); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText("It is recommended you contact Volian to assist in resolving this condition"); } else { - txtResults.Text = "No Disconnected Records Found";// B2017-108 Always output results even if there isn't any + txtResults.AppendText("No Orphan Records Found");// B2017-108 Always output results even if there isn't any + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); + //MessageBox.Show(string.Format("{0} Completed", "Orphan Items Check"), "Orphan Items"); } + + // C2017-030 - new Admin Tools user interface + // tool renamed to Remove Orphan Items private void PurgeDisconnectedItems() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Purging Orphan Items"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); int rowCount = ESP_IdentifyDisconnectedItems.Execute("vesp_GetDisconnectedItemsCount"); if (rowCount > 0) { - ESP_PurgeDisconnectedItems.Execute(selectedAdminTool.StoredProcedure); + ESP_PurgeDisconnectedItems.Execute("vesp_PurgeDisconnectedData"); int rowCount2 = ESP_IdentifyDisconnectedItems.Execute("vesp_GetDisconnectedItemsCount"); - txtProcess.AppendText(string.Format("Disconnected Items Purged", rowCount)); + txtProcess.AppendText(string.Format("Orphan Items Purged: {0}", rowCount)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} disconnected items.", rowCount)); + //txtProcess.AppendText(Environment.NewLine); + //txtResults.Clear(); + txtResults.AppendText(string.Format("The database contained {0} Orphan items.", rowCount)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("The database now contains {0} disconnected items.", rowCount2)); + txtResults.AppendText(string.Format("The database now contains {0} Orphan items.", rowCount2)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); if (rowCount2 > 0) - txtResults.AppendText("It is recommended you contact Volian to assist in resolving this condition"); + { + txtResults.AppendText("** Some or all Orphan items could not be purged.**"); + txtResults.AppendText("** It is recommended you contact Volian to assist in resolving this condition.**"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); + } } else { - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} disconnected items.", rowCount)); + //txtResults.Clear(); + txtResults.AppendText(string.Format("The database contained {0} Orphan items.", rowCount)); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(string.Format("No Orpan Items to Purge!")); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("No Disconnected Data to Purge!")); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // is one of two tools run from Check Obsolete RO Data private void IdentifyUnusedRoFstsAndFigures() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Identifing Unused RoFsts and Figures"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); int rowCountRoFst = ESP_GetUnusedRoFsts.Execute("vesp_GetUnusedRoFstsCount"); int rowCountFigures = ESP_GetUnusedFigures.Execute("vesp_GetUnusedFiguresCount"); txtProcess.AppendText(string.Format("Unused RoFsts Count: {0}, Unused Figures Count: {1}", rowCountRoFst, rowCountFigures)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); if (rowCountRoFst > 0 || rowCountFigures > 0) { - txtResults.Clear(); txtResults.AppendText(string.Format("The database contains {0} unused RoFsts.", rowCountRoFst)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(string.Format("The database contains {0} unused Figures items.", rowCountFigures)); @@ -474,152 +469,175 @@ namespace VEPROMS } else { - txtResults.Text = "No Unused Records Found";// B2017-108 Always output results even if there isn't any + txtResults.AppendText("No Unused RoFsts or Figures Found"); // B2017-108 Always output results even if there isn't any + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // is one of two tools run from Remove Obsolete RO Data private void RemoveUnusedRoFstsAndFigures() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Purging Unused RoFSTs and Figures Items"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); int rowCountRoFst = ESP_GetUnusedRoFsts.Execute("vesp_GetUnusedRoFstsCount"); int rowCountFigures = ESP_GetUnusedFigures.Execute("vesp_GetUnusedFiguresCount"); if (rowCountRoFst > 0 || rowCountFigures > 0) { - ESP_PurgeUnusedRoFstsAndFigures.Execute(selectedAdminTool.StoredProcedure); + ESP_PurgeUnusedRoFstsAndFigures.Execute("vesp_RemoveUnusedRoFstsAndFigures"); int rowCountRoFst2 = ESP_GetUnusedRoFsts.Execute("vesp_GetUnusedRoFstsCount"); int rowCountFigures2 = ESP_GetUnusedFigures.Execute("vesp_GetUnusedFiguresCount"); - txtProcess.AppendText(string.Format("Unsed RoFsts Purged", rowCountRoFst)); + txtProcess.AppendText(string.Format("{0} Unsed ROFSTs Purged", rowCountRoFst)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(string.Format("Unsed Figures Purged", rowCountFigures)); + txtProcess.AppendText(string.Format("{0} Unsed Figures Purged", rowCountFigures)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} unused RoFsts.", rowCountRoFst)); + txtResults.AppendText(string.Format("The database contained {0} unused ROFSTs.", rowCountRoFst)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(string.Format("The database contained {0} unused Figures items.", rowCountFigures)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("The database now contains {0} unused RoFsts.", rowCountRoFst2)); + txtResults.AppendText(string.Format("The database now contains {0} unused ROFSTs.", rowCountRoFst2)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(string.Format("The database now contains {0} unused Figures.", rowCountFigures2)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); if (rowCountRoFst2 > 0 || rowCountFigures2 > 0) - txtResults.AppendText("It is recommended you contact Volian to assist in resolving this condition"); + { + txtResults.AppendText("** Could not purge all or some of the unsed ROFSTs and Figures.** "); + txtResults.AppendText("** It is recommended you contact Volian to assist in resolving this condition. **"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); + } } else { - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} unused RoFsts or Figures items.", rowCountRoFst+rowCountFigures)); + txtProcess.AppendText(string.Format("The database contained {0} unused RoFSTs or Figures.", rowCountRoFst + rowCountFigures)); + txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText(string.Format("No Unused ROFSTs To Remove.")); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("No Unused Data to Purge!")); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // is one of two tools run from Check Obsolete RO Data private void IdentifyROAssociations() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Identifing Unused RO Associations"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); int rowCount = ESP_GetROAssoc.Execute("vesp_GetUnusedROAssociationsCount"); txtProcess.AppendText(string.Format("Unused RO Associations Count: {0}", rowCount)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); if (rowCount > 0) { - txtResults.Clear(); txtResults.AppendText(string.Format("The database contains {0} unused RO Associations.", rowCount)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); } else { - txtResults.Text = "No unused RO Associations Found";// B2017-108 Always output results even if there isn't any + txtResults.AppendText("No unused RO Associations Found");// B2017-108 Always output results even if there isn't any + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // is one of two tools run from Remove Obsolete RO Data private void CleanUpROAssociations() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Purging Unused Referenced Object Associations"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); int rowCount = ESP_GetROAssoc.Execute("vesp_GetUnusedROAssociationsCount"); if (rowCount > 0) { - ESP_CleanupROAssoc.Execute(selectedAdminTool.StoredProcedure); + ESP_CleanupROAssoc.Execute("vesp_GetUnusedROAssociationsCount"); int rowCount2 = ESP_GetROAssoc.Execute("vesp_GetUnusedROAssociationsCount"); - txtProcess.AppendText(string.Format("Unused Referenced Object Associations Purged", rowCount)); + txtProcess.AppendText(string.Format("{0} Unused Referenced Object Associations Purged", rowCount)); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} unused items.", rowCount)); + txtResults.AppendText(string.Format("The database contained {0} Unused RO Associations.", rowCount)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("The database now contains {0} unused items.", rowCount2)); + txtResults.AppendText(string.Format("The database now contains {0} Unused RO Associations.", rowCount2)); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); if (rowCount2 > 0) - txtResults.AppendText("It is recommended you contact Volian to assist in resolving this condition"); + { + txtResults.AppendText("** Could not purge all or some of the Unused RO Associations.** "); + txtResults.AppendText("** It is recommended you contact Volian to assist in resolving this condition.**"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); + } } else { - txtResults.Clear(); - txtResults.AppendText(string.Format("The database contained {0} unused items.", rowCount)); + txtResults.AppendText(string.Format("The database contained {0} Unused RO Associations.", rowCount)); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(string.Format("No Unused RO Associations to Purge.")); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); - txtResults.AppendText(string.Format("No Disconnected Data to Purge!")); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // tool was renamed to Hidden Data Locations (on Check list) private void IdentifyNonEditableItems() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Identifing Hidden Item Locations"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); - List myItems = ESP_IdentifyNonEditableItems.Execute(selectedAdminTool.StoredProcedure); - txtProcess.AppendText(string.Format("Non-Editable Items Count: {0}",myItems.Count)); - txtProcess.AppendText(Environment.NewLine); + List myItems = ESP_IdentifyNonEditableItems.Execute("vesp_GetNonEditableItems"); + txtProcess.AppendText(string.Format("Hidden Items Count: {0}",myItems.Count)); txtProcess.AppendText(Environment.NewLine); if (myItems.Count > 0) { - txtResults.Clear(); - txtResults.AppendText("The following items are non-editable..."); + txtResults.AppendText("The following items are hidden (non-editable)..."); txtResults.AppendText(Environment.NewLine); txtResults.AppendText(Environment.NewLine); foreach (ItemInfo ii in myItems) @@ -627,76 +645,51 @@ namespace VEPROMS txtResults.AppendText(ii.Path); txtResults.AppendText(Environment.NewLine); } + txtResults.AppendText(Environment.NewLine); } else { - txtResults.Text = "No Non-Editable Items Found";// B2017-108 Always output results even if there isn't any + txtResults.AppendText("No Hidden Data Found");// B2017-108 Always output results even if there isn't any + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); } DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); + txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); } + + // C2017-030 - new Admin Tools user interface + // tool was renamed to Show Users private void GetDatabaseSessions() { this.Cursor = Cursors.WaitCursor; DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText("Show Users in PROMS"); txtProcess.AppendText(Environment.NewLine); + txtProcess.AppendText(string.Format("Started: {0}",pStart.ToString("MM/dd/yyyy @ HH:mm"))); txtProcess.AppendText(Environment.NewLine); Application.DoEvents(); txtResults.Clear(); - txtResults.AppendText(ESP_GetDatabaseSessions.Execute(selectedAdminTool.StoredProcedure)); + txtResults.AppendText(ESP_GetDatabaseSessions.Execute("vesp_GetDatabaseSessions")); DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); + txtProcess.AppendText(string.Format("Completed: {0}",pEnd.ToString("MM/dd/yyyy @ HH:mm"))); Application.DoEvents(); this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); - } - private void FindROProblems() - { - this.Cursor = Cursors.WaitCursor; - DateTime pStart = DateTime.Now; - txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm")); - txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); - Application.DoEvents(); - txtResults.Clear(); - //txtResults.AppendText(ExecuteStoredProcedureString.Execute(selectedAdminTool.StoredProcedure)); - DateTime pEnd = DateTime.Now; - txtProcess.AppendText(pEnd.ToString("MM/dd/yyyy @ HH:mm")); - Application.DoEvents(); - this.Cursor = Cursors.Default; - MessageBox.Show(string.Format("{0} Completed", selectedAdminTool.Title), string.Format("{0} Complete", selectedAdminTool.Title)); - } - private void btnRefresh_Click(object sender, EventArgs e) - { - txtProcess.Clear(); - txtResults.Clear();// C2017-027 - Clear results before admin tool is run - Application.DoEvents(); - if (btnRefresh.Text == "NO OPTION SELECTED") - { - MessageBox.Show("You must select an option under the Option panel", btnRefresh.Text); - return; - } - if (chkLater.Checked) - { - long later = long.Parse(dtpDate.Value.ToString("yyyyMMdd") + dtpTime.Value.ToString("HHmm")); - long now = long.Parse(DateTime.Now.ToString("yyyyMMddHHmm")); - while (now < later) - { - txtProcess.Clear(); - txtProcess.AppendText("Waiting..."); - System.Threading.Thread.Sleep(60000); - now = long.Parse(DateTime.Now.ToString("yyyyMMddHHmm")); - } - } - selectedAdminTool.Execute(); + MessageBox.Show( "Show Users Completed", "Show Users"); } + private void ProcessUpdateROValues(DocVersionInfo dq) { - InitialProgressBarMessage = string.Format("Updating ROs for {0}", dq.MyFolder.Name); + string statmsg = string.Format("Updating ROs for {0}", dq.MyFolder.Name); + InitialProgressBarMessage = statmsg; + txtProcess.AppendText(statmsg); + txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText(statmsg); + txtResults.AppendText(Environment.NewLine); + Application.DoEvents(); if (dq.DocVersionAssociationCount < 1) { ProgressBar.ColorTable = eProgressBarItemColor.Error; @@ -706,6 +699,9 @@ namespace VEPROMS txtProcess.AppendText("Error Updating ro.fst. No associated ro.fst"); txtProcess.AppendText(Environment.NewLine); txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText("Error Updating ro.fst. No associated ro.fst"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); return; } ROFstInfo roFstInfo = dq.DocVersionAssociations[0].MyROFst; @@ -719,6 +715,9 @@ namespace VEPROMS txtProcess.AppendText("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path"); txtProcess.AppendText(Environment.NewLine); txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); return; } FileInfo fiRofst = new FileInfo(rofstPath); @@ -734,11 +733,12 @@ namespace VEPROMS FinalProgressBarMessage = "ROs values updated"; txtProcess.AppendText(Environment.NewLine); txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText("ROs values updated"); - txtProcess.AppendText(Environment.NewLine); - txtProcess.AppendText(Environment.NewLine); + txtResults.AppendText("ROs values updated"); + txtResults.AppendText(Environment.NewLine); + txtResults.AppendText(Environment.NewLine); return; } + private void RefreshProcedureTransitions(ProcedureInfo pq) { DateTime start = DateTime.Now; @@ -752,11 +752,18 @@ namespace VEPROMS txtResults.AppendText(myFixes.ToString()); txtResults.AppendText(Environment.NewLine); } + else + { + txtResults.AppendText("No Transitions needed fixed"); + txtResults.AppendText(Environment.NewLine); + } } + public List roFstInfo_ROTableUpdate(object sender, ROFstInfoROTableUpdateEventArgs args) { return VlnFlexGrid.ROTableUpdate(sender, args); } + private void PopulateTransitionInfoLists(List pil) { Dictionary dic = new Dictionary(); @@ -773,6 +780,7 @@ namespace VEPROMS //transitionsToDisconnected = TransitionInfoList.GetTransitionsToDisconnected(sb.ToString()); //transitionsToNonEditable = TransitionInfoList.GetTransitionsToNonEditable(sb.ToString()); } + private void ProgressBarShowText() { pbProcess.Refresh(); @@ -790,6 +798,7 @@ namespace VEPROMS } Application.DoEvents(); } + StringBuilder myFixes; // show the changes made in the Results pannel, include the ItemId of the step element void ContentInfo_StaticContentInfoChange(object sender, StaticContentInfoEventArgs args) @@ -808,10 +817,12 @@ namespace VEPROMS //myFixes.AppendLine(string.Format("Fixed Referenced Object for {1}{0}Old Text: {2}{0}New Text: {3}{0}", Environment.NewLine, (sender as ItemInfo).ShortPath, args.OldValue, args.NewValue)); } } + private void btnClear_Click(object sender, EventArgs e) { txtResults.Clear(); } + private void btnSave_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); @@ -828,12 +839,15 @@ namespace VEPROMS sw.Close(); } } + private void myTV_AfterCheck(object sender, TreeViewEventArgs e) { if (e.Action != TreeViewAction.Unknown) if(e.Node.Nodes.Count > 0) CheckChildNodes(e.Node, e.Node.Checked); + btnFixLinks.Enabled = AtLeastOneNodeChecked(); // C2017-030 support for Refresh Transitions/Update RO Values } + private void CheckChildNodes(TreeNode treeNode, bool ischecked) { foreach (TreeNode tn in treeNode.Nodes) @@ -843,6 +857,7 @@ namespace VEPROMS CheckChildNodes(tn, ischecked); } } + private ProgressBarItem _ProgressBar = null; public ProgressBarItem ProgressBar { @@ -853,6 +868,7 @@ namespace VEPROMS _ProgressBar.TextVisible = true; } } + private void DoProgressBarRefresh(int value, int max, string text) { if (ProgressBar == null) return; @@ -861,6 +877,7 @@ namespace VEPROMS ProgressBar.Text = text; Application.DoEvents(); } + private string InitialProgressBarMessage { set @@ -875,6 +892,7 @@ namespace VEPROMS Application.DoEvents(); } } + private string FinalProgressBarMessage { set @@ -889,138 +907,250 @@ namespace VEPROMS Application.DoEvents(); } } - private void cbxAdminTools_SelectedIndexChanged(object sender, EventArgs e) - { - selectedAdminTool = cbxAdminTools.SelectedItem as AdminTool; - if (selectedAdminTool == null) - { - lblCaption.Text = string.Empty; - lblDescription.Text = string.Empty; - lblWarning.Text = string.Empty; - myTV.Nodes.Clear(); - btnRefresh.Text = "NO OPTION SELECTED"; - } - else - { - lblCaption.Text = selectedAdminTool.Caption; - lblDescription.Text = selectedAdminTool.Description; - lblWarning.Text = selectedAdminTool.WarningPrefix + " " + selectedAdminTool.Warning; - lblWarning.Visible = selectedAdminTool.Warning.Length > 0; - ResetTV(selectedAdminTool.NoProcedures); - btnRefresh.Text = selectedAdminTool.Title; - lblCaption.Focus(); - } - } + private void chkLater_CheckedChanged(object sender, EventArgs e) { pnlLater.Enabled = chkLater.Checked; } - private void cbxAdminTools_Click(object sender, EventArgs e) + + // C2017-030 new Admin Tools user interface + private void sideNavItmCheck_Click(object sender, EventArgs e) { - cbxAdminTools.DroppedDown = true; // expand dropdown list if user clicks anywhere on the dropdown control + AdminToolType = E_AdminToolType.Check; + lblAdmToolProgressType.Text = "Checking:"; + setupProgessSteps1(); } + + // C2017-030 new Admin Tools user interface + private void sideNavItmRepair_Click(object sender, EventArgs e) + { + AdminToolType = E_AdminToolType.Repair; + lblAdmToolProgressType.Text = "Repairing:"; + setupProgessSteps1(); + } + + // C2017-030 new Admin Tools user interface + private void sideNavItmLinks_Click(object sender, EventArgs e) + { + AdminToolType = E_AdminToolType.Links; + setupProgessSteps1(); + if (swUpdateROVals.Value) + ResetTV(true); + else + ResetTV(false); + } + + // C2017-030 new Admin Tools user interface + private void sideNavItmUsers_Click(object sender, EventArgs e) + { + AdminToolType = E_AdminToolType.Users; + setupProgessSteps1(); + } + + // C2017-030 new Admin Tools user interface + private void sideNavItmExit_Click(object sender, EventArgs e) + { + this.Close(); + } + + #region On/Off Swiches + // C2017-030 new Admin Tools user interface + private enum E_AdminToolType : int + { + Check = 0, + Repair = 1, + Links = 2, + Users = 3 + }; + private E_AdminToolType AdminToolType = 0; + + DevComponents.DotNetBar.StepItem siOrphDatRecs = new DevComponents.DotNetBar.StepItem("siOrphDatRecs", "Orphan Data Records"); + DevComponents.DotNetBar.StepItem siHiddenDataLocs = new DevComponents.DotNetBar.StepItem("siHiddenDataLocs", "Hidden Data"); + DevComponents.DotNetBar.StepItem siObsoleteROData = new DevComponents.DotNetBar.StepItem("siObsoleteROData", "Obsolete RO Data"); + DevComponents.DotNetBar.StepItem siStandardHyphens = new DevComponents.DotNetBar.StepItem("siStandardHyphens", "Standardize Hyphens"); + DevComponents.DotNetBar.StepItem siRefreshAttmts = new DevComponents.DotNetBar.StepItem("siRefreshAttmts", "Refresh Word Attachments"); + + // this will update/rebuild the progress bar in the bottom panel of Admin Tools + private void setupProgessSteps1() + { + progressSteps1.Visible = false; + progressSteps1.Items.Clear(); + switch (AdminToolType) + { + case E_AdminToolType.Check: + if (swCkOrphanDataRecs.Value) + progressSteps1.Items.Add(siOrphDatRecs); + if (swHiddenDataLocs.Value) + progressSteps1.Items.Add(siHiddenDataLocs); + if (swCkObsoleteROData.Value) + progressSteps1.Items.Add(siObsoleteROData); + splitContainer3.Panel2Collapsed = false; + progressSteps1.Visible = true; + progressSteps1.Refresh(); + break; + case E_AdminToolType.Repair: + if (swRmOrphanDataRecs.Value) + progressSteps1.Items.Add(siOrphDatRecs); + if (swRmObsoleteROData.Value) + progressSteps1.Items.Add(siObsoleteROData); + if (swStandardHypenChars.Value) + progressSteps1.Items.Add(siStandardHyphens); + if (swRefreshWordAttmts.Value) + progressSteps1.Items.Add(siRefreshAttmts); + splitContainer3.Panel2Collapsed = false; + progressSteps1.Visible = true; + progressSteps1.Refresh(); + break; + case E_AdminToolType.Links: + case E_AdminToolType.Users: + splitContainer3.Panel2Collapsed = true; + progressSteps1.Visible = false; + break; + } + } + // used for all of the Switch buttons (ON/OFF buttons) + private void swCk_ValueChanged(object sender, EventArgs e) + { + setupProgessSteps1(); + } + + private void swUpdateROVals_ValueChanged(object sender, EventArgs e) + { + if (swUpdateROVals.Value) + { + swRefreshTrans.Value = false; + ResetTV(true); + } + } + + private void swRefreshTrans_ValueChanged(object sender, EventArgs e) + { + if (swRefreshTrans.Value) + { + swUpdateROVals.Value = false; + ResetTV(false); + } + } + #endregion + + // C2017-030 New Admin Tools user interface + // functions to handle the progress bar in the bottom panel of Admin Tools + private void StepProgress(int prgStpIdx, int val) + { + ((DevComponents.DotNetBar.StepItem)progressSteps1.Items[prgStpIdx]).Value = val; + return; + } + private void ClearStepProgress() + { + for (int i = 0; i < progressSteps1.Items.Count; i++) + ((DevComponents.DotNetBar.StepItem)progressSteps1.Items[i]).Value = 0; + } + + // C2017-030 New Admin Tools user interface + // button clicks for processing selected tools + + private void CheckProcessLater() // see if we should delay processing until later + { + if (chkLater.Checked) + { + long later = long.Parse(dtpDate.Value.ToString("yyyyMMdd") + dtpTime.Value.ToString("HHmm")); + long now = long.Parse(DateTime.Now.ToString("yyyyMMddHHmm")); + while (now < later) + { + txtProcess.Clear(); + txtProcess.AppendText("Waiting..."); + System.Threading.Thread.Sleep(60000); + now = long.Parse(DateTime.Now.ToString("yyyyMMddHHmm")); + } + } + } + + // C2017-030 new Admin Tools user interface + private void btn_ShowUsers_Click(object sender, EventArgs e) + { + CheckProcessLater(); // delay processing if set + txtProcess.Clear(); + txtResults.Clear(); + GetDatabaseSessions(); + } + + private void btnFixLinks_Click(object sender, EventArgs e) + { + CheckProcessLater(); // delay processing if set + txtProcess.Clear(); + txtResults.Clear(); + if (swRefreshTrans.Value) + RefreshTransitions(); + if (swUpdateROVals.Value) + UpdateROValues(); + } + + private void btnRunCheck_Click(object sender, EventArgs e) + { + CheckProcessLater(); // delay processing if set + int prgStpIdx = -1; + txtResults.Clear(); + txtProcess.Clear(); + if (swCkOrphanDataRecs.Value) + { + StepProgress(++prgStpIdx, 50); + IdentifyDisconnectedItems(); // orphan items + StepProgress(prgStpIdx, 100); + } + if (swHiddenDataLocs.Value) + { + StepProgress(++prgStpIdx, 50); + IdentifyNonEditableItems(); // hidden items + StepProgress(prgStpIdx, 100); + } + if (swCkObsoleteROData.Value) + { + StepProgress(++prgStpIdx, 25); + IdentifyROAssociations(); + StepProgress(prgStpIdx, 50); + IdentifyUnusedRoFstsAndFigures(); + StepProgress(prgStpIdx, 100); + } + MessageBox.Show("Check Functions Completed", "Check"); + ClearStepProgress(); + } + + private void btnRunRepair_Click(object sender, EventArgs e) + { + CheckProcessLater(); // delay processing if set + int prgStpIdx = -1; + txtResults.Clear(); + txtProcess.Clear(); + if (swRmOrphanDataRecs.Value) + { + StepProgress(++prgStpIdx, 50); + PurgeDisconnectedItems(); // Orphan Items + StepProgress(prgStpIdx, 100); + } + if (swRmObsoleteROData.Value) + { + StepProgress(++prgStpIdx, 25); + CleanUpROAssociations(); + StepProgress(prgStpIdx, 50); + RemoveUnusedRoFstsAndFigures(); + StepProgress(prgStpIdx, 100); + } + if (swStandardHypenChars.Value) + { + StepProgress(++prgStpIdx, 50); + FixHyphens(); + StepProgress(prgStpIdx, 100); + } + if (swRefreshWordAttmts.Value) + { + StepProgress(++prgStpIdx, 50); + DeletePDFs(); // refresh word attachments + StepProgress(prgStpIdx, 100); + } + + MessageBox.Show("Repair Functions Completed", "Repair"); + ClearStepProgress(); + } + } - public class AdminTool : IComparable - { - private string _Title; - public string Title - { - get { return _Title; } - set { _Title = value; } - } - private string _Caption; - public string Caption - { - get { return _Caption; } - set { _Caption = value; } - } - private string _Description; - public string Description - { - get { return _Description; } - set { _Description = value; } - } - private string _Warning; - public string Warning - { - get { return _Warning; } - set { _Warning = value; } - } - private string _WarningPrefix; - public string WarningPrefix - { - get { return _WarningPrefix; } - set { _WarningPrefix = value; } - } - private bool _NoProcedures; - public bool NoProcedures - { - get { return _NoProcedures; } - set { _NoProcedures = value; } - } - private bool _NoTreeView; - public bool NoTreeView - { - get { return _NoTreeView; } - set { _NoTreeView = value; } - } - private AdminToolExecute _MyExecute; - public AdminToolExecute MyExecute - { - get { return _MyExecute; } - set { _MyExecute = value; } - } - private string _StoredProcedure; - public string StoredProcedure - { - get { return _StoredProcedure; } - set { _StoredProcedure = value; } - } - public void Execute() - { - if (MyExecute != null) MyExecute(); - } - public AdminTool() - { - } - public AdminTool(string title, string caption, string description, string warning, string warningPrefix, bool noProcedures, bool noTreeView, AdminToolExecute myExecute) - { - _Title = title; - _Caption = caption; - _Description = description; - _Warning = warning; - _WarningPrefix = warningPrefix; - _NoProcedures = noProcedures; - _NoTreeView = noTreeView; - _MyExecute = myExecute; - } - public AdminTool(string title, string caption, string description, string warning, string warningPrefix, bool noProcedures, bool noTreeView, string storedProcedure, AdminToolExecute myExecute) - { - _Title = title; - _Caption = caption; - _Description = description; - _Warning = warning; - _WarningPrefix = warningPrefix; - _NoProcedures = noProcedures; - _NoTreeView = noTreeView; - _StoredProcedure = storedProcedure; - _MyExecute = myExecute; - } - public int CompareTo(AdminTool at) - { - return this.Title.CompareTo(at.Title); - } - } - public class AdminTools : List - { - public void Add(string title, string caption, string description, string warning, string warningPrefix, bool noProcedures, bool noTreeView, AdminToolExecute myExecute) - { - base.Add(new AdminTool(title, caption, description, warning, warningPrefix, noProcedures, noTreeView, myExecute)); - } - public void Add(string title, string caption, string description, string warning, string warningPrefix, bool noProcedures, bool noTreeView, string storedProcedure, AdminToolExecute myExecute) - { - base.Add(new AdminTool(title, caption, description, warning, warningPrefix, noProcedures, noTreeView, storedProcedure, myExecute)); - } - } - public delegate void AdminToolExecute(); } diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.resx b/PROMS/VEPROMS User Interface/frmBatchRefresh.resx index 527d7b26..3694a88f 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.resx +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.resx @@ -117,6 +117,223 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAKZSURBVDhPjZNdSFNhHMb/c6LivAlC686PElN0CmkmJjidrhS/EiuIoBCKJOqilMIIMkk0oQuN + QkYohnVjX2AXFVohpRajdJYflE2npM7lnLrtnPd9ep0nSizxB8/Ne/7P8z7/czj0P55VUBBrpRdyCz3v + vEiByvHmEeZbrC8B8jstPEaqV443x1QjJbMnWxm3pIOP6+B5sEWy1lGc8nhjag+TStTuZcPC/DUB3JII + eUgHVwN1KiMbs2Sko/LLCPCJfcDEHmA6FXw+B67HYbDXUYEy9m+MpeQntai/sXEDlsaSsTM8ADFRGsiL + +yFPF8FZ7/Pl7hHyVcbX4zJSmfwmBtyWCfesDj4+hKAgXzApH5yXYLkjBvPXqFQZX0vrSQqQmn2tbLYA + WMwGW86BRqNGSIg/OCsCd+dD/lEMR7X6+71D5KfY/uBqojNStxbclQfIecJUiOBgf0SEB4I7c8FmssDG + 9Vh8GIO5Sjqt2Fa5c4z8PEa1hTlKACYacHGjXIjQ0EDERgeBTaSDDaeAfdwNqV8P+2W1pbnwrxYLjXTc + 8zrWuyeUunz+AHZFapCkFQEDSWDvE8B6tJA/JMHZFoWZC3TCa67KJ5X7tsrM5krAPQWrdadF3bE03L8Z + ibaaMMi9Wq/5tzymDNjKVYM3MklFk3VkcHfsAF86KN6+Qewp6g6lYPpVvPcrqFQEa0f0mgDZtBeOplBY + zlI2LTfQU2lUGCczwEZTwfoTRd147z9wvWw7qk5tg/Q2bk3AilzdabCdp3YRoJ6SRnIhDRsgfc6CZNZD + HsxaJ8ksNKCH9ClTrKCDuy9zJWCE7LVU7KyjRws11OWopp75q2T6eYX67ZVktl+iwbkKGrSVk1kM9wuZ + hHqEuoTareco+xcrCcycC+G/xAAAAABJRU5ErkJggg== + + + + 17, 17 + + + Referenced Objects databases are associated with a procedure set (such as Working Draft). + +RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used. + + + + Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both. + +When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed. + +This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps. + +This tool may take an extended period of time to execute. + + + + Referenced Objects databases are associated with a procedure set (such as Working Draft). + +RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used. + + + + Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both. + +When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed. + +This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps. + +This tool may take an extended period of time to execute. + + + + Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it. + +Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database. + +This tool may take an extended period of time to execute. + + + + Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it. + +Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database. + +This tool may take an extended period of time to execute. + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAKZSURBVDhPjZNdSFNhHMb/c6LivAlC686PElN0CmkmJjidrhS/EiuIoBCKJOqilMIIMkk0oQuN + QkYohnVjX2AXFVohpRajdJYflE2npM7lnLrtnPd9ep0nSizxB8/Ne/7P8z7/czj0P55VUBBrpRdyCz3v + vEiByvHmEeZbrC8B8jstPEaqV443x1QjJbMnWxm3pIOP6+B5sEWy1lGc8nhjag+TStTuZcPC/DUB3JII + eUgHVwN1KiMbs2Sko/LLCPCJfcDEHmA6FXw+B67HYbDXUYEy9m+MpeQntai/sXEDlsaSsTM8ADFRGsiL + +yFPF8FZ7/Pl7hHyVcbX4zJSmfwmBtyWCfesDj4+hKAgXzApH5yXYLkjBvPXqFQZX0vrSQqQmn2tbLYA + WMwGW86BRqNGSIg/OCsCd+dD/lEMR7X6+71D5KfY/uBqojNStxbclQfIecJUiOBgf0SEB4I7c8FmssDG + 9Vh8GIO5Sjqt2Fa5c4z8PEa1hTlKACYacHGjXIjQ0EDERgeBTaSDDaeAfdwNqV8P+2W1pbnwrxYLjXTc + 8zrWuyeUunz+AHZFapCkFQEDSWDvE8B6tJA/JMHZFoWZC3TCa67KJ5X7tsrM5krAPQWrdadF3bE03L8Z + ibaaMMi9Wq/5tzymDNjKVYM3MklFk3VkcHfsAF86KN6+Qewp6g6lYPpVvPcrqFQEa0f0mgDZtBeOplBY + zlI2LTfQU2lUGCczwEZTwfoTRd147z9wvWw7qk5tg/Q2bk3AilzdabCdp3YRoJ6SRnIhDRsgfc6CZNZD + HsxaJ8ksNKCH9ClTrKCDuy9zJWCE7LVU7KyjRws11OWopp75q2T6eYX67ZVktl+iwbkKGrSVk1kM9wuZ + hHqEuoTareco+xcrCcycC+G/xAAAAABJRU5ErkJggg== + + + + This allows the user to update referenced objects values for multiple working drafts in a batch mode. + +Be sure a current backup of the database exists prior performing this function. + +It is recommended that this be done during off hours. + + + + This function will refresh transitions in all procedures selected below, whether they were selected individually or as a group via a procedure set. + +Be sure a current backup of the database exists prior to running this function. + +If more than one procedure is selected, it is recommended that this be performed during off hours. + + + This allows the user to update referenced objects values for multiple working drafts in a batch mode. + +Be sure a current backup of the database exists prior performing this function. + +It is recommended that this be done during off hours. + + + + This function will refresh transitions in all procedures selected below, whether they were selected individually or as a group via a procedure set. + +Be sure a current backup of the database exists prior to running this function. + +If more than one procedure is selected, it is recommended that this be performed during off hours. + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAKZSURBVDhPjZNdSFNhHMb/c6LivAlC686PElN0CmkmJjidrhS/EiuIoBCKJOqilMIIMkk0oQuN + QkYohnVjX2AXFVohpRajdJYflE2npM7lnLrtnPd9ep0nSizxB8/Ne/7P8z7/czj0P55VUBBrpRdyCz3v + vEiByvHmEeZbrC8B8jstPEaqV443x1QjJbMnWxm3pIOP6+B5sEWy1lGc8nhjag+TStTuZcPC/DUB3JII + eUgHVwN1KiMbs2Sko/LLCPCJfcDEHmA6FXw+B67HYbDXUYEy9m+MpeQntai/sXEDlsaSsTM8ADFRGsiL + +yFPF8FZ7/Pl7hHyVcbX4zJSmfwmBtyWCfesDj4+hKAgXzApH5yXYLkjBvPXqFQZX0vrSQqQmn2tbLYA + WMwGW86BRqNGSIg/OCsCd+dD/lEMR7X6+71D5KfY/uBqojNStxbclQfIecJUiOBgf0SEB4I7c8FmssDG + 9Vh8GIO5Sjqt2Fa5c4z8PEa1hTlKACYacHGjXIjQ0EDERgeBTaSDDaeAfdwNqV8P+2W1pbnwrxYLjXTc + 8zrWuyeUunz+AHZFapCkFQEDSWDvE8B6tJA/JMHZFoWZC3TCa67KJ5X7tsrM5krAPQWrdadF3bE03L8Z + ibaaMMi9Wq/5tzymDNjKVYM3MklFk3VkcHfsAF86KN6+Qewp6g6lYPpVvPcrqFQEa0f0mgDZtBeOplBY + zlI2LTfQU2lUGCczwEZTwfoTRd147z9wvWw7qk5tg/Q2bk3AilzdabCdp3YRoJ6SRnIhDRsgfc6CZNZD + HsxaJ8ksNKCH9ClTrKCDuy9zJWCE7LVU7KyjRws11OWopp75q2T6eYX67ZVktl+iwbkKGrSVk1kM9wuZ + hHqEuoTareco+xcrCcycC+G/xAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAKZSURBVDhPjZNdSFNhHMb/c6LivAlC686PElN0CmkmJjidrhS/EiuIoBCKJOqilMIIMkk0oQuN + QkYohnVjX2AXFVohpRajdJYflE2npM7lnLrtnPd9ep0nSizxB8/Ne/7P8z7/czj0P55VUBBrpRdyCz3v + vEiByvHmEeZbrC8B8jstPEaqV443x1QjJbMnWxm3pIOP6+B5sEWy1lGc8nhjag+TStTuZcPC/DUB3JII + eUgHVwN1KiMbs2Sko/LLCPCJfcDEHmA6FXw+B67HYbDXUYEy9m+MpeQntai/sXEDlsaSsTM8ADFRGsiL + +yFPF8FZ7/Pl7hHyVcbX4zJSmfwmBtyWCfesDj4+hKAgXzApH5yXYLkjBvPXqFQZX0vrSQqQmn2tbLYA + WMwGW86BRqNGSIg/OCsCd+dD/lEMR7X6+71D5KfY/uBqojNStxbclQfIecJUiOBgf0SEB4I7c8FmssDG + 9Vh8GIO5Sjqt2Fa5c4z8PEa1hTlKACYacHGjXIjQ0EDERgeBTaSDDaeAfdwNqV8P+2W1pbnwrxYLjXTc + 8zrWuyeUunz+AHZFapCkFQEDSWDvE8B6tJA/JMHZFoWZC3TCa67KJ5X7tsrM5krAPQWrdadF3bE03L8Z + ibaaMMi9Wq/5tzymDNjKVYM3MklFk3VkcHfsAF86KN6+Qewp6g6lYPpVvPcrqFQEa0f0mgDZtBeOplBY + zlI2LTfQU2lUGCczwEZTwfoTRd147z9wvWw7qk5tg/Q2bk3AilzdabCdp3YRoJ6SRnIhDRsgfc6CZNZD + HsxaJ8ksNKCH9ClTrKCDuy9zJWCE7LVU7KyjRws11OWopp75q2T6eYX67ZVktl+iwbkKGrSVk1kM9wuZ + hHqEuoTareco+xcrCcycC+G/xAAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAKZSURBVDhPjZNdSFNhHMb/c6LivAlC686PElN0CmkmJjidrhS/EiuIoBCKJOqilMIIMkk0oQuN + QkYohnVjX2AXFVohpRajdJYflE2npM7lnLrtnPd9ep0nSizxB8/Ne/7P8z7/czj0P55VUBBrpRdyCz3v + vEiByvHmEeZbrC8B8jstPEaqV443x1QjJbMnWxm3pIOP6+B5sEWy1lGc8nhjag+TStTuZcPC/DUB3JII + eUgHVwN1KiMbs2Sko/LLCPCJfcDEHmA6FXw+B67HYbDXUYEy9m+MpeQntai/sXEDlsaSsTM8ADFRGsiL + +yFPF8FZ7/Pl7hHyVcbX4zJSmfwmBtyWCfesDj4+hKAgXzApH5yXYLkjBvPXqFQZX0vrSQqQmn2tbLYA + WMwGW86BRqNGSIg/OCsCd+dD/lEMR7X6+71D5KfY/uBqojNStxbclQfIecJUiOBgf0SEB4I7c8FmssDG + 9Vh8GIO5Sjqt2Fa5c4z8PEa1hTlKACYacHGjXIjQ0EDERgeBTaSDDaeAfdwNqV8P+2W1pbnwrxYLjXTc + 8zrWuyeUunz+AHZFapCkFQEDSWDvE8B6tJA/JMHZFoWZC3TCa67KJ5X7tsrM5krAPQWrdadF3bE03L8Z + ibaaMMi9Wq/5tzymDNjKVYM3MklFk3VkcHfsAF86KN6+Qewp6g6lYPpVvPcrqFQEa0f0mgDZtBeOplBY + zlI2LTfQU2lUGCczwEZTwfoTRd147z9wvWw7qk5tg/Q2bk3AilzdabCdp3YRoJ6SRnIhDRsgfc6CZNZD + HsxaJ8ksNKCH9ClTrKCDuy9zJWCE7LVU7KyjRws11OWopp75q2T6eYX67ZVktl+iwbkKGrSVk1kM9wuZ + hHqEuoTareco+xcrCcycC+G/xAAAAABJRU5ErkJggg== + + + + Referenced Objects databases are associated with a procedure set (such as Working Draft). + +RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will remove stored, RO Paths, ROFST versions and Figures that are no longer used. + +Be sure a current backup exists prior to running this function!! + + + When Word attachments are modified and saved, PROMS will create a PDF of the attachment contents and save it in the database. When this is done, all the of the RO references are resolved as well as pagination of the attachment. This speeds up the overall printing of the procedure in that PROMS simply inserts the attachment contents. + +This function will remove all of the saved attachment PDFS stored in the database (not the PDFs of the entire procedure that you had previous printed). This will force PROMS to regenerate (and save) the word attachment PDFs the next time the procedure is printed. + + + + Sometimes a different form of Hyphens is entered when doing a Windows Clipboard Copy/Paste from a Word or PDF document. + +This will replace various forms of Hyphens with a consistent Hyphen so that search will find all Hyphens + + + + Referenced Objects databases are associated with a procedure set (such as Working Draft). + +RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will remove stored, RO Paths, ROFST versions and Figures that are no longer used. + +Be sure a current backup exists prior to running this function!! + + + When Word attachments are modified and saved, PROMS will create a PDF of the attachment contents and save it in the database. When this is done, all the of the RO references are resolved as well as pagination of the attachment. This speeds up the overall printing of the procedure in that PROMS simply inserts the attachment contents. + +This function will remove all of the saved attachment PDFS stored in the database (not the PDFs of the entire procedure that you had previous printed). This will force PROMS to regenerate (and save) the word attachment PDFs the next time the procedure is printed. + + + + Sometimes a different form of Hyphens is entered when doing a Windows Clipboard Copy/Paste from a Word or PDF document. + +This will replace various forms of Hyphens with a consistent Hyphen so that search will find all Hyphens + + + + Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it. + +Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool removes any orphaned items from the database. + + + + Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it. + +Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool removes any orphaned items from the database. + + 38 diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 31d8b78f..a4f8c93b 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -1845,9 +1845,8 @@ namespace VEPROMS void btnAdministrativeTools_Click(object sender, EventArgs e) { - frmBatchRefresh frm = new frmBatchRefresh(); + frmBatchRefresh frm = new frmBatchRefresh(MySessionInfo); frm.ProgressBar = bottomProgBar; - frm.MySessionInfo = MySessionInfo; frm.ShowDialog(this); }