Added logic to find Multi-Return values when info is retrieved for Multi-Return Value ROs.
Refresh DocumentDRoUsages before saving Delete "Old" DRoUsages when saving Replace hardspace in value Replace xB3 with unicode of superscript 3. Added ability to DisplayRO to add Multi-Return Values in an MS Word Section
This commit is contained in:
@@ -898,33 +898,43 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
private Dictionary<string, rochild> _dicROAPID = null;
|
||||
public string GetROValueByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
public rochild? GetROChildByAccPageID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||
if (child == null) return null;
|
||||
if (child == null)
|
||||
{
|
||||
if(Regex.IsMatch(accPageID, @".*\.[A-Z]"))
|
||||
{
|
||||
string accpage = accPageID.Substring(0, accPageID.Length - 3);
|
||||
int index = accPageID.Substring(accPageID.Length - 2, 1)[0] - 'A';
|
||||
child = GetRoChildByAccPagID(accpage, spDefault, igDefault);
|
||||
if (child == null) return null;
|
||||
if (((rochild)child).children != null && ((rochild)child).children.Length > 0 && ((rochild)child).children.Length > index)
|
||||
return ((rochild)child).children[index];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (((rochild)child).children != null && ((rochild)child).children.Length > 0)
|
||||
return ((rochild)child).children[0].value;
|
||||
string val = ((rochild)child).value;
|
||||
if (val != null) return val;
|
||||
return ((rochild)child).children[0];
|
||||
return null;
|
||||
}
|
||||
public string GetROValueByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetROChildByAccPageID(accPageID, spDefault, igDefault);
|
||||
if (child == null) return null;
|
||||
return ((rochild)child).value;
|
||||
}
|
||||
public int? GetROTypeByAccPagID(string accPageID, string spDefault, string igDefault)
|
||||
{
|
||||
rochild? child = GetRoChildByAccPagID(accPageID, spDefault, igDefault);
|
||||
rochild? child = GetROChildByAccPageID(accPageID, spDefault, igDefault);
|
||||
if (child == null) return null;
|
||||
if (((rochild)child).children != null && ((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);
|
||||
rochild? child = GetROChildByAccPageID(accPageID, spDefault, igDefault);
|
||||
if (child == null) return null;
|
||||
if (((rochild)child).children != null && ((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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user