f95af7a90193ce8bb1b14199b7a45f0f8368a737.svn-base 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. var g;
  2. //列表加载参数
  3. var loadParams = {
  4. "listId" : '881',
  5. "condition" : ' 1=1 '
  6. };
  7. //初始化列表
  8. function initComplete(){
  9. g = $("#maingrid").quiGrid({
  10. columns: [
  11. { name: 'FD_OBJECTID881', hide : true},
  12. { display: '角色名称', name: 'ROLE_NAME_881', align: 'center', width: "20%"},
  13. { display: '姓名', name: 'REALNAME_881', align: 'center', width: "15%"}
  14. ],
  15. url :$.pathname() + '/ws/crud/CRUDService/queryQui',
  16. params : loadParams,
  17. sortName : 'USERID_881 ',
  18. sortOrder : 'desc nulls last',
  19. rownumbers:true,
  20. checkbox:true,
  21. height: '100%',
  22. width:"100%",
  23. pageSize: 10,
  24. percentWidthMode:true,
  25. //顶部图标按钮栏
  26. toolbar:
  27. {
  28. items: [
  29. { text: '新增', click: onAdd, iconClass: 'icon_add', disabled: false },
  30. { line: true },
  31. { text: '修改', click: onEdit, iconClass: 'icon_edit', disabled: false },
  32. { line: true },
  33. { text: '详细信息', click: onView, iconClass: 'icon_list', disabled: false },
  34. { line: true },
  35. { text: '删除', click: onDelete, iconClass: 'icon_delete', disabled: false },
  36. { line: true }
  37. ]
  38. }
  39. });
  40. $("#searchPanel").bind("stateChange",function(e,state){
  41. g.resetHeight();
  42. });
  43. }