desktop.js 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577
  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 options1;
  13. var options2;
  14. var options3;
  15. var options4;
  16. var options5;
  17. var options6;
  18. var options7;
  19. var options8;
  20. var options9;
  21. var options10;
  22. var options11;
  23. Highcharts.setOptions({
  24. global : {
  25. useUTC : false
  26. }
  27. });
  28. String.prototype.endWith=function(oString){
  29. var reg=new RegExp(oString+"$");
  30. return reg.test(this);
  31. }
  32. var bl1;
  33. var bl2;
  34. function stateimg(obj,type)
  35. {
  36. switch (type)
  37. {
  38. case 0:
  39. $(obj).attr("src",
  40. "/resource/images/hbsj/standBy_Station.fw.png");
  41. break;
  42. case 1:
  43. $(obj).attr("src",
  44. "/resource/images/hbsj/run_Station.fw.png");
  45. break;
  46. case 2:
  47. $(obj).attr("src",
  48. "/resource/images/hbsj/stop_Station.fw.png");
  49. break;
  50. case 3:
  51. $(obj).attr("src",
  52. "/resource/images/hbsj/interrupt_Station.fw.png");
  53. break;
  54. case 4:
  55. $(obj).attr("src",
  56. "/resource/images/hbsj/repair_Station.fw.png");
  57. break;
  58. case 5:
  59. $(obj).attr("src",
  60. "/resource/images/hbsj/limit_Station.fw.png");
  61. break;
  62. case 6:
  63. $(obj).attr("src",
  64. "/resource/images/hbsj/limit_Station.fw.png");
  65. break;
  66. }
  67. }
  68. function statebtnimg(obj,type)
  69. {
  70. switch (type)
  71. {
  72. case 0:
  73. $(obj).html("<img src='/resource/images/hbsj/point-green.png' width='29' height='29' />");
  74. break;
  75. case 1:
  76. $(obj).html("<img src='/resource/images/hbsj/point-blue.png' width='29' height='29' />");
  77. break;
  78. case 2:
  79. $(obj).html("<img src='/resource/images/hbsj/point-red.png' width='29' height='29' />");
  80. break;
  81. case 3:
  82. $(obj).html("<img src='/resource/images/hbsj/point-black.png' width='29' height='29' />");
  83. break;
  84. case 4:
  85. $(obj).html("<img src='/resource/images/hbsj/point-orange.png' width='29' height='29' />");
  86. break;
  87. case 5:
  88. $(obj).html("<img src='/resource/images/hbsj/point-pink.png' width='29' height='29' />");
  89. break;
  90. case 6:
  91. $(obj).html("<img src='/resource/images/hbsj/point-pink.png' width='29' height='29' />");
  92. break;
  93. }
  94. }
  95. function wpInfoAjax() {
  96. var wpId = $("#wpId").val();
  97. $.ajax({
  98. url : "wpInfoAjax.action?wpId=" + wpId,
  99. type : "post",
  100. cache : false,
  101. dataType : "json",
  102. data : {},
  103. ifModified : false,
  104. success : function(res) {
  105. $("#zjrl").html(res["zjrl"]);
  106. $("#aqts").html(res["aqts"]);
  107. $("#ydxkyxs").html(res["ydxkyxs"]);
  108. $("#ysbklyl").html(res["ysbklyl"]);
  109. $("#ylyxs").html(res["ylyxs"]);
  110. $("#nlyxs").html(res["nlyxs"]);
  111. $("#rfdl").html(res["rfdl"]);
  112. $("#yfdl").html(res["yfdl"]);
  113. $("#nfdl").html(res["nfdl"]);
  114. $("#rswdl").html(res["rswdl"]);
  115. $("#yswdl").html(res["yswdl"]);
  116. $("#nswdl").html(res["nswdl"]);
  117. $("#jpeyht").html(res["jpeyht"]);
  118. $("#jpeyhl").html(res["jpeyhl"]);
  119. $("#jybm").html(res["jybm"]);
  120. $("#jys").html(res["jys"]);
  121. $("#whss").html(res["whss"]);
  122. $("#whssy").html(res["whssy"]);
  123. $("#whssn").html(res["whssn"]);
  124. $("#gzss").html(res["gzss"]);
  125. $("#gzssy").html(res["gzssy"]);
  126. $("#gzssn").html(res["gzssn"]);
  127. $("#xdss").html(res["xdss"]);
  128. $("#xdssy").html(res["xdssy"]);
  129. $("#xdssn").html(res["xdssn"]);
  130. $("#slss").html(res["slss"]);
  131. $("#slssy").html(res["slssy"]);
  132. $("#slssn").html(res["slssn"]);
  133. $("#xnss").html(res["xnss"]);
  134. $("#xnssy").html(res["xnssy"]);
  135. $("#xnssn").html(res["xnssn"]);
  136. $("#yxts").html(res["yxts"]);
  137. $("#djts").html(res["djts"]);
  138. $("#whts").html(res["whts"]);
  139. $("#gzts").html(res["gzts"]);
  140. $("#xdts").html(res["xdts"]);
  141. $("#lxts").html(res["lxts"]);
  142. $("#jrts").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
  143. /**********************************************************************************************/
  144. statebtnimg("#fs_fczt", res["FS_FDC_FCZT"]);
  145. statebtnimg("#bz_fczt", res["BZ_FDC_FCZT"]);
  146. statebtnimg("#dbs_fczt", res["DBS_FDC_FCZT"]);
  147. statebtnimg("#xbq_fczt", res["XBQ_FDC_FCZT"]);
  148. statebtnimg("#tzs_fczt", res["TZS_FDC_FCZT"]);
  149. statebtnimg("#xc_fczt", res["XC_FDC_FCZT"]);
  150. statebtnimg("#lh_fczt", res["LH_FDC_FCZT"]);
  151. statebtnimg("#jq_fczt", 3);
  152. statebtnimg("#bs_fczt", 3);
  153. statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]);
  154. statebtnimg("#wf_fczt", 3);
  155. statebtnimg("#ym_fczt", 3);
  156. statebtnimg("#ty_fczt", 3);
  157. statebtnimg("#al_fczt", 3);
  158. //statebtnimg("#jq_fczt", res["JQ_FDC_FCZT"]);
  159. //statebtnimg("#bs_fczt", res["BS_FDC_FCZT"]);
  160. //statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]);
  161. //statebtnimg("#wf_fczt", res["WF_FDC_FCZT"]);
  162. //statebtnimg("#ym_fczt", res["YM_FDC_FCZT"]);
  163. //statebtnimg("#ty_fczt", res["TY_FDC_FCZT"]);
  164. //statebtnimg("#al_fczt", res["AL_FDC_FCZT"]);
  165. /**********************************************************************************************/
  166. $("#FS_FDC_ZJRL").html(res["FS_FDC_ZJRL"]);
  167. $("#BZ_FDC_ZJRL").html(res["BZ_FDC_ZJRL"]);
  168. $("#DBS_FDC_ZJRL").html(res["DBS_FDC_ZJRL"]);
  169. $("#TZS_FDC_ZJRL").html(res["TZS_FDC_ZJRL"]);
  170. $("#XBQ_FDC_ZJRL").html(res["XBQ_FDC_ZJRL"]);
  171. $("#XC_FDC_ZJRL").html(res["XC_FDC_ZJRL"]);
  172. $("#LH_FDC_ZJRL").html(res["LH_FDC_ZJRL"]);
  173. $("#JQ_FDC_ZJRL").html(res["JQ_FDC_ZJRL"]);
  174. $("#BS_FDC_ZJRL").html(res["BS_FDC_ZJRL"]);
  175. $("#QL_FDC_ZJRL").html(res["QL_FDC_ZJRL"]);
  176. $("#WF_FDC_ZJRL").html(res["WF_FDC_ZJRL"]);
  177. $("#YM_FDC_ZJRL").html(res["YM_FDC_ZJRL"]);
  178. $("#TY_FDC_ZJRL").html(res["TY_FDC_ZJRL"]);
  179. $("#AL_FDC_ZJRL").html(res["AL_FDC_ZJRL"]);
  180. /**********************************************************************************************/
  181. $("#FS_FDC_ZJTS").html(res["FS_FDC_ZJTS"]);
  182. $("#BZ_FDC_ZJTS").html(res["BZ_FDC_ZJTS"]);
  183. $("#DBS_FDC_ZJTS").html(res["DBS_FDC_ZJTS"]);
  184. $("#TZS_FDC_ZJTS").html(res["TZS_FDC_ZJTS"]);
  185. $("#XBQ_FDC_ZJTS").html(res["XBQ_FDC_ZJTS"]);
  186. $("#XC_FDC_ZJTS").html(res["XC_FDC_ZJTS"]);
  187. $("#LH_FDC_ZJTS").html(res["LH_FDC_ZJTS"]);
  188. $("#JQ_FDC_ZJTS").html(res["JQ_FDC_ZJTS"]);
  189. $("#BS_FDC_ZJTS").html(res["BS_FDC_ZJTS"]);
  190. $("#QL_FDC_ZJTS").html(res["QL_FDC_ZJTS"]);
  191. $("#WF_FDC_ZJTS").html(res["WF_FDC_ZJTS"]);
  192. $("#YM_FDC_ZJTS").html(res["YM_FDC_ZJTS"]);
  193. $("#TY_FDC_ZJTS").html(res["TY_FDC_ZJTS"]);
  194. $("#AL_FDC_ZJTS").html(res["AL_FDC_ZJTS"]);
  195. /**********************************************************************************************/
  196. $("#FS_FDC_FS").html(res["FS_FDC_FS"]);
  197. $("#BZ_FDC_FS").html(res["BZ_FDC_FS"]);
  198. $("#DBS_FDC_FS").html(res["DBS_FDC_FS"]);
  199. $("#TZS_FDC_FS").html(res["TZS_FDC_FS"]);
  200. $("#XBQ_FDC_FS").html(res["XBQ_FDC_FS"]);
  201. $("#XC_FDC_FS").html(res["XC_FDC_FS"]);
  202. $("#LH_FDC_FS").html(res["LH_FDC_FS"]);
  203. $("#JQ_FDC_FS").html(res["JQ_FDC_FS"]);
  204. $("#BS_FDC_FS").html(res["BS_FDC_FS"]);
  205. $("#QL_FDC_FS").html(res["QL_FDC_FS"]);
  206. $("#WF_FDC_FS").html(res["WF_FDC_FS"]);
  207. $("#YM_FDC_FS").html(res["YM_FDC_FS"]);
  208. $("#TY_FDC_FS").html(res["TY_FDC_FS"]);
  209. $("#AL_FDC_FS").html(res["AL_FDC_FS"]);
  210. /**********************************************************************************************/
  211. $("#FS_FDC_GL").html(res["FS_FDC_GL"]);
  212. $("#BZ_FDC_GL").html(res["BZ_FDC_GL"]);
  213. $("#DBS_FDC_GL").html(res["DBS_FDC_GL"]);
  214. $("#TZS_FDC_GL").html(res["TZS_FDC_GL"]);
  215. $("#XBQ_FDC_GL").html(res["XBQ_FDC_GL"]);
  216. $("#XC_FDC_GL").html(res["XC_FDC_GL"]);
  217. $("#LH_FDC_GL").html(res["LH_FDC_GL"]);
  218. $("#JQ_FDC_GL").html(res["JQ_FDC_GL"]);
  219. $("#BS_FDC_GL").html(res["BS_FDC_GL"]);
  220. $("#QL_FDC_GL").html(res["QL_FDC_GL"]);
  221. $("#WF_FDC_GL").html(res["WF_FDC_GL"]);
  222. $("#YM_FDC_GL").html(res["YM_FDC_GL"]);
  223. $("#TY_FDC_GL").html(res["TY_FDC_GL"]);
  224. $("#AL_FDC_GL").html(res["AL_FDC_GL"]);
  225. /**********************************************************************************************/
  226. $("#FS_FDC_RFDL").html(res["FS_FDC_RFDL"]);
  227. $("#BZ_FDC_RFDL").html(res["BZ_FDC_RFDL"]);
  228. $("#DBS_FDC_RFDL").html(res["DBS_FDC_RFDL"]);
  229. $("#TZS_FDC_RFDL").html(res["TZS_FDC_RFDL"]);
  230. $("#XBQ_FDC_RFDL").html(res["XBQ_FDC_RFDL"]);
  231. $("#XC_FDC_RFDL").html(res["XC_FDC_RFDL"]);
  232. $("#LH_FDC_RFDL").html(res["LH_FDC_RFDL"]);
  233. $("#JQ_FDC_RFDL").html(res["JQ_FDC_RFDL"]);
  234. $("#BS_FDC_RFDL").html(res["BS_FDC_RFDL"]);
  235. $("#QL_FDC_RFDL").html(res["QL_FDC_RFDL"]);
  236. $("#WF_FDC_RFDL").html(res["WF_FDC_RFDL"]);
  237. $("#YM_FDC_RFDL").html(res["YM_FDC_RFDL"]);
  238. $("#TY_FDC_RFDL").html(res["TY_FDC_RFDL"]);
  239. $("#AL_FDC_RFDL").html(res["AL_FDC_RFDL"]);
  240. /**********************************************************************************************/
  241. $("#LN_ZJRL").html(res["LN_ZJRL"]);
  242. $("#HLJ_ZJRL").html(res["HLJ_ZJRL"]);
  243. $("#JL_ZJRL").html(res["JL_ZJRL"]);
  244. $("#MD_ZJRL").html(res["MD_ZJRL"]);
  245. /**********************************************************************************************/
  246. $("#LN_ZJTS").html(res["LN_ZJTS"]);
  247. $("#HLJ_ZJTS").html(res["HLJ_ZJTS"]);
  248. $("#JL_ZJTS").html(res["JL_ZJTS"]);
  249. $("#MD_ZJTS").html(res["MD_ZJTS"]);
  250. /**********************************************************************************************/
  251. $("#LN_FS").html(res["LN_FS"]);
  252. $("#HLJ_FS").html(res["HLJ_FS"]);
  253. $("#JL_FS").html(res["JL_FS"]);
  254. $("#MD_FS").html(res["MD_FS"]);
  255. /**********************************************************************************************/
  256. $("#LN_GL").html(res["LN_GL"]);
  257. $("#HLJ_GL").html(res["HLJ_GL"]);
  258. $("#JL_GL").html(res["JL_GL"]);
  259. $("#MD_GL").html(res["MD_GL"]);
  260. /**********************************************************************************************/
  261. $("#LN_RFDL").html(res["LN_RFDL"]);
  262. $("#HLJ_RFDL").html(res["HLJ_RFDL"]);
  263. $("#JL_RFDL").html(res["JL_RFDL"]);
  264. $("#MD_RFDL").html(res["MD_RFDL"]);
  265. /**********************************************************************************************/
  266. if(chart3.series[0])
  267. {
  268. var point = chart3.series[0].points[0];
  269. point.update(res["fs"]);
  270. }
  271. if(chart4.series[0])
  272. {
  273. point = chart4.series[0].points[0];
  274. point.update(res["llgl"]);
  275. }
  276. if(chart5.series[0])
  277. {
  278. point = chart5.series[0].points[0];
  279. if(res["sjgl"]<0)
  280. {
  281. point.update(res["yfgl"]);
  282. }else
  283. {
  284. point.update(res["sjgl"]);
  285. }
  286. }
  287. if(chart7.series[0])
  288. {
  289. point = chart7.series[0].points[0];
  290. point.update(res["yfgl"]);
  291. }
  292. /****************************************/
  293. var jh=[];
  294. var sj=[];
  295. var bl=[];
  296. jh.push(res["yfdljh"]);
  297. jh.push(res["nfdljh"]);
  298. sj.push(res["yfdl"]);
  299. sj.push(res["nfdl"]);
  300. bl.push("月计划完成率"+res["ywcl"]+"%");
  301. bl.push("年计划完成率"+res["nwcl"]+"%");
  302. options6.series[0].data = jh;
  303. options6.series[1].data = sj;
  304. //options6.series[2].data = bl;
  305. if(bl1!=res["ywcl"])
  306. {
  307. bl1=res["ywcl"];
  308. bl2=res["nwcl"];
  309. options6.xAxis.categories=bl
  310. chart6 = new Highcharts.Chart(options6);
  311. }else if(bl2!=res["nwcl"])
  312. {
  313. bl1=res["ywcl"];
  314. bl2=res["nwcl"];
  315. options6.xAxis.categories=bl
  316. chart6 = new Highcharts.Chart(options6);
  317. }
  318. }
  319. });
  320. }
  321. function powerAjax() {
  322. var wpId = $("#wpId").val();
  323. var url = "powerAjax.action?wpId=" + wpId;
  324. $.ajax({
  325. url : url,
  326. type : "post",
  327. cache : false,
  328. dataType : "json",
  329. async : false,
  330. data : {},
  331. ifModified : false,
  332. success : function(result) {
  333. var yfdl = [];
  334. var swdl = [];
  335. var gwdl = [];
  336. var lldl = [];
  337. var xtime = [];
  338. $.each(result, function(m, obj) {
  339. //if(m == result.length -1){
  340. if (obj.value1 != null) {
  341. yfdl.push( parseFloat(obj.value1) );
  342. }
  343. if (obj.value2 != null) {
  344. swdl.push( parseFloat(obj.value2) );
  345. }
  346. if (obj.value3 != null) {
  347. gwdl.push( parseFloat(obj.value3) );
  348. //ycgl.push([ obj.time, parseFloat(obj.wggl) ]);
  349. }
  350. if (obj.value4 != null) {
  351. lldl.push( parseFloat(obj.value4) );
  352. //ycgl.push([ obj.time, parseFloat(obj.wggl) ]);
  353. }
  354. if(obj.timestr!="")
  355. {
  356. xtime.push(obj.timestr);
  357. }else
  358. {
  359. xtime.push("");
  360. }
  361. });
  362. //alert(xtime.length);
  363. options2.series[0].data = yfdl;
  364. options2.series[1].data = lldl;
  365. options2.series[2].data = swdl;
  366. options2.series[3].data = gwdl;
  367. options2.xAxis.categories = xtime;
  368. chart2 = new Highcharts.Chart(options2);
  369. }
  370. });
  371. }
  372. function realPowerAjax() {
  373. var wpId = $("#wpId").val();
  374. var url = "realPowerAjax.action?wpId=" + wpId;
  375. $.ajax({
  376. url : url,
  377. type : "post",
  378. cache : false,
  379. dataType : "json",
  380. data : {},
  381. ifModified : false,
  382. success : function(result) {
  383. var yfgl = [];
  384. var sjgl = [];
  385. var lvgl = [];
  386. var ycgl = [];
  387. var bzgl = [];
  388. var pjfs = [];
  389. var zygl = [];
  390. var xtime=[];
  391. var index=0;
  392. var count=0;
  393. $.each(result, function(m, obj) {
  394. //if(m == result.length -1){
  395. if(index<obj.value7){
  396. index++;
  397. if(obj.value4!=null)
  398. {
  399. ycgl.push( parseFloat(obj.value4) );
  400. }else
  401. {
  402. ycgl.push( null );
  403. }
  404. }
  405. if(count<obj.value8){
  406. yfgl.push( parseFloat(obj.value1) );
  407. sjgl.push( parseFloat(obj.value2) );
  408. lvgl.push( parseFloat(obj.value3) );
  409. bzgl.push( parseFloat(obj.value5) );
  410. pjfs.push( parseFloat(obj.value6) );
  411. zygl.push( parseFloat(obj.value9) );
  412. count++;
  413. }
  414. xtime.push(parseFloat(obj.time));
  415. });
  416. // alert(new Date(xtime[47]));
  417. // alert(yfgl[47]);
  418. options1.series[0].data = yfgl;
  419. options1.series[1].data = sjgl;
  420. options1.series[2].data = lvgl;
  421. //options1.series[0].visible=false;
  422. options1.series[3].data = ycgl;
  423. //options1.series[3].visible=false;
  424. options1.series[4].data = bzgl;
  425. //options1.series[4].visible=false;
  426. options1.series[5].data = zygl;
  427. //options1.series[5].visible=false;
  428. options1.series[6].data = pjfs;
  429. options1.xAxis.categories = xtime;
  430. chart1 = new Highcharts.Chart(options1);
  431. /* if(wpId.endWith("FDC") || wpId=="" || wpId=="-1" || wpId=="0"){
  432. chart1.series[2].remove(true);
  433. chart1.addSeries({
  434. type: 'spline',
  435. name: '平均风速',
  436. data:pjfs,
  437. yAxis:1,
  438. color:'#FF350C'
  439. });
  440. chart1.yAxis[1].setTitle("平均风速",true);
  441. //alert(chart1.series[2].name);
  442. //chart1.options.series[2].name="平均风速";
  443. }
  444. else if(wpId.endWith("GDC") || wpId=="-2"){
  445. chart1.series[2].remove(true);
  446. chart1.addSeries({
  447. type: 'spline',
  448. name: '日照强度',
  449. data:pjfs,
  450. yAxis:1,
  451. color:'#FF350C'
  452. });
  453. chart1.yAxis[1].setTitle("日照强度",true);
  454. //chart1.options.series[2].name="平均辐射度";
  455. }*/
  456. }
  457. });
  458. }
  459. $(document).ready(
  460. function() {
  461. // $('#epiClock').epiclock({
  462. // format : ' Y年F月j日 D G:i:s'
  463. // }); // 绑定
  464. // $.epiclock();
  465. // ================================================
  466. // ================================================
  467. //Highcharts.setOptions(Highcharts.theme1);
  468. options1 = {
  469. colors: [
  470. '#00B259', //绿
  471. '#B20000', //红
  472. '#006DD9', //蓝
  473. '#000000', //黑
  474. '#FFBFFF',//藕荷色
  475. '#CC9900',//黄褐色
  476. '#FF8000'//橘黄
  477. ],
  478. chart: {
  479. renderTo: 'container1',
  480. type: 'spline',
  481. //backgroundColor:'#BFDFFF',
  482. //plotBackgroundColor:'#BFDFFF',
  483. zoomType: 'x',
  484. events: {
  485. }
  486. },title:null
  487. ,
  488. subtitle: {
  489. text: ''
  490. },
  491. xAxis: {
  492. labels: {
  493. align: 'center',
  494. formatter: function() {
  495. return Highcharts.dateFormat('%H<br/>%M', this.value);
  496. }
  497. },
  498. type: 'datetime'
  499. },
  500. yAxis: [{
  501. title: {
  502. text: '功率数值(MW)'
  503. }
  504. },{
  505. title:{
  506. text :'风速'
  507. },
  508. labels:{
  509. formatter: function(){
  510. return this.value;
  511. }
  512. },
  513. lineWidth : 1,
  514. opposite:true
  515. }],
  516. legend: {
  517. layout: 'vertical',
  518. // backgroundColor: '#FFFFFF',
  519. align: 'right',
  520. verticalAlign: 'top',
  521. x:-60,
  522. floating: true
  523. // shadow: true
  524. // layout: 'vertical',
  525. // align: 'right',
  526. // verticalAlign: 'middle',
  527. // borderWidth: 0
  528. },
  529. tooltip: {
  530. crosshairs:{//控制十字线
  531. width:2
  532. },
  533. shared:true,
  534. xDateFormat:'%Y-%m-%d %H:%M'
  535. /*formatter: function() {
  536. return '<b>'+ this.series.name +'</b>:'+
  537. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  538. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  539. }*/
  540. },
  541. credits: {
  542. enabled: false
  543. },
  544. plotOptions: {
  545. spline: {
  546. dataLabels : {
  547. enabled :false
  548. },
  549. // pointPadding: 0.2,
  550. borderWidth: 0
  551. },
  552. series: {
  553. cursor: 'pointer',
  554. marker: {
  555. radius: 0,
  556. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  557. }
  558. }
  559. },
  560. series: [{
  561. type: 'spline',
  562. name: '应发功率(单位:MW)',
  563. yAxis:0
  564. },
  565. {
  566. type: 'spline',
  567. name: '实发功率(单位:MW)',
  568. yAxis:0
  569. },
  570. {
  571. type: 'spline',
  572. name: '理论功率(单位:MW)',
  573. yAxis:0
  574. },
  575. {
  576. type: 'spline',
  577. name: '预测功率(单位:MW)',
  578. yAxis:0
  579. },
  580. {
  581. type: 'spline',
  582. name: '保证功率(单位:MW)',
  583. yAxis:0
  584. },
  585. {
  586. type: 'spline',
  587. name: '最优功率(单位:MW)',
  588. yAxis:0
  589. },{
  590. type: 'spline',
  591. name: '平均风速',
  592. yAxis:1
  593. }]
  594. };
  595. options2 = {
  596. chart: {
  597. renderTo: 'container2',
  598. type: 'column',
  599. //backgroundColor:'#BFDFFF',
  600. //plotBackgroundColor:'#BFDFFF',
  601. zoomType: 'x',
  602. events: {
  603. click: function (event) {
  604. var num=parseInt(Math.abs(event.xAxis[0].value).toFixed(0));
  605. var temp=event.xAxis[0].axis.options.categories[num];
  606. var day=temp.substring(0,temp.length-1);
  607. powerDetailAjax(day,temp);
  608. }
  609. }
  610. },title:null
  611. ,
  612. xAxis: {
  613. type: 'category'
  614. },
  615. yAxis: [{
  616. title: {
  617. text: '电量(万kWh)'
  618. }
  619. }],
  620. legend: {
  621. layout: 'vertical',
  622. // backgroundColor: '#FFFFFF',
  623. align: 'right',
  624. verticalAlign: 'top',
  625. x:-60,
  626. floating: true
  627. // shadow: true
  628. // layout: 'vertical',
  629. // align: 'right',
  630. // verticalAlign: 'middle',
  631. // borderWidth: 0
  632. },
  633. tooltip: {
  634. shared:true,
  635. xDateFormat:'%Y-%m-%d'
  636. /*formatter: function() {
  637. return '<b>'+ this.series.name +'</b>:'+
  638. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  639. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  640. }*/
  641. },
  642. credits: {
  643. enabled: false
  644. },
  645. plotOptions: {
  646. spline: {
  647. dataLabels : {
  648. enabled :false
  649. },
  650. // pointPadding: 0.2,
  651. borderWidth: 0
  652. },
  653. column: {
  654. pointPadding: 0.2,
  655. borderWidth: 0
  656. },
  657. series: {
  658. cursor: 'pointer',
  659. marker: {
  660. radius: 0,
  661. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  662. }
  663. }
  664. },
  665. series: [{
  666. name: '日发电量(单位:万kWh)',
  667. yAxis:0
  668. }, {
  669. name: '日理论发电量(单位:万kWh)',
  670. yAxis:0
  671. },
  672. {
  673. name: '上网电量(单位:万kWh)',
  674. yAxis:0
  675. },{
  676. name: '购网电量(单位:万kWh)',
  677. yAxis:0
  678. }]
  679. };
  680. options3 = {
  681. chart: {
  682. renderTo: 'container3',
  683. type: 'solidgauge',
  684. events: {
  685. click: function (event) {
  686. findPJFSDetail();
  687. }
  688. }
  689. },
  690. title: null,
  691. pane: {
  692. center: ['50%', '100%'],
  693. size: '200%',
  694. startAngle: -90,
  695. endAngle: 90,
  696. background: {
  697. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  698. innerRadius: '60%',
  699. outerRadius: '100%',
  700. shape: 'arc'
  701. }
  702. },
  703. tooltip: {
  704. enabled: false
  705. },
  706. // the value axis
  707. yAxis: {
  708. stops: [
  709. [0.1, '#55BF3B'], // green
  710. [0.3, '#33FFFF'], // 蓝
  711. [0.7, '#DDDF0D'], // yellow
  712. [0.9, '#DF5353'] // red
  713. ],
  714. lineWidth: 0,
  715. minorTickInterval: null,
  716. tickPixelInterval: 400,
  717. tickWidth: 0,
  718. title: {
  719. y: -10
  720. },
  721. labels: {
  722. y: 0
  723. },
  724. min: 0,
  725. max: 50,
  726. title: {
  727. text: null
  728. }
  729. },
  730. plotOptions: {
  731. solidgauge: {
  732. dataLabels: {
  733. y: 15,
  734. borderWidth: 0,
  735. useHTML: true
  736. }
  737. }
  738. },
  739. credits: {
  740. enabled: false
  741. },
  742. series: [{
  743. name: '风速(m/s)',
  744. data: [12],
  745. dataLabels: {
  746. format: '<div style="text-align:center"><span style="font-size:18px;color:' +
  747. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  748. '<span style="font-size:12px;color:silver">风速(m/s)</span></div>'
  749. },
  750. tooltip: {
  751. valueSuffix: ''
  752. }
  753. }]
  754. };
  755. options4 = {
  756. chart: {
  757. renderTo: 'container4',
  758. type: 'solidgauge',
  759. events: {
  760. click: function (event) {
  761. findBZGLDetail();
  762. }
  763. }
  764. },
  765. title: null,
  766. pane: {
  767. center: ['50%', '100%'],
  768. size: '200%',
  769. startAngle: -90,
  770. endAngle: 90,
  771. background: {
  772. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  773. innerRadius: '60%',
  774. outerRadius: '100%',
  775. shape: 'arc'
  776. }
  777. },
  778. tooltip: {
  779. enabled: false
  780. },
  781. // the value axis
  782. yAxis: {
  783. stops: [
  784. [0.1, '#55BF3B'], // green
  785. [0.3, '#33FFFF'], // 蓝
  786. [0.7, '#DDDF0D'], // yellow
  787. [0.9, '#DF5353'] // red
  788. ],
  789. lineWidth: 0,
  790. minorTickInterval: null,
  791. tickPixelInterval: 400,
  792. tickWidth: 0,
  793. title: {
  794. y: -10
  795. },
  796. labels: {
  797. y: 0
  798. },
  799. min: 0,
  800. max: 800,
  801. title: {
  802. text: null
  803. }
  804. },
  805. plotOptions: {
  806. solidgauge: {
  807. dataLabels: {
  808. y: 15,
  809. borderWidth: 0,
  810. useHTML: true
  811. }
  812. }
  813. },
  814. credits: {
  815. enabled: false
  816. },
  817. series: [{
  818. name: '保证功率(MW)',
  819. data: [12],
  820. dataLabels: {
  821. format: '<div style="text-align:center"><span style="font-size:18px;color:' +
  822. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  823. '<span style="font-size:12px;color:silver">保证功率(MW)</span></div>'
  824. },
  825. tooltip: {
  826. valueSuffix: ' '
  827. }
  828. }]
  829. };
  830. options5 = {
  831. chart: {
  832. renderTo: 'container5',
  833. type: 'solidgauge',
  834. events: {
  835. click: function (event) {
  836. findSJGLDetail();
  837. }
  838. }
  839. },
  840. title: null,
  841. pane: {
  842. center: ['50%', '100%'],
  843. size: '200%',
  844. startAngle: -90,
  845. endAngle: 90,
  846. background: {
  847. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  848. innerRadius: '60%',
  849. outerRadius: '100%',
  850. shape: 'arc'
  851. }
  852. },
  853. tooltip: {
  854. enabled: false
  855. },
  856. // the value axis
  857. yAxis: {
  858. stops: [
  859. [0.1, '#55BF3B'], // green
  860. [0.3, '#33FFFF'], // 蓝
  861. [0.7, '#DDDF0D'], // yellow
  862. [0.9, '#DF5353'] // red
  863. ],
  864. lineWidth: 0,
  865. minorTickInterval: null,
  866. tickPixelInterval: 400,
  867. tickWidth: 0,
  868. title: {
  869. y: -10
  870. },
  871. labels: {
  872. y: 0
  873. },
  874. min: 0,
  875. max: 800,
  876. title: {
  877. text: null
  878. }
  879. },
  880. plotOptions: {
  881. solidgauge: {
  882. dataLabels: {
  883. y: 15,
  884. borderWidth: 0,
  885. useHTML: true
  886. }
  887. }
  888. },
  889. credits: {
  890. enabled: false
  891. },
  892. series: [{
  893. name: '实发功率(MW)',
  894. data: [12],
  895. dataLabels: {
  896. format: '<div style="text-align:center"><span style="font-size:18px;color:' +
  897. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  898. '<span style="font-size:12px;color:silver">实发功率(MW)</span></div>'
  899. },
  900. tooltip: {
  901. valueSuffix: ' '
  902. }
  903. }]
  904. };
  905. options6 = { chart: {
  906. renderTo: 'container6',
  907. type: 'bar',
  908. events: {
  909. click: function (event) {
  910. getProjectInfo(event.srcElement);
  911. }
  912. }
  913. },
  914. title: {
  915. text: ''
  916. },
  917. xAxis: {
  918. categories: ['月发电量情况', '年发电量情况'],
  919. title: {
  920. text: null
  921. }
  922. },
  923. yAxis: {
  924. min: 0,
  925. title: {
  926. text: ' ',
  927. align: 'middle'
  928. }
  929. },
  930. plotOptions: {
  931. bar: {
  932. dataLabels: {
  933. enabled: true
  934. }
  935. }
  936. }, legend: '',
  937. credits: {
  938. enabled: false
  939. },
  940. series: [{
  941. name: '计划发电量(万KW)',
  942. data: [107, 133]
  943. }, {
  944. name: '实际发电量(万KW)',
  945. data: [133, 156]
  946. }]
  947. };;
  948. options7 = {
  949. chart: {
  950. renderTo: 'container7',
  951. type: 'solidgauge',
  952. events: {
  953. click: function (event) {
  954. findYFGLDetail();
  955. }
  956. }
  957. },
  958. title: null,
  959. pane: {
  960. center: ['50%', '100%'],
  961. size: '200%',
  962. startAngle: -90,
  963. endAngle: 90,
  964. background: {
  965. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  966. innerRadius: '60%',
  967. outerRadius: '100%',
  968. shape: 'arc'
  969. }
  970. },
  971. tooltip: {
  972. enabled: false
  973. },
  974. // the value axis
  975. yAxis: {
  976. stops: [
  977. [0.1, '#55BF3B'], // green
  978. [0.3, '#33FFFF'], // 蓝
  979. [0.7, '#DDDF0D'], // yellow
  980. [0.9, '#DF5353'] // red
  981. ],
  982. lineWidth: 0,
  983. minorTickInterval: null,
  984. tickPixelInterval: 400,
  985. tickWidth: 0,
  986. title: {
  987. y: -10
  988. },
  989. labels: {
  990. y: 0
  991. },
  992. min: 0,
  993. max: 800,
  994. title: {
  995. text: null
  996. }
  997. },
  998. plotOptions: {
  999. solidgauge: {
  1000. dataLabels: {
  1001. y: 15,
  1002. borderWidth: 0,
  1003. useHTML: true
  1004. }
  1005. }
  1006. },
  1007. credits: {
  1008. enabled: false
  1009. },
  1010. series: [{
  1011. name: '应发功率(MW)',
  1012. data: [12],
  1013. dataLabels: {
  1014. format: '<div style="text-align:center"><span style="font-size:18px;color:' +
  1015. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  1016. '<span style="font-size:12px;color:silver">应发功率(MW)</span></div>'
  1017. },
  1018. tooltip: {
  1019. valueSuffix: ' '
  1020. }
  1021. }]
  1022. };
  1023. options8 = {
  1024. chart: {
  1025. renderTo: 'container8',
  1026. type: 'column',
  1027. //backgroundColor:'#BFDFFF',
  1028. //plotBackgroundColor:'#BFDFFF',
  1029. zoomType: 'x',
  1030. events: {
  1031. }
  1032. },title:null
  1033. ,
  1034. xAxis: {
  1035. type: 'category'
  1036. },
  1037. yAxis: [{
  1038. title: {
  1039. text: '发电量情况(万kWh)'
  1040. }
  1041. }],
  1042. legend: {
  1043. layout: 'vertical',
  1044. // backgroundColor: '#FFFFFF',
  1045. align: 'right',
  1046. verticalAlign: 'top',
  1047. floating: true
  1048. // shadow: true
  1049. // layout: 'vertical',
  1050. // align: 'right',
  1051. // verticalAlign: 'middle',
  1052. // borderWidth: 0
  1053. },
  1054. tooltip: {
  1055. shared:true
  1056. /*
  1057. ,
  1058. xDateFormat:'%Y-%m-%d'
  1059. formatter: function() {
  1060. return '<b>'+ this.series.name +'</b>:'+
  1061. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  1062. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  1063. }*/
  1064. },
  1065. credits: {
  1066. enabled: false
  1067. },
  1068. plotOptions: {
  1069. spline: {
  1070. dataLabels : {
  1071. enabled :false
  1072. },
  1073. // pointPadding: 0.2,
  1074. borderWidth: 0
  1075. },
  1076. column: {
  1077. pointPadding: 0.2,
  1078. borderWidth: 0
  1079. },
  1080. series: {
  1081. cursor: 'pointer',
  1082. marker: {
  1083. radius: 0,
  1084. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1085. }
  1086. }
  1087. },
  1088. series: [{
  1089. name: '月发电量(单位:万kWh)',
  1090. yAxis:0
  1091. },
  1092. {
  1093. name: '月计划发电量(单位:万kWh)',
  1094. yAxis:0
  1095. }, {
  1096. name: '年发电量(单位:万kWh)',
  1097. yAxis:0
  1098. },
  1099. {
  1100. name: '年计划发电量(单位:万kWh)',
  1101. yAxis:0
  1102. }]
  1103. };
  1104. options9 = {
  1105. chart: {
  1106. type: 'spline',
  1107. //backgroundColor:'#BFDFFF',
  1108. //plotBackgroundColor:'#BFDFFF',
  1109. zoomType: 'x',
  1110. events: {
  1111. }
  1112. },title:null
  1113. ,
  1114. subtitle: {
  1115. text: ''
  1116. },
  1117. xAxis: {
  1118. labels: {
  1119. align: 'center',
  1120. formatter: function() {
  1121. return Highcharts.dateFormat('%H<br/>%M', this.value);
  1122. }
  1123. },
  1124. type: 'datetime'
  1125. },
  1126. yAxis: [{
  1127. title: {
  1128. text: '功率数值(MW)'
  1129. }
  1130. }],
  1131. legend: {
  1132. layout: 'vertical',
  1133. // backgroundColor: '#FFFFFF',
  1134. align: 'right',
  1135. verticalAlign: 'top',
  1136. floating: true
  1137. // shadow: true
  1138. // layout: 'vertical',
  1139. // align: 'right',
  1140. // verticalAlign: 'middle',
  1141. // borderWidth: 0
  1142. },
  1143. tooltip: {
  1144. crosshairs:{//控制十字线
  1145. width:2
  1146. },
  1147. shared:true,
  1148. xDateFormat:'%Y-%m-%d %H:%M'
  1149. /*formatter: function() {
  1150. return '<b>'+ this.series.name +'</b>:'+
  1151. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  1152. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  1153. }*/
  1154. },
  1155. credits: {
  1156. enabled: false
  1157. },
  1158. plotOptions: {
  1159. spline: {
  1160. dataLabels : {
  1161. enabled :false
  1162. },
  1163. // pointPadding: 0.2,
  1164. borderWidth: 0
  1165. },
  1166. series: {
  1167. cursor: 'pointer',
  1168. marker: {
  1169. radius: 0,
  1170. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1171. }
  1172. }
  1173. },
  1174. series: [
  1175. ]
  1176. };
  1177. options10 = {
  1178. chart: {
  1179. type: 'spline',
  1180. //backgroundColor:'#BFDFFF',
  1181. //plotBackgroundColor:'#BFDFFF',
  1182. zoomType: 'x',
  1183. events: {
  1184. }
  1185. },title:null
  1186. ,
  1187. subtitle: {
  1188. text: ''
  1189. },
  1190. xAxis: {
  1191. labels: {
  1192. align: 'center',
  1193. formatter: function() {
  1194. return Highcharts.dateFormat('%H<br/>%M', this.value);
  1195. }
  1196. },
  1197. type: 'datetime'
  1198. },
  1199. yAxis: [{
  1200. title: {
  1201. text: '平均风速(m/s)'
  1202. }
  1203. }],
  1204. legend: {
  1205. layout: 'vertical',
  1206. // backgroundColor: '#FFFFFF',
  1207. align: 'right',
  1208. verticalAlign: 'top',
  1209. floating: true
  1210. // shadow: true
  1211. // layout: 'vertical',
  1212. // align: 'right',
  1213. // verticalAlign: 'middle',
  1214. // borderWidth: 0
  1215. },
  1216. tooltip: {
  1217. crosshairs:{//控制十字线
  1218. width:2
  1219. },
  1220. shared:true,
  1221. xDateFormat:'%Y-%m-%d %H:%M'
  1222. /*formatter: function() {
  1223. return '<b>'+ this.series.name +'</b>:'+
  1224. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  1225. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  1226. }*/
  1227. },
  1228. credits: {
  1229. enabled: false
  1230. },
  1231. plotOptions: {
  1232. spline: {
  1233. dataLabels : {
  1234. enabled :false
  1235. },
  1236. // pointPadding: 0.2,
  1237. borderWidth: 0
  1238. },
  1239. series: {
  1240. cursor: 'pointer',
  1241. marker: {
  1242. radius: 0,
  1243. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1244. }
  1245. }
  1246. },
  1247. series: [
  1248. ]
  1249. };
  1250. options11 = {
  1251. chart: {
  1252. renderTo: 'container11',
  1253. type: 'column',
  1254. //backgroundColor:'#BFDFFF',
  1255. //plotBackgroundColor:'#BFDFFF',
  1256. zoomType: 'x',
  1257. events: {
  1258. }
  1259. },title:null
  1260. ,
  1261. xAxis: {
  1262. type: 'category'
  1263. },
  1264. yAxis: [{
  1265. title: {
  1266. text: '发电量(万kWh)'
  1267. }
  1268. }],
  1269. legend: {
  1270. layout: 'vertical',
  1271. // backgroundColor: '#FFFFFF',
  1272. align: 'right',
  1273. verticalAlign: 'top',
  1274. floating: true
  1275. // shadow: true
  1276. // layout: 'vertical',
  1277. // align: 'right',
  1278. // verticalAlign: 'middle',
  1279. // borderWidth: 0
  1280. },
  1281. tooltip: {
  1282. shared:true,
  1283. xDateFormat:'%Y-%m-%d'
  1284. /*formatter: function() {
  1285. return '<b>'+ this.series.name +'</b>:'+
  1286. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  1287. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  1288. }*/
  1289. },
  1290. credits: {
  1291. enabled: false
  1292. },
  1293. plotOptions: {
  1294. spline: {
  1295. dataLabels : {
  1296. enabled :false
  1297. },
  1298. // pointPadding: 0.2,
  1299. borderWidth: 0
  1300. },
  1301. column: {
  1302. pointPadding: 0.2,
  1303. borderWidth: 0
  1304. },
  1305. series: {
  1306. cursor: 'pointer',
  1307. marker: {
  1308. radius: 0,
  1309. symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
  1310. }
  1311. }
  1312. },
  1313. series: [{
  1314. name: '日发电量(单位:万kWh)',
  1315. yAxis:0
  1316. }, {
  1317. name: '日理论发电量(单位:万kWh)',
  1318. yAxis:0
  1319. }
  1320. ,
  1321. {
  1322. name: '上网电量(单位:万kWh)',
  1323. yAxis:0
  1324. },{
  1325. name: '购网电量(单位:万kWh)',
  1326. yAxis:0
  1327. }]
  1328. };
  1329. chart1 = new Highcharts.Chart(options1);
  1330. chart2 = new Highcharts.Chart(options2);
  1331. chart3 = new Highcharts.Chart(options3);
  1332. chart4 = new Highcharts.Chart(options4);
  1333. chart5 = new Highcharts.Chart(options5);
  1334. chart7= new Highcharts.Chart(options7);
  1335. wpInfoAjax();
  1336. window.setInterval(wpInfoAjax, 30000);
  1337. powerAjax();
  1338. setInterval(powerAjax, 24*60*60000);
  1339. realPowerAjax();
  1340. setInterval(realPowerAjax, 30*60000);
  1341. });
  1342. function goObjView(obj,type)
  1343. {
  1344. $("#wpId").val(obj);
  1345. if((type!=null && type!="" && type!=undefined) || type==0 )
  1346. {
  1347. setTab(1,type);
  1348. switch (type) {
  1349. case 0:
  1350. $("#hbgsdt").css("display","");
  1351. $("#cldt").css("display","none");
  1352. $("#kbdt").css("display","none");
  1353. $("#dxdt").css("display","none");
  1354. break;
  1355. case 1:
  1356. $("#hbgsdt").css("display","none");
  1357. $("#cldt").css("display","");
  1358. $("#kbdt").css("display","none");
  1359. $("#dxdt").css("display","none");
  1360. break;
  1361. case 2:
  1362. $("#hbgsdt").css("display","none");
  1363. $("#cldt").css("display","none");
  1364. $("#kbdt").css("display","");
  1365. $("#dxdt").css("display","none");
  1366. break;
  1367. case 3:
  1368. $("#hbgsdt").css("display","none");
  1369. $("#cldt").css("display","none");
  1370. $("#kbdt").css("display","none");
  1371. $("#dxdt").css("display","");
  1372. break;
  1373. case 4:
  1374. break;
  1375. case 5:
  1376. break;
  1377. }
  1378. }else{
  1379. if(obj=="0"){
  1380. $("#hbgs_bt").css("display","");
  1381. $("#cl_bt").css("display","none");
  1382. $("#kb_bt").css("display","none");
  1383. $("#dx_bt").css("display","none");
  1384. }else if(obj=="1"){
  1385. $("#hbgs_bt").css("display","none");
  1386. $("#cl_bt").css("display","");
  1387. $("#kb_bt").css("display","none");
  1388. $("#dx_bt").css("display","none");
  1389. }else if(obj=="2")
  1390. {
  1391. $("#hbgs_bt").css("display","none");
  1392. $("#cl_bt").css("display","none");
  1393. $("#kb_bt").css("display","");
  1394. $("#dx_bt").css("display","none");
  1395. }else if(obj=="3")
  1396. {
  1397. $("#hbgs_bt").css("display","none");
  1398. $("#cl_bt").css("display","none");
  1399. $("#kb_bt").css("display","none");
  1400. $("#dx_bt").css("display","");
  1401. }else if(obj=="4")
  1402. {
  1403. }
  1404. }
  1405. wpInfoAjax();
  1406. powerAjax();
  1407. realPowerAjax();
  1408. }