d726bd0e67cf5c6a05db0f6567e0d3fdfa215cd7.svn-base 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>设备受损明细详情-单位和电压等级区分</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  13. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <!--grid组件start-->
  18. <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
  19. <!--grid组件end-->
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  21. <!-- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  22. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  23. <!-- <style type="text/css">
  24. .c_page_hed {background-color: #08094C;}
  25. </style> -->
  26. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  27. </head>
  28. <body>
  29. <div id="i_page_hed" class="c_page_hed">
  30. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  31. <div id="i_page_grid_content" class="c_page_grid_content">
  32. <div id="i_page_grid" class="c_page_grid"></div>
  33. </div>
  34. <script type="text/javascript">
  35. var utils=new Util();
  36. var grid=null;
  37. var params=utils.resolveUrl();
  38. var columns={};
  39. columns["diya"]=[{ display:"变电站", name: "SUBSTATION_NAME", align: "center", width: "15%"},
  40. { display:"所属线路", name: "LINE_NAME", align: "center", width: "15%"},
  41. { display:"所属台区", name: "TRANSFORMAER_NAME",align: "center", width: "15%"},
  42. { display:"设备类型", name: "DEVICE_TYPE",align: "center", width: "11%"},
  43. { display:"受损类型", name: "DAMAGE_TYPE",align: "center", width: "11%"},
  44. { display:"长度", name: "LENGTH", align: "center", width: "11%"},
  45. { display:"数量", name: "COUNT", align: "center", width: "11%"},
  46. { display:"是否恢复", name: "IS_REPAIR", align: "center", width: "11%",
  47. render:function(rowdata, rowindex, value, column){
  48. if(value==0)return "未恢复";
  49. return "恢复";
  50. }
  51. }
  52. ];
  53. columns["10kV"]=[{ display:"名称", name: "NAME", align: "center", width: "15%"},
  54. { display:"编码", name: "ID", align: "center", width: "15%"},
  55. { display:"电压等级", name: "VOLTAGE",align: "center", width: "14%",
  56. render:function(rowdata, rowindex, value, column){
  57. if(value==1)return "10kV";
  58. return "-";
  59. }
  60. },
  61. { display:"设备类型", name: "DEVICE_TYPE",align: "center", width: "14%"},
  62. { display:"受损类型", name: "DAMAGE_TYPE",align: "center", width: "14%"},
  63. { display:"长度", name: "LENGTH", align: "center", width: "14%"},
  64. { display:"是否恢复", name: "IS_REPAIR", align: "center", width: "14%",
  65. render:function(rowdata, rowindex, value, column){
  66. if(value==0)return "未恢复";
  67. return "恢复";
  68. }
  69. }
  70. ];
  71. columns["other"]=[{ display:"名称", name: "NAME", align: "center", width: "15%"},
  72. { display:"编码", name: "ID", align: "center", width: "15%"},
  73. { display:"电压等级", name: "VOLTAGE",align: "center", width: "14%",
  74. render:function(rowdata, rowindex, value, column){
  75. if(value==1)return "500kV";
  76. if(value==2)return "220kV";
  77. if(value==3)return "110kV";
  78. if(value==4)return "35kV";
  79. return "-";
  80. }
  81. },
  82. { display:"杆塔型号", name: "POLE_TYPE",align: "center", width: "14%"},
  83. { display:"受损类型", name: "DAMAGE_TYPE",align: "center", width: "14%"},
  84. { display:"水平档距", name: "LENGTH", align: "center", width: "14%"},
  85. { display:"是否恢复", name: "IS_REPAIR", align: "center", width: "14%",
  86. render:function(rowdata, rowindex, value, column){
  87. if(value==0)return "未恢复";
  88. return "恢复";
  89. }
  90. }
  91. ];
  92. var options={
  93. columns:columns[params.column],
  94. url:"/nwyj/ws/SystemDataSourceChartServiceImpl/SystemDataSourceChartServiceImpl/getDaoGanDetailByVoltageInfo",
  95. params: [{name:"reportId",value:params.reportId},
  96. {name:"compId",value:params.compId},
  97. {name:"voltage",value:params.voltage}
  98. ] ,
  99. pageSize:10,
  100. usePager:false,
  101. percentWidthMode:true,
  102. height:"100%",
  103. method: "post",
  104. width:"100%",
  105. usePager : false,
  106. isScroll: true,
  107. percentWidthMode : false,
  108. alternatingRow: false,
  109. rowAttrRender: function(rowdata, rowindex, rowid){
  110. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  111. }
  112. };
  113. $(function(){
  114. grid=$("#i_page_grid").quiGrid(options);
  115. setTitle();
  116. close();
  117. });
  118. function setTitle(){
  119. $("#i_page_hed").text(params.text+params.level+"设备受损详情表");
  120. }
  121. </script>
  122. </body>
  123. </html>