C2024-025 Remove the tall box characters from the search results.
This commit is contained in:
@@ -2752,6 +2752,29 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
#endregion UnlinkEnhanced
|
||||
#region Search
|
||||
|
||||
//CSM C2024-025 Removing the strange tall box characters that appear in the search results tree
|
||||
//Create cleaned version of variable for use in DisplaySearch
|
||||
//This is the Function that does the cleaning
|
||||
public string CleanSearchString(string value)
|
||||
{
|
||||
// \u000C = PageBreak
|
||||
// \u0009 = Tab
|
||||
// \u160? = Hard Space
|
||||
// \u0007 = Bell (Separates Parent Path and Child Path)
|
||||
// \u0011 - Separates DisplayNumber & DisplayText of Step
|
||||
|
||||
if (value == null)
|
||||
return null;
|
||||
|
||||
string tmp = value.Replace("\a", "\\").Replace("\u0007", "\\");
|
||||
tmp = tmp.Replace("\u000C", " ").Replace("\u0009", " ").Replace(@"\u160?", " ").Replace("\u0011", " ");
|
||||
|
||||
if (tmp.StartsWith("\\"))
|
||||
tmp = tmp.Substring(1);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
internal string _SearchDVPath;
|
||||
public string SearchDVPath
|
||||
{
|
||||
@@ -2767,7 +2790,11 @@ namespace VEPROMS.CSLA.Library
|
||||
return _SearchDVPath;
|
||||
}
|
||||
}
|
||||
internal string _SearchPath;
|
||||
//CSM C2024-025 Removing the strange tall box characters that appear in the search results tree
|
||||
//Create cleaned version of variable for use in DisplaySearch
|
||||
public string SearchDVPath_clean => CleanSearchString(SearchDVPath);
|
||||
|
||||
internal string _SearchPath;
|
||||
public string SearchPath
|
||||
{
|
||||
get
|
||||
@@ -2790,6 +2817,10 @@ namespace VEPROMS.CSLA.Library
|
||||
return _SearchPath;
|
||||
}
|
||||
}
|
||||
//CSM C2024-025 Removing the strange tall box characters that appear in the search results tree
|
||||
//Create cleaned version of variable for use in DisplaySearch
|
||||
public string SearchPath_clean => CleanSearchString(SearchPath);
|
||||
|
||||
public string ShortSearchPath
|
||||
{
|
||||
get
|
||||
@@ -2800,6 +2831,9 @@ namespace VEPROMS.CSLA.Library
|
||||
return dtext;
|
||||
}
|
||||
}
|
||||
//CSM C2024-025 Removing the strange tall box characters that appear in the search results tree
|
||||
//Create cleaned version of variable for use in DisplaySearch
|
||||
public string ShortSearchPath_clean => CleanSearchString(ShortSearchPath);
|
||||
|
||||
// B2021-076: Proms search results are not presented in order when printed to PDF
|
||||
internal string _SearchDefaultSort;
|
||||
|
Reference in New Issue
Block a user