Development #269

Merged
djankowski merged 6 commits from Development into master 2024-03-15 09:33:57 -04:00
5 changed files with 15 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4556,6 +4556,7 @@ namespace VEPROMS.CSLA.Library
}
bool isAlpha = tbformat.ToUpper().Contains("ALPHA");
int ordinal = Ordinal;
bool trimSeqValue = FormatStepData.TabData.TrimSeqTabValue; // F2024-043 remove space around SEQ tab value
bool useLinked = false; // if this is enhanced, and the LinkedTab isn't numeric, flag to use 'LinkedTab' for the tab.
if (ActiveSection != null && ActiveSection.IsEnhancedSection) // C2018-003 fixed use of getting the active section
{
@ -4587,6 +4588,7 @@ namespace VEPROMS.CSLA.Library
tbformat = tbformat.Replace("{numeric}", LinkedTab.Trim(" .".ToCharArray()).PadLeft(2));
}
string alpha = useLinked?LinkedTab.Trim():AlphabeticalNumbering(ordinal);
if (trimSeqValue) alpha = alpha.Trim(); // F2024-043 trim white around SEQ tab value (for sub-steps)
// B2017-211 Roman High Level steps should be followed by Uppercase alpha substeps - This is being limited to Calvert SAMG Format
if (_ActiveFormat.Name =="BGESAM1" &&MyParent != null && MyParent.IsHigh && MyParent.IsStep && MyParent.FormatStepData.TabData.IdentEdit.Contains("ROMAN"))
tbformat = tbformat.Replace("{alpha}", alpha);
@ -4629,7 +4631,8 @@ namespace VEPROMS.CSLA.Library
tbformat = tbformat.Replace("{numeric}", stpTab);
}
else
tbformat = tbformat.Replace("{numeric}", trimTabStart ? ordinal.ToString() : FormatStepData.AtLeastTwoDigits ? ordinal.ToString().PadLeft(2, '0') : ordinal.ToString().PadLeft(2));
// F2024-043 added trimSeqValue to trim white around SEQ tab value (for sub-steps)
tbformat = tbformat.Replace("{numeric}", (trimTabStart || trimSeqValue) ? ordinal.ToString() : FormatStepData.AtLeastTwoDigits ? ordinal.ToString().PadLeft(2, '0') : ordinal.ToString().PadLeft(2));
if (tbformate != null)
{
if (useLinked)

View File

@ -6635,6 +6635,17 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _UseEntireSectionNum, "TabData/@UseEntireSectionNum");
}
}
// this will remove white space before/after the tab value
// put in for Vogtal Units 3 & 4 formats for continuous action sub-steps
// they have tab value within parenthesis and for a single digit/letter we don't want the white steps before or after it
private LazyLoad<bool> _TrimSeqTabValue;
public bool TrimSeqTabValue
{
get
{
return LazyLoad(ref _TrimSeqTabValue, "TabData/@TrimSeqTabValue");
}
}
}
#endregion