This commit is contained in:
2008-05-15 11:03:52 +00:00
parent 2c62440347
commit 0b14d49c78
2 changed files with 120 additions and 40 deletions

View File

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