/// <summary>
    /// Loads Items By Price range.
    /// </summary>
    /// <param name="intCategoryID"></param>
    private void LoadRecord_ProductList_By_PriceRange(int intCategoryID, int intSubcategoryID, int intPriceRangeID)
    {
        try
        {
            using (BC_Price_Range bcPrice = new BC_Price_Range())
            {
                dtProductList = new DataTable();
                dtProductList = bcPrice.LoadClassifiedItems_ByPriceRange(intCategoryID, intSubcategoryID, intPriceRangeID);

                //FilterNo = Filter.ByPrice.ToString();
                FilterType = Filter.ByPrice;

                if (dtProductList.Rows.Count > 0)
                {
                    this.InitializeGridView(dtProductList);
                }
                else
                {
                    this.EmptyGridView();
                }
            }
        }
        catch (Exception Exp)
        {
            lblSystemMessage.Text = Exp.Message.ToString();
        }
    }
Пример #2
0
 private void LoadPriceRange(int intCategoryID, int intSubcategoryID)
 {
     try
     {
         using (BC_Price_Range priceRange = new BC_Price_Range())
         {
             DataTable dt = priceRange.LoadPriceRange(intCategoryID, intSubcategoryID);
             if (dt.Rows.Count > 0)
             {
                 repPriceRange.DataSource = dt;
                 repPriceRange.DataBind();
                 phPriceRange.Visible = true;
             }
             else
             {
                 this.Visible = false;
             }
         }
     }
     catch (Exception ex)
     {
         lblSystemMessage.Text = ex.Message;
     }
 }