This commit is contained in:
Kathy Ruffing 2010-09-23 18:42:55 +00:00
parent cbffaba9d9
commit 154357c307

View File

@ -941,6 +941,14 @@ namespace VEPROMS.CSLA.Library
if (myitems != null) return myitems[0];
return null;
}
public bool HasAncestor(ItemInfo ancestor)
{
if (ancestor == null) return false;
ItemInfo parent = ActiveParent as ItemInfo;
if (parent == null) return false;
if (ancestor.ItemID == parent.ItemID) return true;
return parent.HasAncestor(ancestor);
}
#endregion
#region More IsType
public bool IsProcedurePart