|
|
@ -124,40 +124,56 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#region 收藏管理(List 查詢收藏展覽列表)
|
|
|
|
public Dictionary<string, ExhibitionDTO> FindFavoriateExhibitionByIDsAsDictionary(string sLanguageID, string sAccount) { |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 收藏管理(List 查詢收藏展覽列表)
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="i_crm"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
///
|
|
|
|
public Dictionary<string, ExhibitionCardDTO> QueryFavoriteExhibition(string sLanguageID, string sAccount, List<string> SubCategoryIDList, List<string> CountryIDList, List<string> StatusList) |
|
|
|
{ |
|
|
|
var rsExhibitionDic = new Dictionary<string, ExhibitionDTO>(); |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(sLanguageID)) { |
|
|
|
sLanguageID = WebAppGlobalConstWord.DEFAULT_LANGUAGE; |
|
|
|
} |
|
|
|
|
|
|
|
var rsExhibitionList = new List<ExhibitionDTO>(); |
|
|
|
var rsExhibitionCardDic = new Dictionary<string, ExhibitionCardDTO>(); |
|
|
|
|
|
|
|
var FavoriateDic = FindAllByIDsAsDictionary(sAccount, "Exhibition"); |
|
|
|
|
|
|
|
ExhibMaintain_QryService em_qry = new ExhibMaintain_QryService(); |
|
|
|
var ExhibitionDic = em_qry.QueryAllDetailExhibitionAsDictionary(sLanguageID); |
|
|
|
|
|
|
|
foreach (var Favoriate in FavoriateDic.Values) { |
|
|
|
|
|
|
|
if (ExhibitionDic.ContainsKey(Favoriate.ParentID)) { |
|
|
|
foreach (var Favoriate in FavoriateDic.Values) |
|
|
|
{ |
|
|
|
|
|
|
|
if (ExhibitionDic.ContainsKey(Favoriate.ParentID)) |
|
|
|
{ |
|
|
|
|
|
|
|
var Exhibition = ExhibitionDic[Favoriate.ParentID]; |
|
|
|
rsExhibitionList.Add(Exhibition); |
|
|
|
rsExhibitionDic[Exhibition.ExhibitionID] = Exhibition; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return rsExhibitionDic; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#region 收藏管理(Dictionary 查詢收藏展覽列表)
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 收藏管理(Dictionary 查詢收藏展覽列表)
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="i_crm"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
///
|
|
|
|
public Dictionary<string, ExhibitionCardDTO> QueryFavoriteExhibition(string sLanguageID, string sAccount, List<string> SubCategoryIDList, List<string> CountryIDList, List<string> StatusList) |
|
|
|
{ |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(sLanguageID)) { |
|
|
|
sLanguageID = WebAppGlobalConstWord.DEFAULT_LANGUAGE; |
|
|
|
} |
|
|
|
|
|
|
|
var rsExhibitionList = FindFavoriateExhibitionByIDsAsDictionary(sLanguageID, sAccount).Values.ToList(); |
|
|
|
var rsExhibitionCardDic = new Dictionary<string, ExhibitionCardDTO>(); |
|
|
|
|
|
|
|
ExhibMaintain_QryService em_qry = new ExhibMaintain_QryService(); |
|
|
|
|
|
|
|
if (SubCategoryIDList.Count > 0) { |
|
|
|
rsExhibitionList = em_qry.FilterBySubCategoryIDs(rsExhibitionList, SubCategoryIDList); |
|
|
|
} |
|
|
@ -182,7 +198,30 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion 收藏管理(List 查詢收藏展覽列表)
|
|
|
|
#endregion 收藏管理(Dictionary 查詢收藏展覽列表)
|
|
|
|
|
|
|
|
public Dictionary<string, CountryDTO> QueryExhibitionCountryList(string sLanguageID, string sAccount) { |
|
|
|
|
|
|
|
var rsCountryDic = new Dictionary<string, CountryDTO>(); |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(sLanguageID)) |
|
|
|
{ |
|
|
|
sLanguageID = WebAppGlobalConstWord.DEFAULT_LANGUAGE; |
|
|
|
} |
|
|
|
|
|
|
|
var rsExhibitionList = FindFavoriateExhibitionByIDsAsDictionary(sLanguageID, sAccount).Values.ToList(); |
|
|
|
|
|
|
|
foreach (var Exhibition in rsExhibitionList) { |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(Exhibition.Country.CountryID)) { |
|
|
|
rsCountryDic[Exhibition.Country.CountryID] = Exhibition.Country; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return rsCountryDic; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|