WCN Emergency Backgrounds Fix Tabs for Background Document Steps within subsections. Prior to this fix Lettered attachment steps were repeating the section letter "EE1" and numbered sections were repeating the section number "3.3.1"
This commit is contained in:
@@ -3970,7 +3970,16 @@ namespace VEPROMS.CSLA.Library
|
||||
if (tbformate != null)
|
||||
{
|
||||
if (useLinked)
|
||||
{
|
||||
// B2017-153 - WCN Emergency Backgrounds Fix Tabs for Background Document Steps within subsections
|
||||
// Prior to this fix Lettered attachment steps were repeating the section letter "EE1"
|
||||
// and numbered sections were repeating the section number "3.3.1"
|
||||
if (tbformate.StartsWith("WCNOC") && tbformate.Contains( LinkedTab[0].ToString() + "{numeric}"))
|
||||
tbformate = tbformate.Replace(LinkedTab[0].ToString() + "{numeric}","{numeric}");
|
||||
else if (tbformate.StartsWith("WCNOC") && tbformate.Contains(LinkedTab[0].ToString() + ".{numeric}"))
|
||||
tbformate = tbformate.Replace(LinkedTab[0].ToString() + ".{numeric}", "{numeric}");
|
||||
tbformate = tbformate.Replace("{numeric}", LinkedTab.Trim(" .".ToCharArray()).PadLeft(2));
|
||||
}
|
||||
if (tbformat.Contains("NA") && ordinal == 0)
|
||||
tbformate = tbformate.Replace("{numeric}", "NA");
|
||||
else
|
||||
|
Reference in New Issue
Block a user