F2019-069: Hold Point designator for Barakah (add Step’s DefaultText attribute)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user