Added code to support conversion to text of invalid referenced objects

Added code to support the searching for transitions
Added code to support refreshing of referenced objects and transitions
Added interface code to support refreshing of referenced objects and transitions
Added code to store the xml representation of the approved version of the procedure in the database for future support of temp mods, etc.
This commit is contained in:
Rich
2015-02-05 03:56:30 +00:00
parent 34bfdba7b2
commit 4e1eff4c4f
7 changed files with 607 additions and 30 deletions

View File

@@ -63,10 +63,12 @@ namespace Volian.Controls.Library
this.cbxSrchTypeUsage = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.tabStepTypeSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel();
this.gpFindROs = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbxFndUnLnkROVals = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cmboTreeROs = new DevComponents.DotNetBar.Controls.ComboTree();
this.tabROSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabTranSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.gpSrchAnnoText = new DevComponents.DotNetBar.Controls.GroupPanel();
this.panel4 = new System.Windows.Forms.Panel();
@@ -107,6 +109,10 @@ namespace Volian.Controls.Library
this.panSearchButtons = new DevComponents.DotNetBar.PanelEx();
this.btnClearSearchResults = new DevComponents.DotNetBar.ButtonX();
this.btnCopySearchResults = new DevComponents.DotNetBar.ButtonX();
this.btnSaveSearchResults = new DevComponents.DotNetBar.ButtonX();
this.btnLoadSearchResults = new DevComponents.DotNetBar.ButtonX();
this.sfdSearchResults = new System.Windows.Forms.SaveFileDialog();
this.ofdSearchResults = new System.Windows.Forms.OpenFileDialog();
this.labelX1 = new DevComponents.DotNetBar.LabelX();
this.cmbResultsStyle = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.comboItem1 = new DevComponents.Editors.ComboItem();
@@ -120,6 +126,15 @@ namespace Volian.Controls.Library
this.xpStepTypes = new DevComponents.DotNetBar.ExpandablePanel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.lblTranVersion = new System.Windows.Forms.Label();
this.cbxTranVersion = new System.Windows.Forms.ComboBox();
this.pnlTranVersion = new System.Windows.Forms.Panel();
this.lblTranFormat = new System.Windows.Forms.Label();
this.cbxTranFormat = new System.Windows.Forms.ComboBox();
this.pnlTranFormat = new System.Windows.Forms.Panel();
this.lblTranCategory = new System.Windows.Forms.Label();
this.cbxTranCategory = new System.Windows.Forms.ComboBox();
this.pnlTranCategory = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.tabSearchTypes)).BeginInit();
this.tabSearchTypes.SuspendLayout();
this.tabControlPanel4.SuspendLayout();
@@ -127,6 +142,7 @@ namespace Volian.Controls.Library
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.tabControlPanel5.SuspendLayout();
this.gpFindROs.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.gpSrchAnnoText.SuspendLayout();
@@ -147,6 +163,7 @@ namespace Volian.Controls.Library
this.tabSearchTypes.CloseButtonPosition = DevComponents.DotNetBar.eTabCloseButtonPosition.Right;
this.tabSearchTypes.Controls.Add(this.tabControlPanel4);
this.tabSearchTypes.Controls.Add(this.tabControlPanel2);
this.tabSearchTypes.Controls.Add(this.tabControlPanel5);
this.tabSearchTypes.Controls.Add(this.tabControlPanel3);
this.tabSearchTypes.Controls.Add(this.contextMenuBar1);
this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top;
@@ -164,6 +181,7 @@ namespace Volian.Controls.Library
this.tabSearchTypes.Tabs.Add(this.tabStepTypeSearch);
this.tabSearchTypes.Tabs.Add(this.tabAnnotationSearch);
this.tabSearchTypes.Tabs.Add(this.tabROSearch);
this.tabSearchTypes.Tabs.Add(this.tabTranSearch);
this.tabSearchTypes.Text = "tabControl1";
this.tabSearchTypes.ThemeAware = true;
//
@@ -409,6 +427,29 @@ namespace Volian.Controls.Library
this.tabControlPanel2.TabIndex = 2;
this.tabControlPanel2.TabItem = this.tabROSearch;
//
// tabControlPanel5
//
this.tabControlPanel5.Controls.Add(this.pnlTranVersion);
this.pnlTranVersion.BringToFront();
this.tabControlPanel5.Controls.Add(this.pnlTranFormat);
this.pnlTranFormat.BringToFront();
this.tabControlPanel5.Controls.Add(this.pnlTranCategory);
this.pnlTranCategory.BringToFront();
this.tabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel5.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel5.Name = "tabControlPanel5";
this.tabControlPanel5.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel5.Size = new System.Drawing.Size(369, 114);
this.tabControlPanel5.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel5.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel5.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel5.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel5.Style.GradientAngle = 90;
this.tabControlPanel5.TabItem = this.tabTranSearch;
//
// gpFindROs
//
this.gpFindROs.CanvasColor = System.Drawing.SystemColors.Control;
@@ -496,6 +537,12 @@ namespace Volian.Controls.Library
this.tabROSearch.Name = "tabROSearch";
this.tabROSearch.Text = "Referenced Objects";
//
//// tabTranSearch
//
this.tabTranSearch.AttachedControl = this.tabControlPanel5;
this.tabTranSearch.Name = "tabTranSearch";
this.tabTranSearch.Text = "Transitions";
//
// tabControlPanel3
//
this.tabControlPanel3.Controls.Add(this.gpSrchAnnoText);
@@ -641,6 +688,77 @@ namespace Volian.Controls.Library
this.label2.Size = new System.Drawing.Size(39, 23);
this.label2.TabIndex = 7;
this.label2.Text = "Find:";
#region transsearchstuff
//
//lblTranVersion
//
this.lblTranVersion.Dock = System.Windows.Forms.DockStyle.Left;
this.lblTranVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblTranVersion.Text = "Formats";
this.lblTranVersion.Width = 100;
//
//cbxTranVersion
//
this.cbxTranVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxTranVersion.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
//
//pnlTranVersion
//
this.pnlTranVersion.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTranVersion.Height = 30;
this.pnlTranVersion.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlTranVersion.Padding = new System.Windows.Forms.Padding(1);
this.pnlTranVersion.Controls.Add(this.lblTranVersion);
this.pnlTranVersion.Controls.Add(this.cbxTranVersion);
this.cbxTranVersion.BringToFront();
//
//lblTranFormat
//
this.lblTranFormat.Dock = System.Windows.Forms.DockStyle.Left;
this.lblTranFormat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblTranFormat.Text = "Select Format";
this.lblTranFormat.Width = 100;
//
//cbxTranFormat
//
this.cbxTranFormat.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxTranFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
//
//pnlTranFormat
//
this.pnlTranFormat.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTranFormat.Height = 30;
this.pnlTranFormat.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlTranFormat.Padding = new System.Windows.Forms.Padding(1);
this.pnlTranFormat.Controls.Add(this.lblTranFormat);
this.pnlTranFormat.Controls.Add(this.cbxTranFormat);
this.cbxTranFormat.BringToFront();
//
//lblTranCategory
//
this.lblTranCategory.Dock = System.Windows.Forms.DockStyle.Left;
this.lblTranCategory.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblTranCategory.Text = "Select Category";
this.lblTranCategory.Width = 110;
//
//cbxTranCategory
//
this.cbxTranCategory.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxTranCategory.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
//
//pnlTranCategory
//
this.pnlTranCategory.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlTranCategory.Height = 30;
this.pnlTranCategory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pnlTranCategory.Padding = new System.Windows.Forms.Padding(1);
this.pnlTranCategory.Controls.Add(this.lblTranCategory);
this.pnlTranCategory.Controls.Add(this.cbxTranCategory);
this.cbxTranCategory.BringToFront();
#endregion
//
// cbxAnnoTypes
//
@@ -982,6 +1100,8 @@ namespace Volian.Controls.Library
this.panSearchButtons.CanvasColor = System.Drawing.SystemColors.Control;
this.panSearchButtons.Controls.Add(this.btnClearSearchResults);
this.panSearchButtons.Controls.Add(this.btnCopySearchResults);
this.panSearchButtons.Controls.Add(this.btnSaveSearchResults);
this.panSearchButtons.Controls.Add(this.btnLoadSearchResults);
this.panSearchButtons.Controls.Add(this.labelX1);
this.panSearchButtons.Controls.Add(this.cmbResultsStyle);
this.panSearchButtons.Controls.Add(this.cbSorted);
@@ -1040,6 +1160,51 @@ namespace Volian.Controls.Library
this.btnCopySearchResults.ThemeAware = true;
this.btnCopySearchResults.Click += new System.EventHandler(this.btnCopySearchResults_Click);
//
// btnSaveSearchResults
//
this.btnSaveSearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSaveSearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground;
this.btnSaveSearchResults.Enabled = false;
this.btnSaveSearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnSaveSearchResults.Location = new System.Drawing.Point(290, 36);
this.btnSaveSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnSaveSearchResults.Name = "btnSaveSearchResults";
this.btnSaveSearchResults.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnSaveSearchResults.Size = new System.Drawing.Size(57, 28);
this.superTooltip1.SetSuperTooltip(this.btnSaveSearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Save Search Results", "", "This button saves the Search Results listed below into a named file in xml, csv, tab or basic format.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnSaveSearchResults.TabIndex = 10;
this.btnSaveSearchResults.Text = "Save";
this.btnSaveSearchResults.ThemeAware = true;
this.btnSaveSearchResults.Click += new System.EventHandler(btnSaveSearchResults_Click);
//
// btnLoadSearchResults
//
this.btnLoadSearchResults.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnLoadSearchResults.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground;
this.btnLoadSearchResults.Enabled = true;
this.btnLoadSearchResults.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnLoadSearchResults.Location = new System.Drawing.Point(354, 36);
this.btnLoadSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnLoadSearchResults.Name = "btnLoadSearchResults";
this.btnLoadSearchResults.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnLoadSearchResults.Size = new System.Drawing.Size(57, 28);
this.superTooltip1.SetSuperTooltip(this.btnLoadSearchResults, new DevComponents.DotNetBar.SuperTooltipInfo("Save Search Results", "", "This button loads saved Search Results from a named file in xml, csv, tab or basic format.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnLoadSearchResults.TabIndex = 10;
this.btnLoadSearchResults.Text = "Load";
this.btnLoadSearchResults.ThemeAware = true;
this.btnLoadSearchResults.Click += new System.EventHandler(btnLoadSearchResults_Click);
//
//sfdSearchResults
//
sfdSearchResults.AddExtension = true;
sfdSearchResults.InitialDirectory = System.Environment.SpecialFolder.MyDocuments + @"\VEPROMS";
sfdSearchResults.Filter = "XML File (*.xml)|*.xml|Comma Separated Values (*.csv)|*.csv|Tab Separated Values (*.tsv)|*.tsv|Basic Style Format (*.bsf)|*.bsf";
//
//ofdSearchResults
//
ofdSearchResults.InitialDirectory = System.Environment.SpecialFolder.MyDocuments + @"\VEPROMS";
ofdSearchResults.Filter = "XML File (*.xml)|*.xml|Comma Separated Values (*.csv)|*.csv|Tab Separated Values (*.tsv)|*.tsv|Basic Style Format (*.bsf)|*.bsf";
//
// labelX1
//
this.labelX1.AutoSize = true;
@@ -1111,7 +1276,7 @@ namespace Volian.Controls.Library
this.cbSorted.Size = new System.Drawing.Size(93, 17);
this.superTooltip1.SetSuperTooltip(this.cbSorted, new DevComponents.DotNetBar.SuperTooltipInfo("Sort Results", "", "Sorts results that are output into the Search Results list shown below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbSorted.TabIndex = 7;
this.cbSorted.Text = "Sort Results";
this.cbSorted.Text = "Sort";
this.cbSorted.CheckedChanged += new System.EventHandler(this.cbSorted_CheckedChanged);
//
// btnSearch
@@ -1239,6 +1404,7 @@ namespace Volian.Controls.Library
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.tabControlPanel2.ResumeLayout(false);
this.tabControlPanel5.ResumeLayout(false);
this.gpFindROs.ResumeLayout(false);
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
@@ -1261,7 +1427,9 @@ namespace Volian.Controls.Library
private DevComponents.DotNetBar.TabControl tabSearchTypes;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel2;
private DevComponents.DotNetBar.TabItem tabROSearch;
private DevComponents.DotNetBar.TabControlPanel tabControlPanel5;
private DevComponents.DotNetBar.TabItem tabROSearch;
private DevComponents.DotNetBar.TabItem tabTranSearch;
private DevComponents.AdvTree.AdvTree advTreeProcSets;
private DevComponents.AdvTree.Node node1;
private DevComponents.AdvTree.NodeConnector nodeConnector1;
@@ -1330,6 +1498,20 @@ namespace Volian.Controls.Library
private DevComponents.DotNetBar.ButtonX btnCopySearchResults;
private DevComponents.DotNetBar.ButtonX btnPrnSrchRslts;
private DevComponents.DotNetBar.ButtonX btnClearSearchResults;
}
private DevComponents.DotNetBar.ButtonX btnSaveSearchResults;
private DevComponents.DotNetBar.ButtonX btnLoadSearchResults;
private System.Windows.Forms.SaveFileDialog sfdSearchResults;
private System.Windows.Forms.OpenFileDialog ofdSearchResults;
//transition search controls
private System.Windows.Forms.Panel pnlTranVersion;
private System.Windows.Forms.Label lblTranVersion;
private System.Windows.Forms.ComboBox cbxTranVersion;
private System.Windows.Forms.Panel pnlTranFormat;
private System.Windows.Forms.Label lblTranFormat;
private System.Windows.Forms.ComboBox cbxTranFormat;
private System.Windows.Forms.Panel pnlTranCategory;
private System.Windows.Forms.Label lblTranCategory;
private System.Windows.Forms.ComboBox cbxTranCategory;
//end transition search controls
}
}