Exemplo n.º 1
0
        protected void ListStore_RefershData(object sender, StoreReadDataEventArgs e)
        {
            int start    = e.Start;
            int pageSize = e.Limit;
            int total    = 0;

            //查询条件
            string Where = GetQueryString();
            var    arr   = DataHelper.GetPageList <SysUser>(start, pageSize, new Order[] { new Order("CreateTime", false) }, out total, Expression.Sql(Where));

            e.Total        = total;
            ListStore.Data = arr;
            ListStore.DataBind();
        }