From 9bea7abb56803528ad65fdf4844c3b6fb62077e8 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 7 Nov 2013 16:07:02 +0000 Subject: [PATCH] fix covertitle2 pagelist token processing --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 5c1deafb..d9f0f475 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1173,6 +1173,9 @@ namespace Volian.Print.Library ProcDescrList pdl = section.ActiveFormat.PlantFormat.FormatData.PrintData.ProcDescrList; if (pdl != null && pdl.Count > 0) { + // the following line is needed for FNP: a checkin needed to be done for Robinson and + // did not want to include the commented out lines in this 'case' statement group: + //string procnum = section.MyProcedure.MyContent.Number.Replace(@"\u8209?", "-"); // uncomment for FNP string procnum = section.MyProcedure.MyContent.Number; foreach (ProcDescr pd in pdl) { @@ -1184,7 +1187,10 @@ namespace Volian.Print.Library } if (pd.MatchProcNumber == "@") { - plstr = pd.ProcDescr1; + //if (Regex.IsMatch(procnum, "^[A-Za-z]+$")) // uncomment for FNP + plstr = pd.ProcDescr1; + //else // uncomment for FNP + // plstr = ""; // uncomment for FNP break; } } @@ -1388,7 +1394,8 @@ namespace Volian.Print.Library { lnCnt++; if (lnCnt == 1) continue; - svgGroup.Add(PageItemToSvgText(pageItem, line, yOffset)); + plstr = plstr.Replace(match, line); + svgGroup.Add(PageItemToSvgText(pageItem, plstr, yOffset)); yOffset += 12; } return plstr;