From 8b3f72d3f71ee7ebc2ce7483e0c2d01c085d6582 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 17 Dec 2013 14:20:07 +0000 Subject: [PATCH] Implement ContinueOnly format flag on RNOTypes (for Catawba and McGuire) --- PROMS/Volian.Print.Library/vlnParagraph.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 88d97303..67102779 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -859,7 +859,12 @@ namespace Volian.Print.Library OutputOtherPageSteps(cb, YTopMost, yPageStart, yTopMargin, yBottomMargin); DocStyle docstyle = MyItemInfo.MyDocStyle; string myMsg = docstyle.Continue.Bottom.Message; - if (myMsg != null && myMsg != "") + + // a format flag exists that states to only put a BOTTOM message if it is a certain type (RNO) + // check for this.... + bool RNOContinueOnly = MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[40].ContinueOnly; + bool doBottom = !RNOContinueOnly || (MyItemInfo.IsInRNO && RNOContinueOnly); + if (doBottom && myMsg != null && myMsg != "") { myMsg = ReplaceStepBottomContinue(myMsg); float msg_yLocation = 0; @@ -899,7 +904,18 @@ namespace Volian.Print.Library break; } if (!PageBreakOnStep) - MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0, msg_yLocation, docstyle.Continue.Bottom.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font); + { + float xoffB = 0; + if (RNOContinueOnly) + { + int colR = int.Parse(MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ColRTable.Split(",".ToCharArray())[MyItemInfo.ColumnMode]); + xoffB = colR + docstyle.Layout.LeftMargin + docstyle.Continue.Bottom.Margin ?? 0; + } + else + xoffB = docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0; + //MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, docstyle.Layout.LeftMargin + XOffsetBox + docstyle.Continue.Bottom.Margin ?? 0, msg_yLocation, docstyle.Continue.Bottom.Font);// MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font); + MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, xoffB, msg_yLocation, docstyle.Continue.Bottom.Font); + } } if (PageBreakOnStep) MyPageHelper.BottomMessage = null; cb.PdfDocument.NewPage();