This commit is contained in:
Kathy Ruffing 2012-09-27 11:09:51 +00:00
parent bb27c20810
commit c0ae487ce1
3 changed files with 87 additions and 2 deletions

View File

@ -453,7 +453,43 @@ namespace VEPROMS.CSLA.Library
}
return null;
}
public bool IsFolder
{
get
{
return false;
}
}
public bool IsDocVersion
{
get
{
return true;
}
}
public bool IsProcedure
{
get
{
return false;
}
}
public bool IsSection
{
get
{
return false;
}
}
public bool IsStep
{
get
{
return false;
}
}
}
public enum VersionTypeEnum : int
{
WorkingDraft = 0, Temporary = 1, Revision = 128, Approved = 129

View File

@ -364,6 +364,41 @@ namespace VEPROMS.CSLA.Library
{
public TopCriteria() { ;}
}
public bool IsFolder
{
get
{
return true;
}
}
public bool IsDocVersion
{
get
{
return false;
}
}
public bool IsProcedure
{
get
{
return false;
}
}
public bool IsSection
{
get
{
return false;
}
}
public bool IsStep
{
get
{
return false;
}
}
}
}

View File

@ -1083,7 +1083,7 @@ namespace VEPROMS.CSLA.Library
get
{
ItemInfo temp = FirstSibling;
if(temp.ActiveParent.GetType() == typeof(VEPROMS.CSLA.Library.DocVersionInfo))return false;
if(temp.ActiveParent.IsDocVersion)return false;
if (temp.MyParent.IsSection) return false; // already at hls
if (temp.IsProcedure || temp.IsSection) return false;
while (((ItemInfo)temp.ActiveParent).IsHigh == false)
@ -1125,6 +1125,20 @@ namespace VEPROMS.CSLA.Library
return false;
}
}
public bool IsFolder
{
get
{
return false;
}
}
public bool IsDocVersion
{
get
{
return false;
}
}
public bool IsProcedure
{
get
@ -1788,7 +1802,7 @@ namespace VEPROMS.CSLA.Library
{
// Walk up active parents until the parent is not an item
ItemInfo tmp = this;
while (tmp.ActiveParent != null && tmp.ActiveParent.GetType() != typeof(DocVersionInfo))
while (tmp.ActiveParent != null && !tmp.ActiveParent.IsDocVersion)
tmp = (ItemInfo)tmp.ActiveParent;
if (tmp is ProcedureInfo)
return tmp as ProcedureInfo;