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) if (myMsg.IndexOf(@"%c") > -1)
myMsg = myMsg.Replace(@"%c", " "); myMsg = myMsg.Replace(@"%c", " ");
// Top Continue message includes high level step text // Top Continue message includes high level step tab and text
// - was going to use for V.C. Summer but ended up not needing it // - C2019-005 Put in for Barakah Alarms 1-21-2019
// - leaving it here for future use - jsj 10/7/2014 // - 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) if ((docstyle.Continue.Top.HLS ?? 0) == 1)
//{ {
// string hlsText = ""; myMsg = docstyle.Continue.Top.Message; // reset because we did replace strings in code above
// ItemInfo parentStep = MyItemInfo; ItemInfo parentStep = MyItemInfo.MyHLS; // get the high level step
// while (!parentStep.IsHigh && parentStep.MyParent != null && !parentStep.IsSection) parentStep = parentStep.MyParent; myMsg = string.Format(myMsg, parentStep.CombinedTab, parentStep.DisplayTextKeepSpecialChars);
// if (parentStep.IsHigh) hlsText = parentStep.FormattedDisplayText;// .DisplayText; }
// myMsg = hlsText + myMsg;
//}
// Calvert Alarms, step description have the alarm number as part of the top continue message // 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 // Also, if the break is within the CONDITION/RESPONSE, there are continue messages in both columns at the top