desktop.js 43 KB

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