This commit is contained in:
parent
cbffaba9d9
commit
154357c307
@ -941,6 +941,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (myitems != null) return myitems[0];
|
if (myitems != null) return myitems[0];
|
||||||
return null;
|
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
|
#endregion
|
||||||
#region More IsType
|
#region More IsType
|
||||||
public bool IsProcedurePart
|
public bool IsProcedurePart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user