This commit is contained in:
@@ -269,6 +269,24 @@ namespace VEPROMS.CSLA.Library
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool IsDefaultSection
|
||||
{
|
||||
get
|
||||
{
|
||||
// check to see if ActiveParent is a section, if so it is a high level step
|
||||
if (MyContent.Type / 10000 != 1) return false;
|
||||
// get procedure section and then
|
||||
ItemInfo parent = (ItemInfo)ActiveParent;
|
||||
if (!parent.IsProcedure) return false;
|
||||
ProcedureConfig pc = (ProcedureConfig)parent.MyConfig;
|
||||
int sectstartid = -1;
|
||||
string ss = pc == null ? null : pc.SectionStart;
|
||||
if (ss != null) sectstartid = System.Convert.ToInt32(ss);
|
||||
else return false;
|
||||
if (ItemID == sectstartid) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool IsProcedure
|
||||
{
|
||||
get
|
||||
|
Reference in New Issue
Block a user