Fixed to allow search of selected multiple return RO value

Added comments
This commit is contained in:
John Jenko 2013-12-18 18:28:11 +00:00
parent 1510f4e3e9
commit d898b0a056
2 changed files with 5 additions and 4 deletions

View File

@ -128,7 +128,7 @@ namespace Volian.Controls.Library
} }
} }
//private string GetROList(ROFSTLookup.rochild[] chld) // same function as GetROsToSearch in DisplaySearch.cs
private string GetROChildren(object roObj) private string GetROChildren(object roObj)
{ {
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)roObj; ROFSTLookup.rochild chld = (ROFSTLookup.rochild)roObj;
@ -136,7 +136,8 @@ namespace Volian.Controls.Library
if (chld.children == null) // get a single ROID if (chld.children == null) // get a single ROID
{ {
//ROFSTLookup.rochild ro = (ROFSTLookup.rochild)roObj; //ROFSTLookup.rochild ro = (ROFSTLookup.rochild)roObj;
rtnstr += string.Format("{0}", chld.roid); rtnstr += string.Format("{0}", chld.roid);
if (rtnstr.Length == 12) rtnstr += "0000"; // last four digits are used for multiple return values
} }
else else
{ // spin through the child list and get the ROIDs. { // spin through the child list and get the ROIDs.

View File

@ -975,7 +975,7 @@ namespace Volian.Controls.Library
} }
return rtnVal; return rtnVal;
} }
// Same funtion as GetROChildren in DisplayReport.cs
private string GetROsToSearch(ROFSTLookup.rochild[] chld) private string GetROsToSearch(ROFSTLookup.rochild[] chld)
{ {
string rtnstr = ""; string rtnstr = "";
@ -983,7 +983,7 @@ namespace Volian.Controls.Library
{ {
ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag; ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
rtnstr += string.Format("{0}", ro.roid); rtnstr += string.Format("{0}", ro.roid);
if (rtnstr.Length == 12) rtnstr += "0000"; if (rtnstr.Length == 12) rtnstr += "0000"; // last four digits are used for multiple return values
} }
else else
{ // spin through the child list and get the ROIDs. { // spin through the child list and get the ROIDs.