F2019-069: Hold Point designator for Barakah (add Step’s DefaultText attribute)

This commit is contained in:
2021-07-15 13:07:48 +00:00
parent 0dd4889e5c
commit 8899967a8e
5 changed files with 39 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ namespace VEPROMS.CSLA.Library
private bool PrintingSmartTemplate = false;
public string StartText;
public string OriginalText; // compare for save to see if change for links.
public bool AddedDefaultTextFromFmt = false;
private FormatInfo _MyFormat;
#endregion
#region Constructors
@@ -218,6 +219,12 @@ namespace VEPROMS.CSLA.Library
text = text.Replace(@"\u9586?", @"\\");
}
_MyStaticItemInfo = _MyItemInfo;
// F2019-069: Add format variable to allow format to specify Default Text for a step. Implemented for Barakah's 'Hold Point'
if (_MyItemInfo.MyContent.Text == "" && _MyItemInfo.FormatStepData.DefaultText != null && _MyItemInfo.FormatStepData.DefaultText != "")
{
text= _MyItemInfo.FormatStepData.DefaultText;
AddedDefaultTextFromFmt = true;
}
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted, underlineAfterDashSpace, epMode);
_MyStaticItemInfo = null;
StartText = text;