B2022-031-Add-filtering-for-Proc-and-Section-name-from-Global-Search
This commit is contained in:
@@ -6942,11 +6942,11 @@ namespace VEPROMS.CSLA.Library
|
||||
#endregion // EnhancedGetMissingEnh
|
||||
#endregion // EnhancedSupport
|
||||
#region Text Search
|
||||
public static ItemInfoList GetListFromTextSearch(string docVersionList, string stepTypeList, string searchString, int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters, string unitPrefix, string byWordPrefix, string byWordSuffix)
|
||||
public static ItemInfoList GetListFromTextSearch(string docVersionList, string stepTypeList, string searchString, int caseSensitive, int ProcSectSrch, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters, string unitPrefix, string byWordPrefix, string byWordSuffix)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListSearchCriteria(docVersionList, stepTypeList, searchString, caseSensitive, includeLinks, includeRtfFormatting, includeSpecialCharacters, unitPrefix, byWordPrefix, byWordSuffix)))
|
||||
using (ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListSearchCriteria(docVersionList, stepTypeList, searchString, caseSensitive, ProcSectSrch, includeLinks, includeRtfFormatting, includeSpecialCharacters, unitPrefix, byWordPrefix, byWordSuffix)))
|
||||
{
|
||||
tmp.SourceOfList = "Search";
|
||||
ItemInfo.AddList(tmp);
|
||||
@@ -6986,6 +6986,12 @@ namespace VEPROMS.CSLA.Library
|
||||
get { return _CaseSensitive; }
|
||||
set { _CaseSensitive = value; }
|
||||
}
|
||||
private int _ProcSectSrch;
|
||||
public int ProcSectSrch
|
||||
{
|
||||
get { return _ProcSectSrch; }
|
||||
set { _ProcSectSrch = value; }
|
||||
}
|
||||
private ItemSearchIncludeLinks _IncludeLinks;
|
||||
public ItemSearchIncludeLinks IncludeLinks
|
||||
{
|
||||
@@ -7028,13 +7034,14 @@ namespace VEPROMS.CSLA.Library
|
||||
set { _ByWordSuffix = value; }
|
||||
}
|
||||
public ItemListSearchCriteria(string docVersionList, string stepTypeList, string searchString,
|
||||
int caseSensitive, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters,
|
||||
int caseSensitive, int ProcSectSrch, ItemSearchIncludeLinks includeLinks, bool includeRtfFormatting, bool includeSpecialCharacters,
|
||||
string unitPrefix, string byWordPrefix, string byWordSuffix)
|
||||
{
|
||||
_DocVersionList = docVersionList;
|
||||
_StepTypeList = stepTypeList;
|
||||
_SearchString = searchString;
|
||||
_CaseSensitive = caseSensitive;
|
||||
_ProcSectSrch = ProcSectSrch;
|
||||
_IncludeLinks = includeLinks;
|
||||
_IncludeRtfFormatting = includeRtfFormatting;
|
||||
_IncludeSpecialCharacters = includeSpecialCharacters;
|
||||
@@ -7058,6 +7065,7 @@ namespace VEPROMS.CSLA.Library
|
||||
cm.Parameters.AddWithValue("@StepTypeList", criteria.StepTypeList);
|
||||
cm.Parameters.AddWithValue("@SearchString", criteria.SearchString);
|
||||
cm.Parameters.AddWithValue("@CaseSensitive", criteria.CaseSensitive);
|
||||
cm.Parameters.AddWithValue("@ProcSectSrch", criteria.ProcSectSrch);
|
||||
cm.Parameters.AddWithValue("@IncludeLinks", (int)criteria.IncludeLinks);
|
||||
cm.Parameters.AddWithValue("@IncludeRtfFormatting", criteria.IncludeRtfFormatting ? 1 : 0);
|
||||
cm.Parameters.AddWithValue("@IncludeSpecialCharacters", criteria.IncludeSpecialCharacters ? 1 : 0);
|
||||
|
Reference in New Issue
Block a user