Add logic for multiple return values to AccPageID lookup
This commit is contained in:
parent
2960fe87c1
commit
2c4f1280ca
@ -800,19 +800,29 @@ namespace VEPROMS.CSLA.Library
|
||||
public string GetROValueByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||
if (child != null) return ((rochild)child).value;
|
||||
if (child == null) return null;
|
||||
if(((rochild)child).children.Length > 0)
|
||||
return ((rochild)child).children[0].value;
|
||||
string val = ((rochild)child).value;
|
||||
if (val != null) return val;
|
||||
return null;
|
||||
}
|
||||
public int? GetROTypeByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||
if (child != null) return ((rochild)child).type;
|
||||
if (child == null) return null;
|
||||
if (((rochild)child).children.Length > 0)
|
||||
return ((rochild)child).children[0].type;
|
||||
return ((rochild)child).type;
|
||||
return null;
|
||||
}
|
||||
public string GetROIDByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||
if (child != null) return ((rochild)child).roid;
|
||||
if (child == null) return null;
|
||||
if (((rochild)child).children.Length > 0)
|
||||
return ((rochild)child).children[0].roid;
|
||||
return ((rochild)child).roid;
|
||||
return null;
|
||||
}
|
||||
public rochild? GetRoChildByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
|
Loading…
x
Reference in New Issue
Block a user