Exemple #1
0
    private void PopulateProductRange()
    {
        SearchFilter searchFilterObj = SearchFilter.GetFactory().Create();
        int          howMayItems;
        int          all = DataAccessContext.ProductRepository.SearchProduct(
            StoreContext.Culture,
            "",
            "ProductID",
            searchFilterObj,
            0,
            DataAccessContext.ProductRepository.GetAllProductCount(),
            out howMayItems,
            CurrentStore.StoreID,
            DataAccessContext.Configurations.GetValue("RootCategory", CurrentStore)).Count;

        uxProductStartText.Text = "1";
        uxProductEndText.Text   = all.ToString();
        uxAllProductLabel.Text  = all.ToString();

        if (ConvertUtilities.ToBoolean(uxSiteMapIncludesProductsDropDown.SelectedValue))
        {
            uxProductRangePanel.Visible = true;
        }
        else
        {
            uxProductRangePanel.Visible = false;
        }
    }
    private void RemoveSearchFilter()
    {
        SearchFilterObj = SearchFilter.GetFactory()
                          .Create();

        uxMessageLabel.Text = String.Empty;
    }
 private void PopulateValueFilter(SearchFilter.SearchFilterType typeField,
                                  string value, string val1, EventArgs e)
 {
     _searchFilterObj = SearchFilter.GetFactory()
                        .WithFilterType(typeField)
                        .WithFieldName(value)
                        .WithValue1(val1)
                        .Create();
 }
Exemple #4
0
    public SearchFilter GetSearchResult( SearchFilter.SearchFilterType typeField,
         string value, string val1, out string message )
    {
        SearchFilter searchFilterObj = SearchFilter.GetFactory()
          .WithFilterType( typeField )
          .WithFieldName( value )
          .WithValue1( val1 )
          .Create();

        message = DisplayTextSearchMessage( searchFilterObj.FieldName, searchFilterObj.Value1 );
        return searchFilterObj;
    }
Exemple #5
0
    private void PopulateValueRangeFilter(SearchFilter.SearchFilterType typeField,
                                          string value, string val1, string val2)
    {
        SearchFilterObj = SearchFilter.GetFactory()
                          .WithFilterType(typeField)
                          .WithFieldName(value)
                          .WithValue1(val1)
                          .WithValue2(val2)
                          .Create();

        DisplayValueRangeMessage(SearchFilterObj.FieldName, SearchFilterObj.Value1, SearchFilterObj.Value2);
    }
    private void PopulateValueRangeFilter(SearchFilter.SearchFilterType typeField,
                                          string value, string val1, string val2, EventArgs e)
    {
        SearchFilterObj = SearchFilter.GetFactory()
                          .WithFilterType(typeField)
                          .WithFieldName(value)
                          .WithValue1(val1)
                          .WithValue2(val2)
                          .Create();

        DisplayValueRangeMessage(SearchFilterObj.FieldName, SearchFilterObj.Value1, SearchFilterObj.Value2);

        // Propagate event to parent
        OnBubbleEvent(e);
    }
Exemple #7
0
    private void AddProducts(GoogleXmlSitemaps sitemap)
    {
        SearchFilter searchFilterObj = SearchFilter.GetFactory().Create();
        int          howMayItems;

        sitemap.AddProducts(
            DataAccessContext.ProductRepository.SearchProduct(
                StoreContext.Culture,
                "",
                "ProductID",
                searchFilterObj,
                ConvertUtilities.ToInt32(uxProductStartText.Text.Trim()) - 1,
                ConvertUtilities.ToInt32(uxProductEndText.Text.Trim()) - 1,
                out howMayItems,
                CurrentStore.StoreID,
                DataAccessContext.Configurations.GetValue("RootCategory", CurrentStore)));
    }
    private void PopulateValueFilter(SearchFilter.SearchFilterType typeField,
                                     string value, string val1, EventArgs e)
    {
        SearchFilterObj = SearchFilter.GetFactory()
                          .WithFilterType(typeField)
                          .WithFieldName(value)
                          .WithValue1(val1)
                          .Create();

        if (typeField == SearchFilter.SearchFilterType.Text)
        {
            DisplayTextSearchMessage(SearchFilterObj.FieldName, SearchFilterObj.Value1);
        }
        else if (typeField == SearchFilter.SearchFilterType.Boolean)
        {
            DisplayBooleanSearchMessage(SearchFilterObj.FieldName, SearchFilterObj.Value1);
        }

        // Propagate event to parent
        OnBubbleEvent(e);
    }