Exemple #1
0
        private void DataBindSoruce()
        {
            int num;

            this.txtkeywords.Value      = this.keyWord;
            this.rpCategorys.DataSource = CategoryBrowser.GetCategories(wid);
            this.rpCategorys.DataBind();
            this.rpChooseProducts.DataSource = ProductBrowser.GetProducts(MemberProcessor.GetCurrentMember(), null, new int?(this.categoryId), this.keyWord, 1, 10, out num, "DisplaySequence", "desc", true);
            this.rpChooseProducts.DataBind();
        }
Exemple #2
0
        private void DataBindSoruce()
        {
            this.txtkeywords.Value      = this.keyWord;
            this.rpCategorys.DataSource = CategoryBrowser.GetCategories();
            this.rpCategorys.DataBind();
            int num;

            this.rpChooseProducts.DataSource = ProductBrowser.GetProducts(MemberProcessor.GetCurrentMember(), null, new int?(this.categoryId), this.keyWord, 1, 20, out num, "DisplaySequence", "desc", true);
            this.rpChooseProducts.DataBind();
            this.litProtuctSelNum.Text   = "(" + ProductBrowser.GetProductsNumber(true).ToString() + ")";
            this.litProtuctNoSelNum.Text = "(" + ProductBrowser.GetProductsNumber(false).ToString() + ")";
        }
        public override void DataBind()
        {
            this.Items.Clear();
            this.Items.Add(new ListItem(this.NullToDisplay, string.Empty));
            DataTable categories = CategoryBrowser.GetCategories();

            for (int i = 0; i < categories.Rows.Count; i++)
            {
                int num2 = (int)categories.Rows[i]["CategoryId"];
                this.Items.Add(new ListItem(this.FormatDepth((int)categories.Rows[i]["Depth"], Globals.HtmlDecode((string)categories.Rows[i]["Name"])), num2.ToString(CultureInfo.InvariantCulture)));
            }
        }
Exemple #4
0
        private void DataBindSoruce()
        {
            //type:0正常显示店铺已上架的商品,1正常显示店铺未上架的商品,2显示所有出售状态的商品,3根据上架范围显示已上架的商品,4根据上架范围显示未上架的商品
            ProductInfo.ProductRanage productRanage = DistributorsBrower.GetCurrStoreProductRange();
            int num;

            this.txtkeywords.Value      = this.keyWord;
            this.rpCategorys.DataSource = CategoryBrowser.GetCategories();
            this.rpCategorys.DataBind();
            this.rpChooseProducts.DataSource = ProductBrowser.GetProductsEx(MemberProcessor.GetCurrentMember(), null, new int?(this.categoryId), this.keyWord, 1, 0x2710, out num, "DisplaySequence", "desc", productRanage);
            this.rpChooseProducts.DataBind();
        }
Exemple #5
0
 protected override void OnLoad(EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.Items.Clear();
         this.Items.Add(new ListItem(this.NullToDisplay, string.Empty));
         DataTable categories = CategoryBrowser.GetCategories();
         for (int i = 0; i < categories.Rows.Count; i++)
         {
             int num2 = (int) categories.Rows[i]["CategoryId"];
             this.Items.Add(new ListItem(this.FormatDepth((int) categories.Rows[i]["Depth"], this.Page.Server.HtmlDecode((string) categories.Rows[i]["Name"])), num2.ToString(CultureInfo.InvariantCulture)));
         }
     }
 }
Exemple #6
0
        private void DataBindSoruce()
        {
            //type:0正常显示店铺已上架的商品,1正常显示店铺未上架的商品,2显示所有出售状态的商品,3根据上架范围显示已上架的商品,4根据上架范围显示未上架的商品
            ProductInfo.ProductRanage productRanage = ProductInfo.ProductRanage.NormalUnSelect;
            bool bStoreProducAuto  = Hidistro.Core.SettingsManager.GetMasterSettings(false).EnableStoreProductAuto;
            bool bAgentProducRange = Hidistro.Core.SettingsManager.GetMasterSettings(true).EnableAgentProductRange;

            if (bStoreProducAuto)
            {
                productRanage = ProductInfo.ProductRanage.All;
            }
            else if (bAgentProducRange)
            {
                productRanage = ProductInfo.ProductRanage.RangeUnSelect;
            }

            int num;

            this.txtkeywords.Value      = this.keyWord;
            this.rpCategorys.DataSource = CategoryBrowser.GetCategories();
            this.rpCategorys.DataBind();
            this.rpChooseProducts.DataSource = ProductBrowser.GetProductsEx(MemberProcessor.GetCurrentMember(), null, new int?(this.categoryId), this.keyWord, 1, 0x2710, out num, "DisplaySequence", "desc", productRanage);
            this.rpChooseProducts.DataBind();
        }