public static Com.DataPack.DataRsp <string> page(string PageIndex, string PageSize, string uname, string ustat) { Com.DataPack.DataRsp <string> rsp = new Com.DataPack.DataRsp <string>(); try { BLL.UserInfo user_bll = new BLL.UserInfo(); Com.DataPack.PageModelResp pages = new Com.DataPack.PageModelResp(); pages.PageIndex = int.Parse(PageIndex); pages.PageSize = int.Parse(PageSize); int rowc = 0; int pc = 0; // ,DepartId,Address,HeadImg,inssj,udsj string cols = "UserId,UserName,Name,Status,Email,inssj"; DataTable userdt = user_bll.GetListCols(cols, "1=1", "UserId", "", pages.PageIndex, pages.PageSize, ref rowc, ref pc).Tables[0]; pages.PageCount = pc; pages.RowCount = rowc; if (userdt.Rows.Count > 0) { pages.list = userdt; } rsp.data = Newtonsoft.Json.JsonConvert.SerializeObject(pages).Replace("\n\r", ""); } catch (Exception ex) { throw; } return(rsp); }