private void BindProductData()
        {
            int RecordCount = 0;

            Repeater_Recommend.DataSource = new SalesProductModelBll().GetProductList(6, 1, SalesProductType.鼎鼎推荐, out RecordCount);
            Repeater_Recommend.DataBind();
        }
예제 #2
0
        private void BindData()
        {
            Repeater_Recommend.DataSource = bll.GetTopList(" and isrecommend=1", " order by changetime desc", 10);
            Repeater_Recommend.DataBind();

            Repeater_NewGroup.DataSource = bll.GetTopList(" and inserttime > '" + DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd HH:mm:ss") + "'", " order by productid desc", 6);
            Repeater_NewGroup.DataBind();

            Repeater_Grouping.DataSource = bll.GetTopList(" and status = " + (int)GroupShoppingProductStatus.正在团购, "", 6);
            Repeater_Grouping.DataBind();

            Repeater_Ending.DataSource = bll.GetTopList(" and (succedline - [dbo].[GetGroupProductApplyCount](productid)) < 5", "", 6);
            Repeater_Ending.DataBind();

            Literal_Rule.Text = GetRuleString();
        }
예제 #3
0
        private void BindSalesData()
        {
            DataSet ds = new SalesProductModelBll().GetListForShoppingProcedure();

            foreach (DataTable dt in ds.Tables)
            {
                foreach (DataRow row in dt.Rows)
                {
                    row["mediumimage"] = ProductMainImageRule.GetMainImageUrl(row["mediumimage"].ToString());
                }
            }

            Repeater_Reduce.DataSource = ds.Tables[0];
            Repeater_Reduce.DataBind();
            Repeater_Recommend.DataSource = ds.Tables[1];
            Repeater_Recommend.DataBind();
            Repeater_HotSale.DataSource = ds.Tables[2];
            Repeater_HotSale.DataBind();
        }