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;
}
}
}
}