12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- var g;
- //列表加载参数
- var loadParams = {
- "listId" : '881',
- "condition" : ' 1=1 '
- };
- //初始化列表
- function initComplete(){
-
- g = $("#maingrid").quiGrid({
- columns: [
- { name: 'FD_OBJECTID881', hide : true},
- { display: '角色名称', name: 'ROLE_NAME_881', align: 'center', width: "20%"},
- { display: '姓名', name: 'REALNAME_881', align: 'center', width: "15%"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/queryQui',
- params : loadParams,
- sortName : 'USERID_881 ',
- sortOrder : 'desc nulls last',
- rownumbers:true,
- checkbox:true,
- height: '100%',
- width:"100%",
- pageSize: 10,
- percentWidthMode:true,
- //顶部图标按钮栏
- toolbar:
- {
- items: [
- { text: '新增', click: onAdd, iconClass: 'icon_add', disabled: false },
- { line: true },
- { text: '修改', click: onEdit, iconClass: 'icon_edit', disabled: false },
- { line: true },
- { text: '详细信息', click: onView, iconClass: 'icon_list', disabled: false },
- { line: true },
- { text: '删除', click: onDelete, iconClass: 'icon_delete', disabled: false },
- { line: true }
- ]
- }
- });
-
- $("#searchPanel").bind("stateChange",function(e,state){
- g.resetHeight();
- });
- }
|