analysisyear.jsp 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp" %>
  3. <head>
  4. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js"></script>
  5. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
  6. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
  7. <script type="text/ecmascript" src="<%=request.getContextPath()%>/resource/js/system/jqdatagrid.js"></script>
  8. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  9. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  10. <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
  11. <link rel="stylesheet" href="<%=request.getContextPath()%>/resource/css/ztree/zTreeStyle.css" type="text/css">
  12. <script src="<%=request.getContextPath()%>/resource/js/ztree/jquery.ztree.all.min.js" type="text/javascript"></script>
  13. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js" type="text/javascript"></script>
  14. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js"> </script>
  15. <style type="text/css">
  16. .normal {
  17. border-right-style: solid;
  18. border-bottom-style: solid;
  19. border-left-style: solid;
  20. border-top-style: solid;
  21. border-top-color: #ffffff;
  22. border-left-color: #c1c1c1;
  23. border-right-color: #c1c1c1;
  24. border-bottom-color: #c1c1c1;
  25. border-width: 1px;
  26. width: 100px;
  27. height: 28px;
  28. float: left;
  29. margin-top: -1px;
  30. cursor: pointer;
  31. text-align: center;
  32. line-height: 28px;
  33. overflow: hidden;
  34. font-weight: bold;
  35. font-size: 12px;
  36. font-family: tahoma, arial, verdana, sans-serif;
  37. }
  38. .disable {
  39. border-right-style: solid;
  40. border-bottom-style: solid;
  41. border-left-style: solid;
  42. border-top-style: solid;
  43. border-top-color: #c1c1c1;
  44. border-left-color: #c1c1c1;
  45. border-right-color: #c1c1c1;
  46. border-bottom-color: #c1c1c1;
  47. border-width: 1px;
  48. width: 100px;
  49. height: 25px;
  50. float: left;
  51. margin-top: -1px;
  52. cursor: pointer;
  53. text-align: center;
  54. background-color: #e1e1e1;
  55. line-height: 25px;
  56. overflow: hidden;
  57. font-weight: bold;
  58. font-size: 12px;
  59. font-family: tahoma, arial, verdana, sans-serif;
  60. }
  61. .panelcontainer {
  62. width: 100%;
  63. height: 70px;
  64. border-style: solid;
  65. border-color: #C1C1C1;
  66. border-width: 1px;
  67. }
  68. .panelquery {
  69. width: 100%;
  70. height: 25px;
  71. background-color: #c1c1c1;
  72. line-height: 25px;
  73. }
  74. .panelquerytext {
  75. margin-left: 3px;
  76. font-weight: bold;
  77. font-size: 12px;
  78. font-family: tahoma, arial, verdana, sans-serif;
  79. }
  80. .querycondcontainer {
  81. line-height: 39px;
  82. padding: 3px;
  83. float: left;
  84. font-size: 12px;
  85. }
  86. </style>
  87. <script type="text/javascript">
  88. function queryData(){
  89. var year = $("#year").val();
  90. var windfarm=$("#windfarm").val();
  91. if (windfarm == "") {
  92. alert("请选择风场!");
  93. return;
  94. }
  95. if (year == "") {
  96. alert("请选择开始时间!");
  97. return;
  98. }
  99. /*var temp = "analysisyearlist.action?windfarm=" + windfarm + "&year=" + year ;
  100. var url = encodeURI(encodeURI(temp));
  101. $("#gridTable").setGridParam({url:url}).trigger("reloadGrid"); */
  102. $("#gridTable").jqGrid('GridUnload');
  103. showJqGrid();
  104. }
  105. var series;
  106. var options1;
  107. var options2;
  108. var chart1;
  109. var chart2;
  110. $(document).ready(function () {
  111. initial();
  112. showJqGrid();
  113. });
  114. function initial()
  115. {
  116. $("#windfarm").attr("value", '<s:property value="windfarm"/>');
  117. $("#year").attr("value", '<s:property value="year"/>');
  118. }
  119. function showJqGrid() {
  120. var year = $("#year").val();
  121. var windfarm = $("#windfarm").val();
  122. var temp = "analysisyearlist.action?windfarm=" + windfarm+ "&year=" + year;
  123. var url = encodeURI(encodeURI(temp));
  124. var id = 'gridTable';
  125. var datatype = 'json';
  126. var colNames = ['发电量', '上网电量','功率','风速','利用小时','设备可利用率'
  127. , '等效可利用率','综合场用电率','故障损失电量','维护损失电量','限电损失电量'
  128. , '性能损失电量'
  129. ];
  130. var colModel = [
  131. { name: 'yeargc', index: 'yeargc', width: 120, align: 'center'},
  132. { name: 'yearge', index: 'yearge', width: 120, align: 'center'},
  133. { name: 'power', index: 'power', width: 120, align: 'center'},
  134. { name: 'speed', index: 'speed', width: 120, align: 'center'},
  135. { name: 'yearlyxs', index: 'monthlyxs', width: 120, align: 'center'},
  136. { name: 'yearsbklyl', index: 'yearlyxs', width: 120, align: 'center'},
  137. { name: 'yeardxkyxs', index: 'yeardxkyxs', width: 120, align: 'center'},
  138. { name: 'yearzhcydl', index: 'yearzhcydl', width: 120, align: 'center'},
  139. { name: 'lossofpower2', index: 'lossofpower2', width: 120, align: 'center'},
  140. { name: 'lossofpower3', index: 'lossofpower3', width: 120, align: 'center'},
  141. { name: 'lossofpower1', index: 'lossofpower1', width: 120, align: 'center'},
  142. { name: 'lossofpower4', index: 'lossofpower4', width: 120, align: 'center'}
  143. ];
  144. var caption = '风电场历史年信息查看';
  145. var sortname = 'yeargc';
  146. var gridPagerID ='gridPager';
  147. var sortorder='desc';
  148. var height='auto';
  149. var width='auto';
  150. var rownumbers=true;
  151. var multiselect=false;
  152. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  153. multiselect,rownumbers);
  154. }
  155. </script>
  156. <style type="text/css">
  157. fieldset legend {
  158. color:#302A2A;
  159. font: bold 16px/2 Verdana, Geneva, sans-serif;
  160. font-weight: bold;
  161. text-align: left;
  162. text-shadow: 2px 2px 2px rgb(88, 126, 156);
  163. }
  164. </style>
  165. </head>
  166. <body>
  167. <form action="analysisindex.action" method="post" id="f1">
  168. <fieldset style="height: 60px" id="fst">
  169. <legend class="item_Name">查询条件</legend>
  170. <table width="500px" cellpadding="0" cellspacing="0" class="dataform">
  171. <tr>
  172. <th width="100px" class="item_Name">
  173. 风场:
  174. </th>
  175. <td width="100px" class="item_Name">
  176. <s:select list="wps" cssStyle="width:100px" listKey="id" listValue="name" id="windfarm" name="windfarm" headerKey="" headerValue="请选择" onchange="javascript:queryData();"></s:select>
  177. </td>
  178. <th width="100px" class="item_Name">
  179. </th>
  180. <td width="100px" style="text-align: left">
  181. <s:textfield cssClass="Wdate" onFocus="WdatePicker({dateFmt:'yyyy',isShowWeek:true,readOnly:true})"
  182. id="year" name="year" title="年" onchange="javascript:queryData();"/>
  183. </td>
  184. </tr>
  185. </table>
  186. </fieldset>
  187. <br/>
  188. <table id='gridTable' >
  189. </table>
  190. <div id='gridPager'></div>
  191. <div id="fzy2"
  192. style="background-color: '#ffffff'; width: 100%; height: 50%;float: right;"></div>
  193. <div style="clear:both"></div>
  194. </form>
  195. </body>