This commit is contained in:
@@ -26,7 +26,16 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get { return this.MyContent.ContentPartCount > 0; }
|
||||
}
|
||||
private IVEDrillDown _ActiveParent=null;
|
||||
public Item MyProcedure
|
||||
{
|
||||
get
|
||||
{
|
||||
// Walk up active parents until the parent is not an item
|
||||
Item tmp = this;
|
||||
while (tmp.ActiveParent.GetType().Name != "DocVersion") tmp = (Item)tmp.ActiveParent;
|
||||
return tmp;
|
||||
}
|
||||
} private IVEDrillDown _ActiveParent = null;
|
||||
public IVEDrillDown ActiveParent
|
||||
{
|
||||
get
|
||||
@@ -420,6 +429,16 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get { return this.MyContent.ContentPartCount > 0; }
|
||||
}
|
||||
public ItemInfo MyProcedure
|
||||
{
|
||||
get
|
||||
{
|
||||
// Walk up active parents until the parent is not an item
|
||||
ItemInfo tmp = this;
|
||||
while (tmp.ActiveParent.GetType().Name != "DocVersionInfo") tmp = (ItemInfo)tmp.ActiveParent;
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
private IVEDrillDownReadOnly _ActiveParent = null;
|
||||
public IVEDrillDownReadOnly ActiveParent
|
||||
{
|
||||
|
@@ -69,6 +69,7 @@
|
||||
<Compile Include="Extension\ItemExt.cs" />
|
||||
<Compile Include="Extension\PartExt.cs" />
|
||||
<Compile Include="Extension\PropertyDescriptors.cs" />
|
||||
<Compile Include="Extension\ROFSTExt.cs" />
|
||||
<Compile Include="Extension\TransitionExt.cs" />
|
||||
<Compile Include="Format\DocStyles.cs" />
|
||||
<Compile Include="Format\ENums.cs" />
|
||||
|
Reference in New Issue
Block a user