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:
Rich 2017-07-21 12:43:27 +00:00
parent 54a50c8436
commit 72784a7d48

View File

@ -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