public List <SearchTermList> GetSearchedTermList(string search, AspxCommonInfo aspxCommonObj)
    {
        AdvanceSearchController asc    = new AdvanceSearchController();
        List <SearchTermList>   srInfo = asc.GetSearchedTermList(search, aspxCommonObj);

        return(srInfo);
    }
    public List <Filter> GetDynamicAttributesForAdvanceSearch(AspxCommonInfo aspxCommonObj, int CategoryID, bool IsGiftCard)
    {
        AdvanceSearchController asc       = new AdvanceSearchController();
        List <Filter>           lstFilter = asc.GetDynamicAttributesForAdvanceSearch(aspxCommonObj, CategoryID, IsGiftCard);

        return(lstFilter);
    }
예제 #3
0
    public void LoadAllCategoryForSearch()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.UserName    = UserName;
        aspxCommonObj.CultureName = CultureName;
        string modulePath = this.AppRelativeTemplateSourceDirectory;
        int    rowCount   = 0;

        hst = AppLocalized.getLocale(modulePath);
        AdvanceSearchController asc             = new AdvanceSearchController();
        List <CategoryInfo>     catList         = asc.GetAllCategoryForSearch("---", true, aspxCommonObj);
        StringBuilder           categoryContent = new StringBuilder();

        categoryContent.Append("<select id=\"ddlCategory\" class=\"\">");
        if (catList != null && catList.Count > 0)
        {
            categoryContent.Append("<option value='0'>" + getLocale("--All Category--") + "</option>");
            categoryContent.Append("<optgroup label=\"");
            categoryContent.Append(getLocale("General Categories"));
            categoryContent.Append("\">");

            foreach (CategoryInfo item in catList)
            {
                if (item.IsChecked == false)
                {
                    categoryContent.Append("<option value=" + item.CategoryID + " isGiftCard=" + item.IsChecked + ">" + item.LevelCategoryName + "</option>");
                }
                else
                {
                    rowCount += 1;
                    if (rowCount == 1)
                    {
                        categoryContent.Append("</optgroup>");
                        categoryContent.Append("<optgroup label=\"");
                        categoryContent.Append(getLocale("Gift Card Categories"));
                        categoryContent.Append("\">");
                    }
                    categoryContent.Append("<option value=" + item.CategoryID + " isGiftCard=" + item.IsChecked + ">" + item.LevelCategoryName + "</option>");
                }
            }
            if (rowCount > 0)
            {
                categoryContent.Append("</optgroup>");
            }
        }
        else
        {
            categoryContent.Append("<option value=\"-1\">No Category Listed!</option>");
        }
        categoryContent.Append("</select>");
        ltrCategories.Text = categoryContent.ToString();
    }
 public void SaveAndUpdateAdvanceSearchSetting(AspxCommonInfo aspxCommonObj, AdvanceSearchSettingKeyPairInfo advanceObj)
 {
     try
     {
         AdvanceSearchController asc = new AdvanceSearchController();
         asc.SaveAndUpdateAdvanceSearchSetting(aspxCommonObj, advanceObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public List <AdvanceSearchDetailsInfo> GetItemsByDyanamicAdvanceSearch(int offset, int limit, AspxCommonInfo aspxCommonObj, ItemsByDynamicAdvanceSearchInfo searchObj)
 {
     try
     {
         AdvanceSearchController         asc = new AdvanceSearchController();
         List <AdvanceSearchDetailsInfo> lstAdvanceSearch = asc.GetItemsByDyanamicAdvanceSearch(offset, limit, aspxCommonObj, searchObj);
         return(lstAdvanceSearch);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <AttributeShowInAdvanceSearchInfo> GetAttributes(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AdvanceSearchController asc = new AdvanceSearchController();
         List <AttributeShowInAdvanceSearchInfo> lstAttr = asc.GetAttributes(aspxCommonObj);
         return(lstAttr);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <AdvanceSearchSettingInfo> GetAdvanceSearchSetting(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AdvanceSearchController         asc = new AdvanceSearchController();
         List <AdvanceSearchSettingInfo> lstAdvanceSearch = asc.GetAdvanceSearchSetting(aspxCommonObj);
         return(lstAdvanceSearch);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public List <BrandItemsInfo> GetAllBrandForSearchByCategoryID(AspxCommonInfo aspxCommonObj, int CategoryID, bool IsGiftCard)
 {
     try
     {
         AdvanceSearchController asc          = new AdvanceSearchController();
         List <BrandItemsInfo>   lstBrandItem = asc.GetAllBrandForSearchByCategoryID(aspxCommonObj, CategoryID, IsGiftCard);
         return(lstBrandItem);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #9
0
    private void GetAdvanceSearchSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.CultureName = CultureName;
        AdvanceSearchController         asc           = new AdvanceSearchController();
        List <AdvanceSearchSettingInfo> adSettingList = asc.GetAdvanceSearchSetting(aspxCommonObj);

        if (adSettingList != null && adSettingList.Count > 0)
        {
            foreach (var item in adSettingList)
            {
                adSettingInfo = adSettingList[0];
            }
        }
    }
예제 #10
0
    public void GetAllBrandForItem(int categoryID, bool isGiftCard)
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.UserName    = UserName;
        aspxCommonObj.CultureName = CultureName;
        string modulePath = this.AppRelativeTemplateSourceDirectory;

        hst = AppLocalized.getLocale(modulePath);

        AdvanceSearchController asc          = new AdvanceSearchController();
        List <BrandItemsInfo>   lstBrandItem = asc.GetAllBrandForSearchByCategoryID(aspxCommonObj, categoryID, isGiftCard);
        StringBuilder           brandContent = new StringBuilder();

        brandContent.Append("<select id=\"lstBrands\">");

        if (lstBrandItem != null && lstBrandItem.Count > 0)
        {
            brandContent.Append("<option value='0'>" + getLocale("All Brands") + "</option>");
            if (lstBrandItem != null && lstBrandItem.Count > 0)
            {
                foreach (BrandItemsInfo item in lstBrandItem)
                {
                    brandContent.Append("<option value=" + item.BrandID + ">" + item.BrandName + "</option>");
                }
                brandContent.Append("</select>");
            }
        }
        else
        {
            brandContent.Append("<option value='0'>" + getLocale("No Brands") + "</option>");
        }
        ltrBrands.Text = brandContent.ToString();
    }