|
|
@ -1472,7 +1472,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public List<CategoryExhibitionDTO> QueryCategoryExhibition(string sLanguageID) { |
|
|
|
public List<CategoryExhibitionDTO> QueryCategoryExhibition(string sLanguageID, List<string> IncludeCountryIDs, List<string> ExcludeCountryIDs) { |
|
|
|
|
|
|
|
Dictionary<string, CategoryExhibitionDTO> rsResult = new Dictionary<string, CategoryExhibitionDTO>(); |
|
|
|
|
|
|
@ -1482,6 +1482,14 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
var rsExhibitionList = QueryAllDetailExhibitionAsDictionary(sLanguageID).Values.Where(w => w.MainCategories.Count > 0); |
|
|
|
|
|
|
|
if (IncludeCountryIDs.Count > 0) { |
|
|
|
rsExhibitionList = rsExhibitionList.Where(w => IncludeCountryIDs.Contains(w.Country.CountryID)); |
|
|
|
} |
|
|
|
|
|
|
|
if (ExcludeCountryIDs.Count > 0) { |
|
|
|
rsExhibitionList = rsExhibitionList.Where(w => !ExcludeCountryIDs.Contains(w.Country.CountryID)); |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var Exhibition in rsExhibitionList) { |
|
|
|
|
|
|
|
List<CategoryDTO> MainCategoryList = Exhibition.MainCategories; |
|
|
|