Beispiel #1
0
        protected void DataInfoBind()
        {
            ShowPager.PageSize = PageSize;
            int total = 0;

            Model.collectgoodsCondition con = condition();
            var list = bllcollectgoods.GetList(ShowPager.CurrentPageIndex, ShowPager.PageSize, ref total, con, p => p.id, false);

            ShowPager.RecordCount  = total;
            this.rpData.DataSource = list;
            this.rpData.DataBind();
        }
Beispiel #2
0
        protected Model.collectgoodsCondition condition()
        {
            Model.collectgoodsCondition con = new Model.collectgoodsCondition
            {
                goodsname = this.txtgoodsname.Text.Trim(),
                shopname  = this.txtshopname.Text.Trim(),
                qudao     = this.txtqudao.Text.Trim()
            };
            if (!string.IsNullOrEmpty(ddlifok.SelectedValue))
            {
                con.ifok = ddlifok.SelectedValue;
            }
            if (!string.IsNullOrEmpty(ddltotalNum.SelectedValue))
            {
                con.totalNum = ddltotalNum.SelectedValue;
            }
            if (!string.IsNullOrEmpty(ddlType.SelectedValue))
            {
                con.type = ddlType.SelectedValue;
            }

            return(con);
        }