C2019-041: Global Search/Ros, code clears dropdown list every time a procedure set is checked or unchecked
This commit is contained in:
parent
7b57386758
commit
2d77970b3c
675
PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs
generated
675
PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -706,9 +706,10 @@ namespace Volian.Controls.Library
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ROFST Combo Tree
|
#region ROFST Combo Tree
|
||||||
|
static private int _lastRoFstId = -1;
|
||||||
private void LoadROComboTree()
|
private void LoadROComboTree()
|
||||||
{
|
{
|
||||||
cmboTreeROs.Nodes.Clear();
|
lblSrchRoMsg.Visible = false; // C2019-041: start out with no message about rofsts and folder(s) compatibility
|
||||||
// if only one docversion selected, this RoFst can be used. If more than one or none (none is all docversions), then check if they
|
// if only one docversion selected, this RoFst can be used. If more than one or none (none is all docversions), then check if they
|
||||||
// use the same RO fst. If not, put a message as the first tree node and return, otherwise, load the tree.
|
// use the same RO fst. If not, put a message as the first tree node and return, otherwise, load the tree.
|
||||||
List<DocVersionInfo> dvilTmp = new List<DocVersionInfo>();
|
List<DocVersionInfo> dvilTmp = new List<DocVersionInfo>();
|
||||||
@ -741,10 +742,21 @@ namespace Volian.Controls.Library
|
|||||||
if (!same)
|
if (!same)
|
||||||
{
|
{
|
||||||
DevComponents.AdvTree.Node tn = new DevComponents.AdvTree.Node();
|
DevComponents.AdvTree.Node tn = new DevComponents.AdvTree.Node();
|
||||||
tn.Text = "Incompatible Referenced Objects in selected folders";
|
// C2019-041: if selected folders do not have the same ro.fst then clear the ro list and let user know.
|
||||||
cmboTreeROs.Nodes.Add(tn);
|
cmboTreeROs.Nodes.Clear();
|
||||||
|
if (lstCheckedDocVersions == null || lstCheckedDocVersions.Count == 0)
|
||||||
|
lblSrchRoMsg.Text = "RO values are incompatible between the folders. This may be due to the RO values needing to be updated.";
|
||||||
|
else
|
||||||
|
lblSrchRoMsg.Text = "This folder(s) RO values are incompatible with the currently selected folder(s). This may be due to the RO values needing to be updated.";
|
||||||
|
lblSrchRoMsg.Visible = true;
|
||||||
|
_lastRoFstId = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// C2019-041: if requested rofst is same as last one, just return;
|
||||||
|
if (_lastRoFstId == rofstId) return;
|
||||||
|
lblSrchRoMsg.Refresh();
|
||||||
|
_lastRoFstId = rofstId; // C2019-041: Save this rofstid in case a new one is processed.
|
||||||
|
cmboTreeROs.Nodes.Clear();
|
||||||
this.cmboTreeROs.AdvTree.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(this.cmboTreeROs_BeforeExpand);
|
this.cmboTreeROs.AdvTree.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(this.cmboTreeROs_BeforeExpand);
|
||||||
cmboTreeROs.AdvTree.AfterExpand += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
cmboTreeROs.AdvTree.AfterExpand += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
||||||
cmboTreeROs.AdvTree.AfterCollapse += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
cmboTreeROs.AdvTree.AfterCollapse += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
||||||
|
@ -112,12 +112,12 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>402, 17</value>
|
<value>402, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<data name="cbxTextSearchText.SuperTooltip" xml:space="preserve">
|
<data name="cbxTextSearchText.SuperTooltip" xml:space="preserve">
|
||||||
@ -136,13 +136,13 @@ For additional search text options, use the Right Mouse button to get a context
|
|||||||
|
|
||||||
Boolean searches are case insensitive and the search finds RO data as text or within ROs (selection of optons 'Case Sensitive' & 'Search RO Text' are not available during 'Boolean Search').</value>
|
Boolean searches are case insensitive and the search finds RO data as text or within ROs (selection of optons 'Case Sensitive' & 'Search RO Text' are not available during 'Boolean Search').</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="sfdSearchResults.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="sfdSearchResults.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>162, 17</value>
|
<value>162, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="ofdSearchResults.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="ofdSearchResults.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>305, 17</value>
|
<value>305, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
x
Reference in New Issue
Block a user