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:
@@ -89,7 +89,7 @@ namespace VEPROMS
|
||||
PlantFormat pf = (ppCmbxFormat.SelectedIndex != -1) ? FormatInfoList.SortedFormatInfoList[ppCmbxFormat.SelectedIndex].PlantFormat : (_SectionConfig.MyFormat != null) ? _SectionConfig.MyFormat.PlantFormat : _SectionConfig.MyDefaultFormat.PlantFormat;
|
||||
ItemInfo ii = ItemInfo.Get(_SectionConfig.MySection.ItemID);
|
||||
// if creating a new section, enable the StepSect and WordSect radio buttons
|
||||
bool isNewSection = !(ii.HasWordContent || ii.HasStepContent);
|
||||
bool isNewSection = !(ii.HasWordContent || ii.HasStepContent || ii.HasSectionContent); // B2018-054 added check for sub sections
|
||||
int numStepSects = 0;
|
||||
int numWordSects = 0;
|
||||
foreach (DocStyle nds in pf.DocStyles.DocStyleListActive)
|
||||
|
Reference in New Issue
Block a user