From 72784a7d4870a26474415eed21b528037bf1b988 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 21 Jul 2017 12:43:27 +0000 Subject: [PATCH] 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" --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index b7f4be37..72df662b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -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