Added code to handle "other procedure" transition format type of Byron

This commit is contained in:
Rich 2015-02-20 02:59:54 +00:00
parent c8618a23d4
commit 18827f4bca

View File

@ -311,7 +311,7 @@ namespace Volian.Print.Library
PdfPCell c = new PdfPCell(h);
c.HorizontalAlignment = Element.ALIGN_LEFT;
c.PaddingBottom = paddingBottom;
if (lastLevel > 1 && !tranTypes[ti.TranType].Contains("{Proc")) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
if (lastLevel > 1 && (!tranTypes[ti.TranType].Contains("{Proc") && !tranTypes[ti.TranType].Contains("other procedure"))) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
t.AddCell(c);
//add from text
h = new Phrase();
@ -321,7 +321,7 @@ namespace Volian.Print.Library
c = new PdfPCell(h);
c.HorizontalAlignment = Element.ALIGN_LEFT;
c.PaddingBottom = paddingBottom;
if (lastLevel > 1 && !tranTypes[ti.TranType].Contains("{Proc")) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
if (lastLevel > 1 && (!tranTypes[ti.TranType].Contains("{Proc") && !tranTypes[ti.TranType].Contains("other procedure"))) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
t.AddCell(c);
//add to text
h = new Phrase();
@ -331,7 +331,7 @@ namespace Volian.Print.Library
c = new PdfPCell(h);
c.HorizontalAlignment = Element.ALIGN_LEFT;
c.PaddingBottom = paddingBottom;
if (lastLevel > 1 && !tranTypes[ti.TranType].Contains("{Proc")) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
if (lastLevel > 1 && (!tranTypes[ti.TranType].Contains("{Proc") && !tranTypes[ti.TranType].Contains("other procedure"))) c.BackgroundColor = new Color(System.Drawing.Color.LightCoral);
t.AddCell(c);
}
}