This commit is contained in:
Jsj
2007-12-05 20:51:58 +00:00
parent f05c7d0937
commit 5f7f94d1c9
14 changed files with 129 additions and 27 deletions

View File

@@ -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
{

View File

@@ -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" />