used new property ShortROID
created new property ShortROID
This commit is contained in:
parent
7a179b5403
commit
1709f8970d
@ -165,4 +165,22 @@ namespace VEPROMS.CSLA.Library
|
|||||||
this.RaiseListChangedEvents = true;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -664,8 +664,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
//_MyTimer.ActiveProcess = "Build Distinct RO Usage List";
|
//_MyTimer.ActiveProcess = "Build Distinct RO Usage List";
|
||||||
using (RoUsageInfoList myList = RoUsageInfoList.GetAllForProcedure(proc))
|
using (RoUsageInfoList myList = RoUsageInfoList.GetAllForProcedure(proc))
|
||||||
foreach (RoUsageInfo myRO in myList)
|
foreach (RoUsageInfo myRO in myList)
|
||||||
if (!myROIDs.Contains(myRO.ROID.ToUpper()))
|
if (!myROIDs.Contains(myRO.ShortROID))
|
||||||
myROIDs.Add(myRO.ROID.ToUpper());
|
myROIDs.Add(myRO.ShortROID);
|
||||||
using (DROUsageInfoList myList = DROUsageInfoList.GetAllForProcedure(proc))
|
using (DROUsageInfoList myList = DROUsageInfoList.GetAllForProcedure(proc))
|
||||||
foreach (DROUsageInfo myRO in myList)
|
foreach (DROUsageInfo myRO in myList)
|
||||||
if (!myROIDs.Contains(myRO.ROID.ToUpper()))
|
if (!myROIDs.Contains(myRO.ROID.ToUpper()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user