BBSWeb/Services/Users/UserListData1.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using BBS.Model;
using BaseConfig;
public partial class Services_UserListData1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session[SessionKey.USER] == null) return;
X_UserInfo u = (X_UserInfo)Session[SessionKey.USER];
using (UserListService uls = new UserListService())
{
string strWhere = uls.calcWhere();
strWhere = Config.jqGridStrWhere(strWhere);
int totalRows = BaseConfig.BaseBLL.Pager.GetAllCount(strWhere, "X_UserInfo");
Config.JqGrid j = Config.GetJqGridParam(totalRows);
int totalPage = (totalRows - 1) / j.pagesize + 1;
if (j.p > totalPage) j.p = totalPage;
string cols = "UserId,UserName,Mobile,Agent,Depart,Email,EntryTime,LastLoginTime";
using (DataTable dt = BaseConfig.BaseBLL.Pager.GetPager(j.pagesize, j.p, strWhere, j.order, "X_UserInfo", cols))
{
if (dt.Rows.Count > 0)
{
Response.Write(Config.toJsonData(j.p, j.totalPage, j.totalRows, dt, cols));
}
else
Response.Write("{\"page\":1,\"total\":1,\"records\":0,\"rows\":[],\"userdata\":{\"amount\":0,\"tax\":342,\"total\":1,\"name\":\"Totals:\"}}");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。