コード例 #1
0
        /// <summary>
        /// 按钮列表分页
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="limit">每页显示条数</param>
        /// <param name="swhere">筛选条件</param>
        /// <param name="sort">排序字段</param>
        /// <returns></returns>
        public object GetButtonsList(int page, int limit, string swhere, string sort)
        {
            PageParameter pagePara = new PageParameter()
            {
                PageIndex = page, Limit = limit, Swhere = swhere, Sort = sort, ObjSql = "from Base_Buttons", ObjName = "buttons", Igorelist = null
            };

            return(_service.GetAllPageList(pagePara));
        }
コード例 #2
0
        /// <summary>
        /// 用户列表分页
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="limit">每页显示条数</param>
        /// <param name="swhere">筛选条件</param>
        /// <param name="sort">排序字段</param>
        /// <returns></returns>
        public object GetPermissionList(int page, int limit, string swhere, string sort)
        {
            PageParameter pagePara = new PageParameter()
            {
                PageIndex = page, Limit = limit, Swhere = swhere, Sort = sort, ObjSql = "from Base_PermissionInfo", ObjName = "permissions", Igorelist = GetIgoreList()
            };

            return(_service.GetAllPageList(pagePara));
        }