desktop.js 43 KB

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