示例#1
0
        private void Get_SysLogList(string strSql)
        {
            SysLog bllSysLog = new SysLog();
            int    Counts    = this.NetPagerParameter.RecordCount;

            strSql += "and SysLog.LogUserID = SysUser.UserID and SysLog.LogShopID = SysShop.ShopID";
            strSql  = PubFunction.GetShopAuthority(this._UserShopID, "LogShopID", strSql);
            DataTable db = bllSysLog.GetListSP(this.NetPagerParameter.PageSize, this.NetPagerParameter.CurrentPageIndex, out Counts, new string[]
            {
                strSql
            }).Tables[0];

            this.NetPagerParameter.RecordCount    = Counts;
            this.NetPagerParameter.CustomInfoHTML = string.Format("<div class=\"results\"><span>当前第{0}/{1}页 共{2}条记录 每页{3}条</span></div>", new object[]
            {
                this.NetPagerParameter.CurrentPageIndex,
                this.NetPagerParameter.PageCount,
                this.NetPagerParameter.RecordCount,
                this.NetPagerParameter.PageSize
            });
            this.gvwSysLogList.DataSource = db;
            this.gvwSysLogList.DataBind();
            PageBase.BindSerialRepeater(this.gvwSysLogList, this.NetPagerParameter.PageSize * (this.NetPagerParameter.CurrentPageIndex - 1));
        }