12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577 |
- 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/point-green.png' width='29' height='29' />");
-
- break;
- case 1:
- $(obj).html("<img src='/resource/images/hbsj/point-blue.png' width='29' height='29' />");
- break;
- case 2:
- $(obj).html("<img src='/resource/images/hbsj/point-red.png' width='29' height='29' />");
-
- break;
- case 3:
- $(obj).html("<img src='/resource/images/hbsj/point-black.png' width='29' height='29' />");
-
- break;
- case 4:
- $(obj).html("<img src='/resource/images/hbsj/point-orange.png' width='29' height='29' />");
-
- break;
- case 5:
- $(obj).html("<img src='/resource/images/hbsj/point-pink.png' width='29' height='29' />");
-
- break;
- case 6:
- $(obj).html("<img src='/resource/images/hbsj/point-pink.png' width='29' height='29' />");
- 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) {
- $("#zjrl").html(res["zjrl"]);
- $("#aqts").html(res["aqts"]);
-
- $("#ydxkyxs").html(res["ydxkyxs"]);
- $("#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"]);
-
- $("#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"]);
- /**********************************************************************************************/
-
- statebtnimg("#fs_fczt", res["FS_FDC_FCZT"]);
- statebtnimg("#bz_fczt", res["BZ_FDC_FCZT"]);
- statebtnimg("#dbs_fczt", res["DBS_FDC_FCZT"]);
- statebtnimg("#xbq_fczt", res["XBQ_FDC_FCZT"]);
- statebtnimg("#tzs_fczt", res["TZS_FDC_FCZT"]);
- statebtnimg("#xc_fczt", res["XC_FDC_FCZT"]);
- statebtnimg("#lh_fczt", res["LH_FDC_FCZT"]);
- statebtnimg("#jq_fczt", 3);
- statebtnimg("#bs_fczt", 3);
- statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]);
- statebtnimg("#wf_fczt", 3);
- statebtnimg("#ym_fczt", 3);
- statebtnimg("#ty_fczt", 3);
- statebtnimg("#al_fczt", 3);
-
- //statebtnimg("#jq_fczt", res["JQ_FDC_FCZT"]);
- //statebtnimg("#bs_fczt", res["BS_FDC_FCZT"]);
- //statebtnimg("#ql_fczt", res["QL_FDC_FCZT"]);
- //statebtnimg("#wf_fczt", res["WF_FDC_FCZT"]);
- //statebtnimg("#ym_fczt", res["YM_FDC_FCZT"]);
- //statebtnimg("#ty_fczt", res["TY_FDC_FCZT"]);
- //statebtnimg("#al_fczt", res["AL_FDC_FCZT"]);
-
- /**********************************************************************************************/
-
- $("#FS_FDC_ZJRL").html(res["FS_FDC_ZJRL"]);
- $("#BZ_FDC_ZJRL").html(res["BZ_FDC_ZJRL"]);
- $("#DBS_FDC_ZJRL").html(res["DBS_FDC_ZJRL"]);
- $("#TZS_FDC_ZJRL").html(res["TZS_FDC_ZJRL"]);
- $("#XBQ_FDC_ZJRL").html(res["XBQ_FDC_ZJRL"]);
- $("#XC_FDC_ZJRL").html(res["XC_FDC_ZJRL"]);
- $("#LH_FDC_ZJRL").html(res["LH_FDC_ZJRL"]);
- $("#JQ_FDC_ZJRL").html(res["JQ_FDC_ZJRL"]);
- $("#BS_FDC_ZJRL").html(res["BS_FDC_ZJRL"]);
- $("#QL_FDC_ZJRL").html(res["QL_FDC_ZJRL"]);
- $("#WF_FDC_ZJRL").html(res["WF_FDC_ZJRL"]);
- $("#YM_FDC_ZJRL").html(res["YM_FDC_ZJRL"]);
- $("#TY_FDC_ZJRL").html(res["TY_FDC_ZJRL"]);
- $("#AL_FDC_ZJRL").html(res["AL_FDC_ZJRL"]);
- /**********************************************************************************************/
- $("#FS_FDC_ZJTS").html(res["FS_FDC_ZJTS"]);
- $("#BZ_FDC_ZJTS").html(res["BZ_FDC_ZJTS"]);
- $("#DBS_FDC_ZJTS").html(res["DBS_FDC_ZJTS"]);
- $("#TZS_FDC_ZJTS").html(res["TZS_FDC_ZJTS"]);
- $("#XBQ_FDC_ZJTS").html(res["XBQ_FDC_ZJTS"]);
- $("#XC_FDC_ZJTS").html(res["XC_FDC_ZJTS"]);
- $("#LH_FDC_ZJTS").html(res["LH_FDC_ZJTS"]);
- $("#JQ_FDC_ZJTS").html(res["JQ_FDC_ZJTS"]);
- $("#BS_FDC_ZJTS").html(res["BS_FDC_ZJTS"]);
- $("#QL_FDC_ZJTS").html(res["QL_FDC_ZJTS"]);
- $("#WF_FDC_ZJTS").html(res["WF_FDC_ZJTS"]);
- $("#YM_FDC_ZJTS").html(res["YM_FDC_ZJTS"]);
- $("#TY_FDC_ZJTS").html(res["TY_FDC_ZJTS"]);
- $("#AL_FDC_ZJTS").html(res["AL_FDC_ZJTS"]);
- /**********************************************************************************************/
-
-
- $("#FS_FDC_FS").html(res["FS_FDC_FS"]);
- $("#BZ_FDC_FS").html(res["BZ_FDC_FS"]);
- $("#DBS_FDC_FS").html(res["DBS_FDC_FS"]);
- $("#TZS_FDC_FS").html(res["TZS_FDC_FS"]);
- $("#XBQ_FDC_FS").html(res["XBQ_FDC_FS"]);
- $("#XC_FDC_FS").html(res["XC_FDC_FS"]);
- $("#LH_FDC_FS").html(res["LH_FDC_FS"]);
- $("#JQ_FDC_FS").html(res["JQ_FDC_FS"]);
- $("#BS_FDC_FS").html(res["BS_FDC_FS"]);
- $("#QL_FDC_FS").html(res["QL_FDC_FS"]);
- $("#WF_FDC_FS").html(res["WF_FDC_FS"]);
- $("#YM_FDC_FS").html(res["YM_FDC_FS"]);
- $("#TY_FDC_FS").html(res["TY_FDC_FS"]);
- $("#AL_FDC_FS").html(res["AL_FDC_FS"]);
- /**********************************************************************************************/
- $("#FS_FDC_GL").html(res["FS_FDC_GL"]);
- $("#BZ_FDC_GL").html(res["BZ_FDC_GL"]);
- $("#DBS_FDC_GL").html(res["DBS_FDC_GL"]);
- $("#TZS_FDC_GL").html(res["TZS_FDC_GL"]);
- $("#XBQ_FDC_GL").html(res["XBQ_FDC_GL"]);
- $("#XC_FDC_GL").html(res["XC_FDC_GL"]);
- $("#LH_FDC_GL").html(res["LH_FDC_GL"]);
- $("#JQ_FDC_GL").html(res["JQ_FDC_GL"]);
- $("#BS_FDC_GL").html(res["BS_FDC_GL"]);
- $("#QL_FDC_GL").html(res["QL_FDC_GL"]);
- $("#WF_FDC_GL").html(res["WF_FDC_GL"]);
- $("#YM_FDC_GL").html(res["YM_FDC_GL"]);
- $("#TY_FDC_GL").html(res["TY_FDC_GL"]);
- $("#AL_FDC_GL").html(res["AL_FDC_GL"]);
- /**********************************************************************************************/
- $("#FS_FDC_RFDL").html(res["FS_FDC_RFDL"]);
- $("#BZ_FDC_RFDL").html(res["BZ_FDC_RFDL"]);
- $("#DBS_FDC_RFDL").html(res["DBS_FDC_RFDL"]);
- $("#TZS_FDC_RFDL").html(res["TZS_FDC_RFDL"]);
- $("#XBQ_FDC_RFDL").html(res["XBQ_FDC_RFDL"]);
- $("#XC_FDC_RFDL").html(res["XC_FDC_RFDL"]);
- $("#LH_FDC_RFDL").html(res["LH_FDC_RFDL"]);
- $("#JQ_FDC_RFDL").html(res["JQ_FDC_RFDL"]);
- $("#BS_FDC_RFDL").html(res["BS_FDC_RFDL"]);
- $("#QL_FDC_RFDL").html(res["QL_FDC_RFDL"]);
- $("#WF_FDC_RFDL").html(res["WF_FDC_RFDL"]);
- $("#YM_FDC_RFDL").html(res["YM_FDC_RFDL"]);
- $("#TY_FDC_RFDL").html(res["TY_FDC_RFDL"]);
- $("#AL_FDC_RFDL").html(res["AL_FDC_RFDL"]);
- /**********************************************************************************************/
-
- $("#LN_ZJRL").html(res["LN_ZJRL"]);
- $("#HLJ_ZJRL").html(res["HLJ_ZJRL"]);
- $("#JL_ZJRL").html(res["JL_ZJRL"]);
- $("#MD_ZJRL").html(res["MD_ZJRL"]);
- /**********************************************************************************************/
- $("#LN_ZJTS").html(res["LN_ZJTS"]);
- $("#HLJ_ZJTS").html(res["HLJ_ZJTS"]);
- $("#JL_ZJTS").html(res["JL_ZJTS"]);
- $("#MD_ZJTS").html(res["MD_ZJTS"]);
- /**********************************************************************************************/
-
- $("#LN_FS").html(res["LN_FS"]);
- $("#HLJ_FS").html(res["HLJ_FS"]);
- $("#JL_FS").html(res["JL_FS"]);
- $("#MD_FS").html(res["MD_FS"]);
- /**********************************************************************************************/
-
- $("#LN_GL").html(res["LN_GL"]);
- $("#HLJ_GL").html(res["HLJ_GL"]);
- $("#JL_GL").html(res["JL_GL"]);
- $("#MD_GL").html(res["MD_GL"]);
- /**********************************************************************************************/
-
- $("#LN_RFDL").html(res["LN_RFDL"]);
- $("#HLJ_RFDL").html(res["HLJ_RFDL"]);
- $("#JL_RFDL").html(res["JL_RFDL"]);
- $("#MD_RFDL").html(res["MD_RFDL"]);
- /**********************************************************************************************/
- 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);
- }
- }
- });
- }
- 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 xtime = [];
- $.each(result, function(m, obj) {
- //if(m == result.length -1){
-
- 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!="")
- {
-
- xtime.push(obj.timestr);
- }else
- {
-
- xtime.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 = xtime;
- chart2 = new Highcharts.Chart(options2);
- }
- });
- }
- function realPowerAjax() {
- var wpId = $("#wpId").val();
-
- var url = "realPowerAjax.action?wpId=" + wpId;
- $.ajax({
- url : url,
- type : "post",
- cache : false,
- dataType : "json",
- data : {},
- ifModified : false,
- success : function(result) {
- var yfgl = [];
- var sjgl = [];
- var lvgl = [];
- var ycgl = [];
- var bzgl = [];
- var pjfs = [];
- var zygl = [];
- var xtime=[];
- var index=0;
- var count=0;
- $.each(result, function(m, obj) {
- //if(m == result.length -1){
- if(index<obj.value7){
- index++;
- if(obj.value4!=null)
- {
- ycgl.push( parseFloat(obj.value4) );
- }else
- {
- ycgl.push( null );
- }
-
-
-
- }
- if(count<obj.value8){
- yfgl.push( parseFloat(obj.value1) );
- sjgl.push( parseFloat(obj.value2) );
- lvgl.push( parseFloat(obj.value3) );
-
- bzgl.push( parseFloat(obj.value5) );
- pjfs.push( parseFloat(obj.value6) );
- zygl.push( parseFloat(obj.value9) );
- count++;
- }
- xtime.push(parseFloat(obj.time));
- });
-
- // alert(new Date(xtime[47]));
- // alert(yfgl[47]);
- options1.series[0].data = yfgl;
- options1.series[1].data = sjgl;
- options1.series[2].data = lvgl;
- //options1.series[0].visible=false;
- options1.series[3].data = ycgl;
- //options1.series[3].visible=false;
- options1.series[4].data = bzgl;
- //options1.series[4].visible=false;
- options1.series[5].data = zygl;
- //options1.series[5].visible=false;
-
- options1.series[6].data = pjfs;
- 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)'
- }
- },{
- title:{
- text :'风速'
- },
- labels:{
- formatter: function(){
- return this.value;
- }
- },
- lineWidth : 1,
- opposite:true
- }],
- legend: {
- 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: '预测功率(单位:MW)',
- yAxis:0
- },
- {
- type: 'spline',
- name: '保证功率(单位:MW)',
- yAxis:0
- },
- {
- type: 'spline',
- name: '最优功率(单位:MW)',
- yAxis:0
- },{
- type: 'spline',
- name: '平均风速',
- yAxis:1
- }]
- };
- 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)'
- }
- }],
- legend: {
- 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: 15,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '风速(m/s)',
- data: [12],
- dataLabels: {
- format: '<div style="text-align:center"><span style="font-size:18px;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: 15,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '保证功率(MW)',
- data: [12],
- dataLabels: {
- format: '<div style="text-align:center"><span style="font-size:18px;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: 15,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '实发功率(MW)',
- data: [12],
- dataLabels: {
- format: '<div style="text-align:center"><span style="font-size:18px;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,
- title: {
- text: ' ',
- align: 'middle'
- }
- },
- plotOptions: {
- bar: {
- dataLabels: {
- enabled: true
- }
- }
- }, legend: '',
- credits: {
- enabled: false
- },
- series: [{
- name: '计划发电量(万KW)',
- data: [107, 133]
- }, {
- name: '实际发电量(万KW)',
- data: [133, 156]
- }]
- };;
- 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: 15,
- borderWidth: 0,
- useHTML: true
- }
- }
- },
- credits: {
- enabled: false
- },
-
- series: [{
- name: '应发功率(MW)',
- data: [12],
- dataLabels: {
- format: '<div style="text-align:center"><span style="font-size:18px;color:' +
- ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
- '<span style="font-size:12px;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);
- 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");
- break;
- case 1:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","");
- $("#kbdt").css("display","none");
- $("#dxdt").css("display","none");
- break;
- case 2:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","");
- $("#dxdt").css("display","none");
- break;
- case 3:
- $("#hbgsdt").css("display","none");
- $("#cldt").css("display","none");
- $("#kbdt").css("display","none");
- $("#dxdt").css("display","");
- break;
- case 4:
- break;
- case 5:
- break;
- }
- }else{
- if(obj=="0"){
- $("#hbgs_bt").css("display","");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","none");
- $("#dx_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");
- }else if(obj=="2")
- {
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","");
- $("#dx_bt").css("display","none");
- }else if(obj=="3")
- {
- $("#hbgs_bt").css("display","none");
- $("#cl_bt").css("display","none");
- $("#kb_bt").css("display","none");
- $("#dx_bt").css("display","");
- }else if(obj=="4")
- {
-
- }
- }
-
- wpInfoAjax();
- powerAjax();
- realPowerAjax();
- }
|