Fixed logic so that Point Beach AOP-9C will print.

This commit is contained in:
Rich 2013-12-06 20:38:55 +00:00
parent 067f004170
commit aa652f5b73

View File

@ -1178,6 +1178,8 @@ namespace Volian.Print.Library
//string procnum = section.MyProcedure.MyContent.Number.Replace(@"\u8209?", "-"); // uncomment for FNP //string procnum = section.MyProcedure.MyContent.Number.Replace(@"\u8209?", "-"); // uncomment for FNP
string procnum = section.MyProcedure.MyContent.Number; string procnum = section.MyProcedure.MyContent.Number;
foreach (ProcDescr pd in pdl) foreach (ProcDescr pd in pdl)
{
if (pd.MatchProcNumber != null)
{ {
string matchStr = (pd.MatchProcNumber.StartsWith("*}")) ? pd.MatchProcNumber.Substring(2) : pd.MatchProcNumber; string matchStr = (pd.MatchProcNumber.StartsWith("*}")) ? pd.MatchProcNumber.Substring(2) : pd.MatchProcNumber;
if (procnum.Contains(matchStr)) if (procnum.Contains(matchStr))
@ -1194,6 +1196,9 @@ namespace Volian.Print.Library
break; break;
} }
} }
else
plstr = "UNKNOWN";
}
} }
break; break;
case "{CURDATE}": case "{CURDATE}":