B2019-165 Added a check box on the automation tab to allow user to turn off the printing of a foldout page on the last page of a Word document that does not include foldouts (Byron/Braidwood)

Code cleanup, found a missed instance of a check for “FOLDOUT” as section number – corrected so that it using the Section_IsFoldout method instead
This commit is contained in:
2019-11-13 17:11:51 +00:00
parent 0e036366e4
commit 22978ffff5
5 changed files with 263 additions and 220 deletions

View File

@@ -2215,8 +2215,9 @@ namespace VEPROMS.CSLA.Library
int indxOfFoldout = 0;
foreach (ItemInfo sect in MyProcedure.Sections)
{
SectionConfig scfe = sect.MyConfig as SectionConfig;
if (sect.ItemID == fldid) return indxOfFoldout;
if (sect.DisplayText.ToUpper().StartsWith("FOLDOUT")) indxOfFoldout++;
if (scfe.Section_IsFoldout == "Y") indxOfFoldout++; // C2019-042 Section_ISFoldout will check for section number "FOLDOUT" or if check box is checked
}
return 0;
}