diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index ba3a5a49..4e571063 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -41,8 +41,9 @@ namespace VEPROMS.CSLA.Library } } } - public void FixContentText(RoUsageInfo rousg, string value, int rotype, ROFstInfo origROFstInfo) // string newvalue) + public string FixContentText(RoUsageInfo rousg, string value, int rotype, ROFstInfo origROFstInfo) // string newvalue) { + string retval = null; string newvalue = value; string findLink = @""; MatchCollection ms = Regex.Matches(Text, findLink); @@ -60,12 +61,14 @@ namespace VEPROMS.CSLA.Library string gg = g2.Value + " " + g.Value; if (gg != newvalue) { + retval = gg; Text = Text.Substring(0, offset + g2.Index) + newvalue + Text.Substring(offset + g2.Index + gg.Length); break; // Text has been processed } } else if (g.ToString() != newvalue) { + retval = g.Value; Text = Text.Substring(0, offset + g.Index) + newvalue + Text.Substring(offset + g.Index + g.Length); break; // Text has been processed } @@ -95,12 +98,14 @@ namespace VEPROMS.CSLA.Library System.Text.RegularExpressions.Group g = mg.Groups[3]; if (g.ToString() != newvalue) { + retval = g.Value; MyGrid.Data = MyGrid.Data.Substring(0, offset + mmg.Index + g.Index) + newvalue + MyGrid.Data.Substring(offset + mmg.Index + g.Index + g.Length); } } } } } + return retval; } } public partial class ContentInfo