This commit is contained in:
2013-08-13 12:06:28 +00:00
parent 323a3cf734
commit 37269da828
2 changed files with 38 additions and 6 deletions

View File

@@ -1062,6 +1062,27 @@ namespace Volian.Print.Library
DidHLSText = true;
plstr = plstr.Replace(token, HLSText);
break;
case "{PROCDES}":
ProcDescrList pdl = section.ActiveFormat.PlantFormat.FormatData.PrintData.ProcDescrList;
if (pdl != null && pdl.Count > 0)
{
string procnum = section.MyProcedure.MyContent.Number;
foreach (ProcDescr pd in pdl)
{
string matchStr = (pd.MatchProcNumber.StartsWith("*}"))?pd.MatchProcNumber.Substring(2):pd.MatchProcNumber;
if (procnum.Contains(matchStr))
{
plstr = pd.ProcDescr1;
break;
}
if (pd.MatchProcNumber == "@")
{
plstr = pd.ProcDescr1;
break;
}
}
}
break;
default:
if (token.Contains(@"RO-"))
{