diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 637d21e3..7fca9041 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2715,18 +2715,17 @@ namespace Volian.Print.Library if (myMsg.IndexOf(@"%c") > -1) myMsg = myMsg.Replace(@"%c", " "); - // Top Continue message includes high level step text - // - was going to use for V.C. Summer but ended up not needing it - // - leaving it here for future use - jsj 10/7/2014 + // Top Continue message includes high level step tab and text + // - C2019-005 Put in for Barakah Alarms 1-21-2019 + // - Top continue message set as: "" in the format + // - in this case the Message part will Bold the tab and Underline Bold the high level step text // - //if ((docstyle.Continue.Top.HLS ?? 0) == 1) - //{ - // string hlsText = ""; - // ItemInfo parentStep = MyItemInfo; - // while (!parentStep.IsHigh && parentStep.MyParent != null && !parentStep.IsSection) parentStep = parentStep.MyParent; - // if (parentStep.IsHigh) hlsText = parentStep.FormattedDisplayText;// .DisplayText; - // myMsg = hlsText + myMsg; - //} + if ((docstyle.Continue.Top.HLS ?? 0) == 1) + { + myMsg = docstyle.Continue.Top.Message; // reset because we did replace strings in code above + ItemInfo parentStep = MyItemInfo.MyHLS; // get the high level step + myMsg = string.Format(myMsg, parentStep.CombinedTab, parentStep.DisplayTextKeepSpecialChars); + } // Calvert Alarms, step description have the alarm number as part of the top continue message // Also, if the break is within the CONDITION/RESPONSE, there are continue messages in both columns at the top