c86009c6a14407cdd2b838dfc6e2bbdeb4f90af6.svn-base 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. var utils = new Util();
  2. var su = new SearchUtil();
  3. var grid = null;
  4. var params = utils.resolveUrl();
  5. var columns=[{ display:"任务名称", name: "PROGRAM_NAME", align: "center", width: "10%"},
  6. { display:"性质", name: "GPS_TASK_PROPERTY", align: "center", width: "10%"},
  7. { display:"级别", name: "GPS_LEVEL", align:"center", width: "10%"},
  8. { display:"类别", name: "GPS_TASK_TYPE",align: "center", width: "10%"},
  9. { display:"来源", name: "GPS_SIREL",align: "center", width: "10%"},
  10. { display:"计划性", name: "GPS_TASK_PLAN_TYPE",align: "center", width: "10%"},
  11. { display:"保供电区域", name: "GPS_AREA_CITY",align: "center", width: "10%"},
  12. { display:"实施单位", name: "GPS_AREA_NAME",align: "center", width: "10%"},
  13. { display:"开始时间", name: "START_TIME",align: "center", width: "10%"},
  14. { display:"结束时间", name: "END_TIME",align: "center", width: "10%"}
  15. ];
  16. var deptId=params["dept_id"];
  17. var level="'500kV','220kV','110kV','35kV','10kV'";
  18. var options={
  19. columns:columns,
  20. url:"/nwyj/ws/cockpitGrid/CockpitGridService/getGPSProgramInfo",
  21. params: {deptId:deptId,date:su.getNowFormatDate(new Date())},
  22. pageSize:15,
  23. // rownumbers:true,
  24. usePager:false,
  25. height:"100%",
  26. method: "post",
  27. width:"99.8%",
  28. usePager : true,
  29. isScroll: true,
  30. percentWidthMode : true,
  31. alternatingRow: false,
  32. rowAttrRender: function(rowdata, rowindex, rowid){
  33. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  34. }
  35. };
  36. $(function(){
  37. grid=$("#i_page_chart").quiGrid(options);
  38. setTitle();
  39. //close();
  40. //rendGrid();
  41. });
  42. function setTitle(){
  43. $("#i_page_head_title").text("保供电任务记录表");
  44. }
  45. setInterval(function(){
  46. grid=$("#i_page_chart").quiGrid(options);
  47. }, "300000") ;