apdatahistory.jsp 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <%@ page language="java" contentType="text/html;charset=utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp"%>
  3. <head>
  4. <link rel="stylesheet" type="text/css"
  5. href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  6. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
  7. <script
  8. src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js"
  9. type="text/javascript">
  10. </script>
  11. <script
  12. src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js">
  13. </script>
  14. <script type="text/javascript" src="<%=request.getContextPath() %>/pages/apdata/apdatahistory.js"></script>
  15. <script type="text/javascript" src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js">
  16. </script>
  17. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  18. <link rel="stylesheet" type="text/css"
  19. href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
  20. <script
  21. src="<%=request.getContextPath()%>/resource/js/highcharts/modules/solid-gauge.src.js">
  22. </script>
  23. <style type="text/css">
  24. .normal {
  25. border-right-style: solid;
  26. border-bottom-style: solid;
  27. border-left-style: solid;
  28. border-top-style:solid;
  29. border-top-color:#ffffff;
  30. border-left-color:#c1c1c1;
  31. border-right-color:#c1c1c1;
  32. border-bottom-color:#c1c1c1;
  33. border-width: 1px;
  34. width:100px;
  35. height:28px;
  36. float:left;
  37. margin-top:-1px;
  38. cursor:pointer;
  39. text-align:center;
  40. line-height:28px;
  41. overflow:hidden;
  42. font-weight:bold;
  43. font-size: 12px;
  44. font-family: tahoma,arial,verdana,sans-serif;
  45. }
  46. .disable {
  47. border-right-style: solid;
  48. border-bottom-style: solid;
  49. border-left-style: solid;
  50. border-top-style:solid;
  51. border-top-color:#c1c1c1;
  52. border-left-color:#c1c1c1;
  53. border-right-color:#c1c1c1;
  54. border-bottom-color:#c1c1c1;
  55. border-width: 1px;
  56. width:100px;
  57. height:25px;
  58. float:left;
  59. margin-top:-1px;
  60. cursor:pointer;
  61. text-align:center;
  62. background-color:#e1e1e1;
  63. line-height:25px;
  64. overflow:hidden;
  65. font-weight:bold;
  66. font-size: 12px;
  67. font-family: tahoma,arial,verdana,sans-serif;
  68. }
  69. .panelcontainer {
  70. width: 100%;
  71. height: 60px;
  72. border-style: solid;
  73. border-color: #C1C1C1;
  74. border-width:1px;
  75. }
  76. .panelquery {
  77. width:100%;
  78. height:25px;
  79. background-color:#f0f0f0;
  80. line-height:25px;
  81. }
  82. .panelquerytext {
  83. margin-left:3px;
  84. font-weight:bold;
  85. font-size: 12px;
  86. font-family: tahoma,arial,verdana,sans-serif;
  87. }
  88. .querycondcontainer {
  89. line-height:39px;
  90. padding:3px;
  91. float:left;
  92. font-size: 12px;
  93. }
  94. .styled-select {
  95. width: 120px;
  96. height: 30px;
  97. overflow: hidden;
  98. background-repeat: no-repeat;
  99. background-color: #f0f0f0;
  100. }
  101. </style>
  102. <script type="text/javascript">
  103. function changeFc(wp){
  104. if(wp!="0" && wp !="-1" && wp!="-2")
  105. {
  106. var url1 = "projectAjax.action?wpIds="+wp;
  107. var url2 = "lineAjax.action?wpIds="+wp;
  108. var url3 = "fjAjax.action?wpIds="+wp;
  109. $.ajax({
  110. type:"post",
  111. url:url1,
  112. dataType:"json",
  113. success: function(data){
  114. if(data.length != 0){
  115. eval(data);
  116. $("#pjid").empty();
  117. $("#pjid").append("<option value=''>请选择</option>");
  118. for(var i=0; i<data.length; i++){
  119. $("#pjid").append("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
  120. }
  121. }else{
  122. $("#pjid").append("<option value=''>请选择</option>");
  123. $("#pjid").addOption("请选择","");
  124. }
  125. }
  126. });
  127. $.ajax({
  128. type:"post",
  129. url:url2,
  130. dataType:"json",
  131. success: function(data){
  132. if(data.length != 0){
  133. eval(data);
  134. $("#lnid").empty();
  135. $("#lnid").append("<option value=''>请选择</option>");
  136. for(var i=0; i<data.length; i++){
  137. $("#lnid").append("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
  138. }
  139. }else{
  140. $("#lnid").empty();
  141. $("#lnid").append("<option value=''>请选择</option>");
  142. }
  143. }
  144. });
  145. }
  146. }
  147. $(document).ready(function(){
  148. });
  149. function queryApData(obj){
  150. var beginDate=$("#beginDate").val();
  151. if(beginDate==""){
  152. alert("请选择开始日期!");
  153. return;
  154. }
  155. historyApdata();
  156. }
  157. </script>
  158. </head>
  159. <body>
  160. <form action="" method="post" id="f1">
  161. <div style="height: 20px"></div>
  162. <fieldset style="height: 60px" id="fst">
  163. <legend class="item_Name">查询条件</legend>
  164. <table width="1300PX">
  165. <tr>
  166. <td width="70px" align="right"><label class="item_Name">风场:</label></td>
  167. <td><s:select cssClass="styled-select" list="wps" listKey="id" listValue="name" id="wpid" name="wpid" onchange="javascript:changeFc(this.value);" ></s:select>
  168. </td>
  169. <td width="70px" align="right"><label class="item_Name">项目:</label></td>
  170. <td> <select name="pjid" id="pjid" style="width: 120px" class="styled-select">
  171. <option value="">请选择</option>
  172. </select></td>
  173. <td width="70px" align="right"> <label class="item_Name">线路:</label></td>
  174. <td><select name="lnid" id="lnid" style="width: 120px" class="styled-select">
  175. <option value="">请选择</option>
  176. </select> </td>
  177. <td width="120px" align="right"><label class="item_Name">日期:</label></td>
  178. <td><input type="text" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowWeek:true,readOnly:true})"
  179. id="beginDate" name="beginDate"/></td>
  180. <td><input type="button" width="40px" value="查&nbsp;&nbsp;&nbsp;询" onClick="queryApData(this)"/>
  181. </tr>
  182. </table>
  183. </fieldset>
  184. <div id="menuWindfarm" class="menuContent" style="overflow-y:scroll;overflow-x:auto;z-index:9999; border: 1px solid #617775;background: #f0f6e4;display:none;position: absolute;">
  185. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  186. <ul id="treeWindfarm" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  187. <!-- </div>
  188. <div style="padding:5px;margin-left:25px;">
  189. <input style="width:70px" type="button" value="确定" onClick="selectWindfarm()"/>
  190. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuWindfarm()"/>
  191. </div>-->
  192. </div>
  193. <div id="menuXl" class="menuContent" style="overflow-y:scroll;overflow-x:auto;z-index:9999; border: 1px solid #617775;background: #f0f6e4;display:none;position: absolute;">
  194. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  195. <ul id="treeXl" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  196. <!-- </div>
  197. <div style="padding:5px;margin-left:25px;">
  198. <input style="width:70px" type="button" value="确定" onClick="selectXl()"/>
  199. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuXl()"/>
  200. </div>-->
  201. </div>
  202. <div id="menuFj" class="menuContent" style="overflow-y:scroll;overflow-x:auto;z-index:9999; border: 1px solid #617775;background: #f0f6e4;display:none;position: absolute;">
  203. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  204. <ul id="treeFj" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  205. <!-- </div>
  206. <div style="padding:5px;margin-left:25px;">
  207. <input style="width:70px" type="button" value="确定" onClick="selectFj()"/>
  208. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuFj()"/>
  209. </div>-->
  210. </div>
  211. <p style="clear:both;height:1px"/>
  212. <div style="width:100%;height:500px;" id="chartfc"></div>
  213. </div>
  214. </form>
  215. </body>