F2024-008 - Updated transition definitions to title case section numbers, section titles, and procedure titles. Also surround section titles with parenthesis. #222
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");
|
//if (tb._FromItem.MyContent.InList(5322)) Console.WriteLine("Here");
|
||||||
string str1 = TranGetSectionNumber(tb._ToItem);
|
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;
|
if(!tb._ToItem.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert) return str1;
|
||||||
List<ItemInfo> FromSections = GetSections(tb._FromItem.ActiveSection);
|
List<ItemInfo> FromSections = GetSections(tb._FromItem.ActiveSection);
|
||||||
List<ItemInfo> ToSections = GetSections(tb._ToItem.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") :
|
sectionTitle = (tb._FormatData.TransData.CapsTransitionsSection ? sectionTitle.ToUpper().Replace(@"\U", @"\u") :
|
||||||
tb._FormatData.TransData.Cap1stCharTransSection ? CapFirstLetterOnly(sectionTitle, 0) :
|
tb._FormatData.TransData.Cap1stCharTransSection ? CapFirstLetterOnly(sectionTitle, 0) :
|
||||||
sectionTitle);
|
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.
|
// B2017-236 Replace embedded returns with spaces and trim the spaces from the end of the section title.
|
||||||
return TrimSectionTitle(sectionTitle);
|
return TrimSectionTitle(sectionTitle);
|
||||||
}
|
}
|
||||||
|
@ -7103,6 +7103,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _Cap1stCharTrans, "@Cap1stCharTrans");
|
return LazyLoad(ref _Cap1stCharTrans, "@Cap1stCharTrans");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Title Case section title
|
||||||
private LazyLoad<bool> _Cap1stCharTransSection;
|
private LazyLoad<bool> _Cap1stCharTransSection;
|
||||||
public bool Cap1stCharTransSection
|
public bool Cap1stCharTransSection
|
||||||
{
|
{
|
||||||
@ -7111,6 +7112,24 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _Cap1stCharTransSection, "@Cap1stCharTransSection");
|
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;
|
private LazyLoad<bool> _UseTransitionModifier;
|
||||||
public bool UseTransitionModifier
|
public bool UseTransitionModifier
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user