Merge pull request 'F2024-008 - Updated transition definitions to title case section numbers, section titles, and procedure titles. Also surround section titles with parenthesis.' (#222) from Vogtle3&4 into Development
Reviewed-on: #222
This commit is contained in:
commit
1ca341670e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1545,6 +1545,9 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
//if (tb._FromItem.MyContent.InList(5322)) Console.WriteLine("Here");
|
||||
string str1 = TranGetSectionNumber(tb._ToItem);
|
||||
// F2024-008 added flag to title case the section number in transitions
|
||||
if (tb._FormatData.TransData.Cap1stCharTransSectionNumber)
|
||||
str1 = CapFirstLetterOnly(str1, 0);
|
||||
if(!tb._ToItem.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert) return str1;
|
||||
List<ItemInfo> FromSections = GetSections(tb._FromItem.ActiveSection);
|
||||
List<ItemInfo> ToSections = GetSections(tb._ToItem.ActiveSection);
|
||||
@ -1615,6 +1618,9 @@ namespace VEPROMS.CSLA.Library
|
||||
sectionTitle = (tb._FormatData.TransData.CapsTransitionsSection ? sectionTitle.ToUpper().Replace(@"\U", @"\u") :
|
||||
tb._FormatData.TransData.Cap1stCharTransSection ? CapFirstLetterOnly(sectionTitle, 0) :
|
||||
sectionTitle);
|
||||
// F2024-008 Added flag to surround the section title with parenthesis in transitions
|
||||
if (tb._FormatData.TransData.ParensAroundSectionTitle)
|
||||
sectionTitle = string.Format("({0})", sectionTitle);
|
||||
// B2017-236 Replace embedded returns with spaces and trim the spaces from the end of the section title.
|
||||
return TrimSectionTitle(sectionTitle);
|
||||
}
|
||||
|
@ -7103,6 +7103,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _Cap1stCharTrans, "@Cap1stCharTrans");
|
||||
}
|
||||
}
|
||||
// Title Case section title
|
||||
private LazyLoad<bool> _Cap1stCharTransSection;
|
||||
public bool Cap1stCharTransSection
|
||||
{
|
||||
@ -7111,6 +7112,24 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _Cap1stCharTransSection, "@Cap1stCharTransSection");
|
||||
}
|
||||
}
|
||||
// Title Case section number
|
||||
private LazyLoad<bool> _Cap1stCharTransSectionNumber;
|
||||
public bool Cap1stCharTransSectionNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Cap1stCharTransSectionNumber, "@Cap1stCharTransSectionNumber");
|
||||
}
|
||||
}
|
||||
// Parens around section title
|
||||
private LazyLoad<bool> _ParensAroundSectionTitle;
|
||||
public bool ParensAroundSectionTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _ParensAroundSectionTitle, "@ParensAroundSectionTitle");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _UseTransitionModifier;
|
||||
public bool UseTransitionModifier
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user