コード例 #1
0
 /// <summary>
 /// 获取角色列表
 /// </summary>
 /// <param name="whereSort"></param>
 /// <returns></returns>
 public PagerSet GetRoleDirectory(WhereSort whereSort)
 {
     return(AdminData.GetPager(new PagerParameters
     {
         IsSql = false,
         Table = RoleDirectory.Tablename,
         WhereStr = whereSort.Where(),
         PKey = whereSort.IsSort("ORDER BY ID "),
         PageIndex = whereSort.Page,
         PageSize = whereSort.Limit
     }));
 }
コード例 #2
0
 /// <summary>
 /// 获取管理用户列表
 /// </summary>
 /// <param name="whereSort"></param>
 /// <returns></returns>
 public PagerSet GetBaseUserList(WhereSort whereSort)
 {
     return(AdminData.GetPager(new PagerParameters
     {
         IsSql = false,
         Table = "V_BaseUser",
         WhereStr = whereSort.Where(),
         PKey = whereSort.IsSort("ORDER BY ID "),
         PageIndex = whereSort.Page,
         PageSize = whereSort.Limit
     }));
 }
コード例 #3
0
 /// <summary>
 /// 获取操作日志列表
 /// </summary>
 /// <param name="whereSort">分页查询对象</param>
 /// <returns></returns>
 public PagerSet GetBaseLog(WhereSort whereSort)
 {
     return(AdminData.GetPager(new PagerParameters
     {
         IsSql = false,
         Table = BaseLog.Tablename,
         WhereStr = whereSort.Where(),
         PKey = whereSort.IsSort("ORDER BY BaseTime DESC "),
         PageIndex = whereSort.Page,
         PageSize = whereSort.Limit
     }));
 }