B2025-012 PROMS – Searching Step Elements – All Step Types

When searching for step elements (the Find Selected Step Elements option is selected) and "All Types." Is selected for step types, you incorrectly get the "No Types Selected" message box when clicking on search.
This commit is contained in:
Matthew Schill 2025-02-05 08:38:18 -05:00
parent 8248bd8e47
commit d30bb2e329

View File

@ -2712,6 +2712,17 @@ namespace Volian.Controls.Library
lstCheckedStepTypes.Remove((int)sd.Index);
lstCheckedStepTypesStr.Remove(advTreeStepTypes.SelectedNode.Text);
}
//B2025-012 Find Step Elements
//uncheck the parents if there are any
DevComponents.AdvTree.Node tmp_n = n;
while (tmp_n.Parent != null)
{
tmp_n = tmp_n.Parent;
tmp_n.Checked = false;
}
//uncheck All Types
advTreeStepTypes.Nodes[0].Checked = false;
}
//C2023-010: Check if the node has children and if we need to process those children as well
@ -2724,6 +2735,37 @@ namespace Volian.Controls.Library
advTreeStepTypes_AfterCheck(sender, null);
}
}
else if (n.Text == "All Types")
{
//B2025-012 Find Step Elements
//if checking / un-checking All Types
//Add Types to type list appropriately
if (n.Checked)
{
foreach (Node child in advTreeStepTypes.Nodes)
{
if (child.Text != "All Types")
{
child.Checked = true;
advTreeStepTypes.SelectedNode = child;
advTreeStepTypes_AfterCheck(sender, null);
}
}
}
else
{
foreach (Node child in advTreeStepTypes.Nodes)
{
if (child.Text != "All Types")
{
child.Checked = false;
advTreeStepTypes.SelectedNode = child;
advTreeStepTypes_AfterCheck(sender, null);
}
}
}
}
buildStepTypePannelTitle();