desktopSX.js 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714
  1. var chart1;
  2. var chart2;
  3. var chart3;
  4. var chart4;
  5. var chart5;
  6. var chart6;
  7. var chart7;
  8. var chart8;
  9. var chart9;
  10. var chart10;
  11. var chart11;
  12. var chart12;
  13. var options1;
  14. var options2;
  15. var options3;
  16. var options4;
  17. var options5;
  18. var options6;
  19. var options7;
  20. var options8;
  21. var options9;
  22. var options10;
  23. var options11;
  24. var options12;
  25. Highcharts.setOptions({
  26. global : {
  27. useUTC : false
  28. }
  29. });
  30. String.prototype.endWith=function(oString){
  31. var reg=new RegExp(oString+"$");
  32. return reg.test(this);
  33. }
  34. var bl1;
  35. var bl2;
  36. function stateimg(obj,type)
  37. {
  38. switch (type)
  39. {
  40. case 0:
  41. $(obj).attr("src",
  42. "/resource/images/hbsj/standBy_Station.fw.png");
  43. break;
  44. case 1:
  45. $(obj).attr("src",
  46. "/resource/images/hbsj/run_Station.fw.png");
  47. break;
  48. case 2:
  49. $(obj).attr("src",
  50. "/resource/images/hbsj/stop_Station.fw.png");
  51. break;
  52. case 3:
  53. $(obj).attr("src",
  54. "/resource/images/hbsj/interrupt_Station.fw.png");
  55. break;
  56. case 4:
  57. $(obj).attr("src",
  58. "/resource/images/hbsj/repair_Station.fw.png");
  59. break;
  60. case 5:
  61. $(obj).attr("src",
  62. "/resource/images/hbsj/limit_Station.fw.png");
  63. break;
  64. case 6:
  65. $(obj).attr("src",
  66. "/resource/images/hbsj/limit_Station.fw.png");
  67. break;
  68. }
  69. }
  70. function statebtnimg(obj,type)
  71. {
  72. switch (type)
  73. {
  74. case 0:
  75. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_green.png' width='31' height='44' />");
  76. break;
  77. case 1:
  78. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_blue.gif' width='31' height='44' />");
  79. break;
  80. case 2:
  81. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_red.png' width='31' height='44' />");
  82. break;
  83. case 3:
  84. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_gray.png' width='31' height='44' />");
  85. break;
  86. case 4:
  87. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_orange.png' width='31' height='44' />");
  88. break;
  89. case 5:
  90. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_pink.png' width='31' height='44' />");
  91. break;
  92. case 6:
  93. $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_pink.png' width='31' height='44' />");
  94. break;
  95. }
  96. }
  97. function wpInfoAjax() {
  98. var wpId = $("#wpId").val();
  99. $.ajax({
  100. url : "wpInfoAjax.action?wpId=" + wpId,
  101. type : "post",
  102. cache : false,
  103. dataType : "json",
  104. data : {},
  105. ifModified : false,
  106. success : function(res) {
  107. $("#zjrl").html(res["zjrl"]*10);
  108. $("#aqts").html(res["aqts"]);
  109. $("#ydxkyxs").html(res["ysbklyl"]);
  110. $("#ysbklyl").html(res["ysbklyl"]);
  111. $("#ylyxs").html(res["ylyxs"]);
  112. $("#nlyxs").html(res["nlyxs"]);
  113. $("#rfdl").html(res["rfdl"]);
  114. $("#yfdl").html(res["yfdl"]);
  115. $("#nfdl").html(res["nfdl"]);
  116. $("#rswdl").html(res["rswdl"]);
  117. $("#yswdl").html(res["yswdl"]);
  118. $("#nswdl").html(res["nswdl"]);
  119. $("#jpeyht").html(res["jpeyht"]);
  120. $("#jpeyhl").html(res["jpeyhl"]);
  121. $("#jybm").html(res["jybm"]);
  122. $("#jys").html(res["jys"]);
  123. $("#whss").html(res["whss"]);
  124. $("#whssy").html(res["whssy"]);
  125. $("#whssn").html(res["whssn"]);
  126. $("#gzss").html(res["gzss"]);
  127. $("#gzssy").html(res["gzssy"]);
  128. $("#gzssn").html(res["gzssn"]);
  129. $("#xdss").html(res["xdss"]);
  130. $("#xdssy").html(res["xdssy"]);
  131. $("#xdssn").html(res["xdssn"]);
  132. $("#slss").html(res["slss"]);
  133. $("#slssy").html(res["slssy"]);
  134. $("#slssn").html(res["slssn"]);
  135. $("#xnss").html(res["xnss"]);
  136. $("#xnssy").html(res["xnssy"]);
  137. $("#xnssn").html(res["xnssn"]);
  138. $("#yxts").html(res["yxts"]);
  139. $("#djts").html(res["djts"]);
  140. $("#whts").html(res["whts"]);
  141. $("#gzts").html(res["gzts"]);
  142. $("#xdts").html(res["xdts"]);
  143. $("#lxts").html(res["lxts"]);
  144. $("#jrts").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  145. $("#yxtsc").html(res["yxts"]);
  146. $("#djtsc").html(res["djts"]);
  147. $("#whtsc").html(res["whts"]);
  148. $("#gztsc").html(res["gzts"]);
  149. $("#xdtsc").html(res["xdts"]);
  150. $("#lxtsc").html(res["lxts"]);
  151. $("#jrtsc").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  152. $("#yxtsk").html(res["yxts"]);
  153. $("#djtsk").html(res["djts"]);
  154. $("#whtsk").html(res["whts"]);
  155. $("#gztsk").html(res["gzts"]);
  156. $("#xdtsk").html(res["xdts"]);
  157. $("#lxtsk").html(res["lxts"]);
  158. $("#jrtsk").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  159. $("#yxtsk4").html(res["yxts"]);
  160. $("#djtsk4").html(res["djts"]);
  161. $("#whtsk4").html(res["whts"]);
  162. $("#gztsk4").html(res["gzts"]);
  163. $("#xdtsk4").html(res["xdts"]);
  164. $("#lxtsk4").html(res["lxts"]);
  165. $("#jrtsk4").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  166. $("#yxtsd").html(res["yxts"]);
  167. $("#djtsd").html(res["djts"]);
  168. $("#whtsd").html(res["whts"]);
  169. $("#gztsd").html(res["gzts"]);
  170. $("#xdtsd").html(res["xdts"]);
  171. $("#lxtsd").html(res["lxts"]);
  172. $("#jrtsd").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  173. /**********************************************************************************************/
  174. statebtnimg("#cl_fczt", res["CL_FDC_FCZT"]);
  175. statebtnimg("#kb_fczt", res["KB_FDC_FCZT"]);
  176. statebtnimg("#dx_fczt", res["DX_FDC_FCZT"]);
  177. /**********************************************************************************************/
  178. //悬浮层
  179. $("#WNS_ZJTS").html(res["WNS_FDC_ZJTS"]);
  180. $("#WNS_ZJRL").html(res["WNS_FDC_ZJRL"]*10);
  181. $("#WNS_FS").html(res["WNS_FDC_FS"]);
  182. $("#WNS_RFDL").html(res["WNS_FDC_RFDL"]);
  183. $("#WNS_GL").html(res["WNS_FDC_GL"]);
  184. $("#YY_ZJTS").html(res["YY_FDC_ZJTS"]);
  185. $("#YY_ZJRL").html(res["YY_FDC_ZJRL"]*10);
  186. $("#YY_FS").html(res["YY_FDC_FS"]);
  187. $("#YY_RFDL").html(res["YY_FDC_RFDL"]);
  188. $("#YY_GL").html(res["YY_FDC_GL"]);
  189. $("#PL_ZJTS").html(res["PL_FDC_ZJTS"]);
  190. $("#PL_ZJRL").html(res["PL_FDC_ZJRL"]*10);
  191. $("#PL_FS").html(res["PL_FDC_FS"]);
  192. $("#PL_RFDL").html(res["PL_FDC_RFDL"]);
  193. $("#PL_GL").html(res["PL_FDC_GL"]);
  194. $("#GL_ZJTS").html(res["GL_FDC_ZJTS"]);
  195. $("#GL_ZJRL").html(res["GL_FDC_ZJRL"]*10);
  196. $("#GL_FS").html(res["GL_FDC_FS"]);
  197. $("#GL_RFDL").html(res["GL_FDC_RFDL"]);
  198. $("#GL_GL").html(res["GL_FDC_GL"]);
  199. $("#HY_ZJTS").html(res["HY_FDC_ZJTS"]);
  200. $("#HY_ZJRL").html(res["HY_FDC_ZJRL"]*10);
  201. $("#HY_FS").html(res["HY_FDC_FS"]);
  202. $("#HY_RFDL").html(res["HY_FDC_RFDL"]);
  203. $("#HY_GL").html(res["HY_FDC_GL"]);
  204. $("#FS_ZJTS").html(res["FS_FDC_ZJTS"]);
  205. $("#FS_ZJRL").html(res["FS_FDC_ZJRL"]*10);
  206. $("#FS_FS").html(res["FS_FDC_FS"]);
  207. $("#FS_RFDL").html(res["FS_FDC_RFDL"]);
  208. $("#FS_GL").html(res["FS_FDC_GL"]);
  209. $("#YG_ZJTS").html(res["YG_FDC_ZJTS"]);
  210. $("#YG_ZJRL").html(res["YG_FDC_ZJRL"]*10);
  211. $("#YG_FS").html(res["YG_FDC_FS"]);
  212. $("#YG_RFDL").html(res["YG_FDC_RFDL"]);
  213. $("#YG_GL").html(res["YG_FDC_GL"]);
  214. /**********************************************************************************************/
  215. /*if(chart3.series[0])
  216. {
  217. var point = chart3.series[0].points[0];
  218. point.update(res["fs"]);
  219. }
  220. if(chart4.series[0])
  221. {
  222. point = chart4.series[0].points[0];
  223. point.update(res["llgl"]);
  224. }
  225. if(chart5.series[0])
  226. {
  227. point = chart5.series[0].points[0];
  228. if(res["sjgl"]<0)
  229. {
  230. point.update(res["yfgl"]);
  231. }else
  232. {
  233. point.update(res["sjgl"]);
  234. }
  235. }
  236. if(chart7.series[0])
  237. {
  238. point = chart7.series[0].points[0];
  239. point.update(res["yfgl"]);
  240. }*/
  241. /****************************************/
  242. var jh=[];
  243. var sj=[];
  244. var bl=[];
  245. jh.push(res["yfdljh"]);
  246. jh.push(res["nfdljh"]);
  247. sj.push(res["yfdl"]);
  248. sj.push(res["nfdl"]);
  249. bl.push("月计划完成率"+res["ywcl"]+"%");
  250. bl.push("年计划完成率"+res["nwcl"]+"%");
  251. options6.series[0].data = jh;
  252. options6.series[1].data = sj;
  253. //options6.series[2].data = bl;
  254. if(bl1!=res["ywcl"])
  255. {
  256. bl1=res["ywcl"];
  257. bl2=res["nwcl"];
  258. options6.xAxis.categories=bl
  259. chart6 = new Highcharts.Chart(options6);
  260. }else if(bl2!=res["nwcl"])
  261. {
  262. bl1=res["ywcl"];
  263. bl2=res["nwcl"];
  264. options6.xAxis.categories=bl;
  265. chart6 = new Highcharts.Chart(options6);
  266. }
  267. }
  268. });
  269. }
  270. /*var yfdlForC2 = [];
  271. var swdlForC2 = [];
  272. var gwdlForC2 = [];
  273. var lldlForC2 = [];
  274. var xtimeForC2 = [];*/
  275. function powerAjax() {
  276. var wpId = $("#wpId").val();
  277. var url = "powerAjax.action?wpId=" + wpId;
  278. $.ajax({
  279. url : url,
  280. type : "post",
  281. cache : false,
  282. dataType : "json",
  283. async : false,
  284. data : {},
  285. ifModified : false,
  286. success : function(result) {
  287. var yfdl = [];
  288. var pjfs = [];
  289. var xtimex = [];
  290. $.each(result, function(m, obj) {
  291. if (obj.value1 != null) {
  292. yfdl.push( parseFloat(obj.value1) );
  293. }else{
  294. yfdl.push(0.0);
  295. }
  296. if (obj.value2 != null) {
  297. pjfs.push( parseFloat(obj.value2) );
  298. }
  299. if(obj.timestr!="")
  300. {
  301. xtimex.push(parseFloat(obj.timestr));
  302. }else
  303. {
  304. xtimex.push("");
  305. }
  306. });
  307. options2.series[0].data = yfdl;
  308. options2.series[1].data = pjfs;
  309. options2.xAxis.categories = xtimex;
  310. chart2 = new Highcharts.Chart(options2);
  311. }
  312. });
  313. }
  314. var yfgl = [];
  315. var sjgl = [];
  316. var ycgl = [];
  317. var pjfs = [];
  318. var lvgl = [];
  319. var bzgl = [];
  320. var zygl = [];
  321. var xtime=[];
  322. var yfgl1 = [];
  323. var sjgl1 = [];
  324. var ycgl1 = [];
  325. var pjfs1 = [];
  326. var bzgl1 = [];
  327. var yfgl2 = [];
  328. var sjgl2 = [];
  329. var ycgl2 = [];
  330. var pjfs2 = [];
  331. var bzgl2 = [];
  332. var xtime1=[];
  333. function realPowerAjax() {
  334. var wpId = $("#wpId").val();
  335. //console.log(wpId);
  336. var url = "realPowerAjax.action?wpId=" + wpId;
  337. $.ajax({
  338. url : url,
  339. type : "post",
  340. cache : false,
  341. dataType : "json",
  342. data : {},
  343. ifModified : false,
  344. success : function(result) {
  345. yfgl = [];
  346. sjgl = [];
  347. ycgl = [];
  348. pjfs = [];
  349. lvgl = [];
  350. bzgl = [];
  351. zygl = [];
  352. xtime=[];
  353. yfgl1 = [];
  354. sjgl1 = [];
  355. ycgl1 = [];
  356. pjfs1 = [];
  357. bzgl1 = [];
  358. yfgl2 = [];
  359. sjgl2 = [];
  360. ycgl2 = [];
  361. pjfs2 = [];
  362. bzgl2 = [];
  363. xtime1=[];
  364. var index=0;
  365. var count=0;
  366. var vindex=0;
  367. $.each(result, function(m, obj) {
  368. //if(m == result.length -1){
  369. // if(m%2==0){
  370. if(index<obj.value7){
  371. index++;
  372. if(obj.value4!=null)
  373. {
  374. ycgl.push( parseFloat(obj.value4) );
  375. }else{
  376. ycgl.push( null );
  377. }
  378. }
  379. if(count<obj.value8 ){
  380. yfgl.push( parseFloat(obj.value1) );
  381. sjgl.push( parseFloat(obj.value2) );
  382. pjfs.push( parseFloat(obj.value6) );
  383. bzgl.push( parseFloat(obj.value5) );
  384. count++;
  385. }
  386. xtime.push(parseFloat(obj.time));
  387. // }
  388. //1 vindex=obj.value8%2==0?obj.value8/2:(obj.value8+1)/2;
  389. /*
  390. if(index<obj.value7){
  391. index++;
  392. if(obj.value4!=null)
  393. {
  394. ycgl2.push( parseFloat(obj.value4) );
  395. }else{
  396. ycgl2.push( null );
  397. }
  398. }
  399. if(count<obj.value8 ){
  400. yfgl2.push( parseFloat(obj.value1) );
  401. sjgl2.push( parseFloat(obj.value2) );
  402. pjfs2.push( parseFloat(obj.value6) );
  403. bzgl2.push( parseFloat(obj.value5) );
  404. count++;
  405. }
  406. xtime1.push(parseFloat(obj.time));*/
  407. });
  408. options8.series[0].data = yfgl;//理论功率
  409. options8.series[1].data = bzgl;
  410. options8.series[2].data = sjgl;
  411. options8.series[3].data = ycgl;
  412. //options1.series[2].visible=false;
  413. options8.series[4].data = pjfs;
  414. //options1.series[4].data = lvgl;
  415. //options1.series[4].visible=false;
  416. //options1.series[5].data = bzgl;
  417. //options1.series[5].visible=false;
  418. //options1.series[6].data = zygl;
  419. //options1.series[6].visible=false;
  420. options8.xAxis.categories = xtime;
  421. chart8 = new Highcharts.Chart(options8);
  422. /*
  423. index=0;
  424. count=0;
  425. $.each(result, function(m, obj) {
  426. //if(m == result.length -1){
  427. if(index<obj.value7){
  428. index++;
  429. if(obj.value4!=null)
  430. {
  431. ycgl2.push( parseFloat(obj.value4) );
  432. }else{
  433. ycgl2.push( null );
  434. }
  435. }
  436. if(count<obj.value8 ){
  437. yfgl2.push( parseFloat(obj.value1) );
  438. sjgl2.push( parseFloat(obj.value2) );
  439. pjfs2.push( parseFloat(obj.value6) );
  440. bzgl2.push( parseFloat(obj.value5) );
  441. count++;
  442. }
  443. xtime1.push(parseFloat(obj.time));
  444. });
  445. for(var i=0;i<vindex;i++){
  446. yfgl.push(yfgl1[i]);
  447. sjgl.push(sjgl1[i]);
  448. pjfs.push(pjfs1[i]);
  449. bzgl.push(bzgl1[i]);
  450. }
  451. // alert(new Date(xtime[47]));
  452. // alert(yfgl[47]);
  453. options8.series[0].data = yfgl;//理论功率
  454. options8.series[1].data = bzgl;
  455. options8.series[2].data = sjgl;
  456. options8.series[3].data = ycgl;
  457. //options1.series[2].visible=false;
  458. options8.series[4].data = pjfs;
  459. //options1.series[4].data = lvgl;
  460. //options1.series[4].visible=false;
  461. //options1.series[5].data = bzgl;
  462. //options1.series[5].visible=false;
  463. //options1.series[6].data = zygl;
  464. //options1.series[6].visible=false;
  465. options8.xAxis.categories = xtime;
  466. chart8 = new Highcharts.Chart(options8);
  467. */
  468. /* if(wpId.endWith("FDC") || wpId=="" || wpId=="-1" || wpId=="0"){
  469. chart1.series[2].remove(true);
  470. chart1.addSeries({
  471. type: 'spline',
  472. name: '平均风速',
  473. data:pjfs,
  474. yAxis:1,
  475. color:'#FF350C'
  476. });
  477. chart1.yAxis[1].setTitle("平均风速",true);
  478. //alert(chart1.series[2].name);
  479. //chart1.options.series[2].name="平均风速";
  480. }
  481. else if(wpId.endWith("GDC") || wpId=="-2"){
  482. chart1.series[2].remove(true);
  483. chart1.addSeries({
  484. type: 'spline',
  485. name: '日照强度',
  486. data:pjfs,
  487. yAxis:1,
  488. color:'#FF350C'
  489. });
  490. chart1.yAxis[1].setTitle("日照强度",true);
  491. //chart1.options.series[2].name="平均辐射度";
  492. }*/
  493. }
  494. });
  495. }
  496. function findYfdl() {
  497. var wpId = $("#wpId").val();
  498. var url = "findYfdl.action?wpId=" + wpId;
  499. $.ajax({
  500. url : url,
  501. type : "post",
  502. cache : false,
  503. dataType : "json",
  504. async : false,
  505. data : {},
  506. ifModified : false,
  507. success : function(result) {
  508. var yfdl = [];
  509. var yfdl1 = [];
  510. var yfdl2 = [];
  511. var xtimex = [];
  512. $.each(result, function(m, obj) {
  513. if (obj.value1 != null) {
  514. yfdl.push(parseFloat(obj.value1));
  515. }else{
  516. yfdl.push(0.0);
  517. }
  518. if (obj.value2 != null) {
  519. yfdl1.push(parseFloat(obj.value2));
  520. }else{
  521. yfdl1.push(0.0);
  522. }
  523. if (obj.value3 != null) {
  524. yfdl2.push(parseFloat(obj.value3));
  525. }else{
  526. yfdl2.push(0.0);
  527. }
  528. if(obj.timestr!="")
  529. {
  530. xtimex.push(obj.timestr);
  531. }else
  532. {
  533. xtimex.push("");
  534. }
  535. });
  536. options9.series[0].data = yfdl;
  537. options9.series[1].data = yfdl1;
  538. options9.series[2].data = yfdl2;
  539. options9.xAxis.categories = xtimex;
  540. chart9 = new Highcharts.Chart(options9);
  541. }
  542. });
  543. }
  544. function wpInfoAjax1() {
  545. var wpId = $("#wpId").val();
  546. $.ajax({
  547. url : "wpInfoAjax.action?wpId=" + wpId,
  548. type : "post",
  549. cache : false,
  550. dataType : "json",
  551. data : {},
  552. ifModified : false,
  553. success : function(res) {
  554. /*
  555. statebtnimg("#cl_fczt", res["CL_FDC_FCZT"]);
  556. statebtnimg("#kb_fczt", res["KB_FDC_FCZT"]);
  557. statebtnimg("#dx_fczt", res["DX_FDC_FCZT"]);
  558. //悬浮层
  559. $("#WNS_ZJTS").html(res["WNS_FDC_ZJTS"]);
  560. $("#WNS_ZJRL").html(res["WNS_FDC_ZJRL"]*10);
  561. $("#WNS_FS").html(res["WNS_FDC_FS"]);
  562. $("#WNS_RFDL").html(res["WNS_FDC_RFDL"]);
  563. $("#WNS_GL").html(res["WNS_FDC_GL"]);
  564. $("#YY_ZJTS").html(res["YY_FDC_ZJTS"]);
  565. $("#YY_ZJRL").html(res["YY_FDC_ZJRL"]*10);
  566. $("#YY_FS").html(res["YY_FDC_FS"]);
  567. $("#YY_RFDL").html(res["YY_FDC_RFDL"]);
  568. $("#YY_GL").html(res["YY_FDC_GL"]);
  569. $("#PL_ZJTS").html(res["PL_FDC_ZJTS"]);
  570. $("#PL_ZJRL").html(res["PL_FDC_ZJRL"]*10);
  571. $("#PL_FS").html(res["PL_FDC_FS"]);
  572. $("#PL_RFDL").html(res["PL_FDC_RFDL"]);
  573. $("#PL_GL").html(res["PL_FDC_GL"]);
  574. $("#GL_ZJTS").html(res["GL_FDC_ZJTS"]);
  575. $("#GL_ZJRL").html(res["GL_FDC_ZJRL"]*10);
  576. $("#GL_FS").html(res["GL_FDC_FS"]);
  577. $("#GL_RFDL").html(res["GL_FDC_RFDL"]);
  578. $("#GL_GL").html(res["GL_FDC_GL"]);
  579. $("#HY_ZJTS").html(res["HY_FDC_ZJTS"]);
  580. $("#HY_ZJRL").html(res["HY_FDC_ZJRL"]*10);
  581. $("#HY_FS").html(res["HY_FDC_FS"]);
  582. $("#HY_RFDL").html(res["HY_FDC_RFDL"]);
  583. $("#HY_GL").html(res["HY_FDC_GL"]);
  584. */ if(chart3.series[0])
  585. {
  586. var point = chart3.series[0].points[0];
  587. point.update(res["fs"]);
  588. }
  589. if(chart4.series[0])
  590. {
  591. point = chart4.series[0].points[0];
  592. point.update(res["llgl"]);
  593. }
  594. if(chart5.series[0])
  595. {
  596. point = chart5.series[0].points[0];
  597. if(res["sjgl"]<0)
  598. {
  599. point.update(res["yfgl"]);
  600. }else
  601. {
  602. point.update(res["sjgl"]);
  603. }
  604. }
  605. if(chart7.series[0])
  606. {
  607. point = chart7.series[0].points[0];
  608. point.update(res["yfgl"]);
  609. }
  610. /****************************************/
  611. }
  612. });
  613. }
  614. $(document).ready(
  615. function() {
  616. var now = new Date();
  617. var year = now.getFullYear();
  618. var year1 = year-1;
  619. var year2 = year-2;
  620. options1 = {
  621. corlor: [
  622. [0.3, '#33FFFF'], // 蓝
  623. [0.9, '#DF5353'] // red
  624. ],
  625. chart: {
  626. renderTo: 'container2',
  627. type: 'column',
  628. zoomType: 'x'
  629. },
  630. title: {
  631. text: null
  632. },
  633. xAxis: [{
  634. type: 'category',
  635. categories: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
  636. //min:1
  637. }],
  638. yAxis: [{
  639. // Primary yAxis
  640. min:0,
  641. labels: {
  642. format: '{value}',
  643. style: {
  644. color: Highcharts.getOptions().colors[2]
  645. }
  646. },
  647. title: {
  648. text: '风速',
  649. style: {
  650. color: Highcharts.getOptions().colors[2]
  651. }
  652. },
  653. opposite: true
  654. }, { // Secondary yAxis
  655. min:0,
  656. gridLineWidth: 0,
  657. title: {
  658. text: '发电量',
  659. style: {
  660. color: Highcharts.getOptions().colors[0]
  661. }
  662. },
  663. labels: {
  664. format: '{value}',
  665. style: {
  666. color: Highcharts.getOptions().colors[0]
  667. }
  668. }
  669. }],
  670. tooltip: {
  671. shared: true
  672. },
  673. legend: {
  674. enabled: false,
  675. layout: 'vertical',
  676. align: 'left',
  677. x: 80,
  678. verticalAlign: 'top',
  679. y: 55,
  680. floating: true,
  681. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
  682. },
  683. series: [{
  684. name: '发电量',
  685. type: 'column',
  686. color: '#76B8F4',
  687. yAxis: 1,
  688. tooltip: {
  689. valueSuffix: ' 万kWh'
  690. }
  691. }, {
  692. name: '风速',
  693. color: '#F97E5D',
  694. type: 'spline',
  695. tooltip: {
  696. valueSuffix: ' m/s'
  697. }
  698. }]
  699. };
  700. options2={
  701. chart: {
  702. renderTo: 'container2', //放置图表的容器
  703. plotBackgroundColor: null,
  704. plotBorderWidth: null,
  705. zoomType: 'xy' //支持图表放大缩小的范围
  706. },
  707. title: {
  708. text: null
  709. },
  710. xAxis: [{
  711. //type: 'category'
  712. categories: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
  713. }],
  714. yAxis: [{ // Primary yAxis
  715. title: {
  716. text: '发电量(万kWh)',
  717. style: {
  718. color: Highcharts.getOptions().colors[0]
  719. }
  720. },
  721. labels: {
  722. format: '{value}',//格式化Y轴刻度
  723. style: {
  724. color: Highcharts.getOptions().colors[0]
  725. }
  726. },
  727. //max: 100
  728. }, { // Secondary yAxis
  729. title: {
  730. text: '风速(m/s)',
  731. style: {
  732. color: Highcharts.getOptions().colors[1]
  733. }
  734. },
  735. labels: {
  736. format: '{value}',
  737. style: {
  738. color: Highcharts.getOptions().colors[1]
  739. }
  740. },
  741. opposite: true
  742. }],
  743. tooltip: {
  744. shared: true, //公用一个提示框
  745. formatter: function() {
  746. return this.x +"<br>"
  747. + "<span style='color:#4572A7'>发电量:" + this.points[0].y +" 万kWh</span><br>"
  748. + "<span style='color:#89A54E'>风速:" + this.points[1].y +" m/s</span>";
  749. }
  750. },
  751. //图例样式设置
  752. legend: {
  753. enabled: false,
  754. layout: 'vertical',
  755. align: 'left',
  756. x: 0,
  757. verticalAlign: 'top',
  758. y: 0,
  759. floating: true,
  760. backgroundColor: '#FFFFFF'
  761. },
  762. series: [{
  763. name: '发电量',
  764. color: '#76B8F4',
  765. type: 'column',
  766. yAxis: 0,
  767. //data: [50, 70, 100, 120, 145, 176, 135],
  768. tooltip: {
  769. formatter: function() {
  770. return this.y +"万kWh";
  771. }
  772. }
  773. }, {
  774. name: '风速',
  775. color: '#F97E5D',
  776. type: 'spline',
  777. yAxis: 1,
  778. //data: [80, 22.5, 45, 90, 99, 35, 45 ],
  779. tooltip: {
  780. valueSuffix: ' m/s'
  781. }
  782. }]
  783. };
  784. options3 = {
  785. chart: {
  786. renderTo: 'container3',
  787. type: 'solidgauge',
  788. events: {
  789. click: function (event) {
  790. findPJFSDetail();
  791. }
  792. }
  793. },
  794. title: null,
  795. pane: {
  796. center: ['50%', '100%'],
  797. size: '200%',
  798. startAngle: -90,
  799. endAngle: 90,
  800. background: {
  801. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  802. innerRadius: '60%',
  803. outerRadius: '100%',
  804. shape: 'arc'
  805. }
  806. },
  807. tooltip: {
  808. enabled: false
  809. },
  810. // the value axis
  811. yAxis: {
  812. stops: [
  813. [0.1, '#55BF3B'], // green
  814. [0.3, '#33FFFF'], // 蓝
  815. [0.7, '#DDDF0D'], // yellow
  816. [0.9, '#DF5353'] // red
  817. ],
  818. lineWidth: 0,
  819. minorTickInterval: null,
  820. tickPixelInterval: 400,
  821. tickWidth: 0,
  822. title: {
  823. y: -10
  824. },
  825. labels: {
  826. y: 0
  827. },
  828. min: 0,
  829. max: 50,
  830. title: {
  831. text: null
  832. }
  833. },
  834. plotOptions: {
  835. solidgauge: {
  836. dataLabels: {
  837. y: 20,
  838. borderWidth: 0,
  839. useHTML: true
  840. }
  841. }
  842. },
  843. credits: {
  844. enabled: false
  845. },
  846. series: [{
  847. name: '风速(m/s)',
  848. data: [12],
  849. dataLabels: {
  850. y:20,
  851. format: '<div style="text-align:center"><span style="font-size:13px;color:' +
  852. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  853. '<span style="font-size:12px;color:silver">风速(m/s)</span></div>'
  854. },
  855. tooltip: {
  856. valueSuffix: ''
  857. }
  858. }]
  859. };
  860. options4 = {
  861. chart: {
  862. renderTo: 'container4',
  863. type: 'solidgauge',
  864. events: {
  865. click: function (event) {
  866. findBZGLDetail();
  867. }
  868. }
  869. },
  870. title: null,
  871. pane: {
  872. center: ['50%', '100%'],
  873. size: '200%',
  874. startAngle: -90,
  875. endAngle: 90,
  876. background: {
  877. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  878. innerRadius: '60%',
  879. outerRadius: '100%',
  880. shape: 'arc'
  881. }
  882. },
  883. tooltip: {
  884. enabled: false
  885. },
  886. // the value axis
  887. yAxis: {
  888. stops: [
  889. [0.1, '#55BF3B'], // green
  890. [0.3, '#33FFFF'], // 蓝
  891. [0.7, '#DDDF0D'], // yellow
  892. [0.9, '#DF5353'] // red
  893. ],
  894. lineWidth: 0,
  895. minorTickInterval: null,
  896. tickPixelInterval: 400,
  897. tickWidth: 0,
  898. title: {
  899. y: -10
  900. },
  901. labels: {
  902. y: 0
  903. },
  904. min: 0,
  905. max: 800,
  906. title: {
  907. text: null
  908. }
  909. },
  910. plotOptions: {
  911. solidgauge: {
  912. dataLabels: {
  913. y: 20,
  914. borderWidth: 0,
  915. useHTML: true
  916. }
  917. }
  918. },
  919. credits: {
  920. enabled: false
  921. },
  922. series: [{
  923. name: '保证功率(MW)',
  924. data: [12],
  925. dataLabels: {
  926. y:20,
  927. format: '<div style="text-align:center"><span style="font-size:13px;color:' +
  928. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  929. '<span style="font-size:12px;color:silver">保证功率(MW)</span></div>'
  930. },
  931. tooltip: {
  932. valueSuffix: ' '
  933. }
  934. }]
  935. };
  936. options5 = {
  937. chart: {
  938. renderTo: 'container5',
  939. type: 'solidgauge',
  940. events: {
  941. click: function (event) {
  942. findSJGLDetail();
  943. }
  944. }
  945. },
  946. title: null,
  947. pane: {
  948. center: ['50%', '100%'],
  949. size: '200%',
  950. startAngle: -90,
  951. endAngle: 90,
  952. background: {
  953. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  954. innerRadius: '60%',
  955. outerRadius: '100%',
  956. shape: 'arc'
  957. }
  958. },
  959. tooltip: {
  960. enabled: false
  961. },
  962. // the value axis
  963. yAxis: {
  964. stops: [
  965. [0.1, '#55BF3B'], // green
  966. [0.3, '#33FFFF'], // 蓝
  967. [0.7, '#DDDF0D'], // yellow
  968. [0.9, '#DF5353'] // red
  969. ],
  970. lineWidth: 0,
  971. minorTickInterval: null,
  972. tickPixelInterval: 400,
  973. tickWidth: 0,
  974. title: {
  975. y: -10
  976. },
  977. labels: {
  978. y: 0
  979. },
  980. min: 0,
  981. max: 800,
  982. title: {
  983. text: null
  984. }
  985. },
  986. plotOptions: {
  987. solidgauge: {
  988. dataLabels: {
  989. y: 20,
  990. borderWidth: 0,
  991. useHTML: true
  992. }
  993. }
  994. },
  995. credits: {
  996. enabled: false
  997. },
  998. series: [{
  999. name: '实发功率(MW)',
  1000. data: [12],
  1001. dataLabels: {
  1002. y:20,
  1003. format: '<div style="text-align:center"><span style="font-size:13px;color:' +
  1004. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  1005. '<span style="font-size:12px;color:silver">实发功率(MW)</span></div>'
  1006. },
  1007. tooltip: {
  1008. valueSuffix: ' '
  1009. }
  1010. }]
  1011. };
  1012. options6 = { chart: {
  1013. renderTo: 'container6',
  1014. type: 'bar',
  1015. events: {
  1016. click: function (event) {
  1017. getProjectInfo(event.srcElement);
  1018. }
  1019. }
  1020. },
  1021. title: {
  1022. text: ''
  1023. },
  1024. xAxis: {
  1025. categories: ['月发电量情况', '年发电量情况'],
  1026. title: {
  1027. text: null
  1028. }
  1029. },
  1030. yAxis: {
  1031. min: 0,
  1032. color: '#55BF3B',
  1033. title: {
  1034. text: ' ',
  1035. align: 'middle'
  1036. }
  1037. },
  1038. plotOptions: {
  1039. bar: {
  1040. dataLabels: {
  1041. enabled: true
  1042. }
  1043. }
  1044. }, legend: '',
  1045. credits: {
  1046. enabled: false
  1047. },
  1048. series: [{
  1049. name: '计划发电量(万kWh)',
  1050. data: [107, 133]
  1051. }, {
  1052. name: '实际发电量(万kWh)',
  1053. data: [133, 156],
  1054. color: '#55BF3B',
  1055. }]
  1056. };;
  1057. options7 = {
  1058. chart: {
  1059. renderTo: 'container7',
  1060. type: 'solidgauge',
  1061. events: {
  1062. click: function (event) {
  1063. findYFGLDetail();
  1064. }
  1065. }
  1066. },
  1067. title: null,
  1068. pane: {
  1069. center: ['50%', '100%'],
  1070. size: '200%',
  1071. startAngle: -90,
  1072. endAngle: 90,
  1073. background: {
  1074. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  1075. innerRadius: '60%',
  1076. outerRadius: '100%',
  1077. shape: 'arc'
  1078. }
  1079. },
  1080. tooltip: {
  1081. enabled: false
  1082. },
  1083. // the value axis
  1084. yAxis: {
  1085. stops: [
  1086. [0.1, '#55BF3B'], // green
  1087. [0.3, '#33FFFF'], // 蓝
  1088. [0.7, '#DDDF0D'], // yellow
  1089. [0.9, '#DF5353'] // red
  1090. ],
  1091. lineWidth: 0,
  1092. minorTickInterval: null,
  1093. tickPixelInterval: 400,
  1094. tickWidth: 0,
  1095. title: {
  1096. y: -10
  1097. },
  1098. labels: {
  1099. y: 0
  1100. },
  1101. min: 0,
  1102. max: 800,
  1103. title: {
  1104. text: null
  1105. }
  1106. },
  1107. plotOptions: {
  1108. solidgauge: {
  1109. dataLabels: {
  1110. y: 20,
  1111. borderWidth: 0,
  1112. useHTML: true
  1113. }
  1114. }
  1115. },
  1116. credits: {
  1117. enabled: false
  1118. },
  1119. series: [{
  1120. name: '理论功率(MW)',
  1121. data: [12],
  1122. dataLabels: {
  1123. y:20,
  1124. format: '<div style="text-align:center"><span style="font-size:13px;color:' +
  1125. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  1126. '<span style="font-size:11px;color:silver">理论功率(MW)</span></div>'
  1127. },
  1128. tooltip: {
  1129. valueSuffix: ' '
  1130. }
  1131. }]
  1132. };
  1133. options8 = {
  1134. colors: [
  1135. '#00B259', //绿
  1136. '#B20000', //红
  1137. '#006DD9', //蓝
  1138. '#000000', //黑
  1139. '#FFBFFF',//藕荷色
  1140. '#CC9900',//黄褐色
  1141. '#FF8000'//橘黄
  1142. ],
  1143. chart: {
  1144. renderTo: 'container1',//
  1145. type: 'spline',
  1146. //backgroundColor:'#BFDFFF',
  1147. //plotBackgroundColor:'#BFDFFF',
  1148. zoomType: 'x',
  1149. events: {
  1150. }
  1151. },title:null,
  1152. subtitle: {
  1153. text: ''
  1154. },
  1155. xAxis: {
  1156. labels: {
  1157. align: 'right',
  1158. formatter: function() {
  1159. return Highcharts.dateFormat('%H<br/>%M', this.value);
  1160. }
  1161. },
  1162. type: 'datetime'
  1163. },
  1164. legend: {
  1165. //enabled:true,
  1166. layout: 'horizontal',
  1167. // backgroundColor: '#FFFFFF',
  1168. align: 'center',
  1169. verticalAlign: 'bottom',
  1170. x:-60,
  1171. y:14,
  1172. floating: true
  1173. // shadow: true
  1174. // layout: 'vertical',
  1175. // align: 'right',
  1176. // verticalAlign: 'middle',
  1177. // borderWidth: 0
  1178. },
  1179. yAxis: [{
  1180. title: {
  1181. text: '功率数值(MW)'
  1182. // text:null
  1183. }
  1184. },{
  1185. title:{
  1186. text :'风速'
  1187. //text:null
  1188. },
  1189. labels:{
  1190. formatter: function(){
  1191. return this.value;
  1192. }
  1193. },
  1194. lineWidth : 1,
  1195. opposite:true
  1196. }],
  1197. tooltip: {
  1198. crosshairs:{//控制十字线
  1199. width:2
  1200. },
  1201. shared:true,
  1202. xDateFormat:'%Y-%m-%d %H:%M'
  1203. /*formatter: function() {
  1204. return '<b>'+ this.series.name +'</b>:'+
  1205. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  1206. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  1207. }*/
  1208. },
  1209. credits: {
  1210. enabled: false
  1211. },
  1212. plotOptions: {
  1213. spline: {
  1214. dataLabels : {
  1215. enabled :false
  1216. },
  1217. // pointPadding: 0.2,
  1218. borderWidth: 0
  1219. },
  1220. series: {
  1221. cursor: 'pointer',
  1222. marker: {
  1223. radius: 0,
  1224. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1225. }
  1226. }
  1227. },
  1228. series: [{
  1229. type: 'spline',
  1230. name: '理论功率(单位:MW)',
  1231. yAxis:0
  1232. },{
  1233. type: 'spline',
  1234. name: '保证功率(单位:MW)',
  1235. yAxis:0
  1236. },{
  1237. type: 'spline',
  1238. name: '实发功率(单位:MW)',
  1239. yAxis:0
  1240. },{
  1241. type: 'spline',
  1242. name: '预测功率(单位:MW)',
  1243. yAxis:0
  1244. }, {
  1245. type: 'spline',
  1246. name: '平均风速(单位:m/s)',
  1247. yAxis:1
  1248. /* },
  1249. {
  1250. type: 'spline',
  1251. name: '理论功率(单位:MW)',
  1252. yAxis:0
  1253. },{
  1254. type: 'spline',
  1255. name: '最优功率(单位:MW)',
  1256. yAxis:0*/
  1257. }]
  1258. };
  1259. options9 = {
  1260. colors:[
  1261. '#80B1FE',
  1262. '#FF8B21',
  1263. '#68E44E'
  1264. ],
  1265. chart: {
  1266. renderTo: 'container8',
  1267. type: 'column',
  1268. //backgroundColor:'#BFDFFF',
  1269. //plotBackgroundColor:'#BFDFFF',
  1270. zoomType: 'x',
  1271. },
  1272. title:null,
  1273. xAxis: {
  1274. type: 'category'
  1275. },
  1276. yAxis: [{
  1277. title: {
  1278. //text: '电量(万kWh)'
  1279. text:null
  1280. }
  1281. }],
  1282. legend: {
  1283. //enabled:false,
  1284. layout: 'vertical',
  1285. align: 'right',
  1286. verticalAlign: 'top',
  1287. x:-60,
  1288. floating: true
  1289. },
  1290. tooltip: {
  1291. shared:true,
  1292. xDateFormat:'%Y-%m-%d'
  1293. },
  1294. credits: {
  1295. enabled: false
  1296. },
  1297. plotOptions: {
  1298. spline: {
  1299. dataLabels : {
  1300. enabled :false
  1301. },
  1302. // pointPadding: 0.2,
  1303. borderWidth: 0
  1304. },
  1305. column: {
  1306. pointPadding: 0.2,
  1307. borderWidth: 0
  1308. },
  1309. series: {
  1310. cursor: 'pointer',
  1311. marker: {
  1312. radius: 0,
  1313. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1314. }
  1315. }
  1316. },
  1317. series: [{
  1318. name: year+'(单位:万kWh)',
  1319. yAxis:0
  1320. }, {
  1321. name: year1+'(单位:万kWh)',
  1322. yAxis:0
  1323. },
  1324. {
  1325. name: year2+'(单位:万kWh)',
  1326. yAxis:0
  1327. }]
  1328. };
  1329. chart1 = new Highcharts.Chart(options1);
  1330. chart3 = new Highcharts.Chart(options3);
  1331. chart4 = new Highcharts.Chart(options4);
  1332. chart5 = new Highcharts.Chart(options5);
  1333. chart7= new Highcharts.Chart(options7);
  1334. chart8= new Highcharts.Chart(options8);
  1335. //chart9= new Highcharts.Chart(options9);
  1336. wpInfoAjax();
  1337. window.setInterval(wpInfoAjax, 5000);
  1338. wpInfoAjax1();
  1339. setInterval(wpInfoAjax1, 1000);
  1340. powerAjax();
  1341. setInterval(powerAjax, 24*60*60000);
  1342. realPowerAjax();
  1343. setInterval(realPowerAjax, 30*60000);
  1344. findYfdl();
  1345. setInterval(findYfdl, 30*60000);
  1346. });
  1347. function goObjView(obj,type)
  1348. {
  1349. var wpId=$("#wpId").val(obj);
  1350. //alert(wpId);
  1351. if((type!=null && type!="" && type!=undefined) || type==0 )
  1352. {
  1353. setTab(1,type);
  1354. switch (type) {
  1355. case 0:
  1356. $("#sxgsdt").css("display","");
  1357. $("#wnsdt").css("display","none");
  1358. $("#gjbdt").css("display","none");
  1359. $("#htsdt").css("display","none");
  1360. $("#jfdt").css("display","none");
  1361. $("#fydt").css("display","none");
  1362. $("#fsdt").css("display","none");
  1363. $("#ygdt").css("display","none");
  1364. break;
  1365. case 1:
  1366. $("#sxgsdt").css("display","none");
  1367. $("#wnsdt").css("display","");
  1368. $("#gjbdt").css("display","none");
  1369. $("#htsdt").css("display","none");
  1370. $("#jfdt").css("display","none");
  1371. $("#fydt").css("display","none");
  1372. $("#fsdt").css("display","none");
  1373. $("#ygdt").css("display","none");
  1374. break;
  1375. case 2:
  1376. $("#sxgsdt").css("display","none");
  1377. $("#wnsdt").css("display","none");
  1378. $("#gjbdt").css("display","");
  1379. $("#htsdt").css("display","none");
  1380. $("#jfdt").css("display","none");
  1381. $("#fydt").css("display","none");
  1382. $("#fsdt").css("display","none");
  1383. $("#ygdt").css("display","none");
  1384. break;
  1385. case 3:
  1386. $("#sxgsdt").css("display","none");
  1387. $("#wnsdt").css("display","none");
  1388. $("#gjbdt").css("display","none");
  1389. $("#htsdt").css("display","");
  1390. $("#jfdt").css("display","none");
  1391. $("#fydt").css("display","none");
  1392. $("#fsdt").css("display","none");
  1393. $("#ygdt").css("display","none");
  1394. break;
  1395. case 4:
  1396. $("#sxgsdt").css("display","none");
  1397. $("#wnsdt").css("display","none");
  1398. $("#gjbdt").css("display","none");
  1399. $("#htsdt").css("display","none");
  1400. $("#jfdt").css("display","");
  1401. $("#fydt").css("display","none");
  1402. $("#fsdt").css("display","none");
  1403. $("#ygdt").css("display","none");
  1404. break;
  1405. case 5:
  1406. $("#sxgsdt").css("display","none");
  1407. $("#wnsdt").css("display","none");
  1408. $("#gjbdt").css("display","none");
  1409. $("#htsdt").css("display","none");
  1410. $("#jfdt").css("display","none");
  1411. $("#fydt").css("display","");
  1412. $("#fsdt").css("display","none");
  1413. $("#ygdt").css("display","none");
  1414. break;
  1415. case 6:
  1416. $("#sxgsdt").css("display","none");
  1417. $("#wnsdt").css("display","none");
  1418. $("#gjbdt").css("display","none");
  1419. $("#htsdt").css("display","none");
  1420. $("#jfdt").css("display","none");
  1421. $("#fydt").css("display","none");
  1422. $("#fsdt").css("display","");
  1423. $("#ygdt").css("display","none");
  1424. break;
  1425. case 7:
  1426. $("#sxgsdt").css("display","none");
  1427. $("#wnsdt").css("display","none");
  1428. $("#gjbdt").css("display","none");
  1429. $("#htsdt").css("display","none");
  1430. $("#jfdt").css("display","none");
  1431. $("#fydt").css("display","none");
  1432. $("#fsdt").css("display","none");
  1433. $("#ygdt").css("display","");
  1434. break;
  1435. }
  1436. }else{
  1437. if(obj=="0"){
  1438. $("#sxgs_bt").css("display","");
  1439. $("#tq_bt").css("display","none");
  1440. $("#yy_bt").css("display","none");
  1441. $("#pl_bt").css("display","none");
  1442. $("#gl_bt").css("display","none");
  1443. $("#hy_bt").css("display","none");
  1444. $("#fs_dt").css("display","none");
  1445. $("#yg_dt").css("display","none");
  1446. }else if(obj=="1"){
  1447. $("#sxgs_bt").css("display","none");
  1448. $("#tq_bt").css("display","");
  1449. $("#yy_bt").css("display","none");
  1450. $("#pl_bt").css("display","none");
  1451. $("#gl_bt").css("display","none");
  1452. $("#hy_bt").css("display","none");
  1453. $("#fs_dt").css("display","none");
  1454. $("#yg_dt").css("display","none");
  1455. }else if(obj=="2"){
  1456. $("#sxgs_bt").css("display","none");
  1457. $("#tq_bt").css("display","none");
  1458. $("#yy_bt").css("display","");
  1459. $("#pl_bt").css("display","none");
  1460. $("#gl_bt").css("display","none");
  1461. $("#hy_bt").css("display","none");
  1462. $("#fs_dt").css("display","none");
  1463. $("#yg_dt").css("display","none");
  1464. }else if(obj=="3"){
  1465. $("#sxgs_bt").css("display","none");
  1466. $("#tq_bt").css("display","none");
  1467. $("#yy_bt").css("display","none");
  1468. $("#pl_bt").css("display","");
  1469. $("#gl_bt").css("display","none");
  1470. $("#hy_bt").css("display","none");
  1471. $("#fs_dt").css("display","none");
  1472. $("#yg_dt").css("display","none");
  1473. }else if(obj=="4") {
  1474. $("#sxgs_bt").css("display","none");
  1475. $("#tq_bt").css("display","none");
  1476. $("#yy_bt").css("display","none");
  1477. $("#pl_bt").css("display","none");
  1478. $("#gl_bt").css("display","");
  1479. $("#hy_bt").css("display","none");
  1480. $("#fs_dt").css("display","none");
  1481. $("#yg_dt").css("display","none");
  1482. }else if(obj=="5") {
  1483. $("#sxgs_bt").css("display","none");
  1484. $("#tq_bt").css("display","none");
  1485. $("#yy_bt").css("display","none");
  1486. $("#pl_bt").css("display","none");
  1487. $("#gl_bt").css("display","none");
  1488. $("#hy_bt").css("display","");
  1489. $("#fs_dt").css("display","none");
  1490. $("#yg_dt").css("display","none");
  1491. }else if(obj=="6") {
  1492. $("#sxgs_bt").css("display","none");
  1493. $("#tq_bt").css("display","none");
  1494. $("#yy_bt").css("display","none");
  1495. $("#pl_bt").css("display","none");
  1496. $("#gl_bt").css("display","none");
  1497. $("#hy_bt").css("display","none");
  1498. $("#fs_dt").css("display","");
  1499. $("#yg_dt").css("display","none");
  1500. }else if(obj=="7") {
  1501. $("#sxgs_bt").css("display","none");
  1502. $("#tq_bt").css("display","none");
  1503. $("#yy_bt").css("display","none");
  1504. $("#pl_bt").css("display","none");
  1505. $("#gl_bt").css("display","none");
  1506. $("#hy_bt").css("display","none");
  1507. $("#fs_dt").css("display","none");
  1508. $("#yg_dt").css("display","");
  1509. }
  1510. }
  1511. wpInfoAjax();
  1512. wpInfoAjax1();
  1513. powerAjax();
  1514. realPowerAjax();
  1515. findYfdl();
  1516. }