62,243
社区成员




function WaitUploadList() {
var depname = request("name");
var params = { name: depname };
alert(depname);
//表格内容
$('#WaitUpload').datagrid({
pageSize: 10,
url: '/admin/handler/WaitUpload.ashx?name='+depname,
queryParams: params,
nowrap: false,
width: fillsize(1),
striped: true,
rownumbers: true,
singleSelect: true,
collapsible: false,
loadMsg: '数据载入中,请稍候......',
columns: [[
{ field: 'xiaolei', title: '内容', width: 100, align: 'center',
formatter: function (value, rec, index) {
var xiaolei = rec.xiaolei;
var xingdong = rec.xingdong;
var dalei = rec.dalei;
var zhonglei = rec.zhonglei;
var showcontent = xiaolei + xingdong + dalei + zhonglei;
return showcontent;
}
},
{ field: 'cpnrID', width: fillsize(0.1), title: '编号', align: 'center' },
{ field: 'ScState', width: fillsize(0.2), title: '状态', align: 'center' }
]],
pagination: true
});
//页码
var p = $('#WaitUpload').datagrid('getPager');
$(p).pagination({
pageNumber: 1,
pageSize: 10,
showPageList: false,
beforePageText: '第',
afterPageText: '页 共 {pages} 页',
displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录'
});
};
public void ProcessRequest(HttpContext context)
{
int pageIndex = 1;
int pageSize = 10;
int.TryParse(context.Request["rows"], out pageSize);
int.TryParse(context.Request["page"], out pageIndex);
string depanme = context.Request["name"];
string json = GetWaitUploadList(depanme, pageSize, pageIndex);
context.Response.Write(json);
}
public string GetWaitUploadList(string depname, int pageSize, int pageIndex)
{
int pageCount = 0;
DataTable dt = bll.GetWaitUploadList(depname, pageIndex, pageSize, ref pageCount);
return Creat_Json.DataTable2Json(dt, pageCount);
}
似乎不用传··直接接受就行了吧·
http://www.cnblogs.com/huozhicheng/archive/2011/09/27/2193605.html
既然你研究使用这个控件 那么就研究透彻一点 不要仅限于使用了。
它自己的API 和网上资源很多的.