monitormain.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047
  1. var chart1;
  2. var chart2;
  3. var chart3;
  4. var chart4;
  5. var chart5;
  6. var chart6;
  7. var chart7;
  8. var chart8;
  9. var categor = ['0','1', '2', '3','4', '5', '6', '7', '8',
  10. '9', '10', '11', '12', '13','14', '15',
  11. '16', '17', '18','19', '20','21','22','23'];
  12. var options1;
  13. var options2;
  14. var options3;
  15. var options4;
  16. var options5;
  17. var options6;
  18. var options7;
  19. var options8;
  20. Highcharts.setOptions({
  21. global : {
  22. useUTC : false
  23. }
  24. });
  25. String.prototype.endWith=function(oString){
  26. var reg=new RegExp(oString+"$");
  27. return reg.test(this);
  28. };
  29. function realPowerCharBy24() {
  30. var url = "/matrix/findRealPowerCharBy24.action";
  31. $.ajax({
  32. url : url,
  33. type : "post",
  34. cache : false,
  35. dataType : "json",
  36. async : false,
  37. data : {},
  38. ifModified : false,
  39. success : function(result) {
  40. var yfdl = [];
  41. var gzdl = [];
  42. var whdl = [];
  43. var xddl = [];
  44. var qfdl = [];
  45. var sldl = [];
  46. var fs = [];
  47. var xtime = [];
  48. $.each(result, function(m, obj) {
  49. //if(m == result.length -1){
  50. if (obj.value1 != null) {
  51. yfdl.push( parseFloat(obj.value1) );
  52. }
  53. if (obj.value2 != null) {
  54. whdl.push( parseFloat(obj.value2) );
  55. }
  56. if (obj.value3 != null) {
  57. gzdl.push( parseFloat(obj.value3) );
  58. }
  59. if (obj.value4 != null) {
  60. xddl.push( parseFloat(obj.value4) );
  61. }
  62. if (obj.value5 != null) {
  63. qfdl.push( parseFloat(obj.value5) );
  64. }
  65. if (obj.value6 != null) {
  66. fs.push( parseFloat(obj.value6) );
  67. }
  68. if (obj.value7 != null ) {
  69. sldl.push( parseFloat(obj.value7) );
  70. }
  71. if(obj.time!= null )
  72. {
  73. xtime.push(parseFloat(obj.time));
  74. }
  75. });
  76. //alert(xtime.length);
  77. options2.series[0].data = yfdl;
  78. options2.series[1].data = gzdl;
  79. options2.series[2].data = whdl;
  80. options2.series[3].data = xddl;
  81. options2.series[4].data = qfdl;
  82. options2.series[5].data = sldl;
  83. options2.series[6].data = fs;
  84. options2.xAxis.categories = xtime;
  85. chart2 = new Highcharts.Chart(options2);
  86. }
  87. });
  88. }
  89. function powercompareChat() {
  90. var url = "/matrix/powercompareChat.action";
  91. $.ajax({
  92. url : url,
  93. type : "post",
  94. cache : false,
  95. dataType : "json",
  96. async : false,
  97. data : {},
  98. ifModified : false,
  99. success : function(result) {
  100. var lldl = [];
  101. var gfdl = [];
  102. $.each(result, function(m, obj) {
  103. if (obj.value1 != null) {
  104. lldl.push(obj.value1*-1-obj.value2);
  105. }
  106. if (obj.value2 != null) {
  107. gfdl.push(obj.value2);
  108. }
  109. });
  110. options1.series[0].data = lldl;
  111. options1.series[1].data = gfdl;
  112. chart1 = new Highcharts.Chart(options1);
  113. }
  114. });
  115. }
  116. function showChart() {
  117. /***************************************************************************************************/
  118. $.ajax( {
  119. url : "/matrix/fdcPieChart.action",
  120. type : "post",
  121. cache : false,
  122. dataType : "json",
  123. data : {},
  124. ifModified : false,
  125. success : function(result) {
  126. if (null!=result && result.length != 0) {
  127. eval(result);
  128. var xaixs = [];
  129. for ( var i = 0; i < result.length; i += 1) {
  130. var jsonObj1 = [ result[i].name, result[i].value1 ];
  131. xaixs.push(jsonObj1);
  132. }
  133. options3.series[0].data = xaixs;
  134. chart3 = new Highcharts.Chart(options3);
  135. }
  136. }
  137. });
  138. /***************************************************************************************************/
  139. $.ajax( {
  140. url : "/matrix/lossPieChart.action",
  141. type : "post",
  142. cache : false,
  143. dataType : "json",
  144. data : {},
  145. ifModified : false,
  146. success : function(result) {
  147. if (null!=result && result.length != 0) {
  148. eval(result);
  149. var xaixs = [];
  150. for ( var i = 0; i < result.length; i += 1) {
  151. var jsonObj1 = [ result[i].name, result[i].value1 ];
  152. xaixs.push(jsonObj1);
  153. }
  154. options4.series[0].data = xaixs;
  155. chart4 = new Highcharts.Chart(options4);
  156. }
  157. }
  158. });
  159. /***************************************************************************************************/
  160. }
  161. function pointChart(){
  162. $.ajax( {
  163. url : "/matrix/pointChart.action",
  164. type : "post",
  165. cache : false,
  166. dataType : "json",
  167. data : {},
  168. ifModified : false,
  169. success : function(result) {
  170. if (null!=result && result.length != 0) {
  171. eval(result);
  172. var xaixs = [];
  173. var xtime = [];
  174. for ( var i = 0; i < result.length; i += 1) {
  175. var jsonObj1 = [result[i].name,parseFloat(result[i].value1)];
  176. xaixs.push(jsonObj1);
  177. xtime.push(parseFloat(result[i].time));
  178. }
  179. options5.series[0].data = xaixs;
  180. options5.xAxis.categories = xtime;
  181. //alert(options5.series[0].data);
  182. options5.xAxis.minTickInterval=xtime.length/24;
  183. chart5 = new Highcharts.Chart(options5);
  184. }
  185. }
  186. });
  187. }
  188. /*************************************************************************************************/
  189. $(document).ready(function () {
  190. // options1 = {
  191. // chart: {renderTo: 'chatyc',type: 'bar'},
  192. // title: {text: ''},
  193. // subtitle: {text: ''},
  194. // xAxis: [{categories: categor,
  195. // reversed: false,
  196. // labels: {
  197. // step: 2
  198. // }
  199. // }, {
  200. // opposite: true,
  201. // reversed: false,
  202. // categories: categor,
  203. // linkedTo: 0,
  204. // labels: {
  205. // step: 2
  206. // }
  207. // }],
  208. // yAxis: {title: {
  209. // text: null
  210. // },
  211. // labels: {
  212. // formatter: function () {
  213. // return Math.abs(this.value) + 'MWh';
  214. // }
  215. // }
  216. // },
  217. // plotOptions: {
  218. // series: {
  219. // stacking: 'normal'
  220. // }
  221. // },
  222. // tooltip: {
  223. // formatter: function () {
  224. // return '<b>' + this.series.name + ',截止上一时刻 ' + this.point.category + '时</b><br/>' +
  225. // '电量: ' + Highcharts.numberFormat(Math.abs(this.point.y), 2)+'MWh';
  226. // }
  227. // },
  228. // series: [{
  229. // name: '理论电量',
  230. // data: []
  231. // }, {
  232. // name: '实发电量',
  233. // data: []
  234. // }]
  235. // };
  236. options1 = {
  237. chart: {renderTo: 'chatyc',type: 'bar'},
  238. colors: [
  239. '#000000', //理论发电量
  240. '#7cb5ec'//风速
  241. ],
  242. title: {text: ''},
  243. subtitle: {text: ''},
  244. xAxis: [{categories: categor,
  245. reversed: false,
  246. //linkedTo: 0,
  247. labels: {
  248. step: 2
  249. }
  250. }
  251. , {
  252. opposite: true,
  253. reversed: false,
  254. //categories: categor,
  255. //linkedTo: 0,
  256. labels: {
  257. step: 2
  258. }
  259. }
  260. ],
  261. yAxis: {title: {
  262. text: null
  263. },
  264. min: 0,
  265. labels: {
  266. formatter: function () {
  267. return Math.abs(this.value) + 'MWh';
  268. }
  269. }
  270. },
  271. plotOptions: {
  272. series: {
  273. stacking: 'normal'
  274. }
  275. },
  276. tooltip: {
  277. formatter: function () {
  278. console.log(this.series);
  279. var html = '<b>' + this.series.name + ',截止上一时刻 ' + this.point.category + '时</b><br/>';
  280. if(this.series.name=='理论电量'){
  281. html +='电量: ' + Highcharts.numberFormat(Math.abs(this.point.total), 2)+'MWh';
  282. }else{
  283. html +='电量: ' + Highcharts.numberFormat(Math.abs(this.point.y), 2)+'MWh';
  284. }
  285. return html;
  286. }
  287. },
  288. series: [{
  289. name: '理论电量',
  290. data: []
  291. }, {
  292. name: '实发电量',
  293. data: []
  294. }]
  295. };
  296. /*************************************************/
  297. options2 = {
  298. colors: [
  299. '#0BFEFA', //发电量
  300. '#FD0100',//检修
  301. '#FF7B16', //故障
  302. '#D201D8',//限电
  303. '#8085E9', //性能
  304. '#A6A6A6', //受累
  305. '#000000'//风速
  306. ],
  307. chart: {
  308. renderTo: 'glqx_Chart',
  309. type: 'column',
  310. //backgroundColor:'#BFDFFF',
  311. //plotBackgroundColor:'#BFDFFF',
  312. zoomType: 'x'
  313. },title:null ,
  314. xAxis: {
  315. type: 'datetime',
  316. labels: {
  317. align: 'center',
  318. formatter: function() {
  319. return Highcharts.dateFormat('%H<br/>%M', this.value);
  320. }
  321. }
  322. },
  323. yAxis: [{ // Primary yAxis
  324. labels: {
  325. format: '{value}万kw',
  326. style: {
  327. color: '#89A54E'
  328. }
  329. },
  330. title: {
  331. text: '电量',
  332. style: {
  333. color: '#89A54E'
  334. }
  335. }
  336. }, { // Secondary yAxis
  337. title: {
  338. text: '风速',
  339. style: {
  340. color: '#4572A7'
  341. }
  342. },
  343. labels: {
  344. format: '{value} m/s',
  345. style: {
  346. color: '#4572A7'
  347. }
  348. },
  349. opposite: true
  350. }],
  351. legend: {
  352. layout: 'vertical',
  353. // backgroundColor: '#FFFFFF',
  354. align: 'right',
  355. verticalAlign: 'top',
  356. x:-80,
  357. floating: true
  358. // shadow: true
  359. // layout: 'vertical',
  360. // align: 'right',
  361. // verticalAlign: 'middle',
  362. // borderWidth: 0
  363. },
  364. tooltip: {
  365. shared:true,
  366. xDateFormat:'%Y-%m-%d %H:%M'
  367. /*formatter: function() {
  368. return '<b>'+ this.series.name +'</b>:'+
  369. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  370. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  371. }*/
  372. },
  373. series: [{
  374. name: '日发电量(单位:万KWh)',
  375. yAxis:0
  376. },
  377. {name: '故障损失电量(单位:万KWh)',
  378. yAxis:0
  379. },{
  380. name: '检修损失电量(单位:万KWh)',
  381. yAxis:0
  382. },{
  383. name: '限电损失电量(单位:万KWh)',
  384. yAxis:0
  385. }
  386. ,{
  387. name: '性能损失电量(单位:万KWh)',
  388. yAxis:0
  389. },{
  390. name: '受累损失电量(单位:万KWh)',
  391. yAxis:0
  392. },{
  393. name: '风速(单位:m/s)',
  394. yAxis:1,
  395. type: 'spline'
  396. }]
  397. };
  398. /***************************************************************************************************/
  399. options3 = {
  400. chart : {
  401. renderTo : 'dltj_Chart_1',
  402. plotBackgroundColor : null,
  403. plotBorderWidth : null,
  404. plotShadow : false
  405. },
  406. title : {
  407. text : '发电量占比'
  408. },
  409. tooltip : {
  410. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  411. },
  412. plotOptions : {
  413. pie : {
  414. allowPointSelect : true,
  415. cursor : 'pointer',
  416. dataLabels : {
  417. enabled : false,
  418. color : '#000000',
  419. connectorColor : '#000000',
  420. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  421. },
  422. showInLegend : true
  423. }
  424. },
  425. legend : {
  426. layout : 'vertical',
  427. align : 'right',
  428. verticalAlign : 'bottom',
  429. borderWidth : 0
  430. },
  431. series : [ {
  432. type : 'pie',
  433. name : '占比',
  434. data : []
  435. } ]
  436. };
  437. /***************************************************************************************************/
  438. options4 = {
  439. colors: [
  440. '#8085E9', //性能
  441. '#FD0100',//检修
  442. '#FF7B16', //故障
  443. '#D201D8',//限电
  444. '#00ff20' //受累
  445. ],
  446. chart : {
  447. renderTo : 'dltj_Chart_2',
  448. plotBackgroundColor : null,
  449. plotBorderWidth : null,
  450. plotShadow : false
  451. },
  452. title : {
  453. text : '损失电量占比'
  454. },
  455. tooltip : {
  456. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  457. },
  458. plotOptions : {
  459. pie : {
  460. allowPointSelect : true,
  461. cursor : 'pointer',
  462. dataLabels : {
  463. enabled : false,
  464. color : '#000000',
  465. connectorColor : '#000000',
  466. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  467. },
  468. showInLegend : true
  469. }
  470. },
  471. legend : {
  472. layout : 'vertical',
  473. align : 'right',
  474. verticalAlign : 'bottom',
  475. borderWidth : 0
  476. },
  477. series : [ {
  478. type : 'pie',
  479. name : '占比',
  480. data : []
  481. } ]
  482. };
  483. /***************************************************************/
  484. options5 = {
  485. chart: {
  486. renderTo: 'pointChat',
  487. type: 'scatter',
  488. zoomType: 'xy'
  489. },
  490. title: {
  491. text: ''
  492. },
  493. xAxis: {
  494. type: 'datetime',
  495. labels: {
  496. align: 'center',
  497. formatter: function() {
  498. return Highcharts.dateFormat('%H:%M', this.value);
  499. }
  500. },
  501. showLastLabel: true
  502. },
  503. yAxis: {
  504. title: {
  505. text: '功率 (MW)'
  506. }
  507. },
  508. legend: {
  509. layout: 'vertical',
  510. align: 'left',
  511. verticalAlign: 'top',
  512. x: 100,
  513. y: 70,
  514. floating: true,
  515. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF',
  516. borderWidth: 1
  517. },
  518. plotOptions: {
  519. scatter: {
  520. marker: {
  521. radius: 2,
  522. states: {
  523. hover: {
  524. enabled: true,
  525. lineColor: 'rgb(100,100,100)'
  526. }
  527. }
  528. },
  529. states: {
  530. hover: {
  531. marker: {
  532. enabled: false
  533. }
  534. }
  535. },
  536. tooltip: {
  537. shared:true,
  538. xDateFormat:'%H:%M',
  539. pointFormat : '{point.name}<br/>实际出力<b>{point.y} MW</b>'
  540. }
  541. }
  542. },
  543. series: [{
  544. name: '河北新能源',
  545. color: 'rgba(119, 152, 191, .5)',
  546. turboThreshold:1500,
  547. data: []
  548. }]
  549. };
  550. /*******************************************************************/
  551. options6 = {
  552. chart: {
  553. renderTo: 'speedCL',
  554. type: 'solidgauge'
  555. },
  556. title: null,
  557. pane: {
  558. center: ['50%', '85%'],
  559. size: '170%',
  560. startAngle: -90,
  561. endAngle: 90,
  562. background: {
  563. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  564. innerRadius: '60%',
  565. outerRadius: '100%',
  566. shape: 'arc'
  567. }
  568. },
  569. tooltip: {
  570. enabled: false
  571. },
  572. // the value axis
  573. yAxis: {
  574. stops: [
  575. [0.1, '#55BF3B'], // green
  576. [0.5, '#DDDF0D'], // yellow
  577. [0.9, '#DF5353'] // red
  578. ],
  579. lineWidth: 0,
  580. minorTickInterval: null,
  581. tickPixelInterval: 400,
  582. tickWidth: 0,
  583. min: 0,
  584. max: 25,
  585. title: {
  586. y: 7,
  587. text: ''
  588. },
  589. labels: {
  590. y: 16
  591. }
  592. },
  593. plotOptions: {
  594. solidgauge: {
  595. dataLabels: {
  596. y: 22,
  597. borderWidth: 0,
  598. useHTML: true
  599. }
  600. }
  601. },
  602. credits: {
  603. enabled: false
  604. },series: [{
  605. name: '风速',
  606. data: [6.66],
  607. dataLabels: {
  608. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  609. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  610. '<span style="font-size:12px;color:silver">m/s</span></div>'
  611. },
  612. tooltip: {
  613. valueSuffix: 'm/s'
  614. }
  615. }]
  616. };
  617. /*******************************************************************/
  618. options7 = {
  619. chart: {
  620. renderTo: 'speedKB',
  621. type: 'solidgauge'
  622. },
  623. title: null,
  624. pane: {
  625. center: ['50%', '85%'],
  626. size: '170%',
  627. startAngle: -90,
  628. endAngle: 90,
  629. background: {
  630. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  631. innerRadius: '60%',
  632. outerRadius: '100%',
  633. shape: 'arc'
  634. }
  635. },
  636. tooltip: {
  637. enabled: false
  638. },
  639. // the value axis
  640. yAxis: {
  641. stops: [
  642. [0.1, '#55BF3B'], // green
  643. [0.5, '#DDDF0D'], // yellow
  644. [0.9, '#DF5353'] // red
  645. ],
  646. lineWidth: 0,
  647. minorTickInterval: null,
  648. tickPixelInterval: 400,
  649. tickWidth: 0,
  650. min: 0,
  651. max: 25,
  652. title: {
  653. y: 7,
  654. text: ''
  655. },
  656. labels: {
  657. y: 16
  658. }
  659. },
  660. plotOptions: {
  661. solidgauge: {
  662. dataLabels: {
  663. y: 22,
  664. borderWidth: 0,
  665. useHTML: true
  666. }
  667. }
  668. },
  669. credits: {
  670. enabled: false
  671. },series: [{
  672. name: '风速',
  673. data: [6.66],
  674. dataLabels: {
  675. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  676. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  677. '<span style="font-size:12px;color:silver">m/s</span></div>'
  678. },
  679. tooltip: {
  680. valueSuffix: 'm/s'
  681. }
  682. }]
  683. };
  684. /*******************************************************************/
  685. options8 = {
  686. chart: {
  687. renderTo: 'speedDX',
  688. type: 'solidgauge'
  689. },
  690. title: null,
  691. pane: {
  692. center: ['50%', '85%'],
  693. size: '170%',
  694. startAngle: -90,
  695. endAngle: 90,
  696. background: {
  697. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  698. innerRadius: '60%',
  699. outerRadius: '100%',
  700. shape: 'arc'
  701. }
  702. },
  703. tooltip: {
  704. enabled: false
  705. },
  706. // the value axis
  707. yAxis: {
  708. stops: [
  709. [0.1, '#55BF3B'], // green
  710. [0.5, '#DDDF0D'], // yellow
  711. [0.9, '#DF5353'] // red
  712. ],
  713. lineWidth: 0,
  714. minorTickInterval: null,
  715. tickPixelInterval: 400,
  716. tickWidth: 0,
  717. min: 0,
  718. max: 25,
  719. title: {
  720. y: 7,
  721. text: ''
  722. },
  723. labels: {
  724. y: 16
  725. }
  726. },
  727. plotOptions: {
  728. solidgauge: {
  729. dataLabels: {
  730. y: 22,
  731. borderWidth: 0,
  732. useHTML: true
  733. }
  734. }
  735. },
  736. credits: {
  737. enabled: false
  738. },series: [{
  739. name: '风速',
  740. data: [6.66],
  741. dataLabels: {
  742. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  743. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  744. '<span style="font-size:12px;color:silver">m/s</span></div>'
  745. },
  746. tooltip: {
  747. valueSuffix: 'm/s'
  748. }
  749. }]
  750. };
  751. /***************************************************************/
  752. realPowerCharBy24();
  753. showChart();
  754. wpAllInfoAjaxs() ;
  755. powercompareChat();
  756. pointChart();
  757. window.setInterval(realPowerCharBy24, 60000);
  758. window.setInterval(showChart, 60000);
  759. window.setInterval(wpAllInfoAjaxs, 60000);
  760. window.setInterval(powercompareChat, 60000);
  761. window.setInterval(pointChart, 60000);
  762. /*****************************************************************/
  763. });
  764. function getValueInfo(value)
  765. {
  766. if(value=="" || value==null || value==undefined )
  767. {
  768. return "0.0";
  769. }else
  770. {
  771. return value;
  772. }
  773. }
  774. function getValueToInt(value)
  775. {
  776. if(value=="" || value==null || value==undefined || value==0.0){
  777. return "0";
  778. }else{
  779. return value;
  780. }
  781. }
  782. /*********************************************************************************/
  783. function wpAllInfoAjaxs() {
  784. $.ajax( {
  785. url : "/matrix/wpAllInfoAjaxes.action",
  786. type : "post",
  787. cache : false,
  788. dataType : "json",
  789. data : {},
  790. ifModified : false,
  791. success : function(res) {
  792. /********************************************************************************************************/
  793. $("#CL_FDC_RFDL").html(getValueInfo(res["CL_FDC_RFDL"] ));
  794. $("#CL_FDC_LLFDL").html(getValueInfo(res["CL_FDC_LLFDL"] ));
  795. $("#CL_FDC_RSWDL").html(getValueInfo(res["CL_FDC_RSWDL"] ));
  796. $("#CL_FDC_SCADAFDL").html(getValueInfo(res["CL_FDC_SCADAFDL"] ));
  797. //$("#CL_FDC_YLYXS").html(getValueInfo(res["CL_FDC_YLYXS"] ));
  798. if(parseFloat(res["CL_FDC_FNLYL"])<80){
  799. $("#CL_FDC_YLYXS").attr("style","color:red");
  800. }
  801. $("#CL_FDC_YLYXS").html(getValueInfo(res["CL_FDC_FNLYL"] ));
  802. $("#CL_FDC_WHSS").html(getValueInfo(res["CL_FDC_WHSS"] ));
  803. $("#CL_FDC_FS").html(getValueInfo(res["CL_FDC_FS"] ));
  804. $("#CL_FDC_GZSS").html(getValueInfo(res["CL_FDC_GZSS"] ));
  805. $("#CL_FDC_GL").html(getValueInfo(res["CL_FDC_GL"] ));
  806. $("#CL_FDC_XDSS").html(getValueInfo(res["CL_FDC_XDSS"] ));
  807. $("#CL_FDC_LLGL").html(getValueInfo(res["CL_FDC_LLGL"] ));
  808. $("#CL_FDC_SLSS").html(getValueInfo(res["CL_FDC_SLSS"] ));
  809. $("#CL_FDC_YFGL").html(getValueInfo(res["CL_FDC_YFGL"] ));
  810. $("#CL_FDC_XNSS").html(getValueInfo(res["CL_FDC_XNSS"] ));
  811. $("#CL_FDC_FDL").html(getValueInfo(res["CL_FDC_RFDL"] ));
  812. $("#CL_FDC_GL1").html(getValueInfo(res["CL_FDC_GL"] ));
  813. $("#CL_FDC_JRTS").html(getValueToInt(res["CL_FDC_JRTS"] ));
  814. $("#CL_FDC_YXTS").html(getValueToInt(res["CL_FDC_YXTS"] ));
  815. $("#CL_FDC_GZTS").html(getValueToInt(res["CL_FDC_GZTS"] ));
  816. $("#CL_FDC_XDTS").html(getValueToInt(res["CL_FDC_XDTS"] ));
  817. $("#CL_FDC_DJTS").html(getValueToInt(res["CL_FDC_DJTS"] ));
  818. $("#CL_FDC_WHTS").html(getValueToInt(res["CL_FDC_WHTS"] ));
  819. $("#CL_FDC_LXTS").html(getValueToInt(res["CL_FDC_LXTS"] ));
  820. $("#DX_FDC_RFDL").html(getValueInfo(res["DX_FDC_RFDL"] ));
  821. $("#DX_FDC_LLFDL").html(getValueInfo(res["DX_FDC_LLFDL"] ));
  822. $("#DX_FDC_RSWDL").html(getValueInfo(res["DX_FDC_RSWDL"] ));
  823. $("#DX_FDC_SCADAFDL").html(getValueInfo(res["DX_FDC_SCADAFDL"] ));
  824. //$("#DX_FDC_YLYXS").html(getValueInfo(res["DX_FDC_YLYXS"] ));
  825. if(parseFloat(res["DX_FDC_FNLYL"])<80){
  826. $("#DX_FDC_YLYXS").attr("style","color:red");
  827. }
  828. $("#DX_FDC_YLYXS").html(getValueInfo(res["DX_FDC_FNLYL"] ));
  829. $("#DX_FDC_WHSS").html(getValueInfo(res["DX_FDC_WHSS"] ));
  830. $("#DX_FDC_FS").html(getValueInfo(res["DX_FDC_FS"] ));
  831. $("#DX_FDC_GZSS").html(getValueInfo(res["DX_FDC_GZSS"] ));
  832. $("#DX_FDC_GL").html(getValueInfo(res["DX_FDC_GL"] ));
  833. $("#DX_FDC_XDSS").html(getValueInfo(res["DX_FDC_XDSS"] ));
  834. $("#DX_FDC_LLGL").html(getValueInfo(res["DX_FDC_LLGL"] ));
  835. $("#DX_FDC_SLSS").html(getValueInfo(res["DX_FDC_SLSS"] ));
  836. $("#DX_FDC_YFGL").html(getValueInfo(res["DX_FDC_YFGL"] ));
  837. $("#DX_FDC_XNSS").html(getValueInfo(res["DX_FDC_XNSS"] ));
  838. $("#DX_FDC_FDL").html(getValueInfo(res["DX_FDC_RFDL"] ));
  839. $("#DX_FDC_GL1").html(getValueInfo(res["DX_FDC_GL"] ));
  840. $("#DX_FDC_JRTS").html(getValueToInt(res["DX_FDC_JRTS"] ));
  841. $("#DX_FDC_YXTS").html(getValueToInt(res["DX_FDC_YXTS"] ));
  842. $("#DX_FDC_GZTS").html(getValueToInt(res["DX_FDC_GZTS"] ));
  843. $("#DX_FDC_XDTS").html(getValueToInt(res["DX_FDC_XDTS"] ));
  844. $("#DX_FDC_DJTS").html(getValueToInt(res["DX_FDC_DJTS"] ));
  845. $("#DX_FDC_WHTS").html(getValueToInt(res["DX_FDC_WHTS"] ));
  846. $("#DX_FDC_LXTS").html(getValueToInt(res["DX_FDC_LXTS"] ));
  847. $("#KB_FDC_RFDL").html(getValueInfo(res["KB_FDC_RFDL"] ));
  848. $("#KB_FDC_LLFDL").html(getValueInfo(res["KB_FDC_LLFDL"] ));
  849. $("#KB_FDC_RSWDL").html(getValueInfo(res["KB_FDC_RSWDL"] ));
  850. $("#KB_FDC_SCADAFDL").html(getValueInfo(res["KB_FDC_SCADAFDL"] ));
  851. //$("#KB_FDC_YLYXS").html(getValueInfo(res["KB_FDC_YLYXS"] ));
  852. if(parseFloat(res["KB_FDC_FNLYL"])<80){
  853. $("#KB_FDC_YLYXS").attr("style","color:red");
  854. }
  855. $("#KB_FDC_YLYXS").html(getValueInfo(res["KB_FDC_FNLYL"] ));
  856. $("#KB_FDC_WHSS").html(getValueInfo(res["KB_FDC_WHSS"] ));
  857. $("#KB_FDC_FS").html(getValueInfo(res["KB_FDC_FS"] ));
  858. $("#KB_FDC_GZSS").html(getValueInfo(res["KB_FDC_GZSS"] ));
  859. $("#KB_FDC_GL").html(getValueInfo(res["KB_FDC_GL"] ));
  860. $("#KB_FDC_XDSS").html(getValueInfo(res["KB_FDC_XDSS"] ));
  861. $("#KB_FDC_LLGL").html(getValueInfo(res["KB_FDC_LLGL"] ));
  862. $("#KB_FDC_SLSS").html(getValueInfo(res["KB_FDC_SLSS"] ));
  863. $("#KB_FDC_YFGL").html(getValueInfo(res["KB_FDC_YFGL"] ));
  864. $("#KB_FDC_XNSS").html(getValueInfo(res["KB_FDC_XNSS"] ));
  865. $("#KB_FDC_FDL").html(getValueInfo(res["KB_FDC_RFDL"] ));
  866. $("#KB_FDC_GL1").html(getValueInfo(res["KB_FDC_GL"] ));
  867. $("#KB_FDC_JRTS").html(getValueToInt(res["KB_FDC_JRTS"] ));
  868. $("#KB_FDC_YXTS").html(getValueToInt(res["KB_FDC_YXTS"] ));
  869. $("#KB_FDC_GZTS").html(getValueToInt(res["KB_FDC_GZTS"] ));
  870. $("#KB_FDC_XDTS").html(getValueToInt(res["KB_FDC_XDTS"] ));
  871. $("#KB_FDC_DJTS").html(getValueToInt(res["KB_FDC_DJTS"] ));
  872. $("#KB_FDC_WHTS").html(getValueToInt(res["KB_FDC_WHTS"] ));
  873. $("#KB_FDC_LXTS").html(getValueToInt(res["KB_FDC_LXTS"] ));
  874. /********************************************************************************************************/
  875. $("#QYGS_RFDL").html(getValueInfo(res["QYGS_RFDL"] ));
  876. $("#QYGS_LLFDL").html(getValueInfo(res["QYGS_LLFDL"] ));
  877. $("#QYGS_RSWDL").html(getValueInfo(res["QYGS_RSWDL"] ));
  878. $("#QYGS_SCADAFDL").html(getValueInfo(res["QYGS_SCADAFDL"] ));
  879. //$("#QYGS_YLYXS").html(getValueInfo(res["QYGS_YLYXS"] ));
  880. if(parseFloat(res["QYGS_FNLYL"])<80){
  881. $("#QYGS_YLYXS").attr("style","color:red");
  882. }
  883. $("#QYGS_YLYXS").html(getValueInfo(res["QYGS_FNLYL"] ));
  884. $("#QYGS_WHSS").html(getValueInfo(res["QYGS_WHSS"] ));
  885. $("#QYGS_FS").html(getValueInfo(res["QYGS_FS"] ));
  886. $("#QYGS_GZSS").html(getValueInfo(res["QYGS_GZSS"] ));
  887. $("#QYGS_GL").html(getValueInfo(res["QYGS_GL"] ));
  888. $("#QYGS_XDSS").html(getValueInfo(res["QYGS_XDSS"] ));
  889. $("#QYGS_LLGL").html(getValueInfo(res["QYGS_LLGL"] ));
  890. $("#QYGS_SLSS").html(getValueInfo(res["QYGS_SLSS"] ));
  891. $("#QYGS_YFGL").html(getValueInfo(res["QYGS_YFGL"] ));
  892. $("#QYGS_XNSS").html(getValueInfo(res["QYGS_XNSS"] ));
  893. //$("#CL_FDC_FS1").html();
  894. //$("#DX_FDC_FS1").html();
  895. //$("#KB_FDC_FS1").html();
  896. var clfs = [];
  897. var kbfs = [];
  898. var dxfs = [];
  899. clfs.push( parseFloat(res["CL_FDC_FS"] ));
  900. kbfs.push(parseFloat(res["KB_FDC_FS"] ));
  901. dxfs.push(parseFloat(res["DX_FDC_FS"] ));
  902. options6.series[0].data = clfs;
  903. options7.series[0].data = kbfs;
  904. options8.series[0].data = dxfs;
  905. chart6 = new Highcharts.Chart(options6);
  906. chart7 = new Highcharts.Chart(options7);
  907. chart8 = new Highcharts.Chart(options8);
  908. /********************************************************************************************************/
  909. }
  910. });
  911. }
  912. function goaction(wpId)
  913. {
  914. $("#f1").attr("action","/wpmonitor/lineindex.action?wpId="+wpId).submit();
  915. }