main.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <%@ page language="java" contentType="text/html;charset=utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp"%>
  3. <head>
  4. <script src="<%=request.getContextPath()%>/resource/js/jquery.min.js"
  5. type="text/javascript">
  6. </script>
  7. <script
  8. src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.js"
  9. type="text/javascript">
  10. </script>
  11. <script
  12. src="<%=request.getContextPath()%>/resource/js/highcharts/themes/grid.js"
  13. type="text/javascript">
  14. </script>
  15. <link rel="stylesheet" type="text/css"
  16. href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
  17. <script type="text/javascript"
  18. src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js">
  19. </script>
  20. <script src="<%=request.getContextPath()%>/pages/analysis/main.js"
  21. type="text/javascript">
  22. </script>
  23. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
  24. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
  25. <script type="text/ecmascript" src="<%=request.getContextPath()%>/resource/js/system/jqdatagrid.js"></script>
  26. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  27. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  28. <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
  29. <script type="text/javascript">
  30. hs.graphicsDir = '<%=request.getContextPath()%>/resource/plugin/highslide/graphics/';
  31. hs.outlineType = 'rounded-white';
  32. hs.wrapperClassName = 'draggable-header';
  33. function showJqGrid1() {
  34. var temp="/apdata/queryData.action";
  35. var url= encodeURI(encodeURI(temp));
  36. var id = 'gridTable1';
  37. var datatype = 'json';
  38. var colNames = ['编号','名称', '年', '1月','2月','3月','4月', '5月','6月','7月','8月', '9月','10月','11月','12月','合计'];
  39. var colModel = [
  40. { name: 'id', index: 'id', width: 150, align: 'center', hidden:true},
  41. { name: 'projectName', index: 'projectName', width: 250, align: 'center'},
  42. { name: 'year', index: 'year', width: 120, align: 'center'},
  43. { name: 'gc01', index: 'gc01', width: 120, align: 'center'},
  44. { name: 'gc02', index: 'gc02', width: 120, align: 'center'},
  45. { name: 'gc03', index: 'gc03', width: 120, align: 'center'},
  46. { name: 'gc04', index: 'gc04', width: 120, align: 'center'},
  47. { name: 'gc05', index: 'gc05', width: 120, align: 'center'},
  48. { name: 'gc06', index: 'gc06', width: 120, align: 'center'},
  49. { name: 'gc07', index: 'gc07', width: 120, align: 'center'},
  50. { name: 'gc08', index: 'gc08', width: 120, align: 'center'},
  51. { name: 'gc09', index: 'gc09', width: 120, align: 'center'},
  52. { name: 'gc10', index: 'gc10', width: 120, align: 'center'},
  53. { name: 'gc11', index: 'gc11', width: 120, align: 'center'},
  54. { name: 'gc12', index: 'gc12', width: 120, align: 'center'},
  55. { name: 'generatingcapacity', index: 'generatingcapacity', width: 120, align: 'center'}
  56. ];
  57. var caption = '计划发电量列表';
  58. var sortname = 'projectName';
  59. var gridPagerID ='gridPager';
  60. var sortorder='desc';
  61. var height='400';
  62. var width='900';
  63. var rownumbers=true;
  64. var multiselect=false;
  65. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  66. multiselect,rownumbers);
  67. $("#gridTable1").jqGrid('setFrozenColumns');
  68. }
  69. function showJqGrid2() {
  70. var url = '<%=request.getContextPath() %>/matrix/wplsAjax.action';
  71. var id = 'gridTable2';
  72. var datatype = 'json';
  73. var colNames = ['风场', '装机容量','装机台数','功率','风速/日照强度','运行','待机','故障','维护','离线','限电'];
  74. var colModel = [
  75. { name: 'wpName', index: 'wpName', width: 100, align: 'center'},
  76. { name: 'capacity', index: 'capacity', width: 70, align: 'center'},
  77. { name: 'quantity', index: 'quantity', width: 70, align: 'center'},
  78. { name: 'power', index: 'power', width: 70, align: 'center'},
  79. { name: 'speed', index: 'speed', width: 90, align: 'center'},
  80. { name: 'yxts', index: 'yxts', width: 70, align: 'center'},
  81. { name: 'djts', index: 'djts', width: 70, align: 'center'},
  82. { name: 'tjts', index: 'tjts', width: 70, align: 'center'},
  83. { name: 'whts', index: 'whts', width: 70, align: 'center'},
  84. { name: 'lxts', index: 'lxts', width: 70, align: 'center'},
  85. { name: 'xdts', index: 'xdts', width: 70, align: 'center'}
  86. ];
  87. var caption = '风场实时状态数据列表';
  88. var sortname = 'daypg';
  89. var gridPagerID ='gridPager';
  90. var sortorder='desc';
  91. var height='400';
  92. var width='900';
  93. var rownumbers=true;
  94. var multiselect=false;
  95. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  96. multiselect,rownumbers);}
  97. </script>
  98. </head>
  99. <body>
  100. <form action="" method="post" id="f1">
  101. <table >
  102. <tr>
  103. <td>
  104. <table>
  105. <tr>
  106. <td>
  107. <a href="<%=request.getContextPath()%>/power/powerindex.action"
  108. onclick="return hs.htmlExpand(this,
  109. { objectType: 'iframe',
  110. width : 1600,
  111. height : 800
  112. } )">
  113. 查看详细信息
  114. </a>
  115. <div style="width: 900px; height: 500px; overflow: scroll"
  116. id="container1"/>
  117. </td>
  118. </tr>
  119. </table>
  120. </td>
  121. <td>
  122. <table>
  123. <tr>
  124. <td>
  125. <a href="<%=request.getContextPath()%>/apdata/historyindex.action"
  126. onclick="return hs.htmlExpand(this,
  127. { objectType: 'iframe',
  128. width : 1600,
  129. height : 800
  130. } )">
  131. 查看详细信息
  132. </a>
  133. <div style="width: 900px; height: 500px; overflow: scroll"
  134. id="container2"/>
  135. </td>
  136. </tr>
  137. </table>
  138. </td>
  139. </tr>
  140. <tr>
  141. <td>
  142. <table>
  143. <tr>
  144. <td>
  145. <a href="<%=request.getContextPath()%>/apdata/planIndex.action"
  146. onclick="return hs.htmlExpand(this,
  147. { objectType: 'iframe',
  148. width : 1600,
  149. height : 800
  150. } )">
  151. 查看详细信息
  152. </a>
  153. <div style="width: 900px; height: 500px; overflow: scroll"
  154. id="container3">
  155. <table id='gridTable1' height="100%">
  156. </table>
  157. </div>
  158. </td>
  159. </tr>
  160. </table>
  161. </td>
  162. <td>
  163. <table>
  164. <tr>
  165. <td>
  166. <a href="<%=request.getContextPath()%>/matrix/wtlsindex.action"
  167. onclick="return hs.htmlExpand(this,
  168. { objectType: 'iframe',
  169. width : 1600,
  170. height : 800
  171. } )">
  172. 查看详细信息
  173. </a>
  174. <div style="width: 900px; height: 500px; overflow: scroll"
  175. id="container4">
  176. <table id='gridTable2' height="100%">
  177. </table>
  178. </div>
  179. </td>
  180. </tr>
  181. </table>
  182. </td>
  183. </tr>
  184. </table>
  185. </form>
  186. </body>