C2019-005 Added a Top Continue message the included the high level step tab and step text, and allow for bolding the tab while underlining and bolding the step text.

This commit is contained in:
John Jenko 2019-01-21 18:20:14 +00:00
parent b874d9e92e
commit ed895209f7

View File

@ -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: "<Top Message="\b {0}\b0 \ul\b {1}\b0\ulnone (continued)" HLS="1" Margin="0" />" 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