B2018-054 Added a HasSectionContent method to tell us if a section has sub-sections (used in frmSectionProperties.cs)
B2018-054 Don’t allow user to change a step section (with no steps) to a word section, if that section has sub sections
This commit is contained in:
@@ -3392,6 +3392,16 @@ namespace VEPROMS.CSLA.Library
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// B2018-054 added check for sub sections - fixes issue of added a new section (step section) then adding sub-section, then changing main section to word section
|
||||
public bool HasSectionContent
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MyContent.ContentPartCount == 0) return false;
|
||||
if (MyContent.ContentPartCount == 1 && MyContent.ContentParts[0].PartType == E_FromType.Section) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
private ProcedureInfo _MyProcedure;
|
||||
public ProcedureInfo MyProcedure
|
||||
{
|
||||
|
Reference in New Issue
Block a user