var chart1; var chart2; var chart3; var chart4; var chart5; var chart6; var chart7; var chart8; var chart9; var chart10; var chart11; var chart12; var options1; var options2; var options3; var options4; var options5; var options6; var options7; var options8; var options9; var options10; var options11; var options12; 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(""); break; case 1: $(obj).html(""); break; case 2: $(obj).html(""); break; case 3: $(obj).html(""); break; case 4: $(obj).html(""); break; case 5: $(obj).html(""); break; case 6: $(obj).html(""); 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"]*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"]); $("#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"]); /**********************************************************************************************/ statebtnimg("#cl_fczt", res["CL_FDC_FCZT"]); statebtnimg("#kb_fczt", res["KB_FDC_FCZT"]); statebtnimg("#dx_fczt", res["DX_FDC_FCZT"]); /**********************************************************************************************/ //悬浮层 $("#WNS_ZJTS").html(res["WNS_FDC_ZJTS"]); $("#WNS_ZJRL").html(res["WNS_FDC_ZJRL"]*10); $("#WNS_FS").html(res["WNS_FDC_FS"]); $("#WNS_RFDL").html(res["WNS_FDC_RFDL"]); $("#WNS_GL").html(res["WNS_FDC_GL"]); $("#YY_ZJTS").html(res["YY_FDC_ZJTS"]); $("#YY_ZJRL").html(res["YY_FDC_ZJRL"]*10); $("#YY_FS").html(res["YY_FDC_FS"]); $("#YY_RFDL").html(res["YY_FDC_RFDL"]); $("#YY_GL").html(res["YY_FDC_GL"]); $("#PL_ZJTS").html(res["PL_FDC_ZJTS"]); $("#PL_ZJRL").html(res["PL_FDC_ZJRL"]*10); $("#PL_FS").html(res["PL_FDC_FS"]); $("#PL_RFDL").html(res["PL_FDC_RFDL"]); $("#PL_GL").html(res["PL_FDC_GL"]); $("#GL_ZJTS").html(res["GL_FDC_ZJTS"]); $("#GL_ZJRL").html(res["GL_FDC_ZJRL"]*10); $("#GL_FS").html(res["GL_FDC_FS"]); $("#GL_RFDL").html(res["GL_FDC_RFDL"]); $("#GL_GL").html(res["GL_FDC_GL"]); $("#HY_ZJTS").html(res["HY_FDC_ZJTS"]); $("#HY_ZJRL").html(res["HY_FDC_ZJRL"]*10); $("#HY_FS").html(res["HY_FDC_FS"]); $("#HY_RFDL").html(res["HY_FDC_RFDL"]); $("#HY_GL").html(res["HY_FDC_GL"]); $("#FS_ZJTS").html(res["FS_FDC_ZJTS"]); $("#FS_ZJRL").html(res["FS_FDC_ZJRL"]*10); $("#FS_FS").html(res["FS_FDC_FS"]); $("#FS_RFDL").html(res["FS_FDC_RFDL"]); $("#FS_GL").html(res["FS_FDC_GL"]); $("#YG_ZJTS").html(res["YG_FDC_ZJTS"]); $("#YG_ZJRL").html(res["YG_FDC_ZJRL"]*10); $("#YG_FS").html(res["YG_FDC_FS"]); $("#YG_RFDL").html(res["YG_FDC_RFDL"]); $("#YG_GL").html(res["YG_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 pjfs = []; var xtimex = []; $.each(result, function(m, obj) { if (obj.value1 != null) { yfdl.push( parseFloat(obj.value1) ); }else{ yfdl.push(0.0); } if (obj.value2 != null) { pjfs.push( parseFloat(obj.value2) ); } if(obj.timestr!="") { xtimex.push(parseFloat(obj.timestr)); }else { xtimex.push(""); } }); options2.series[0].data = yfdl; options2.series[1].data = pjfs; 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" + "发电量:" + this.points[0].y +" 万kWh
" + "风速:" + this.points[1].y +" m/s"; } }, //图例样式设置 legend: { enabled: false, layout: 'vertical', align: 'left', x: 0, verticalAlign: 'top', y: 0, floating: true, backgroundColor: '#FFFFFF' }, series: [{ name: '发电量', color: '#76B8F4', type: 'column', yAxis: 0, //data: [50, 70, 100, 120, 145, 176, 135], tooltip: { formatter: function() { return this.y +"万kWh"; } } }, { name: '风速', color: '#F97E5D', type: 'spline', yAxis: 1, //data: [80, 22.5, 45, 90, 99, 35, 45 ], tooltip: { valueSuffix: ' m/s' } }] }; 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: '
{y}
' + '风速(m/s)
' }, 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: '
{y}
' + '保证功率(MW)
' }, 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: '
{y}
' + '实发功率(MW)
' }, 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: '
{y}
' + '理论功率(MW)
' }, tooltip: { valueSuffix: ' ' } }] }; options8 = { 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: 'right', formatter: function() { return Highcharts.dateFormat('%H
%M', this.value); } }, type: 'datetime' }, legend: { //enabled:true, layout: 'horizontal', // backgroundColor: '#FFFFFF', align: 'center', verticalAlign: 'bottom', x:-60, y:14, floating: true // shadow: true // layout: 'vertical', // align: 'right', // verticalAlign: 'middle', // borderWidth: 0 }, yAxis: [{ title: { text: '功率数值(MW)' // text:null } },{ title:{ text :'风速' //text:null }, labels:{ formatter: function(){ return this.value; } }, lineWidth : 1, opposite:true }], tooltip: { crosshairs:{//控制十字线 width:2 }, shared:true, xDateFormat:'%Y-%m-%d %H:%M' /*formatter: function() { return ''+ this.series.name +':'+ Highcharts.numberFormat(this.y, 2) +' 万kW
时间:'+ 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: '平均风速(单位:m/s)', yAxis:1 /* }, { type: 'spline', name: '理论功率(单位:MW)', yAxis:0 },{ type: 'spline', name: '最优功率(单位:MW)', yAxis:0*/ }] }; options9 = { colors:[ '#80B1FE', '#FF8B21', '#68E44E' ], chart: { renderTo: 'container8', type: 'column', //backgroundColor:'#BFDFFF', //plotBackgroundColor:'#BFDFFF', zoomType: 'x', }, title:null, xAxis: { type: 'category' }, yAxis: [{ title: { //text: '电量(万kWh)' text:null } }], legend: { //enabled:false, layout: 'vertical', align: 'right', verticalAlign: 'top', x:-60, floating: true }, tooltip: { shared:true, xDateFormat:'%Y-%m-%d' }, 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: year+'(单位:万kWh)', yAxis:0 }, { name: year1+'(单位:万kWh)', yAxis:0 }, { name: year2+'(单位:万kWh)', yAxis:0 }] }; chart1 = new Highcharts.Chart(options1); chart3 = new Highcharts.Chart(options3); chart4 = new Highcharts.Chart(options4); chart5 = new Highcharts.Chart(options5); chart7= new Highcharts.Chart(options7); chart8= new Highcharts.Chart(options8); //chart9= new Highcharts.Chart(options9); wpInfoAjax(); window.setInterval(wpInfoAjax, 5000); wpInfoAjax1(); setInterval(wpInfoAjax1, 1000); powerAjax(); setInterval(powerAjax, 24*60*60000); realPowerAjax(); setInterval(realPowerAjax, 30*60000); findYfdl(); setInterval(findYfdl, 30*60000); }); function goObjView(obj,type) { var wpId=$("#wpId").val(obj); //alert(wpId); if((type!=null && type!="" && type!=undefined) || type==0 ) { setTab(1,type); switch (type) { case 0: $("#sxgsdt").css("display",""); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 1: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display",""); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 2: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display",""); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 3: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display",""); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 4: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display",""); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 5: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display",""); $("#fsdt").css("display","none"); $("#ygdt").css("display","none"); break; case 6: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display",""); $("#ygdt").css("display","none"); break; case 7: $("#sxgsdt").css("display","none"); $("#wnsdt").css("display","none"); $("#gjbdt").css("display","none"); $("#htsdt").css("display","none"); $("#jfdt").css("display","none"); $("#fydt").css("display","none"); $("#fsdt").css("display","none"); $("#ygdt").css("display",""); break; } }else{ if(obj=="0"){ $("#sxgs_bt").css("display",""); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="1"){ $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display",""); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="2"){ $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display",""); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="3"){ $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display",""); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="4") { $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display",""); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="5") { $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display",""); $("#fs_dt").css("display","none"); $("#yg_dt").css("display","none"); }else if(obj=="6") { $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display",""); $("#yg_dt").css("display","none"); }else if(obj=="7") { $("#sxgs_bt").css("display","none"); $("#tq_bt").css("display","none"); $("#yy_bt").css("display","none"); $("#pl_bt").css("display","none"); $("#gl_bt").css("display","none"); $("#hy_bt").css("display","none"); $("#fs_dt").css("display","none"); $("#yg_dt").css("display",""); } } wpInfoAjax(); wpInfoAjax1(); powerAjax(); realPowerAjax(); findYfdl(); }