historicaltrend.jsp 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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/plugin/jqueryui/js/jquery-1.8.3.js" type="text/javascript"></script>
  5. <link rel="stylesheet" type="text/css"
  6. href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  7. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
  8. <script src="<%=request.getContextPath() %>/resource/js/highcharts/highcharts.js" type="text/javascript"></script>
  9. <!-- dialog begin -->
  10. <link rel="stylesheet" href="<%=request.getContextPath() %>/resource/js/dialog/dialog.css" type="text/css"></link>
  11. <link rel="stylesheet" href="<%=request.getContextPath() %>/resource/js/dialog/ibutton.css" type="text/css"></link>
  12. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/dialog/jquery.box.js"></script>
  13. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/dialog/jquery.dialog.js"></script>
  14. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/dialog/jquery.ibutton.js"></script>
  15. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/dialog/jquery.ishadow.js"></script>
  16. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/dialog/jquery.scrollbarwidth.js"></script>
  17. <!-- dialog end -->
  18. <style type="text/css">
  19. .normal {
  20. border-right-style: solid;
  21. border-bottom-style: solid;
  22. border-left-style: solid;
  23. border-top-style:solid;
  24. border-top-color:#ffffff;
  25. border-left-color:#c1c1c1;
  26. border-right-color:#c1c1c1;
  27. border-bottom-color:#c1c1c1;
  28. border-width: 1px;
  29. width:100px;
  30. height:28px;
  31. float:left;
  32. margin-top:-1px;
  33. cursor:pointer;
  34. text-align:center;
  35. line-height:28px;
  36. overflow:hidden;
  37. font-weight:bold;
  38. font-size: 12px;
  39. font-family: tahoma,arial,verdana,sans-serif;
  40. }
  41. .disable {
  42. border-right-style: solid;
  43. border-bottom-style: solid;
  44. border-left-style: solid;
  45. border-top-style:solid;
  46. border-top-color:#c1c1c1;
  47. border-left-color:#c1c1c1;
  48. border-right-color:#c1c1c1;
  49. border-bottom-color:#c1c1c1;
  50. border-width: 1px;
  51. width:100px;
  52. height:25px;
  53. float:left;
  54. margin-top:-1px;
  55. cursor:pointer;
  56. text-align:center;
  57. background-color:#e1e1e1;
  58. line-height:25px;
  59. overflow:hidden;
  60. font-weight:bold;
  61. font-size: 12px;
  62. font-family: tahoma,arial,verdana,sans-serif;
  63. }
  64. .panelcontainer {
  65. width: 100%;
  66. height: 60px;
  67. border-style: solid;
  68. border-color: #C1C1C1;
  69. border-width:1px;
  70. }
  71. .panelquery {
  72. width:100%;
  73. height:25px;
  74. background-color:#f0f0f0;
  75. line-height:25px;
  76. }
  77. .panelquerytext {
  78. margin-left:3px;
  79. font-weight:bold;
  80. font-size: 12px;
  81. font-family: tahoma,arial,verdana,sans-serif;
  82. }
  83. .querycondcontainer {
  84. line-height:39px;
  85. padding:3px;
  86. float:left;
  87. font-size: 12px;
  88. }
  89. .styled-select {
  90. width: 180px;
  91. height: 30px;
  92. overflow: hidden;
  93. background-repeat: no-repeat;
  94. background-color: #f0f0f0;
  95. }
  96. </style>
  97. <script type="text/javascript">
  98. var queryType="fc";
  99. function changeFc(wp){
  100. var url1 = "projectAjax.action?wpIds="+wp;
  101. var url2 = "lineAjax.action?wpIds="+wp;
  102. var url3 = "fjAjax.action?wpIds="+wp;
  103. $.ajax({
  104. type:"post",
  105. url:url1,
  106. dataType:"json",
  107. success: function(data){
  108. if(data.length != 0){
  109. eval(data);
  110. $("#pjid").empty();
  111. $("#pjid").append("<option value=''>请选择</option>");
  112. for(var i=0; i<data.length; i++){
  113. $("#pjid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
  114. }
  115. }else{
  116. $("#pjid").append("<option value=''>请选择</option>");
  117. $("#pjid").addOption("请选择","");
  118. }
  119. }
  120. });
  121. $.ajax({
  122. type:"post",
  123. url:url2,
  124. dataType:"json",
  125. success: function(data){
  126. if(data.length != 0){
  127. eval(data);
  128. $("#lnid").empty();
  129. $("#lnid").append("<option value=''>请选择</option>");
  130. for(var i=0; i<data.length; i++){
  131. $("#lnid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
  132. }
  133. }else{
  134. $("#lnid").empty();
  135. $("#lnid").append("<option value=''>请选择</option>");
  136. }
  137. }
  138. });
  139. $.ajax({
  140. type:"post",
  141. url:url3,
  142. dataType:"json",
  143. success: function(data){
  144. if(data.length != 0){
  145. eval(data);
  146. $("#wtid").empty();
  147. $("#wtid").append("<option value=''>请选择</option>");
  148. for(var i=0; i<data.length; i++){
  149. $("#wtid").append("<option value='"+data[i]+"'>"+data[i].name+"</option>");
  150. }
  151. }else{
  152. $("#wtid").empty();
  153. $("#wtid").append("<option value=''>请选择</option>");
  154. }
  155. }
  156. });
  157. }
  158. $(document).ready(function(){
  159. });
  160. var chartfc;
  161. var optionsfc;
  162. Highcharts.setOptions({
  163. global : {
  164. useUTC : false
  165. }
  166. });
  167. optionsfc = {
  168. colors: [
  169. '#19FF38',
  170. '#0026FF',
  171. '#FF350C',
  172. '#9926FF',
  173. '#55350C'
  174. ],
  175. chart: {
  176. events: {
  177. click: function (e) {
  178. var num=parseInt(e.xAxis[0].value);
  179. var time=e.xAxis[0].axis.options.categories[num];
  180. var beginDateDay = Highcharts.dateFormat('%Y-%m-%d',
  181. time);
  182. queryDataDay(beginDateDay);
  183. }
  184. },
  185. renderTo: 'chartfc',
  186. type: 'spline',
  187. //backgroundColor:'#BFDFFF',
  188. //plotBackgroundColor:'#BFDFFF',
  189. zoomType: 'x'
  190. },
  191. title: {
  192. text: new Date().getFullYear()+'年全省功率曲线分析'
  193. },
  194. subtitle: {
  195. text: ''
  196. },
  197. xAxis: {
  198. labels: {
  199. align: 'center',
  200. formatter: function() {
  201. return Highcharts.dateFormat('%m.%d', this.value);
  202. }
  203. },
  204. type: 'datetime'
  205. },
  206. yAxis: [{
  207. title: {
  208. text: '功率(MW)'
  209. }},{
  210. title: {
  211. text: '风速(m/s)'
  212. },
  213. labels:{
  214. formatter: function(){
  215. return this.value;
  216. }
  217. },
  218. lineWidth : 1,
  219. opposite:true
  220. } ],
  221. tooltip: {
  222. shared:true,
  223. xDateFormat:'%Y-%m-%d %H:%M '
  224. /*formatter: function() {
  225. return '<b>'+ this.series.name +'</b>:'+
  226. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  227. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  228. }*/
  229. },
  230. credits: {
  231. enabled: false
  232. },
  233. plotOptions: {
  234. spline: {
  235. dataLabels : {
  236. enabled :false
  237. },
  238. // pointPadding: 0.2,
  239. borderWidth: 0
  240. },
  241. column: {
  242. pointPadding: 0.2,
  243. borderWidth: 0
  244. },
  245. series: {
  246. cursor: 'pointer',
  247. marker: {
  248. radius: 0,
  249. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  250. }
  251. }
  252. },
  253. series: [{
  254. type: 'spline',
  255. name: '理论功率(MW)',
  256. yAxis:0
  257. },
  258. {
  259. type: 'spline',
  260. name: '保证功率(MW)',
  261. yAxis:0
  262. },
  263. {
  264. type: 'spline',
  265. name: '自算功率(MW)',
  266. yAxis:0
  267. },{
  268. type: 'spline',
  269. name: '实发功率(MW)',
  270. yAxis:0
  271. },{
  272. type: 'spline',
  273. name: '平均风速(m/s)',
  274. yAxis:1
  275. }]
  276. };
  277. function leftMove(){
  278. var wpIds=$("#wpid").val();
  279. var pjIds=$("#pjid").val();
  280. var lineIds=$("#lnid").val();
  281. var wtIds=$("#wtid").val();
  282. if(wpIds=='')
  283. {
  284. wpIds='-1';
  285. }
  286. var begin= $("#beginDate").val();
  287. var end= $("#endDate").val();
  288. var d=new Date();
  289. d.setTime(begin);
  290. var beginDate=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  291. d.setTime(end);
  292. var endDate=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  293. $.ajax({
  294. url : "leftMove.action?queryType=" + queryType
  295. +"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="
  296. +lineIds+"&wtIds="+wtIds+"&beginDate="+beginDate+"&endDate="+endDate,
  297. type : "post",
  298. cache : false,
  299. dataType : "json",
  300. data : {},
  301. ifModified : false,
  302. success : function(result) {
  303. getResultInfo(result,'year');
  304. }
  305. });
  306. }
  307. function getResultInfo(result,daytype)
  308. {
  309. var windfarm=$("#wpid").find("option:selected").text(); ;
  310. var project=$("#pjid").find("option:selected").text();
  311. var line=$("#lnid").find("option:selected").text();
  312. var windturbine=$("#wtid").find("option:selected").text();
  313. var llgl=[];
  314. var bzgl=[];
  315. var zsgl=[];
  316. var sjgl=[];
  317. var pjfs=[];
  318. var xtime = [];
  319. var beginDateNum;
  320. var endDateNum;
  321. $.each(result, function(m, obj) {
  322. if (obj.value1 != null) {
  323. llgl.push( parseFloat(obj.value1) );
  324. }
  325. if (obj.value2 != null) {
  326. bzgl.push( parseFloat(obj.value2) );
  327. }
  328. if (obj.value3 != null) {
  329. zsgl.push( parseFloat(obj.value3) );
  330. }if (obj.value4 != null) {
  331. sjgl.push( parseFloat(obj.value4) );
  332. }
  333. if (obj.value5 != null) {
  334. pjfs.push( parseFloat(obj.value5) );
  335. }
  336. if(daytype!='day')
  337. {
  338. beginDateNum=parseFloat(obj.beginDate);
  339. endDateNum=parseFloat(obj.endDate);
  340. }else
  341. {
  342. beginDateNum=parseFloat(obj.beginDateDay);
  343. endDateNum=parseFloat(obj.endDateDay);
  344. }
  345. xtime.push(parseFloat(obj.time));
  346. });
  347. if(xtime.length>0)
  348. {
  349. var year=new Date(xtime[0]).getYear();
  350. var str=year;
  351. if(windfarm!="请选择")
  352. {
  353. str=str+windfarm;
  354. }
  355. if(project!="请选择")
  356. {
  357. str=str+project;
  358. }
  359. if(line!="请选择")
  360. {
  361. str=str+line;
  362. }
  363. if(windturbine!="请选择")
  364. {
  365. str=str+windturbine;
  366. }
  367. optionsfc.title.text=str+"功率曲线分析";
  368. }
  369. if(windturbine!='' || daytype=='day')
  370. {
  371. optionsfc.yAxis[0].title.text='功率(KW)';
  372. optionsfc.series[0].name = '理论功率(KW)';
  373. optionsfc.series[1].name = '保证功率(KW)';
  374. optionsfc.series[2].name = '自算功率(KW)';
  375. optionsfc.series[3].name = '实际功率(KW)';
  376. options1.yAxis[0].title.text='功率(KW)';
  377. options1.series[0].name = '理论功率(KW)';
  378. options1.series[1].name = '保证功率(KW)';
  379. options1.series[2].name = '自算功率(KW)';
  380. options1.series[3].name = '实际功率(KW)';
  381. }
  382. if(daytype!='day')
  383. {
  384. $("#beginDate").val(beginDateNum);
  385. $("#endDate").val(endDateNum);
  386. optionsfc.series[0].data = llgl;
  387. optionsfc.series[1].data = bzgl;
  388. optionsfc.series[2].data = zsgl;
  389. optionsfc.series[3].data = sjgl;
  390. optionsfc.series[4].data = pjfs;
  391. optionsfc.xAxis.categories = xtime;
  392. chartfc = new Highcharts.Chart(optionsfc);
  393. }else
  394. {
  395. $("#beginDateDay").val(beginDateNum);
  396. $("#endDateDay").val(endDateNum);
  397. options1.series[0].data = llgl;
  398. options1.series[1].data = bzgl;
  399. options1.series[2].data = zsgl;
  400. options1.series[3].data = sjgl;
  401. options1.series[4].data = pjfs;
  402. options1.xAxis.categories = xtime;
  403. if(xtime.length>0)
  404. {
  405. var year=new Date(xtime[0]).toLocaleDateString();
  406. var str=year;
  407. if(windfarm!="请选择")
  408. {
  409. str=str+windfarm;
  410. }
  411. if(project!="请选择")
  412. {
  413. str=str+project;
  414. }
  415. if(line!="请选择")
  416. {
  417. str=str+line;
  418. }
  419. if(windturbine!="请选择")
  420. {
  421. str=str+windturbine;
  422. }
  423. options1.title.text=str+"功率曲线分析";
  424. }
  425. chart1 = new Highcharts.Chart(options1);
  426. }
  427. }
  428. function leftMoveDay(){
  429. var wpIds=$("#wpid").val();
  430. var pjIds=$("#pjid").val();
  431. var lineIds=$("#lnid").val();
  432. var wtIds=$("#wtid").val();
  433. var begin= $("#beginDateDay").val();
  434. var end= $("#endDateDay").val();
  435. var d=new Date();
  436. d.setTime(begin);
  437. var beginDateDay=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  438. d.setTime(end);
  439. var endDateDay=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  440. $.ajax({
  441. url : "leftMoveDay.action?queryType=" + queryType
  442. +"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="
  443. +lineIds+"&wtIds="+wtIds+"&beginDateDay="+beginDateDay+"&endDateDay="+endDateDay,
  444. type : "post",
  445. cache : false,
  446. dataType : "json",
  447. data : {},
  448. ifModified : false,
  449. success : function(result) {
  450. getResultInfo(result,'day');
  451. }
  452. });
  453. }
  454. function rightMove(){
  455. var wpIds=$("#wpid").val();
  456. var pjIds=$("#pjid").val();
  457. var lineIds=$("#lnid").val();
  458. var wtIds=$("#wtid").val();
  459. if(wpIds=='')
  460. {
  461. wpIds='-1';
  462. }
  463. var begin= $("#beginDate").val();
  464. var end= $("#endDate").val();
  465. var d=new Date();
  466. d.setTime(begin);
  467. var beginDate=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  468. d.setTime(end);
  469. var endDate=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  470. $.ajax({
  471. url : "rightMove.action?queryType=" + queryType
  472. +"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="
  473. +lineIds+"&wtIds="+wtIds+"&beginDate="+beginDate+"&endDate="+endDate,
  474. type : "post",
  475. cache : false,
  476. dataType : "json",
  477. data : {},
  478. ifModified : false,
  479. success : function(result) {
  480. getResultInfo(result,'year');
  481. }
  482. });
  483. }
  484. function rightMoveDay(){
  485. var wpIds=$("#wpid").val();
  486. var pjIds=$("#pjid").val();
  487. var lineIds=$("#lnid").val();
  488. var wtIds=$("#wtid").val();
  489. var begin= $("#beginDateDay").val();
  490. var end= $("#endDateDay").val();
  491. var d=new Date();
  492. d.setTime(begin);
  493. var beginDateDay=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  494. d.setTime(end);
  495. var endDateDay=d.getYear()+"-"+(d.getMonth()+1)+"-"+d.getDate() ;
  496. $.ajax({
  497. url : "rightMoveDay.action?queryType=" + queryType
  498. +"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="
  499. +lineIds+"&wtIds="+wtIds+"&beginDateDay="+beginDateDay+"&endDateDay="+endDateDay,
  500. type : "post",
  501. cache : false,
  502. dataType : "json",
  503. data : {},
  504. ifModified : false,
  505. success : function(result) {
  506. getResultInfo(result,'day');
  507. }
  508. });
  509. }
  510. function onBodyDown(event) {
  511. if (( event.target.id != "windfarm" && event.target.id != "menuWindfarm" && $(event.target).parents("#menuWindfarm").length<=0)) {
  512. hideMenuWindfarm();
  513. }
  514. //alert(event.target.id);
  515. //alert($(event.target).parents("#menuXl").length);
  516. if (!( event.target.id == "line" || event.target.id == "menuXl" || $(event.target).parents("#menuXl").length>0)) {
  517. hideMenuXl();
  518. }
  519. if (!( event.target.id == "windturbine" || event.target.id == "menuFj" || $(event.target).parents("#menuFj").length>0)) {
  520. hideMenuFj();
  521. }
  522. if (!( event.target.id == "project" || event.target.id == "menuPj" || $(event.target).parents("#menuPj").length>0)) {
  523. hideMenuPj();
  524. }
  525. }
  526. function queryApData(){
  527. var wpIds=$("#wpid").val();
  528. var pjIds=$("#pjid").val();
  529. var lineIds=$("#lnid").val();
  530. var wtIds=$("#wtid").val();
  531. if(wpIds==""){
  532. alert("请选择风场!");
  533. return;
  534. }
  535. $.ajax({
  536. url : "queryHistorical.action?queryType=" + queryType+"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="+lineIds+"&wtIds="+wtIds,
  537. type : "post",
  538. cache : false,
  539. dataType : "json",
  540. data : {},
  541. ifModified : false,
  542. success : function(result) {
  543. getResultInfo(result,'year');
  544. }
  545. });
  546. }
  547. function initial(){
  548. var wpIds=$("#wpid").val();
  549. var pjIds=$("#pjid").val();
  550. var lineIds=$("#lnid").val();
  551. var wtIds=$("#wtid").val();
  552. $.ajax({
  553. url : "queryHistorical.action?queryType=" + queryType+"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="+lineIds+"&wtIds="+wtIds,
  554. type : "post",
  555. cache : false,
  556. dataType : "json",
  557. data : {},
  558. ifModified : false,
  559. success : function(result) {
  560. getResultInfo(result,'year');
  561. }
  562. });
  563. }
  564. function queryDataDay(beginDateDay){
  565. var beginDateDay=beginDateDay;
  566. var wpIds=$("#wpid").val();
  567. var pjIds=$("#pjid").val();
  568. var lineIds=$("#lnid").val();
  569. var wtIds=$("#wtid").val();
  570. $.ajax({
  571. url : "queryHistoricalDay.action?queryType=" + queryType
  572. +"&wpIds="+wpIds+"&pjIds="+pjIds+"&lineIds="
  573. +lineIds+"&wtIds="+wtIds+"&beginDateDay="+beginDateDay,
  574. type : "post",
  575. cache : false,
  576. dataType : "json",
  577. data : {},
  578. ifModified : false,
  579. success : function(result) {
  580. getResultInfo(result,'day');
  581. //////////dialog test///////
  582. $.dialog({
  583. title: "查询结果",
  584. hide:true,
  585. content: $("#chartContainer")
  586. });
  587. ////////////////////////////
  588. }
  589. });
  590. }
  591. var options1;
  592. var chart1;
  593. options1 = {
  594. colors: [
  595. '#19FF38',
  596. '#0026FF',
  597. '#FF350C',
  598. '#9926FF',
  599. '#55350C'
  600. ],
  601. chart: {
  602. renderTo: 'chart1',
  603. type: 'spline',
  604. //backgroundColor:'#BFDFFF',
  605. //plotBackgroundColor:'#BFDFFF',
  606. zoomType: 'x'
  607. },
  608. title: {
  609. text: '日功率曲线分析'
  610. },
  611. subtitle: {
  612. text: ''
  613. },
  614. xAxis: {
  615. labels: {
  616. align: 'center',
  617. formatter: function() {
  618. return Highcharts.dateFormat('%H:%M', this.value);
  619. }
  620. },
  621. type: 'datetime'
  622. },
  623. yAxis: [{
  624. title: {
  625. text: '功率(MW)'
  626. }},{
  627. title: {
  628. text: '风速(m/s)'
  629. },
  630. labels:{
  631. formatter: function(){
  632. return this.value;
  633. }
  634. },
  635. lineWidth : 1,
  636. opposite:true
  637. } ],
  638. tooltip: {
  639. shared:true,
  640. xDateFormat:'%Y-%m-%d %H:%M '
  641. /*formatter: function() {
  642. return '<b>'+ this.series.name +'</b>:'+
  643. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  644. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  645. }*/
  646. },
  647. credits: {
  648. enabled: false
  649. },
  650. plotOptions: {
  651. spline: {
  652. dataLabels : {
  653. enabled :false
  654. },
  655. // pointPadding: 0.2,
  656. borderWidth: 0
  657. },
  658. column: {
  659. pointPadding: 0.2,
  660. borderWidth: 0
  661. },
  662. series: {
  663. cursor: 'pointer',
  664. marker: {
  665. radius: 0,
  666. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  667. }
  668. }
  669. },
  670. series: [{
  671. type: 'spline',
  672. name: '理论功率(MW)',
  673. yAxis:0
  674. },
  675. {
  676. type: 'spline',
  677. name: '保证功率(MW)',
  678. yAxis:0
  679. },
  680. {
  681. type: 'spline',
  682. name: '自算功率(MW)',
  683. yAxis:0
  684. },{
  685. type: 'spline',
  686. name: '实发功率(MW)',
  687. yAxis:0
  688. },{
  689. type: 'spline',
  690. name: '平均风速(m/s)',
  691. yAxis:1
  692. }]
  693. };
  694. $(document).ready(function() {
  695. $("#wpid").val('<s:property value="wpIds"/>');
  696. changeFc("MHS_FDC");
  697. initial();
  698. });
  699. </script>
  700. </head>
  701. <body>
  702. <form action="" method="post" id="f1">
  703. <div style="height: 20px"></div>
  704. <fieldset style="height: 60px" id="fst">
  705. <legend class="item_Name">查询条件</legend>
  706. <table width="1200PX">
  707. <tr>
  708. <td><label class="item_Name">风场:</label></td>
  709. <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>
  710. </td>
  711. <td><label class="item_Name">项目:</label></td>
  712. <td> <select name="pjid" id="pjid" style="width: 180px" class="styled-select">
  713. <option value="">请选择</option>
  714. </select></td>
  715. <td> <label class="item_Name">线路:</label></td>
  716. <td><select name="lnid" id="lnid" style="width: 180px" class="styled-select">
  717. <option value="">请选择</option>
  718. </select> </td>
  719. <td><label class="item_Name">风机:</label></td>
  720. <td><select name="wtid" id="wtid" style="width: 180px " class="styled-select">
  721. <option value="">请选择</option>
  722. </select> </td>
  723. <td><input type="button" width="40px" value="查&nbsp;&nbsp;&nbsp;询" onClick="queryApData()"/>
  724. <s:hidden id="beginDate" name="beginDate"></s:hidden>
  725. <s:hidden id="endDate" name="endDate"></s:hidden>
  726. <s:hidden id="beginDateDay" name="beginDateDay"></s:hidden>
  727. <s:hidden id="endDateDay" name="endDateDay"></s:hidden></td>
  728. <td> <input type="button" width="40px" onclick="javascript:leftMove();" value="左&nbsp;&nbsp;&nbsp;移"/>
  729. </td>
  730. <td> <input type="button" width="40px" onclick="javascript:rightMove();" value="右&nbsp;&nbsp;&nbsp;移"/>
  731. </td>
  732. </tr>
  733. </table>
  734. </fieldset>
  735. <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;">
  736. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  737. <ul id="treeWindfarm" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  738. <!-- </div>
  739. <div style="padding:5px;margin-left:25px;">
  740. <input style="width:70px" type="button" value="确定" onClick="selectWindfarm()"/>
  741. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuWindfarm()"/>
  742. </div>-->
  743. </div>
  744. <div id="menuPj" class="menuContent" style="overflow-y:scroll;overflow-x:auto;z-index:9999; border: 1px solid #617775;background: #f0f6e4;display:none;position: absolute;">
  745. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  746. <ul id="treePj" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  747. <!-- </div>
  748. <div style="padding:5px;margin-left:25px;">
  749. <input style="width:70px" type="button" value="确定" onClick="selectXl()"/>
  750. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuXl()"/>
  751. </div>-->
  752. </div>
  753. <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;">
  754. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  755. <ul id="treeXl" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  756. <!-- </div>
  757. <div style="padding:5px;margin-left:25px;">
  758. <input style="width:70px" type="button" value="确定" onClick="selectXl()"/>
  759. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuXl()"/>
  760. </div>-->
  761. </div>
  762. <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;">
  763. <!-- <div style="overflow-y:scroll;overflow-x:auto;">-->
  764. <ul id="treeFj" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  765. <!-- </div>
  766. <div style="padding:5px;margin-left:25px;">
  767. <input style="width:70px" type="button" value="确定" onClick="selectFj()"/>
  768. <input style="width:70px;margin-left:5px;" type="button" value="取消" onClick="hideMenuFj()"/>
  769. </div>-->
  770. </div>
  771. <p style="clear:both;height:1px"/>
  772. <div style="width:100%;height:800px;" id="chartfc"></div>
  773. <div style="width:100%;height:50px;"></div>
  774. <div style="width:1000px;height:800px;display:none;" id="chartContainer">
  775. <div style="float:left;line-height:39px;margin-left:20px;left: 360px;position: relative;">
  776. <input type="button" onclick="javascript:leftMoveDay();" value="左移"/>
  777. </div>
  778. <div style="float:left;line-height:39px;margin-left:20px;left: 480px;position: relative;">
  779. <input type="button" onclick="javascript:rightMoveDay();" value="右移"/>
  780. </div>
  781. <div style="width:1000px;height:540px;top: 40px;position: relative;" id="chart1"></div>
  782. </div>
  783. </form>
  784. </body>