main.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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 type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
  21. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
  22. <script type="text/ecmascript" src="<%=request.getContextPath()%>/resource/js/system/jqdatagrid.js"></script>
  23. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  24. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  25. <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
  26. <script type="text/javascript">
  27. hs.graphicsDir = '<%=request.getContextPath()%>/resource/plugin/highslide/graphics/';
  28. hs.outlineType = 'rounded-white';
  29. hs.wrapperClassName = 'draggable-header';
  30. $(document).ready(function() {
  31. showJqGrid1();
  32. showJqGrid2();
  33. showJqGrid3();
  34. showJqGrid4();
  35. showJqGrid5();
  36. showJqGrid6();
  37. });
  38. function showJqGrid1() {
  39. var temp="<%=request.getContextPath() %>/charts/curvedeviationlist.action?windfarm=MHS_FDC";
  40. var url= encodeURI(encodeURI(temp));
  41. var id = 'gridTable1';
  42. var datatype = 'json';
  43. var colNames = ['风机', '实际/保证(%)','实际/最优(%)','最优/保证(%)'];
  44. var colModel = [
  45. { name: 'windturbineid', index: 'windturbineid', width: 150, align: 'center'},
  46. { name: 'deviationrate2', index: 'deviationrate2', width: 150, align: 'center'},
  47. { name: 'deviationrate1', index: 'deviationrate1', width: 150, align: 'center'},
  48. { name: 'deviationrate3', index: 'deviationrate3', width: 150, align: 'center'}
  49. ];
  50. var caption = '日曲线偏差率排行榜';
  51. var sortname = 'deviationrate2';
  52. var gridPagerID ='gridPager';
  53. var sortorder='desc';
  54. var height='600';
  55. var width='auto';
  56. var rownumbers=false;
  57. var multiselect=false;
  58. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  59. multiselect,rownumbers);
  60. }
  61. function showJqGrid2() {
  62. var url = '<%=request.getContextPath() %>/charts/totalPowerCapacityTopList.action?type=fc';
  63. var id = 'gridTable2';
  64. var datatype = 'json';
  65. var colNames = ['风场', '风机','起始日期','截至日期','发电量(万kwh)'];
  66. var colModel = [
  67. { name: 'windfarm', index: 'windfarm', width: 100, align: 'center'},
  68. { name: 'windturbine', index: 'windturbine', width: 100, align: 'center'},
  69. { name: 'beginDate', index: 'beginDate', width: 150, align: 'center'},
  70. { name: 'endDate', index: 'endDate', width: 150, align: 'center'},
  71. { name: 'generatingCapacity', index: 'generatingCapacity', width: 100, align: 'center'}
  72. ];
  73. var caption = '总发电量排行榜';
  74. var sortname = 'generatingCapacity';
  75. var gridPagerID ='gridPager';
  76. var sortorder='desc';
  77. var height='600';
  78. var width='auto';
  79. var rownumbers=false;
  80. var multiselect=false;
  81. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  82. multiselect,rownumbers);
  83. }
  84. function showJqGrid3() {
  85. var url = '<%=request.getContextPath() %>/charts/utilizationList.action';
  86. var id = 'gridTable3';
  87. var datatype = 'json';
  88. var colNames = ['名称', '实际发电量(万KW)','理论发电量(万KW)','风电利用率(%)'];
  89. var colModel = [
  90. { name: 'windturbineid', index: 'windturbineid', width: 150, align: 'center'},
  91. { name: 'daydl2', index: 'daydl2', width: 150, align: 'center'},
  92. { name: 'daylldl', index: 'daylldl', width: 150, align: 'center'},
  93. { name: 'dayspeed', index: 'dayspeed', width:150, align: 'center'}
  94. ];
  95. var caption = '利用率排行榜';
  96. var sortname = 'daydl2';
  97. var gridPagerID ='gridPager';
  98. var sortorder='desc';
  99. var height='600';
  100. var width='auto';
  101. var rownumbers=false;
  102. var multiselect=false;
  103. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  104. multiselect,rownumbers);
  105. }
  106. function showJqGrid4() {
  107. var url = '<%=request.getContextPath() %>/charts/lossList.action';
  108. var id = 'gridTable4';
  109. var datatype = 'json';
  110. var colNames = ['名称', '非计划检修损失率(%)','计划检修损失率(%)','弃风率(%)','受累损失率(%)'];
  111. var colModel = [
  112. { name: 'windturbineid', index: 'windturbineid', width: 120, align: 'center'},
  113. { name: 'daynhgzssdl2', index: 'daynhgzssdl2', width: 120, align: 'center'},
  114. { name: 'daynhwhssdl2', index: 'daynhwhssdl2', width: 120, align: 'center'},
  115. { name: 'daynhxdssdl2', index: 'daynhxdssdl2', width: 120, align: 'center'},
  116. { name: 'dayspeed', index: 'dayspeed', width: 120, align: 'center'}
  117. ];
  118. var caption = '损失率排行榜';
  119. var sortname = 'daynhgzssdl2';
  120. var gridPagerID ='gridPager';
  121. var sortorder='desc';
  122. var height='600';
  123. var width='auto';
  124. var rownumbers=false;
  125. var multiselect=false;
  126. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  127. multiselect,rownumbers);
  128. }
  129. function showJqGrid5() {
  130. var url = '<%=request.getContextPath() %>/charts/loadfactortoplist1.action?type=fc&wpId=MHS_FDC';
  131. var id = 'gridTable5';
  132. var datatype = 'json';
  133. var colNames = ['风场', '风机','起始日期','截至日期','平均功率'];
  134. var colModel = [
  135. { name: 'windfarm', index: 'windfarm', width: 120, align: 'center'},
  136. { name: 'windturbine', index: 'windturbine', width: 120, align: 'center'},
  137. { name: 'beginDate', index: 'beginDate', width: 120, align: 'center'},
  138. { name: 'endDate', index: 'endDate', width: 120, align: 'center'},
  139. { name: 'generatingCapacity', index: 'generatingcapacity', width: 120, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2}}
  140. ];
  141. var caption = '负荷率排行榜';
  142. var sortname = 'power';
  143. var gridPagerID ='gridPager';
  144. var sortorder='desc';
  145. var height='600';
  146. var width='auto';
  147. var rownumbers=false;
  148. var multiselect=false;
  149. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  150. multiselect,rownumbers);
  151. }
  152. function showJqGrid6() {
  153. var url = '<%=request.getContextPath() %>/charts/querywarningStatisticalColumnGrid.action?wfId=1';
  154. var id = 'gridTable6';
  155. var datatype = 'json';
  156. var colNames = ['序号', '名称','频率(次)'];
  157. var colModel = [
  158. { name: 'num', index: 'num', width: 200, align: 'center'},
  159. { name: 'name', index: 'name', width: 200, align: 'center'},
  160. { name: 'frequencyday', index: 'frequencyday', width: 200, align: 'center'}
  161. ];
  162. var caption = '报警信息统计排行';
  163. var sortname = 'frequencyday';
  164. var gridPagerID ='gridPager';
  165. var sortorder='desc';
  166. var height='600';
  167. var width='auto';
  168. var rownumbers=false;
  169. var multiselect=false;
  170. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  171. multiselect,rownumbers);
  172. }
  173. </script>
  174. </head>
  175. <body>
  176. <form action="" method="post" id="f1">
  177. <table >
  178. <tr>
  179. <td>
  180. <table>
  181. <tr>
  182. <td>
  183. <a href="<%=request.getContextPath()%>/charts/curvedeviationindex.action"
  184. onclick="return hs.htmlExpand(this,
  185. { objectType: 'iframe',
  186. width : 1600,
  187. height : 800
  188. } )">
  189. 查看详细信息
  190. </a>
  191. <div style="width: 630px; height: 640px; overflow: auto;"
  192. id="container1">
  193. <table id='gridTable1' height="600px">
  194. </table>
  195. </div>
  196. </td>
  197. </tr>
  198. </table>
  199. </td>
  200. <td>
  201. <table>
  202. <tr>
  203. <td>
  204. <a href="<%=request.getContextPath()%>/charts/totalPowerCapacityTopIndex.action"
  205. onclick="return hs.htmlExpand(this,
  206. { objectType: 'iframe',
  207. width : 1600,
  208. height : 800
  209. } )">
  210. 查看详细信息
  211. </a>
  212. <div style="width: 630px; height: 640px; overflow: auto;"
  213. id="container2">
  214. <table id='gridTable2' height="600px">
  215. </table>
  216. </div>
  217. </td>
  218. </tr>
  219. </table>
  220. </td>
  221. <td>
  222. <table>
  223. <tr>
  224. <td>
  225. <a href="<%=request.getContextPath()%>/charts/utilizationIndex.action"
  226. onclick="return hs.htmlExpand(this,
  227. { objectType: 'iframe',
  228. width : 1600,
  229. height : 800
  230. } )">
  231. 查看详细信息
  232. </a>
  233. <div style="width: 630px; height: 640px; overflow: auto;"
  234. id="container3">
  235. <table id='gridTable3' height="600px">
  236. </table>
  237. </div>
  238. </td>
  239. </tr>
  240. </table>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td>
  245. <table>
  246. <tr>
  247. <td>
  248. <a href="<%=request.getContextPath()%>/charts/lossIndex.action"
  249. onclick="return hs.htmlExpand(this,
  250. { objectType: 'iframe',
  251. width : 1600,
  252. height : 800
  253. } )">
  254. 查看详细信息
  255. </a>
  256. <div style="width: 630px; height: 640px; overflow: auto;"
  257. id="container4">
  258. <table id='gridTable4' height="600px">
  259. </table>
  260. </div>
  261. </td>
  262. </tr>
  263. </table>
  264. </td>
  265. <td>
  266. <table>
  267. <tr>
  268. <td>
  269. <a href="<%=request.getContextPath()%>/charts/loadfactortopindex.action"
  270. onclick="return hs.htmlExpand(this,
  271. { objectType: 'iframe',
  272. width : 1600,
  273. height : 800
  274. } )">
  275. 查看详细信息
  276. </a>
  277. <div style="width: 630px; height: 640px; overflow: auto;"
  278. id="container5">
  279. <table id='gridTable5' height="600px">
  280. </table>
  281. </div>
  282. </td>
  283. </tr>
  284. </table>
  285. </td>
  286. <td>
  287. <table>
  288. <tr>
  289. <td>
  290. <a href="<%=request.getContextPath()%>/charts/querywarningStatisticalTop.action"
  291. onclick="return hs.htmlExpand(this,
  292. { objectType: 'iframe',
  293. width : 1600,
  294. height : 800
  295. } )">
  296. 查看详细信息
  297. </a>
  298. <div style="width: 630px; height: 640px; overflow: auto;"
  299. id="container6">
  300. <table id='gridTable6' height="600px">
  301. </table>
  302. </div>
  303. </td>
  304. </tr>
  305. </table>
  306. </td>
  307. </tr>
  308. </table>
  309. </form>
  310. </body>