Cleaned up status messages and results message when refreshing transitions
B2017-165 convert ? transition from 16-bit to 32-bit conversion to text
This commit is contained in:
@@ -69,7 +69,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
string gg = Text.Substring(myIndex, myLength);
|
||||
newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}");
|
||||
if (gg != newvalue && newvalue == "?")
|
||||
if (newvalue == "?") // B2017-165 used to also check if gg and newvalue were different AND newvalue = '?'. Had case where gg also was = '?' (from 16-bit conversion)
|
||||
{
|
||||
string rv = ConvertTransitionToText(tran, newvalue);
|
||||
//Text = Text.Substring(0, myIndex - 14) + gg + Text.Substring(myIndex + myLength);
|
||||
@@ -809,13 +809,14 @@ namespace VEPROMS.CSLA.Library
|
||||
string gg = Text.Substring(myIndex, myLength);
|
||||
MyContentMessage = string.Format("ContentExt.ContentInfo:Content:{0}, {1}, {2}", this.ContentID, tran.TransitionID, gg);
|
||||
newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}");
|
||||
//if ((gg.Contains("\\u8209?") ? gg.Replace("\\u8209?", "-") : gg) != (newvalue.Contains("\\u8209?") ? newvalue.Replace("\\u8209?", "-") : newvalue))
|
||||
if ((gg.Replace(@"\u8209?", "-").Replace(@"\u9586?",@"\\")) != (newvalue.Replace("\\u8209?", "-").Replace(@"\u9586?",@"\\")))
|
||||
if ((gg.Replace(@"\u8209?", "-").Replace(@"\u9586?",@"\\")) != (newvalue.Replace("\\u8209?", "-").Replace(@"\u9586?",@"\\")) || newvalue == "?") // B2017-165 added check of newvalue
|
||||
{
|
||||
_Text = Text.Substring(0, myIndex) + newvalue + Text.Substring(myIndex + myLength);
|
||||
if (newvalue == "?")
|
||||
{
|
||||
gg = ItemInfo.ConvertToDisplayText(gg);
|
||||
if (gg == "?" && forceConvertToText == "") // B2017-165 existing transition is a question mark (left over from 16-bit data)
|
||||
forceConvertToText = "Reason for Change: Transition Step does not Exist";
|
||||
newvalue = forceConvertToText;
|
||||
OnStaticContentInfoChange(ii, new StaticContentInfoEventArgs(gg, newvalue, "TX"));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user