This commit is contained in:
parent
bb27c20810
commit
c0ae487ce1
@ -453,7 +453,43 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
return null;
|
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
|
public enum VersionTypeEnum : int
|
||||||
{
|
{
|
||||||
WorkingDraft = 0, Temporary = 1, Revision = 128, Approved = 129
|
WorkingDraft = 0, Temporary = 1, Revision = 128, Approved = 129
|
||||||
|
@ -364,6 +364,41 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
public TopCriteria() { ;}
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1083,7 +1083,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
ItemInfo temp = FirstSibling;
|
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.MyParent.IsSection) return false; // already at hls
|
||||||
if (temp.IsProcedure || temp.IsSection) return false;
|
if (temp.IsProcedure || temp.IsSection) return false;
|
||||||
while (((ItemInfo)temp.ActiveParent).IsHigh == false)
|
while (((ItemInfo)temp.ActiveParent).IsHigh == false)
|
||||||
@ -1125,6 +1125,20 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool IsFolder
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool IsDocVersion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
public bool IsProcedure
|
public bool IsProcedure
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -1788,7 +1802,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
// Walk up active parents until the parent is not an item
|
// Walk up active parents until the parent is not an item
|
||||||
ItemInfo tmp = this;
|
ItemInfo tmp = this;
|
||||||
while (tmp.ActiveParent != null && tmp.ActiveParent.GetType() != typeof(DocVersionInfo))
|
while (tmp.ActiveParent != null && !tmp.ActiveParent.IsDocVersion)
|
||||||
tmp = (ItemInfo)tmp.ActiveParent;
|
tmp = (ItemInfo)tmp.ActiveParent;
|
||||||
if (tmp is ProcedureInfo)
|
if (tmp is ProcedureInfo)
|
||||||
return tmp as ProcedureInfo;
|
return tmp as ProcedureInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user