62,243
社区成员




function createDatagrid() {
$('#divcasebox').datagrid({
height: 400,
url: 'url',
method: 'POST',
queryParams: { id: 'INSTANCE_ID' },
idField: '办文号',
striped: true,
resizeHandle: 'both',
fitColumns: false,
autoRowHeight: true,
singleSelect: false,
rownumbers: true,
pagination: true,
nowrap: false,
checkOnSelect: true,
selectOnCheck: true,
pageSize: 10,
pageList: [10, 20, 50, 100, 150, 200],
showHeader: true,
showFooter: true,
scrollbarSize: 18,
sortOrder: 'asc',
multiSort: true,
columns: [[
{ field: 'INSTANCE_ID', title: '办文号', width: 150, halign: 'center', align: 'left' },
{ field: 'BUSINESS_NAME', title: '业务名称', width: 200, halign: 'center', align: 'left' },
{ field: 'INSTANCE_STATUS', title: '办文节点状态', width: 200, halign: 'center', align: 'left' },
{ field: 'JBR', title: '经办人', width: 150, halign: 'center', align: 'left' },
{ field: 'DO_DATE', title: '经办日期', width: 150, halign: 'center', align: 'left' },
{ field: 'EXPIRE_DATE', title: '过期日期', width: 150, halign: 'center', align: 'left' },
{ field: 'CREATOR', title: '创建人', width: 150, halign: 'center', align: 'left' },
{ field: 'CREATE_DATE', title: '创建日期', width: 150, halign: 'center', align: 'left' },
{ field: 'DELETOR', title: '删除人', width: 150, halign: 'center', align: 'left' },
{ field: 'DELETE_DATE', title: '删除日期', width: 150, halign: 'center', align: 'left' },
{ field: 'CURRENTDO_USER_ID', title: '当前经办用户编号', width: 150, halign: 'center', align: 'left' },
{ field: 'EXCHANGE_ID', title: '业务当前流转编号', width: 150, halign: 'center', align: 'left',
editor: {
type: 'numberbox',
options: {
min: 0,
precision: 0
}
}
}
]],
onBeforeLoad: function (param) {
},
onLoadSuccess: function (data) {
},
onLoadError: function () {
},
onClickCell: function (rowIndex, field, value) {
}
});
}
function CaseBoxLoadData() {
$.ajax({
type: "Post",
url: "GXOAServer.asmx/TodoBoxLoadData",
//async: false, //true:异步,false:同步
data: { },
//contentType: false,
//processData: false,
success: function (data) {
$("#divcasebox").datagrid("loadData",eval(data));
alert(data.text);
},
error: function (err) {
alert("error");
}
});
}
function CaseBoxLoadData() {
$.ajax({
type: "Post",
url: "GXOAServer.asmx/TodoBoxLoadData",
//async: false, //true:异步,false:同步
data: {},
//contentType: false,
//processData: false,
success: function (data) {
var jsondata = JSON.parse(data.text);
$("#divcasebox").datagrid("loadData", jsondata);
},
error: function (err) {
alert("error");
}
});