269c26bde83a79761901586709a199f7630a7ddc.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. var fd_id = (window.location.href).split('?')[1];
  2. var fd_id1 = (window.location.href).split('?')[2];
  3. var g;
  4. /**定义变量**/
  5. var condition="";
  6. if(fd_id=="0"){
  7. condition = "FD_OBJECTID = '"+fd_id1+"' ";
  8. }else{
  9. condition = "(COLUMN_1='0' AND FD_OBJECTID='"+ fd_id+"') OR (COLUMN_1='"+ fd_id+"') ";
  10. }
  11. var loadParams = {
  12. "listId" : '266',
  13. "condition" : condition
  14. };
  15. function initComplete(){
  16. g = $("#maingrid").quiGrid({
  17. columns: [
  18. //为了解决自定义表格,头上显示的主键ID,先暂时注掉2015-10-10
  19. {display: '所属单位名称', name: 'COMP_ID_266_SHOW', width: "6%", align: 'center' },
  20. {display: '装备名称', name: 'NAME_266', width: "6%", align: 'center' },
  21. {display: '规格型号', name: 'MODEL_TYPE_266', width: "6%", align: 'center' },
  22. {display: '电压等级 (V)', name: 'VOLTAGE_LEVEL_266_SHOW', width: "6%", align: 'center'},
  23. {display: '容量(kW)', name: 'CONTENT_266', width: "6%", align: 'center'},
  24. {display: '数量(台)', name: 'NUM_266', width: "6%", align: 'center'},
  25. {display: '单价(万元)', name: 'PRICE_266', width: "6%", align: 'center' },
  26. {display: '燃料', name: 'GAS_266', width: "5%", align: 'center' },
  27. {display: '供应商', name: 'PROVIDER_266', width: "6%", align: 'center'},
  28. {display: '购买日期(年月)', name: 'BUY_DATE_266', width: "7%", align: 'center' },
  29. {display: '装备存放场所', name: 'STORE_PLACE_266', width: "6%", align: 'center' },
  30. {display: '负责人', name: 'INPIRE_266', width: "6%", align: 'center' },
  31. {display: '办公电话', name: 'OFFICE_TEL_266', width: "6%", align: 'center'},
  32. {display: '手机', name: 'MOBILE_PHONE_266', width: "6%", align: 'center' },
  33. {display: '装备描述', name: 'IS_USED_266_SHOW', width: "6%", align: 'center' },
  34. {display: '调用状态', name: 'USED_STAT_266_SHOW', width: "6%", align: 'center' },
  35. { display: '维护时间', name: 'UPDATEDATE_266', align: 'center', width: "5%"}
  36. ],
  37. url :$.pathname() + '/ws/crud/CRUDService/queryQui',
  38. params : loadParams,
  39. sortName : 'UPDATEDATE_266',
  40. sortOrder : 'desc nulls last',
  41. rownumbers:true,
  42. // checkbox:true,
  43. height: '100%',
  44. width:"100%",
  45. pageSize: 10,
  46. percentWidthMode:true,
  47. });
  48. }