C2019-042 Added a check box to identify a section as being a foldout – used in with printing in duplex

C2019-042 use new format config setting to check if sections are foldouts
C2019-042 use new format config setting to check if sections are foldout
B2019-134 code cleanup, discovered we were missing a “break;” statement in processing folder specific information
This commit is contained in:
2019-11-06 20:50:29 +00:00
parent e8cac09909
commit cfb847de9c
10 changed files with 294 additions and 198 deletions

View File

@@ -274,6 +274,31 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Section_WordMargin");
}
}
//C2019-042 Section_IsFoldout checks Section Number, Section Title, and use of check box
[Category("Format")]
[DisplayName("This is a Foldout Section")]
[Description("Identify This Section as a Foldout")]
public string Section_IsFoldout
{
get
{
string rtnstr = "N";
string tmp = _Xp["Section", "IsFoldout"];
if (tmp == null || tmp == "")
{
if ((Number != null && Number.ToUpper().StartsWith("FOLDOUT")) || (Title != null && Title.ToUpper().Contains("FOLDOUT")))
rtnstr = "Y";
}
else
rtnstr = tmp;
return rtnstr;
}
set
{
_Xp["Section", "IsFoldout"] = value;
OnPropertyChanged("Section_IsFoldout");
}
}
#endregion
#region ToString
public override string ToString()