123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- <%@ page language="java" contentType="text/html;charset=utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp"%>
- <head>
- <link rel="stylesheet" type="text/css"
- href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
-
- <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
- <script
- src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js"
- type="text/javascript">
- </script>
- <script
- src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js">
- </script>
-
- <script type="text/javascript" src="<%=request.getContextPath() %>/pages/apdata/apdata.js"></script>
- <script type="text/javascript" src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js">
- </script>
- <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css"
- href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
- <script
- src="<%=request.getContextPath()%>/resource/js/highcharts/modules/solid-gauge.src.js">
- </script>
- <style type="text/css">
-
- .normal {
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-style:solid;
- border-top-color:#ffffff;
- border-left-color:#c1c1c1;
- border-right-color:#c1c1c1;
- border-bottom-color:#c1c1c1;
- border-width: 1px;
- width:100px;
- height:28px;
- float:left;
- margin-top:-1px;
- cursor:pointer;
- text-align:center;
- line-height:28px;
- overflow:hidden;
- font-weight:bold;
- font-size: 12px;
- font-family: tahoma,arial,verdana,sans-serif;
-
- }
- .disable {
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-style:solid;
- border-top-color:#c1c1c1;
- border-left-color:#c1c1c1;
- border-right-color:#c1c1c1;
- border-bottom-color:#c1c1c1;
- border-width: 1px;
- width:100px;
- height:25px;
- float:left;
- margin-top:-1px;
- cursor:pointer;
- text-align:center;
- background-color:#e1e1e1;
- line-height:25px;
- overflow:hidden;
- font-weight:bold;
- font-size: 12px;
- font-family: tahoma,arial,verdana,sans-serif;
-
- }
- .panelcontainer {
- width: 100%;
- height: 60px;
- border-style: solid;
- border-color: #C1C1C1;
- border-width:1px;
- }
- .panelquery {
- width:100%;
- height:25px;
- background-color:#f0f0f0;
- line-height:25px;
- }
- .panelquerytext {
- margin-left:3px;
- font-weight:bold;
- font-size: 12px;
- font-family: tahoma,arial,verdana,sans-serif;
-
- }
- .querycondcontainer {
-
- line-height:39px;
- padding:3px;
- float:left;
-
- font-size: 12px;
- }
- .styled-select {
- width: 120px;
- height: 30px;
- overflow: hidden;
-
- background-repeat: no-repeat;
- background-color: #f0f0f0;
-
- }
- </style>
- <script type="text/javascript">
-
- hs.graphicsDir = '<%=request.getContextPath()%>/resource/plugin/highslide/graphics/';
- hs.outlineType = 'rounded-white';
- hs.wrapperClassName = 'draggable-header';
- var queryType="fc";
-
-
-
- function changeFc(wp){
- var url1 = "projectAjax.action?wpIds="+wp;
- var url2 = "lineAjax.action?wpIds="+wp;
- var url3 = "fjAjax.action?wpIds="+wp;
- $.ajax({
- type:"post",
- url:url1,
- dataType:"json",
- success: function(data){
- if(data.length != 0){
- eval(data);
- $("#pjid").empty();
- $("#pjid").append("<option value=''>请选择</option>");
-
- for(var i=0; i<data.length; i++){
- $("#pjid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
- }
-
- }else{
- $("#pjid").append("<option value=''>请选择</option>");
- $("#pjid").addOption("请选择","");
- }
- }
- });
-
- $.ajax({
- type:"post",
- url:url2,
- dataType:"json",
- success: function(data){
- if(data.length != 0){
- eval(data);
- $("#lnid").empty();
- $("#lnid").append("<option value=''>请选择</option>");
-
- for(var i=0; i<data.length; i++){
- $("#lnid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
- }
- }else{
- $("#lnid").empty();
- $("#lnid").append("<option value=''>请选择</option>");
- }
- }
- });
-
- $.ajax({
- type:"post",
- url:url3,
- dataType:"json",
- success: function(data){
- if(data.length != 0){
- eval(data);
- $("#wtid").empty();
- $("#wtid").append("<option value=''>请选择</option>");
-
- for(var i=0; i<data.length; i++){
- $("#wtid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
- }
- }else{
- $("#wtid").empty();
- $("#wtid").append("<option value=''>请选择</option>");
- }
- }
- });
-
- }
- $(document).ready(function(){
-
- });
-
-
-
-
- function queryApData(obj){
- var beginDate=$("#beginDate").val();
- var endDate=$("#endDate").val();
- var wpIds=$("#wpid").val();
- var pjIds=$("#pjid").val();
- var lineIds=$("#lnid").val();
- var wtIds=$("#wtid").val();
- if(wpIds==""){
- alert("请选择风场!");
- return;
- }
- if(beginDate==""){
- alert("请选择开始日期!");
- return;
- }
- if(endDate==""){
- alert("请选择结束日期!");
- return;
- }
- $.ajax({
- url : "queryAp.action?queryType=" + queryType+"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="+lineIds
- +"&wtIds="+wtIds+"&beginDate="+beginDate+"&endDate="+endDate,
- type : "post",
- cache : false,
- dataType : "json",
- data : {},
- ifModified : false,
- success : function(res) {
- var serNames=[];
- var speed=res["speed"];
-
-
- $.each(res["sers"],function(m,obj){
- serNames.push(obj);
- }
- );
-
- chart1 = new Highcharts.Chart(options1);
-
-
- for(var j=0;j<serNames.length;j++){
- var ser={
- type: 'spline',
- name: serNames[j],
- data:res[serNames[j]],
- yAxis:0
- };
-
- chart1.addSeries(ser);
- }
-
-
- //////////dialog test///////
- showDiv(obj, "查询结果")
- ////////////////////////////
- }
- });
- }
-
- var options1;
- var chart1;
- options1={
- chart: {
- renderTo: 'chartContainer',
- type: 'spline'
- },
- title: {
- text: '风功率曲线'
- },
- tooltip: {
- crosshairs:{//控制十字线
- width:2
- },
- crosshairs: true,
- shared: true
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- xAxis: {
- labels: {
- align: 'center'
- },
- categories:[3.0,3.5,4.0,4.5,5.0,5.5,6.0,6.5,7.0,7.5,8.0,8.5,9.0,9.5,10.0,10.5,11.0,11.5,12.0,12.5,13.0,13.5,14.0,14.5,15.0,15.5,16.0,16.5,17.0,17.5,18.0,18.5,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0]
- },
- yAxis: [{
- title: {
- text: '功率(kW)'
- },lineWidth : 1
- }],
- legend: {
-
- align: 'center',
- verticalAlign: 'bottom'
- }
- };
-
- function showDiv(obj, name) {
- return hs.htmlExpand(obj, {
- contentId : 'show1',
- width : 1000,
- height : 600,
- align : 'center',
- headingText : name
- });
- }
- </script>
- </head>
- <body>
- <!-- *****************************弹出层*************************************************** -->
- <div class="highslide-html-content" id="show1" >
- <div class="highslide-header">
- <ul>
- <li class="highslide-move">
- <a href="#" onclick="return false">Move</a>
- </li>
- <li class="highslide-close">
- <a href="#" onclick="return hs.close(this)"></a>
- </li>
- </ul>
- </div>
- <div class="highslide-body" id="chartContainer"
- style="width: 900px; height:500px;">
- </div>
- </div>
- <form action="" method="post" id="f1">
- <div style="height: 20px"></div>
- <fieldset style="height: 60px" id="fst">
- <legend class="item_Name">查询条件</legend>
- <table width="1300PX">
- <tr>
- <td width="70px" align="right"><label class="item_Name">风场:</label></td>
- <td><s:select cssClass="styled-select" list="wps" listKey="id" listValue="name" id="wpid" name="wpid" headerKey="" headerValue="请选择" onchange="javascript:changeFc(this.value);" ></s:select>
- </td>
- <td width="70px" align="right"><label class="item_Name">项目:</label></td>
- <td> <select name="pjid" id="pjid" style="width: 120px" class="styled-select">
- <option value="">请选择</option>
- </select></td>
- <td width="70px" align="right"> <label class="item_Name">线路:</label></td>
- <td><select name="lnid" id="lnid" style="width: 120px" class="styled-select">
- <option value="">请选择</option>
- </select> </td>
- <td width="70px" align="right"><label class="item_Name">风机:</label></td>
- <td><select name="wtid" id="wtid" style="width: 120px " class="styled-select">
- <option value="">请选择</option>
- </select> </td>
- <td width="120px" align="right"><label class="item_Name">开始日期:</label></td>
- <td><input type="text" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowWeek:true,readOnly:true})"
- id="beginDate" name="beginDate"/></td>
- <td width="120px" align="right"><label class="item_Name">结束日期:</label></td>
- <td><input type="text" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowWeek:true,readOnly:true})"
- id="endDate" name="endDate"/></td>
- <td><input type="button" width="40px" value="查 询" onClick="queryApData(this)"/>
-
- </tr>
-
- </table>
- </fieldset>
- <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;">
- <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
- <ul id="treeWindfarm" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
- <!-- </div>
- <div style="padding:5px;margin-left:25px;">
- <input style="width:70px" type="button" value="确定" onClick="selectWindfarm()"/>
- <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuWindfarm()"/>
- </div>-->
- </div>
-
- <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;">
- <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
- <ul id="treeXl" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
- <!-- </div>
- <div style="padding:5px;margin-left:25px;">
- <input style="width:70px" type="button" value="确定" onClick="selectXl()"/>
- <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuXl()"/>
- </div>-->
- </div>
-
- <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;">
- <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
- <ul id="treeFj" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
- <!-- </div>
- <div style="padding:5px;margin-left:25px;">
- <input style="width:70px" type="button" value="确定" onClick="selectFj()"/>
- <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuFj()"/>
- </div>-->
- </div>
- <p style="clear:both;height:1px"/>
- <div style="width:100%;height:350px;" id="chartfc"></div>
- <div style="width:100%;height:50px;"></div>
- <div style="width:100%;height:350px;" id="chartgf"></div>
-
- </div>
- </form>
- </body>
|