标签:
function LoadList() {
$("#TableContainer").datagrid({
url: ‘/HM/M_Main/HC/DataPostControl.aspx‘,
method: "post",
title: ‘工资明细列表‘,
loadMsg: ‘数据加载中,请稍候...‘,
nowrap: false,
pageSize: 50,
pageList: [50, 150, 300],
columns: column,
fitColumns: true,
singleSelect: true,
pagination: true,
width: "100%",
toolbar: toolbar,
sortOrder: "asc",
onLoadSuccess: function (data) {
$.tool.MergeEasyUiGrid("TableContainer", "Name,SalaryYear,SalaryMonth");
},
onBeforeLoad: function (param) {
param = $.JQForm.GetParam("CSPerson", "GetSalaryDataList", "TableContainer", param);
}
});
}
$.JQForm.GetParam = function (Class,Command,GridContainer, Param)
{
var gridOpts = $(‘#‘ + GridContainer).datagrid(‘getPager‘).data("pagination").options;
Param.Method = "DataPost";
Param.Class = Class;
Param.Command = Command;
Param.page = gridOpts.pageNumber;
Param.rows = gridOpts.pageSize;
$("input,select,textarea").each(function ()
{
var key = $(this).attr("id");
if (key != "" && key != "__VIEWSTATE" && key != null) {
Param[key] = $(this).val();
if ($(this).hasClass("easyui-datebox") == true)
{
$(this).datebox("getValue", obj[attr]);
}
if ($(this).hasClass("easyui-combotree") == true)
{
$(this).combotree("getValue", obj[attr]);
}
}
});
return Param; };
标签:
原文地址:http://www.cnblogs.com/littlewrong/p/4894803.html