C2022-021: resolve greater/less than or equal & plus/minus to symbols in ROs
C2022-021: Barakah resolve greater/less than or equal & plus/minus to symbols in ROs
This commit is contained in:
parent
2f4b33b621
commit
64e52f5f68
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2707,6 +2707,15 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _UseTildaPoundCharsForSuperSubScriptInROValues, "@UseTildaPoundCharsForSuperSubScriptInROValues");
|
||||
}
|
||||
}
|
||||
// C2022-021 will convert ">=" to the greater than or equal symbol, "<=" to the less than or equal symbol and plus/minus for RO return values
|
||||
private LazyLoad<bool> _ConvertGTELTEPMinROValue;
|
||||
public bool ConvertGTELTEPMinROValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _ConvertGTELTEPMinROValue, "@ConvertGTELTEPMinROValue");
|
||||
}
|
||||
}
|
||||
// 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
|
||||
|
@ -982,6 +982,14 @@ namespace Volian.Controls.Library
|
||||
retval = retval.Replace("\\u8209?>", GetAddSymbolTextForROs(@"\u8594?")); // Right Arrow
|
||||
retval = retval.Replace("<\\u8209?", GetAddSymbolTextForROs(@"\u8592?")); // Left Arrow
|
||||
}
|
||||
// C2022-021 convert a "<=" to a less than or equal symbol, a ">=" to a greather than or equal symbol and +- to a
|
||||
// plus/minus symbol in ROs
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue)
|
||||
{
|
||||
retval = retval.Replace("<=", GetAddSymbolTextForROs(@"\u8804?")); // Less than or Equal
|
||||
retval = retval.Replace(">=", GetAddSymbolTextForROs(@"\u8805?")); // Greater than or Equal
|
||||
retval = retval.Replace("+\\u8209?", @"\'b1"); // plus/minus - note - is stored as \u8209 and plus/minus is < 256, i.e. handled differently
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
public void InsertRO(string value, string link)
|
||||
|
Loading…
x
Reference in New Issue
Block a user