1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810 |
-
- var chart1;
- var chart2;
- var chart3;
- var chart4;
- var chart5;
- var chart6;
- var chart7;
- var chart8;
- var chart9;
- var chart10;
- var chart11;
- var options1;
- var options2;
- var options3;
- var options4;
- var options5;
- var options6;
- var options7;
- var options8;
- var options9;
- var options10;
- var options11;
- Highcharts.setOptions({
- global : {
- useUTC : false
- }
- });
- String.prototype.endWith=function(oString){
- var reg=new RegExp(oString+"$");
- return reg.test(this);
- }
- var bl1;
- var bl2;
- function stateimg(obj,type)
- {
- switch (type)
- {
- case 0:
- $(obj).attr("src",
- "/resource/images/hbsj/standBy_Station.fw.png");
- break;
- case 1:
- $(obj).attr("src",
- "/resource/images/hbsj/run_Station.fw.png");
- break;
- case 2:
- $(obj).attr("src",
- "/resource/images/hbsj/stop_Station.fw.png");
- break;
- case 3:
- $(obj).attr("src",
- "/resource/images/hbsj/interrupt_Station.fw.png");
- break;
- case 4:
- $(obj).attr("src",
- "/resource/images/hbsj/repair_Station.fw.png");
- break;
- case 5:
- $(obj).attr("src",
- "/resource/images/hbsj/limit_Station.fw.png");
- break;
- case 6:
- $(obj).attr("src",
- "/resource/images/hbsj/limit_Station.fw.png");
- break;
- }
- }
- function statebtnimg(obj,type)
- {
- switch (type)
- {
- case 0:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_green.png' width='31' height='44' />");
-
- break;
- case 1:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_blue.gif' width='31' height='44' />");
- break;
- case 2:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_red.png' width='31' height='44' />");
-
- break;
- case 3:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_gray.png' width='31' height='44' />");
-
- break;
- case 4:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_orange.png' width='31' height='44' />");
-
- break;
- case 5:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_pink.png' width='31' height='44' />");
-
- break;
- case 6:
- $(obj).html("<img src='/resource/images/hbsj/page_zmt_fj_pink.png' width='31' height='44' />");
-
- break;
- }
- }
- function wpInfoAjax() {
-
- var wpId = $("#wpId").val();
- $.ajax({
- url : "wpInfoAjax.action?wpId=" + wpId,
- type : "post",
- cache : false,
- dataType : "json",
- data : {},
- ifModified : false,
- success : function(res) {
- var zjrl = res["zjrl"];
- if(zjrl==44.85){
- $("#zjrl").html(148.5);
- }else{
- $("#zjrl").html(res["zjrl"]*10);
- }
- $("#aqts").html(res["aqts"]);
-
- $("#ydxkyxs").html(res["ysbklyl"]);
- $("#ysbklyl").html(res["ysbklyl"]);
-
- $("#ylyxs").html(res["ylyxs"]);
- $("#nlyxs").html(res["nlyxs"]);
-
- $("#rfdl").html(res["rfdl"]);
- $("#yfdl").html(res["yfdl"]);
- $("#nfdl").html(res["nfdl"]);
-
- $("#rswdl").html(res["rswdl"]);
- $("#yswdl").html(res["yswdl"]);
- $("#nswdl").html(res["nswdl"]);
-
- $("#jpeyht").html(res["jpeyht"]);
- $("#jpeyhl").html(res["jpeyhl"]);
- $("#jybm").html(res["jybm"]);
- $("#jys").html(res["jys"]);
-
- //作假
- // if(wpId=='0'){
- //
- //
- //
- // $("#whssy").html((res["whssy"]-1000.6429).toFixed(2));
- // $("#whssn").html((res["whssy"]-1000.6429).toFixed(2));
- //
- // $("#gzssy").html((res["gzssy"]-252.8915).toFixed(2));
- // $("#gzssn").html((res["gzssy"]-252.8915).toFixed(2));
- //
- // $("#xdssy").html((res["xdssy"]-1273.2357).toFixed(2));
- // $("#xdssn").html((res["xdssy"]-1273.2357).toFixed(2));
- //
- // $("#slssy").html((res["slssy"]-0.1315).toFixed(2));
- // $("#slssn").html((res["slssy"]-0.1315).toFixed(2));
- //
- // $("#xnssy").html((res["xnssy"]-1682.4901).toFixed(2));
- // $("#xnssn").html((res["xnssy"]-1682.4901).toFixed(2));
- // }else if(wpId.indexOf("CL_FDC")>-1){
- // $("#whssy").html((res["whssy"]-432.0266).toFixed(2));
- // $("#whssn").html((res["whssy"]-432.0266).toFixed(2));
- //
- // $("#gzssy").html((res["gzssy"]-42.9232).toFixed(2));
- // $("#gzssn").html((res["gzssy"]-42.9232).toFixed(2));
- //
- // $("#xdssy").html((res["xdssy"]-60.9183).toFixed(2));
- // $("#xdssn").html((res["xdssy"]-60.9183).toFixed(2));
- //
- // $("#slssy").html((res["slssy"]-0.0038).toFixed(2));
- // $("#slssn").html((res["slssy"]-0.0038).toFixed(2));
- //
- // $("#xnssy").html((res["xnssy"]-235.0909).toFixed(2));
- // $("#xnssn").html((res["xnssy"]-235.0909).toFixed(2));
- // }else if(wpId.indexOf("KB04_GC")>-1){
- // $("#whssy").html((res["whssy"]-122.9792).toFixed(2));
- // $("#whssn").html((res["whssy"]-122.9792).toFixed(2));
- //
- // $("#gzssy").html((res["gzssy"]-38.3588).toFixed(2));
- // $("#gzssn").html((res["gzssy"]-38.3588).toFixed(2));
- //
- // $("#xdssy").html((res["xdssy"]-212.3221).toFixed(2));
- // $("#xdssn").html((res["xdssy"]-212.3221).toFixed(2));
- //
- // $("#slssy").html((res["slssy"]).toFixed(2));
- // $("#slssn").html((res["slssy"]).toFixed(2));
- //
- // $("#xnssy").html((res["xnssy"]-300.8463).toFixed(2));
- // $("#xnssn").html((res["xnssy"]-300.8463).toFixed(2));
- // }else if(wpId.indexOf("KB_FDC")>-1){
- // $("#whssy").html((res["whssy"]-300.9792).toFixed(2));
- // $("#whssn").html((res["whssy"]-300.9792).toFixed(2));
- //
- // $("#gzssy").html((res["gzssy"]-100.3588).toFixed(2));
- // $("#gzssn").html((res["gzssy"]-100.3588).toFixed(2));
- //
- // $("#xdssy").html((res["xdssy"]-1000.3221).toFixed(2));
- // $("#xdssn").html((res["xdssy"]-1000.3221).toFixed(2));
- //
- // $("#slssy").html((res["slssy"]).toFixed(2));
- // $("#slssn").html((res["slssy"]).toFixed(2));
- //
- // $("#xnssy").html((res["xnssy"]-1000.8463).toFixed(2));
- // $("#xnssn").html((res["xnssy"]-1000.8463).toFixed(2));
- // }else if(wpId.indexOf("DX_FDC")>-1){
- // $("#whssy").html((res["whssy"]-145.9178).toFixed(2));
- // $("#whssn").html((res["whssy"]-145.9178).toFixed(2));
- //
- // $("#gzssy").html((res["gzssy"]-73.2744).toFixed(2));
- // $("#gzssn").html((res["gzssy"]-73.2744).toFixed(2));
- //
- // $("#xdssy").html((res["xdssy"]).toFixed(2));
- // $("#xdssn").html((res["xdssy"]).toFixed(2));
- //
- // $("#slssy").html((res["slssy"]-0.2589).toFixed(2));
- // $("#slssn").html((res["slssy"]-0.2589).toFixed(2));
- //
- // $("#xnssy").html((res["xnssy"]-146.6001).toFixed(2));
- // $("#xnssn").html((res["xnssy"]-146.6001).toFixed(2));
- // }else{
- $("#whss").html(res["whss"]);
- $("#whssy").html(res["whssy"]);
- $("#whssn").html(res["whssn"]);
- // $("#whssn").html(res["whssy"]);
-
- $("#gzss").html(res["gzss"]);
- $("#gzssy").html(res["gzssy"]);
- $("#gzssn").html(res["gzssn"]);
- // $("#gzssn").html(res["gzssy"]);
-
- $("#xdss").html(res["xdss"]);
- $("#xdssy").html(res["xdssy"]);
- $("#xdssn").html(res["xdssn"]);
- // $("#xdssn").html(res["xdssy"]);
-
- $("#slss").html(res["slss"]);
- $("#slssy").html(res["slssy"]);
- $("#slssn").html(res["slssn"]);
- // $("#slssn").html(res["slssy"]);
-
-
- $("#xnss").html(res["xnss"]);
- $("#xnssy").html(res["xnssy"]);
- $("#xnssn").html(res["xnssn"]);
- // $("#xnssn").html(res["xnssy"]);
-
- // }
- $("#whss").html(res["whss"]);
- $("#gzss").html(res["gzss"]);
- $("#xdss").html(res["xdss"]);
- $("#slss").html(res["slss"]);
- $("#xnss").html(res["xnss"]);
- //结束
-
- // $("#whss").html(res["whss"]);
- // $("#whssy").html(res["whssy"]);
- // $("#whssn").html(res["whssn"]);
- //
- // $("#gzss").html(res["gzss"]);
- // $("#gzssy").html(res["gzssy"]);
- // $("#gzssn").html(res["gzssn"]);
- //
- // $("#xdss").html(res["xdss"]);
- // $("#xdssy").html(res["xdssy"]);
- // $("#xdssn").html(res["xdssn"]);
- //
- // $("#slss").html(res["slss"]);
- // $("#slssy").html(res["slssy"]);
- // $("#slssn").html(res["slssn"]);
- //
- //
- // $("#xnss").html(res["xnss"]);
- // $("#xnssy").html(res["xnssy"]);
- // $("#xnssn").html(res["xnssn"]);
-
- $("#yxts").html(res["yxts"]);
- $("#djts").html(res["djts"]);
- $("#whts").html(res["whts"]);
- $("#gzts").html(res["gzts"]);
- $("#xdts").html(res["xdts"]);
- $("#lxts").html(res["lxts"]);
- $("#jrts").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
-
-
-
- $("#yxtsc").html(res["yxts"]);
- $("#djtsc").html(res["djts"]);
- $("#whtsc").html(res["whts"]);
- $("#gztsc").html(res["gzts"]);
- $("#xdtsc").html(res["xdts"]);
- $("#lxtsc").html(res["lxts"]);
- $("#jrtsc").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
-
- $("#yxtsk").html(res["yxts"]);
- $("#djtsk").html(res["djts"]);
- $("#whtsk").html(res["whts"]);
- $("#gztsk").html(res["gzts"]);
- $("#xdtsk").html(res["xdts"]);
- $("#lxtsk").html(res["lxts"]);
- $("#jrtsk").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
-
- $("#yxtsk4").html(res["yxts"]);
- $("#djtsk4").html(res["djts"]);
- $("#whtsk4").html(res["whts"]);
- $("#gztsk4").html(res["gzts"]);
- $("#xdtsk4").html(res["xdts"]);
- $("#lxtsk4").html(res["lxts"]);
- $("#jrtsk4").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
-
- $("#yxtsd").html(res["yxts"]);
- $("#djtsd").html(res["djts"]);
- $("#whtsd").html(res["whts"]);
- $("#gztsd").html(res["gzts"]);
- $("#xdtsd").html(res["xdts"]);
- $("#lxtsd").html(res["lxts"]);
- $("#jrtsd").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
-
- $("#yxtss").html(res["yxts"]);
- $("#djtss").html(res["djts"]);
- $("#whtss").html(res["whts"]);
- $("#gztss").html(res["gzts"]);
- $("#xdtss").html(res["xdts"]);
- $("#lxtss").html(res["lxts"]);
- $("#jrtss").html(res["yxts"]+res["djts"]+res["whts"]+res["gzts"]+res["xdts"]+res["lxts"]);
- /**********************************************************************************************/
-
- statebtnimg("#cl_fczt", res["CL_FDC_FCZT"]);
- statebtnimg("#kb_fczt", res["KB_FDC_FCZT"]);
- statebtnimg("#dx_fczt", res["DX_FDC_FCZT"]);
- statebtnimg("#sy_fczt", res["SY_FDC_FCZT"]);
-
-
-
- /**********************************************************************************************/
- //悬浮层
- $("#CL_ZJTS").html(res["CL_FDC_ZJTS"]);
- $("#CL_ZJRL").html(res["CL_FDC_ZJRL"]*10);
- $("#CL_FS").html(res["CL_FDC_FS"]);
- $("#CL_RFDL").html(res["CL_FDC_RFDL"]);
- $("#CL_GL").html(res["CL_FDC_GL"]);
-
- $("#KB_ZJTS").html(res["KB_FDC_ZJTS"]);
- $("#KB_FS").html(res["KB_FDC_FS"]);
- $("#KB_RFDL").html(res["KB_FDC_RFDL"]);
- $("#KB_GL").html(res["KB_FDC_GL"]);
-
- $("#DX_ZJTS").html(res["DX_FDC_ZJTS"]);
- $("#DX_ZJRL").html(res["DX_FDC_ZJRL"]*10);
- $("#DX_FS").html(res["DX_FDC_FS"]);
- $("#DX_RFDL").html(res["DX_FDC_RFDL"]);
- $("#DX_GL").html(res["DX_FDC_GL"]);
-
-
- $("#KB_SIQI_ZJTS").html(res["KB_SIQI_ZJTS"]);
- $("#KB_SIQI_ZJRL").html(res["KB_SIQI_ZJRL"]);
- $("#KB_SIQI_RFDL").html(res["KB_SIQI_RFDL"]);
- $("#KB_SIQI_FS").html(res["KB_SIQI_FS"]);
- $("#KB_SIQI_GL").html(res["KB_SIQI_GL"]);
-
- $("#SY_ZJTS").html(res["SY_FDC_ZJTS"]);
- $("#SY_ZJRL").html(res["SY_FDC_ZJRL"]*10);
- $("#SY_FS").html(res["SY_FDC_FS"]);
- $("#SY_RFDL").html(res["SY_FDC_RFDL"]);
- $("#SY_GL").html(res["SY_FDC_GL"]);
-
- /**********************************************************************************************/
- if(chart3.series[0])
- {
- var point = chart3.series[0].points[0];
- point.update(res["fs"]);
- }
- if(chart4.series[0])
- {
- point = chart4.series[0].points[0];
- point.update(res["llgl"]);
- }
- if(chart5.series[0])
- {
- point = chart5.series[0].points[0];
-
- if(res["sjgl"]<0)
- {
- point.update(res["yfgl"]);
- }else
- {
- point.update(res["sjgl"]);
- }
-
- }
- if(chart7.series[0])
- {
- point = chart7.series[0].points[0];
- point.update(res["yfgl"]);
- }
-
- /****************************************/
-
- var jh=[];
- var sj=[];
- var bl=[];
-
- jh.push(res["yfdljh"]);
- jh.push(res["nfdljh"]);
-
- sj.push(res["yfdl"]);
- sj.push(res["nfdl"]);
-
- bl.push("月计划完成率"+res["ywcl"]+"%");
- bl.push("年计划完成率"+res["nwcl"]+"%");
-
-
- options6.series[0].data = jh;
- options6.series[1].data = sj;
- //options6.series[2].data = bl;
-
- if(bl1!=res["ywcl"])
- {
- bl1=res["ywcl"];
- bl2=res["nwcl"];
- options6.xAxis.categories=bl
- chart6 = new Highcharts.Chart(options6);
- }else if(bl2!=res["nwcl"])
- {
- bl1=res["ywcl"];
- bl2=res["nwcl"];
- options6.xAxis.categories=bl;
- chart6 = new Highcharts.Chart(options6);
- }
- }
- });
- }
- /*var yfdlForC2 = [];
- var swdlForC2 = [];
- var gwdlForC2 = [];
- var lldlForC2 = [];
- var xtimeForC2 = [];*/
- function powerAjax() {
- var wpId = $("#wpId").val();
- var url = "powerAjax.action?wpId=" + wpId;
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- async : false,
- data : {},
- ifModified : false,
- success : function(result) {
- var yfdl = [];
- var swdl = [];
- var gwdl = [];
- var lldl = [];
-
- var xtimex = [];
- $.each(result, function(m, obj) {
-
- if (obj.value1 != null) {
-
- yfdl.push( parseFloat(obj.value1) );
- }
- if (obj.value2 != null) {
- swdl.push( parseFloat(obj.value2) );
- }
- if (obj.value3 != null) {
- gwdl.push( parseFloat(obj.value3) );
-
- //ycgl.push([ obj.time, parseFloat(obj.wggl) ]);
- }
- if (obj.value4 != null) {
- lldl.push( parseFloat(obj.value4) );
-
- //ycgl.push([ obj.time, parseFloat(obj.wggl) ]);
- }
- if(obj.timestr!="")
- {
-
- xtimex.push(obj.timestr);
- }else
- {
-
- xtimex.push("");
- }
- });
- //alert(xtime.length);
- options2.series[0].data = yfdl;
- options2.series[1].data = lldl;
- options2.series[2].data = swdl;
- options2.series[3].data = gwdl;
- options2.xAxis.categories = xtimex;
- chart2 = new Highcharts.Chart(options2);
- }
- });
- }
- var yfgl = [];
- var sjgl = [];
- var ycgl = [];
- var pjfs = [];
- var lvgl = [];
- var bzgl = [];
- var zygl = [];
- var xtime=[];
- var yfgl1 = [];
- var sjgl1 = [];
- var ycgl1 = [];
- var pjfs1 = [];
- var bzgl1 = [];
- var yfgl2 = [];
- var sjgl2 = [];
- var ycgl2 = [];
- var pjfs2 = [];
- var bzgl2 = [];
- var xtime1=[];
- function realPowerAjax() {
- var wpId = $("#wpId").val();
- //console.log(wpId);
- var url = "realPowerAjax.action?wpId=" + wpId;
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {},
- ifModified : false,
- success : function(result) {
- yfgl = [];
- sjgl = [];
- ycgl = [];
- pjfs = [];
- lvgl = [];
- bzgl = [];
- zygl = [];
- xtime=[];
-
- yfgl1 = [];
- sjgl1 = [];
- ycgl1 = [];
- pjfs1 = [];
- bzgl1 = [];
-
- yfgl2 = [];
- sjgl2 = [];
- ycgl2 = [];
- pjfs2 = [];
- bzgl2 = [];
- xtime1=[];
-
- var index=0;
- var count=0;
- var vindex=0;
- $.each(result, function(m, obj) {
- //if(m == result.length -1){
- if(m%2==0){
- if(index<obj.value7){
- index++;
- if(obj.value4!=null)
- {
- ycgl.push( parseFloat(obj.value4) );
- }else{
- ycgl.push( null );
- }
-
- }
- if(count<obj.value8 ){
- yfgl1.push( parseFloat(obj.value1) );
- sjgl1.push( parseFloat(obj.value2) );
- pjfs1.push( parseFloat(obj.value6) );
- bzgl1.push( parseFloat(obj.value5) );
- count++;
- }
-
- xtime.push(parseFloat(obj.time));
- }
-
- vindex=obj.value8%2==0?obj.value8/2:(obj.value8+1)/2;
- /*
- if(index<obj.value7){
- index++;
- if(obj.value4!=null)
- {
- ycgl2.push( parseFloat(obj.value4) );
- }else{
- ycgl2.push( null );
- }
-
- }
- if(count<obj.value8 ){
- yfgl2.push( parseFloat(obj.value1) );
- sjgl2.push( parseFloat(obj.value2) );
- pjfs2.push( parseFloat(obj.value6) );
- bzgl2.push( parseFloat(obj.value5) );
- count++;
- }
-
- xtime1.push(parseFloat(obj.time));*/
- });
-
- index=0;
- count=0;
- $.each(result, function(m, obj) {
- //if(m == result.length -1){
- if(index<obj.value7){
- index++;
- if(obj.value4!=null)
- {
- ycgl2.push( parseFloat(obj.value4) );
- }else{
- ycgl2.push( null );
- }
-
- }
- if(count<obj.value8 ){
- yfgl2.push( parseFloat(obj.value1) );
- sjgl2.push( parseFloat(obj.value2) );
- pjfs2.push( parseFloat(obj.value6) );
- bzgl2.push( parseFloat(obj.value5) );
- count++;
- }
-
- xtime1.push(parseFloat(obj.time));
- });
-
- for(var i=0;i<vindex;i++){
- yfgl.push(yfgl1[i]);
- sjgl.push(sjgl1[i]);
- pjfs.push(pjfs1[i]);
- bzgl.push(bzgl1[i]);
- }
- // alert(new Date(xtime[47]));
- // alert(yfgl[47]);
- options1.series[0].data = yfgl;//理论功率
- options1.series[1].data = bzgl;
- options1.series[2].data = sjgl;
- // options1.series[3].data = ycgl;
- //options1.series[2].visible=false;
- options1.series[3].data = pjfs;
- //options1.series[4].data = lvgl;
- //options1.series[4].visible=false;
- //options1.series[5].data = bzgl;
- //options1.series[5].visible=false;
- //options1.series[6].data = zygl;
- //options1.series[6].visible=false;
-
- options1.xAxis.categories = xtime;
- chart1 = new Highcharts.Chart(options1);
-
- /* if(wpId.endWith("FDC") || wpId=="" || wpId=="-1" || wpId=="0"){
- chart1.series[2].remove(true);
- chart1.addSeries({
- type: 'spline',
- name: '平均风速',
- data:pjfs,
- yAxis:1,
- color:'#FF350C'
- });
- chart1.yAxis[1].setTitle("平均风速",true);
- //alert(chart1.series[2].name);
- //chart1.options.series[2].name="平均风速";
-
- }
- else if(wpId.endWith("GDC") || wpId=="-2"){
- chart1.series[2].remove(true);
- chart1.addSeries({
- type: 'spline',
- name: '日照强度',
- data:pjfs,
- yAxis:1,
- color:'#FF350C'
- });
- chart1.yAxis[1].setTitle("日照强度",true);
- //chart1.options.series[2].name="平均辐射度";
- }*/
- }
- });
- }
- $(document).ready(
- function() {
-
- // $('#epiClock').epiclock({
- // format : ' Y年F月j日 D G:i:s'
- // }); // 绑定
- // $.epiclock();
- // ================================================
- // ================================================
- //Highcharts.setOptions(Highcharts.theme1);
- options1 = {
- colors: [
- '#00B259', //绿
- '#B20000', //红
- '#006DD9', //蓝
- '#000000', //黑
- '#FFBFFF',//藕荷色
- '#CC9900',//黄褐色
- '#FF8000'//橘黄
- ],
- chart: {
- renderTo: 'container1',//
- type: 'spline',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
-
- }
- },title:null,
-
- subtitle: {
- text: ''
- },
- xAxis: {
- labels: {
- align: 'center',
- formatter: function() {
- return Highcharts.dateFormat('%H<br/>%M', this.value);
- }
- },
- type: 'datetime'
- },
- yAxis: [{
- title: {
- //text: '功率数值(MW)'
- text:null
- }
- },{
- title:{
- //text :'风速'
- text:null
- },
- labels:{
- formatter: function(){
- return this.value;
- }
- },
- lineWidth : 1,
- opposite:true
- }],
- legend: {
- enabled:false,
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- x:-60,
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
- crosshairs:{//控制十字线
- width:2
- },
- shared:true,
- xDateFormat:'%Y-%m-%d %H:%M'
- /*formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [{
- type: 'spline',
- name: '理论功率(单位:MW)',
- yAxis:0
- },{
- type: 'spline',
- name: '保证功率(单位:MW)',
- yAxis:0
- },{
- type: 'spline',
- name: '实发功率(单位:MW)',
- yAxis:0
- },{
- type: 'spline',
- name: '平均风速(单位:m/s)',
- yAxis:1
- /* },
- {
- type: 'spline',
- name: '理论功率(单位:MW)',
- yAxis:0
- },{
- type: 'spline',
- name: '最优功率(单位:MW)',
- yAxis:0*/
- }]
- };
- options2 = {
- chart: {
- renderTo: 'container2',
- type: 'column',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
- click: function (event) {
-
-
- var num=parseInt(Math.abs(event.xAxis[0].value).toFixed(0));
-
- var temp=event.xAxis[0].axis.options.categories[num];
-
- var day=temp.substring(0,temp.length-1);
- powerDetailAjax(day,temp);
-
- }
- }
- },title:null
- ,
-
- xAxis: {
- type: 'category'
- },
- yAxis: [{
- title: {
- //text: '电量(万kWh)'
- text:null
- }
- }],
- legend: {
- enabled:false,
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- x:-60,
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
-
- shared:true,
- xDateFormat:'%Y-%m-%d'
- /*formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- column: {
- pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [{
-
- name: '日发电量(单位:万kWh)',
- yAxis:0
- }, {
-
- name: '日理论发电量(单位:万kWh)',
- yAxis:0
- },
-
- {
-
- name: '上网电量(单位:万kWh)',
- yAxis:0
- },{
-
- name: '购网电量(单位:万kWh)',
- yAxis:0
- }]
- };
-
- options3 = {
- chart: {
- renderTo: 'container3',
- type: 'solidgauge',
- events: {
- click: function (event) {
- findPJFSDetail();
- }
- }
- },
-
- title: null,
-
- pane: {
- center: ['50%', '100%'],
- size: '200%',
- startAngle: -90,
- endAngle: 90,
- background: {
- backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
- innerRadius: '60%',
- outerRadius: '100%',
- shape: 'arc'
- }
- },
- tooltip: {
- enabled: false
- },
-
- // the value axis
- yAxis: {
- stops: [
- [0.1, '#55BF3B'], // green
- [0.3, '#33FFFF'], // 蓝
- [0.7, '#DDDF0D'], // yellow
- [0.9, '#DF5353'] // red
- ],
- lineWidth: 0,
- minorTickInterval: null,
- tickPixelInterval: 400,
- tickWidth: 0,
- title: {
- y: -10
- },
- labels: {
- y: 0
- },
- min: 0,
- max: 50,
- title: {
- text: null
- }
- },
-
- plotOptions: {
- solidgauge: {
- dataLabels: {
- y: 20,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '风速(m/s)',
- data: [12],
- dataLabels: {
- y:20,
- format: '<div style="text-align:center"><span style="font-size:13px;color:' +
- ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
- '<span style="font-size:12px;color:silver">风速(m/s)</span></div>'
- },
- tooltip: {
- valueSuffix: ''
- }
- }]
-
- };
- options4 = {
- chart: {
- renderTo: 'container4',
- type: 'solidgauge',
- events: {
- click: function (event) {
- findBZGLDetail();
- }
- }
- },
-
- title: null,
-
- pane: {
- center: ['50%', '100%'],
- size: '200%',
- startAngle: -90,
- endAngle: 90,
- background: {
- backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
- innerRadius: '60%',
- outerRadius: '100%',
- shape: 'arc'
- }
- },
- tooltip: {
- enabled: false
- },
-
- // the value axis
- yAxis: {
- stops: [
- [0.1, '#55BF3B'], // green
- [0.3, '#33FFFF'], // 蓝
- [0.7, '#DDDF0D'], // yellow
- [0.9, '#DF5353'] // red
- ],
- lineWidth: 0,
- minorTickInterval: null,
- tickPixelInterval: 400,
- tickWidth: 0,
- title: {
- y: -10
- },
- labels: {
- y: 0
- },
- min: 0,
- max: 800,
- title: {
- text: null
- }
- },
-
- plotOptions: {
- solidgauge: {
- dataLabels: {
- y: 20,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '保证功率(MW)',
- data: [12],
- dataLabels: {
- y:20,
- format: '<div style="text-align:center"><span style="font-size:13px;color:' +
- ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
- '<span style="font-size:12px;color:silver">保证功率(MW)</span></div>'
- },
- tooltip: {
- valueSuffix: ' '
- }
- }]
-
-
- };
- options5 = {
- chart: {
- renderTo: 'container5',
- type: 'solidgauge',
- events: {
- click: function (event) {
- findSJGLDetail();
- }
- }
- },
-
- title: null,
-
- pane: {
- center: ['50%', '100%'],
- size: '200%',
- startAngle: -90,
- endAngle: 90,
- background: {
- backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
- innerRadius: '60%',
- outerRadius: '100%',
- shape: 'arc'
- }
- },
- tooltip: {
- enabled: false
- },
-
- // the value axis
- yAxis: {
- stops: [
- [0.1, '#55BF3B'], // green
- [0.3, '#33FFFF'], // 蓝
- [0.7, '#DDDF0D'], // yellow
- [0.9, '#DF5353'] // red
- ],
- lineWidth: 0,
- minorTickInterval: null,
- tickPixelInterval: 400,
- tickWidth: 0,
- title: {
- y: -10
- },
- labels: {
- y: 0
- },
- min: 0,
- max: 800,
- title: {
- text: null
- }
- },
-
- plotOptions: {
- solidgauge: {
- dataLabels: {
- y: 20,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '实发功率(MW)',
- data: [12],
- dataLabels: {
- y:20,
- format: '<div style="text-align:center"><span style="font-size:13px;color:' +
- ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
- '<span style="font-size:12px;color:silver">实发功率(MW)</span></div>'
- },
- tooltip: {
- valueSuffix: ' '
- }
- }]
-
- };
-
-
-
- options6 = { chart: {
- renderTo: 'container6',
-
- type: 'bar',
- events: {
- click: function (event) {
- getProjectInfo(event.srcElement);
- }
- }
- },
- title: {
- text: ''
- },
- xAxis: {
- categories: ['月发电量情况', '年发电量情况'],
- title: {
- text: null
- }
- },
- yAxis: {
- min: 0,
- color: '#55BF3B',
- title: {
- text: ' ',
- align: 'middle'
- }
- },
- plotOptions: {
- bar: {
- dataLabels: {
- enabled: true
- }
- }
- }, legend: '',
- credits: {
- enabled: false
- },
- series: [{
- name: '计划发电量(万kWh)',
- data: [107, 133]
- }, {
- name: '实际发电量(万kWh)',
- data: [133, 156],
- color: '#55BF3B',
- }]
- };;
- options7 = {
- chart: {
- renderTo: 'container7',
- type: 'solidgauge',
- events: {
- click: function (event) {
- findYFGLDetail();
- }
- }
-
- },
-
- title: null,
-
- pane: {
- center: ['50%', '100%'],
- size: '200%',
- startAngle: -90,
- endAngle: 90,
- background: {
- backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
- innerRadius: '60%',
- outerRadius: '100%',
- shape: 'arc'
- }
- },
- tooltip: {
- enabled: false
- },
-
- // the value axis
- yAxis: {
- stops: [
- [0.1, '#55BF3B'], // green
- [0.3, '#33FFFF'], // 蓝
- [0.7, '#DDDF0D'], // yellow
- [0.9, '#DF5353'] // red
- ],
- lineWidth: 0,
- minorTickInterval: null,
- tickPixelInterval: 400,
- tickWidth: 0,
- title: {
- y: -10
- },
- labels: {
- y: 0
- },
- min: 0,
- max: 800,
- title: {
- text: null
- }
- },
-
- plotOptions: {
- solidgauge: {
- dataLabels: {
- y: 20,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '理论功率(MW)',
- data: [12],
- dataLabels: {
- y:20,
- format: '<div style="text-align:center"><span style="font-size:13px;color:' +
- ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
- '<span style="font-size:11px;color:silver">理论功率(MW)</span></div>'
- },
- tooltip: {
- valueSuffix: ' '
- }
- }]
-
- };
-
- options8 = {
- chart: {
- renderTo: 'container8',
- type: 'column',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
-
- }
- },title:null
- ,
-
- xAxis: {
- type: 'category'
- },
- yAxis: [{
- title: {
- text: '发电量情况(万kWh)'
- }
- }],
- legend: {
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
-
- shared:true
- /*
- ,
- xDateFormat:'%Y-%m-%d'
- formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- column: {
- pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [{
-
- name: '月发电量(单位:万kWh)',
- yAxis:0
- },
- {
-
- name: '月计划发电量(单位:万kWh)',
- yAxis:0
- }, {
-
- name: '年发电量(单位:万kWh)',
- yAxis:0
- },
- {
-
- name: '年计划发电量(单位:万kWh)',
- yAxis:0
- }]
- };
- options9 = {
-
- chart: {
-
- type: 'spline',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
-
- }
- },title:null
- ,
-
- subtitle: {
- text: ''
- },
- xAxis: {
- labels: {
- align: 'center',
- formatter: function() {
- return Highcharts.dateFormat('%H<br/>%M', this.value);
- }
- },
- type: 'datetime'
- },
- yAxis: [{
- title: {
- text: '功率数值(MW)'
- }
- }],
- legend: {
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
- crosshairs:{//控制十字线
- width:2
- },
- shared:true,
- xDateFormat:'%Y-%m-%d %H:%M'
- /*formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [
- ]
- };
- options10 = {
-
- chart: {
-
- type: 'spline',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
-
- }
- },title:null
- ,
-
- subtitle: {
- text: ''
- },
- xAxis: {
- labels: {
- align: 'center',
- formatter: function() {
- return Highcharts.dateFormat('%H<br/>%M', this.value);
- }
- },
- type: 'datetime'
- },
- yAxis: [{
- title: {
- text: '平均风速(m/s)'
- }
- }],
- legend: {
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
- crosshairs:{//控制十字线
- width:2
- },
- shared:true,
- xDateFormat:'%Y-%m-%d %H:%M'
- /*formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [
- ]
- };
- options11 = {
- chart: {
- renderTo: 'container11',
- type: 'column',
- //backgroundColor:'#BFDFFF',
- //plotBackgroundColor:'#BFDFFF',
- zoomType: 'x',
- events: {
-
- }
- },title:null
- ,
-
- xAxis: {
- type: 'category'
- },
- yAxis: [{
- title: {
- text: '发电量(万kWh)'
- }
- }],
- legend: {
- layout: 'vertical',
- // backgroundColor: '#FFFFFF',
- align: 'right',
- verticalAlign: 'top',
- floating: true
- // shadow: true
- // layout: 'vertical',
- // align: 'right',
- // verticalAlign: 'middle',
- // borderWidth: 0
- },
- tooltip: {
-
- shared:true,
- xDateFormat:'%Y-%m-%d'
- /*formatter: function() {
- return '<b>'+ this.series.name +'</b>:'+
- Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
- }*/
- },
- credits: {
- enabled: false
- },
- plotOptions: {
- spline: {
- dataLabels : {
- enabled :false
- },
- // pointPadding: 0.2,
- borderWidth: 0
- },
- column: {
- pointPadding: 0.2,
- borderWidth: 0
- },
- series: {
- cursor: 'pointer',
- marker: {
- radius: 0,
- symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
- }
- }
- },
- series: [{
-
- name: '日发电量(单位:万kWh)',
- yAxis:0
- }, {
-
- name: '日理论发电量(单位:万kWh)',
- yAxis:0
- }
- ,
- {
-
- name: '上网电量(单位:万kWh)',
- yAxis:0
- },{
-
- name: '购网电量(单位:万kWh)',
- yAxis:0
- }]
- };
- chart1 = new Highcharts.Chart(options1);
- chart2 = new Highcharts.Chart(options2);
- chart3 = new Highcharts.Chart(options3);
- chart4 = new Highcharts.Chart(options4);
- chart5 = new Highcharts.Chart(options5);
-
- chart7= new Highcharts.Chart(options7);
-
- wpInfoAjax();
- window.setInterval(wpInfoAjax, 30000);
- powerAjax();
- setInterval(powerAjax, 24*60*60000);
- realPowerAjax();
- setInterval(realPowerAjax, 30*60000);
- });
- function goObjView(obj,type)
- {
- $("#wpId").val(obj);
- //alert(obj);
- if((type!=null && type!="" && type!=undefined) || type==0 )
- {
- setTab(1,type);
- switch (type) {
- case 0:
- $("#hbgsdt").css("display","");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","none");
- $("#dxdt").css("display","none");
- $("#kbdt4").css("display","none");
- $("#sydt").css("display","none");
- break;
- case 1:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","");
- $("#kbdt").css("display","none");
- $("#kbdt4").css("display","none");
- $("#dxdt").css("display","none");
- $("#sydt").css("display","none");
- if("CL01_GC" == obj){
- $("#cl01").removeClass("page_cz_chongli_acr_name_b page_cz_chongli_no2");
- $("#cl01").addClass("page_cz_chongli_acr_name_b1 page_cz_chongli_no2");
- }else{
- $("#cl01").removeClass("page_cz_chongli_acr_name_b1 page_cz_chongli_no2");
- $("#cl01").addClass("page_cz_chongli_acr_name_b page_cz_chongli_no2");
- }
- if("CL02_GC" == obj){
- $("#cl02").removeClass("page_cz_chongli_name page_cz_chongli_no1");
- $("#cl02").addClass("page_cz_chongli_name1 page_cz_chongli_no1");
- }else{
- $("#cl02").removeClass("page_cz_chongli_name1 page_cz_chongli_no1");
- $("#cl02").addClass("page_cz_chongli_name page_cz_chongli_no1");
- }
- break;
- case 2:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","");
- $("#kbdt4").css("display","none");
- $("#dxdt").css("display","none");
- $("#sydt").css("display","none");
- if("KB01_GC" == obj){
- $("#kb01").removeClass("page_cz_kangbao_acr_name page_cz_kangbao_no1");
- $("#kb01").addClass("page_cz_kangbao_acr_name1 page_cz_kangbao_no1");
- }else{
- $("#kb01").removeClass("page_cz_kangbao_acr_name1 page_cz_kangbao_no1");
- $("#kb01").addClass("page_cz_kangbao_acr_name page_cz_kangbao_no1");
- }
- if("KB02_GC" == obj){
- $("#kb02").removeClass("page_cz_kangbao_acr_name_b page_cz_kangbao_no2");
- $("#kb02").addClass("page_cz_kangbao_acr_name_b1 page_cz_kangbao_no2");
- }else{
- $("#kb02").removeClass("page_cz_kangbao_acr_name_b1 page_cz_kangbao_no2");
- $("#kb02").addClass("page_cz_kangbao_acr_name_b page_cz_kangbao_no2");
- }
- if("KB03_GC" == obj){
- $("#kb03").removeClass("page_cz_kangbao_acr_name page_cz_kangbao_no3");
- $("#kb03").addClass("page_cz_kangbao_acr_name1 page_cz_kangbao_no3");
- }else{
- $("#kb03").removeClass("page_cz_kangbao_acr_name1 page_cz_kangbao_no3");
- $("#kb03").addClass("page_cz_kangbao_acr_name page_cz_kangbao_no3");
- }
- break;
- case 3:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","none");
- $("#kbdt4").css("display","");
- $("#dxdt").css("display","none");
- $("#sydt").css("display","none");
- if("KB04_GC" == obj){
- $("#kb04").removeClass("page_cz_kangbao_name page_cz_kangbao_no4");
- $("#kb04").addClass("page_cz_kangbao_name1 page_cz_kangbao_no4");
- }else{
- $("#kb04").removeClass("page_cz_kangbao_name1 page_cz_kangbao_no4");
- $("#kb04").addClass("page_cz_kangbao_name page_cz_kangbao_no4");
- }
-
- break;
- case 4:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","none");
- $("#kbdt4").css("display","none");
- $("#dxdt").css("display","");
- $("#sydt").css("display","none");
- break;
-
- case 5:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","none");
- $("#kbdt4").css("display","none");
- $("#dxdt").css("display","none");
- $("#sydt").css("display","");
-
- break;
- }
- }else{
- if(obj=="0"){
- $("#hbgs_bt").css("display","");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","none");
- $("#dx_bt").css("display","none");
- $("#sy_bt").css("display","none");
- }else if(obj=="1"){
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","");
- $("#kb_bt").css("display","none");
- $("#dx_bt").css("display","none");
- $("#sy_bt").css("display","none");
- }else if(obj=="2"){
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","");
- $("#dx_bt").css("display","none");
- $("#sy_bt").css("display","none");
- }else if(obj=="5"){
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","none");
- $("#dx_bt").css("display","none");
- $("#sy_bt").css("display","");
- }else if(obj=="4") {
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","none");
- $("#dx_bt").css("display","");
- $("#sy_bt").css("display","none");
- }
- }
-
- wpInfoAjax();
- powerAjax();
- realPowerAjax();
- }
|