This commit is contained in:
2011-03-10 13:32:26 +00:00
parent a67f3dc6c7
commit b43ea73257
7 changed files with 775 additions and 645 deletions

View File

@@ -175,6 +175,20 @@ namespace VEPROMS.CSLA.Library
if (ROID.StartsWith("FFFF")) return string.Format("Invalid Unit RO '{0}'", ROID);
return string.Format("Invalid RO '{0}'",ROID);
}
public rochild GetRoChild12(string ROID16)
{
string ROID = ROID16.Substring(0, 12);
if (dicRos == null) ParseIntoDictionary(_ROFst != null ? _ROFst.ROLookup : _ROFstInfo.ROLookup);
// Use the ROID to get the value from the dictionary
if (dicRos.ContainsKey(ROID))
{
rochild rochld = (rochild)dicRos[ROID];
return rochld;
}
rochild tmp = new rochild();
tmp.ID = -1;
return tmp;
}
public rochild GetRoChild(string ROID)
{
if (dicRos == null) ParseIntoDictionary(_ROFst != null ? _ROFst.ROLookup : _ROFstInfo.ROLookup);