7dc363097535b1522a867292e8e3c63a1a55d39c.svn-base 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. $(function(){
  2. $("#title").text("公司应急装备统计表("+mydate.getFullYear()+"年"+(mydate.getMonth()+1)+"月)");
  3. });
  4. //数据表格
  5. var g;
  6. var mydate = allGetServerTime();
  7. var condition = " IS_DEL='0' ";
  8. var loadParams = {
  9. "listId" : '244',
  10. "condition" : condition,
  11. direction:'ASC',
  12. sort: 'LEDSORT'
  13. };
  14. function initComplete(){
  15. g = $("#maingrid").quiGrid({
  16. columns: [{
  17. display: '供电局', name: 'COMP_ID_244_SHOW', align: 'center',width:100 , frozen: true
  18. },{
  19. display: '临时食宿装备(辆)',
  20. columns: [{display: '移动餐车', name: 'DINING_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  21. {display: '住宿房车', name: 'HOUSE_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  22. {display: '净水车', name: 'WATER_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  23. {display: '移动厕所车', name: 'TOILET_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  24. {display: '移动淋浴车', name: 'SHOWER_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  25. },{
  26. display: '照明装备(套)',
  27. columns: [{display: '移动照明灯塔', name: 'LIGHT_TOWER_244', align: 'center',width:100 ,editor: { type: 'text'}},
  28. {display: 'LED升降照明装置', name: 'LED_LIGHT_244', align: 'center',width:100 ,editor: { type: 'text'}},
  29. {display: '免维护检修灯', name: 'OVERHAUL_LAMP_244', align: 'center',width:100 ,editor: { type: 'text'}},
  30. {display: '车载照明灯', name: 'CAR_LAMP_244', align: 'center',width:100 ,editor: { type: 'text'}},
  31. {display: '探照灯', name: 'SEARCHLIGHT_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  32. },{
  33. display: '通信装备(台)',
  34. columns: [{display: '便携集群基站', name: 'CLUSTER_BASE_STATION_244', align: 'center',width:100 ,editor: { type: 'text'}},
  35. {display: '集群手台', name: 'CLUSTER_PLATFORM_244', align: 'center',width:100 ,editor: { type: 'text'}},
  36. {display: '便携卫星站', name: 'SATELLITE_STATION_244', align: 'center',width:100 ,editor: { type: 'text'}},
  37. {display: '卫星电话', name: 'SATELLITE_PHONE_244', align: 'center',width:100 ,editor: { type: 'text'}},
  38. {display: '便携移动视频', name: 'PORTABLE_VIDEO_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  39. },{
  40. display: '交通运输装备(台)',
  41. columns: [{display: '四驱越野车', name: 'SUV_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  42. {display: '四驱皮卡车', name: 'PICKUP_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  43. {display: '应急抢修车', name: 'RMV_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  44. {display: '冲锋舟', name: 'CHARGE_BOAT_244', align: 'center',width:100 ,editor: { type: 'text'}},
  45. {display: '橡皮艇', name: 'RUBBER_BOAT_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  46. },{
  47. display: '工程装备(辆)',
  48. columns: [{display: '排涝车', name: 'DRAINAGE_VEHICE_244', align: 'center',width:100 ,editor: { type: 'text'}},
  49. {display: '钻孔立杆车', name: 'DRILLING_POLE_CAR_244', align: 'center',width:100 ,editor: { type: 'text'}},
  50. {display: '自吊车', name: 'SELF_CRANE_244', align: 'center',width:100 ,editor: { type: 'text'}},
  51. {display: '高空作业车', name: 'OVARHEAD_WORKING_TRUCK_244', align: 'center',width:100 ,editor: { type: 'text'}},
  52. {display: '运输车', name: 'TRUCK_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  53. },{
  54. display: '其他装备',
  55. columns: [{display: '无人机', name: 'UAVS_244', align: 'center',width:100 ,editor: { type: 'text'}}]
  56. }],
  57. url :$.pathname() + '/ws/crud/CRUDService/queryQui',
  58. params : loadParams,
  59. usePager : false,
  60. sortName: '',
  61. rownumbers:true,
  62. // height: '100%',
  63. width:"100%",
  64. multihead:true,
  65. // enabledEdit: true, //编辑用
  66. percentWidthMode:true,
  67. // toolbar:{
  68. // items:[
  69. // {text: '批量保存', click: saveAll, iconClass: 'icon_add'},
  70. // { line : true }
  71. // ]
  72. // }
  73. });
  74. // //重设高度
  75. // $(parent.document.body).find("iframe").height($(window.document.body).height()+30);
  76. // $(top.document.body).find("iframe").height($(window.document.body).height()+30);
  77. }