Exemple #1
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.BCustomMsg bll = new Eyousoft_yhq.BLL.BCustomMsg();
            Eyousoft_yhq.Model.serCustomMsg serchModel = new Eyousoft_yhq.Model.serCustomMsg();

            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rptList.DataSource = list;
                rptList.DataBind();
                BindPage();
                litMsg.Visible = false;

            }
            else
            {
                rptList.Visible = false;
            }
        }
Exemple #2
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.BCustomMsg     bll        = new Eyousoft_yhq.BLL.BCustomMsg();
            Eyousoft_yhq.Model.serCustomMsg serchModel = new Eyousoft_yhq.Model.serCustomMsg();

            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rptList.DataSource = list;
                rptList.DataBind();
                BindPage();
                litMsg.Visible = false;
            }
            else
            {
                rptList.Visible = false;
            }
        }