used new property ShortROID

created new property ShortROID
This commit is contained in:
Rich 2012-01-26 19:45:41 +00:00
parent 7a179b5403
commit 1709f8970d
2 changed files with 20 additions and 2 deletions

View File

@ -165,4 +165,22 @@ namespace VEPROMS.CSLA.Library
this.RaiseListChangedEvents = true;
}
}
public partial class RoUsageInfo
{
private string _ShortROID;
public string ShortROID
{
get
{
if (_ShortROID == null)
{
if (ROID.Length == 16 && ROID.EndsWith("0000"))
_ShortROID = ROID.ToUpper().Substring(0, 12);
else
_ShortROID = ROID.ToUpper();
}
return _ShortROID;
}
}
}
}

View File

@ -664,8 +664,8 @@ namespace VEPROMS.CSLA.Library
//_MyTimer.ActiveProcess = "Build Distinct RO Usage List";
using (RoUsageInfoList myList = RoUsageInfoList.GetAllForProcedure(proc))
foreach (RoUsageInfo myRO in myList)
if (!myROIDs.Contains(myRO.ROID.ToUpper()))
myROIDs.Add(myRO.ROID.ToUpper());
if (!myROIDs.Contains(myRO.ShortROID))
myROIDs.Add(myRO.ShortROID);
using (DROUsageInfoList myList = DROUsageInfoList.GetAllForProcedure(proc))
foreach (DROUsageInfo myRO in myList)
if (!myROIDs.Contains(myRO.ROID.ToUpper()))