Code cleanup – B2019-133 – continuation of bug fix for B2018-057 to replace non-breaking hyphen with a dash. This was done for procedure specific information but not for the folder and procedure set specific information logic. Was found during Barakah Alarm format development, but ended up not needing this logic for their current format.

C2019-043 Added UseDashGreaterLessThenForArrowsInROValue flag to convert “->” to the right arrow symbol and “<-“ to the left arrow symbol in RO return values
This commit is contained in:
John Jenko 2019-11-07 15:55:58 +00:00
parent d719712816
commit 5bac79bf8e
2 changed files with 13 additions and 3 deletions

View File

@ -71,7 +71,8 @@ namespace VEPROMS
tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter);
tb.ContextMenuStrip = contextMenuStrip1; // B2017-024 clipboard context menu
// see if config has data for this field, i.e. search for the 'name'
string val = DoFolder ? folderConfig.GetValue("SI", fld.name) : dvConfig.GetValue("SI", fld.name);
// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
string val = (DoFolder ? folderConfig.GetValue("SI", fld.name) : dvConfig.GetValue("SI", fld.name)).Replace("\\u8209?", "-");
DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false);
StringBuilder sb = new StringBuilder();
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
@ -146,9 +147,9 @@ namespace VEPROMS
{
isDirty = true;
if (DoFolder)
folderConfig.SetValue("SI", fld.name, newval);
folderConfig.SetValue("SI", fld.name, newval.Replace("\\u8209?", "-"));// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
else
dvConfig.SetValue("SI", fld.name, newval);
dvConfig.SetValue("SI", fld.name, newval.Replace("\\u8209?", "-"));// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
}
}
else if (fld.type.ToLower() == "logical")

View File

@ -2398,6 +2398,15 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _UseTildaPoundCharsForSuperSubScriptInROValues, "@UseTildaPoundCharsForSuperSubScriptInROValues");
}
}
// C2019-043 will convert "->" to the right arrow symbol and "<-" to the left arrow symbol for RO return values
private LazyLoad<bool> _UseDashGreaterLessThenForArrowsInROValue;
public bool UseDashGreaterLessThenForArrowsInROValue
{
get
{
return LazyLoad(ref _UseDashGreaterLessThenForArrowsInROValue, "@UseDashGreaterLessThenForArrowsInROValue");
}
}
private LazyLoad<bool> _ConvertUnderscoreToUnderline;
public bool ConvertUnderscoreToUnderline
{