monitormain.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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 && obj.value6!=0) {
  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. title: {text: ''},
  239. subtitle: {text: ''},
  240. xAxis: [{categories: categor,
  241. reversed: false,
  242. //linkedTo: 0,
  243. labels: {
  244. step: 2
  245. }
  246. }
  247. , {
  248. opposite: true,
  249. reversed: false,
  250. //categories: categor,
  251. //linkedTo: 0,
  252. labels: {
  253. step: 2
  254. }
  255. }
  256. ],
  257. yAxis: {title: {
  258. text: null
  259. },
  260. min: 0,
  261. labels: {
  262. formatter: function () {
  263. return Math.abs(this.value) + 'MWh';
  264. }
  265. }
  266. },
  267. plotOptions: {
  268. series: {
  269. stacking: 'normal'
  270. }
  271. },
  272. tooltip: {
  273. formatter: function () {
  274. console.log(this.series);
  275. var html = '<b>' + this.series.name + ',截止上一时刻 ' + this.point.category + '时</b><br/>';
  276. if(this.series.name=='理论电量'){
  277. html +='电量: ' + Highcharts.numberFormat(Math.abs(this.point.total), 2)+'MWh';
  278. }else{
  279. html +='电量: ' + Highcharts.numberFormat(Math.abs(this.point.y), 2)+'MWh';
  280. }
  281. return html;
  282. }
  283. },
  284. series: [{
  285. name: '理论电量',
  286. data: []
  287. }, {
  288. name: '实发电量',
  289. data: []
  290. }]
  291. };
  292. /*************************************************/
  293. options2 = {
  294. colors: [
  295. '#0BFEFA', //发电量
  296. '#FD0100',//检修
  297. '#FF7B16', //故障
  298. '#D201D8',//限电
  299. '#8085E9', //性能
  300. '#A6A6A6', //受累
  301. '#000000'//风速
  302. ],
  303. chart: {
  304. renderTo: 'glqx_Chart',
  305. type: 'column',
  306. //backgroundColor:'#BFDFFF',
  307. //plotBackgroundColor:'#BFDFFF',
  308. zoomType: 'x'
  309. },title:null ,
  310. xAxis: {
  311. type: 'datetime',
  312. labels: {
  313. align: 'center',
  314. formatter: function() {
  315. return Highcharts.dateFormat('%H<br/>%M', this.value);
  316. }
  317. }
  318. },
  319. yAxis: [{ // Primary yAxis
  320. labels: {
  321. format: '{value}万kw',
  322. style: {
  323. color: '#89A54E'
  324. }
  325. },
  326. title: {
  327. text: '电量',
  328. style: {
  329. color: '#89A54E'
  330. }
  331. }
  332. }, { // Secondary yAxis
  333. title: {
  334. text: '风速',
  335. style: {
  336. color: '#4572A7'
  337. }
  338. },
  339. labels: {
  340. format: '{value} m/s',
  341. style: {
  342. color: '#4572A7'
  343. }
  344. },
  345. opposite: true
  346. }],
  347. legend: {
  348. layout: 'vertical',
  349. // backgroundColor: '#FFFFFF',
  350. align: 'right',
  351. verticalAlign: 'top',
  352. x:-80,
  353. floating: true
  354. // shadow: true
  355. // layout: 'vertical',
  356. // align: 'right',
  357. // verticalAlign: 'middle',
  358. // borderWidth: 0
  359. },
  360. tooltip: {
  361. shared:true,
  362. xDateFormat:'%Y-%m-%d %H:%M'
  363. /*formatter: function() {
  364. return '<b>'+ this.series.name +'</b>:'+
  365. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  366. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  367. }*/
  368. },
  369. series: [{
  370. name: '日发电量(单位:万KWh)',
  371. yAxis:0
  372. },
  373. {name: '故障损失电量(单位:万KWh)',
  374. yAxis:0
  375. },{
  376. name: '检修损失电量(单位:万KWh)',
  377. yAxis:0
  378. },{
  379. name: '限电损失电量(单位:万KWh)',
  380. yAxis:0
  381. }
  382. ,{
  383. name: '性能损失电量(单位:万KWh)',
  384. yAxis:0
  385. },{
  386. name: '受累损失电量(单位:万KWh)',
  387. yAxis:0
  388. },{
  389. name: '风速(单位:m/s)',
  390. yAxis:1,
  391. type: 'spline'
  392. }]
  393. };
  394. /***************************************************************************************************/
  395. options3 = {
  396. chart : {
  397. renderTo : 'dltj_Chart_1',
  398. plotBackgroundColor : null,
  399. plotBorderWidth : null,
  400. plotShadow : false
  401. },
  402. title : {
  403. text : '发电量占比'
  404. },
  405. tooltip : {
  406. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  407. },
  408. plotOptions : {
  409. pie : {
  410. allowPointSelect : true,
  411. cursor : 'pointer',
  412. dataLabels : {
  413. enabled : false,
  414. color : '#000000',
  415. connectorColor : '#000000',
  416. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  417. },
  418. showInLegend : true
  419. }
  420. },
  421. legend : {
  422. layout : 'vertical',
  423. align : 'right',
  424. verticalAlign : 'bottom',
  425. borderWidth : 0
  426. },
  427. series : [ {
  428. type : 'pie',
  429. name : '占比',
  430. data : []
  431. } ]
  432. };
  433. /***************************************************************************************************/
  434. options4 = {
  435. colors: [
  436. '#8085E9', //性能
  437. '#FD0100',//检修
  438. '#FF7B16', //故障
  439. '#D201D8',//限电
  440. '#00ff20' //受累
  441. ],
  442. chart : {
  443. renderTo : 'dltj_Chart_2',
  444. plotBackgroundColor : null,
  445. plotBorderWidth : null,
  446. plotShadow : false
  447. },
  448. title : {
  449. text : '损失电量占比'
  450. },
  451. tooltip : {
  452. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  453. },
  454. plotOptions : {
  455. pie : {
  456. allowPointSelect : true,
  457. cursor : 'pointer',
  458. dataLabels : {
  459. enabled : false,
  460. color : '#000000',
  461. connectorColor : '#000000',
  462. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  463. },
  464. showInLegend : true
  465. }
  466. },
  467. legend : {
  468. layout : 'vertical',
  469. align : 'right',
  470. verticalAlign : 'bottom',
  471. borderWidth : 0
  472. },
  473. series : [ {
  474. type : 'pie',
  475. name : '占比',
  476. data : []
  477. } ]
  478. };
  479. /***************************************************************/
  480. options5 = {
  481. chart: {
  482. renderTo: 'pointChat',
  483. type: 'scatter',
  484. zoomType: 'xy'
  485. },
  486. title: {
  487. text: ''
  488. },
  489. xAxis: {
  490. type: 'datetime',
  491. labels: {
  492. align: 'center',
  493. formatter: function() {
  494. return Highcharts.dateFormat('%H:%M', this.value);
  495. }
  496. },
  497. showLastLabel: true
  498. },
  499. yAxis: {
  500. title: {
  501. text: '功率 (MW)'
  502. }
  503. },
  504. legend: {
  505. layout: 'vertical',
  506. align: 'left',
  507. verticalAlign: 'top',
  508. x: 100,
  509. y: 70,
  510. floating: true,
  511. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF',
  512. borderWidth: 1
  513. },
  514. plotOptions: {
  515. scatter: {
  516. marker: {
  517. radius: 2,
  518. states: {
  519. hover: {
  520. enabled: true,
  521. lineColor: 'rgb(100,100,100)'
  522. }
  523. }
  524. },
  525. states: {
  526. hover: {
  527. marker: {
  528. enabled: false
  529. }
  530. }
  531. },
  532. tooltip: {
  533. shared:true,
  534. xDateFormat:'%H:%M',
  535. pointFormat : '{point.name}<br/>实际出力<b>{point.y} MW</b>'
  536. }
  537. }
  538. },
  539. series: [{
  540. name: '山西新能源',
  541. color: 'rgba(119, 152, 191, .5)',
  542. turboThreshold:1500,
  543. data: []
  544. }]
  545. };
  546. /*******************************************************************/
  547. options6 = {
  548. chart: {
  549. renderTo: 'speedCL',
  550. type: 'solidgauge'
  551. },
  552. title: null,
  553. pane: {
  554. center: ['50%', '85%'],
  555. size: '170%',
  556. startAngle: -90,
  557. endAngle: 90,
  558. background: {
  559. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  560. innerRadius: '60%',
  561. outerRadius: '100%',
  562. shape: 'arc'
  563. }
  564. },
  565. tooltip: {
  566. enabled: false
  567. },
  568. // the value axis
  569. yAxis: {
  570. stops: [
  571. [0.1, '#55BF3B'], // green
  572. [0.5, '#DDDF0D'], // yellow
  573. [0.9, '#DF5353'] // red
  574. ],
  575. lineWidth: 0,
  576. minorTickInterval: null,
  577. tickPixelInterval: 400,
  578. tickWidth: 0,
  579. min: 0,
  580. max: 25,
  581. title: {
  582. y: 7,
  583. text: ''
  584. },
  585. labels: {
  586. y: 16
  587. }
  588. },
  589. plotOptions: {
  590. solidgauge: {
  591. dataLabels: {
  592. y: 22,
  593. borderWidth: 0,
  594. useHTML: true
  595. }
  596. }
  597. },
  598. credits: {
  599. enabled: false
  600. },series: [{
  601. name: '风速',
  602. data: [6.66],
  603. dataLabels: {
  604. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  605. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  606. '<span style="font-size:12px;color:silver">m/s</span></div>'
  607. },
  608. tooltip: {
  609. valueSuffix: 'm/s'
  610. }
  611. }]
  612. };
  613. /*******************************************************************/
  614. options7 = {
  615. chart: {
  616. renderTo: 'speedKB',
  617. type: 'solidgauge'
  618. },
  619. title: null,
  620. pane: {
  621. center: ['50%', '85%'],
  622. size: '170%',
  623. startAngle: -90,
  624. endAngle: 90,
  625. background: {
  626. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  627. innerRadius: '60%',
  628. outerRadius: '100%',
  629. shape: 'arc'
  630. }
  631. },
  632. tooltip: {
  633. enabled: false
  634. },
  635. // the value axis
  636. yAxis: {
  637. stops: [
  638. [0.1, '#55BF3B'], // green
  639. [0.5, '#DDDF0D'], // yellow
  640. [0.9, '#DF5353'] // red
  641. ],
  642. lineWidth: 0,
  643. minorTickInterval: null,
  644. tickPixelInterval: 400,
  645. tickWidth: 0,
  646. min: 0,
  647. max: 25,
  648. title: {
  649. y: 7,
  650. text: ''
  651. },
  652. labels: {
  653. y: 16
  654. }
  655. },
  656. plotOptions: {
  657. solidgauge: {
  658. dataLabels: {
  659. y: 22,
  660. borderWidth: 0,
  661. useHTML: true
  662. }
  663. }
  664. },
  665. credits: {
  666. enabled: false
  667. },series: [{
  668. name: '风速',
  669. data: [6.66],
  670. dataLabels: {
  671. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  672. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  673. '<span style="font-size:12px;color:silver">m/s</span></div>'
  674. },
  675. tooltip: {
  676. valueSuffix: 'm/s'
  677. }
  678. }]
  679. };
  680. /*******************************************************************/
  681. options8 = {
  682. chart: {
  683. renderTo: 'speedDX',
  684. type: 'solidgauge'
  685. },
  686. title: null,
  687. pane: {
  688. center: ['50%', '85%'],
  689. size: '170%',
  690. startAngle: -90,
  691. endAngle: 90,
  692. background: {
  693. backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
  694. innerRadius: '60%',
  695. outerRadius: '100%',
  696. shape: 'arc'
  697. }
  698. },
  699. tooltip: {
  700. enabled: false
  701. },
  702. // the value axis
  703. yAxis: {
  704. stops: [
  705. [0.1, '#55BF3B'], // green
  706. [0.5, '#DDDF0D'], // yellow
  707. [0.9, '#DF5353'] // red
  708. ],
  709. lineWidth: 0,
  710. minorTickInterval: null,
  711. tickPixelInterval: 400,
  712. tickWidth: 0,
  713. min: 0,
  714. max: 25,
  715. title: {
  716. y: 7,
  717. text: ''
  718. },
  719. labels: {
  720. y: 16
  721. }
  722. },
  723. plotOptions: {
  724. solidgauge: {
  725. dataLabels: {
  726. y: 22,
  727. borderWidth: 0,
  728. useHTML: true
  729. }
  730. }
  731. },
  732. credits: {
  733. enabled: false
  734. },series: [{
  735. name: '风速',
  736. data: [6.66],
  737. dataLabels: {
  738. format: '<div style="text-align:center"><span style="font-size:15px;color:' +
  739. ((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">{y}</span><br/>' +
  740. '<span style="font-size:12px;color:silver">m/s</span></div>'
  741. },
  742. tooltip: {
  743. valueSuffix: 'm/s'
  744. }
  745. }]
  746. };
  747. /***************************************************************/
  748. realPowerCharBy24();
  749. showChart();
  750. wpAllInfoAjaxs() ;
  751. powercompareChat();
  752. pointChart();
  753. window.setInterval(realPowerCharBy24, 60000);
  754. window.setInterval(showChart, 60000);
  755. window.setInterval(wpAllInfoAjaxs, 60000);
  756. window.setInterval(powercompareChat, 60000);
  757. window.setInterval(pointChart, 60000);
  758. /*****************************************************************/
  759. });
  760. function getValueInfo(value)
  761. {
  762. if(value=="" || value==null || value==undefined )
  763. {
  764. return "0.0";
  765. }else
  766. {
  767. return value;
  768. }
  769. }
  770. function getValueToInt(value)
  771. {
  772. if(value=="" || value==null || value==undefined || value==0.0){
  773. return "0";
  774. }else{
  775. return value;
  776. }
  777. }
  778. /*********************************************************************************/
  779. function wpAllInfoAjaxs() {
  780. $.ajax( {
  781. url : "/matrix/wpAllInfoAjaxes.action",
  782. type : "post",
  783. cache : false,
  784. dataType : "json",
  785. data : {},
  786. ifModified : false,
  787. success : function(res) {
  788. /********************************************************************************************************/
  789. $("#CL_FDC_RFDL").html(getValueInfo(res["CL_FDC_RFDL"] ));
  790. $("#CL_FDC_LLFDL").html(getValueInfo(res["CL_FDC_LLFDL"] ));
  791. $("#CL_FDC_RSWDL").html(getValueInfo(res["CL_FDC_RSWDL"] ));
  792. $("#CL_FDC_SCADAFDL").html(getValueInfo(res["CL_FDC_SCADAFDL"] ));
  793. //$("#CL_FDC_YLYXS").html(getValueInfo(res["CL_FDC_YLYXS"] ));
  794. if(parseFloat(res["CL_FDC_FNLYL"])<80){
  795. $("#CL_FDC_YLYXS").attr("style","color:red");
  796. }
  797. $("#CL_FDC_YLYXS").html(getValueInfo(res["CL_FDC_FNLYL"] ));
  798. $("#CL_FDC_WHSS").html(getValueInfo(res["CL_FDC_WHSS"] ));
  799. $("#CL_FDC_FS").html(getValueInfo(res["CL_FDC_FS"] ));
  800. $("#CL_FDC_GZSS").html(getValueInfo(res["CL_FDC_GZSS"] ));
  801. $("#CL_FDC_GL").html(getValueInfo(res["CL_FDC_GL"] ));
  802. $("#CL_FDC_XDSS").html(getValueInfo(res["CL_FDC_XDSS"] ));
  803. $("#CL_FDC_LLGL").html(getValueInfo(res["CL_FDC_LLGL"] ));
  804. $("#CL_FDC_SLSS").html(getValueInfo(res["CL_FDC_SLSS"] ));
  805. $("#CL_FDC_YFGL").html(getValueInfo(res["CL_FDC_YFGL"] ));
  806. $("#CL_FDC_XNSS").html(getValueInfo(res["CL_FDC_XNSS"] ));
  807. $("#CL_FDC_FDL").html(getValueInfo(res["CL_FDC_RFDL"] ));
  808. $("#CL_FDC_GL1").html(getValueInfo(res["CL_FDC_GL"] ));
  809. $("#CL_FDC_JRTS").html(getValueToInt(res["CL_FDC_JRTS"] ));
  810. $("#CL_FDC_YXTS").html(getValueToInt(res["CL_FDC_YXTS"] ));
  811. $("#CL_FDC_GZTS").html(getValueToInt(res["CL_FDC_GZTS"] ));
  812. $("#CL_FDC_XDTS").html(getValueToInt(res["CL_FDC_XDTS"] ));
  813. $("#CL_FDC_DJTS").html(getValueToInt(res["CL_FDC_DJTS"] ));
  814. $("#CL_FDC_WHTS").html(getValueToInt(res["CL_FDC_WHTS"] ));
  815. $("#CL_FDC_LXTS").html(getValueToInt(res["CL_FDC_LXTS"] ));
  816. $("#DX_FDC_RFDL").html(getValueInfo(res["DX_FDC_RFDL"] ));
  817. $("#DX_FDC_LLFDL").html(getValueInfo(res["DX_FDC_LLFDL"] ));
  818. $("#DX_FDC_RSWDL").html(getValueInfo(res["DX_FDC_RSWDL"] ));
  819. $("#DX_FDC_SCADAFDL").html(getValueInfo(res["DX_FDC_SCADAFDL"] ));
  820. //$("#DX_FDC_YLYXS").html(getValueInfo(res["DX_FDC_YLYXS"] ));
  821. if(parseFloat(res["DX_FDC_FNLYL"])<80){
  822. $("#DX_FDC_YLYXS").attr("style","color:red");
  823. }
  824. $("#DX_FDC_YLYXS").html(getValueInfo(res["DX_FDC_FNLYL"] ));
  825. $("#DX_FDC_WHSS").html(getValueInfo(res["DX_FDC_WHSS"] ));
  826. $("#DX_FDC_FS").html(getValueInfo(res["DX_FDC_FS"] ));
  827. $("#DX_FDC_GZSS").html(getValueInfo(res["DX_FDC_GZSS"] ));
  828. $("#DX_FDC_GL").html(getValueInfo(res["DX_FDC_GL"] ));
  829. $("#DX_FDC_XDSS").html(getValueInfo(res["DX_FDC_XDSS"] ));
  830. $("#DX_FDC_LLGL").html(getValueInfo(res["DX_FDC_LLGL"] ));
  831. $("#DX_FDC_SLSS").html(getValueInfo(res["DX_FDC_SLSS"] ));
  832. $("#DX_FDC_YFGL").html(getValueInfo(res["DX_FDC_YFGL"] ));
  833. $("#DX_FDC_XNSS").html(getValueInfo(res["DX_FDC_XNSS"] ));
  834. $("#DX_FDC_FDL").html(getValueInfo(res["DX_FDC_RFDL"] ));
  835. $("#DX_FDC_GL1").html(getValueInfo(res["DX_FDC_GL"] ));
  836. $("#DX_FDC_JRTS").html(getValueToInt(res["DX_FDC_JRTS"] ));
  837. $("#DX_FDC_YXTS").html(getValueToInt(res["DX_FDC_YXTS"] ));
  838. $("#DX_FDC_GZTS").html(getValueToInt(res["DX_FDC_GZTS"] ));
  839. $("#DX_FDC_XDTS").html(getValueToInt(res["DX_FDC_XDTS"] ));
  840. $("#DX_FDC_DJTS").html(getValueToInt(res["DX_FDC_DJTS"] ));
  841. $("#DX_FDC_WHTS").html(getValueToInt(res["DX_FDC_WHTS"] ));
  842. $("#DX_FDC_LXTS").html(getValueToInt(res["DX_FDC_LXTS"] ));
  843. $("#KB_FDC_RFDL").html(getValueInfo(res["KB_FDC_RFDL"] ));
  844. $("#KB_FDC_LLFDL").html(getValueInfo(res["KB_FDC_LLFDL"] ));
  845. $("#KB_FDC_RSWDL").html(getValueInfo(res["KB_FDC_RSWDL"] ));
  846. $("#KB_FDC_SCADAFDL").html(getValueInfo(res["KB_FDC_SCADAFDL"] ));
  847. //$("#KB_FDC_YLYXS").html(getValueInfo(res["KB_FDC_YLYXS"] ));
  848. if(parseFloat(res["KB_FDC_FNLYL"])<80){
  849. $("#KB_FDC_YLYXS").attr("style","color:red");
  850. }
  851. $("#KB_FDC_YLYXS").html(getValueInfo(res["KB_FDC_FNLYL"] ));
  852. $("#KB_FDC_WHSS").html(getValueInfo(res["KB_FDC_WHSS"] ));
  853. $("#KB_FDC_FS").html(getValueInfo(res["KB_FDC_FS"] ));
  854. $("#KB_FDC_GZSS").html(getValueInfo(res["KB_FDC_GZSS"] ));
  855. $("#KB_FDC_GL").html(getValueInfo(res["KB_FDC_GL"] ));
  856. $("#KB_FDC_XDSS").html(getValueInfo(res["KB_FDC_XDSS"] ));
  857. $("#KB_FDC_LLGL").html(getValueInfo(res["KB_FDC_LLGL"] ));
  858. $("#KB_FDC_SLSS").html(getValueInfo(res["KB_FDC_SLSS"] ));
  859. $("#KB_FDC_YFGL").html(getValueInfo(res["KB_FDC_YFGL"] ));
  860. $("#KB_FDC_XNSS").html(getValueInfo(res["KB_FDC_XNSS"] ));
  861. $("#KB_FDC_FDL").html(getValueInfo(res["KB_FDC_RFDL"] ));
  862. $("#KB_FDC_GL1").html(getValueInfo(res["KB_FDC_GL"] ));
  863. $("#KB_FDC_JRTS").html(getValueToInt(res["KB_FDC_JRTS"] ));
  864. $("#KB_FDC_YXTS").html(getValueToInt(res["KB_FDC_YXTS"] ));
  865. $("#KB_FDC_GZTS").html(getValueToInt(res["KB_FDC_GZTS"] ));
  866. $("#KB_FDC_XDTS").html(getValueToInt(res["KB_FDC_XDTS"] ));
  867. $("#KB_FDC_DJTS").html(getValueToInt(res["KB_FDC_DJTS"] ));
  868. $("#KB_FDC_WHTS").html(getValueToInt(res["KB_FDC_WHTS"] ));
  869. $("#KB_FDC_LXTS").html(getValueToInt(res["KB_FDC_LXTS"] ));
  870. /********************************************************************************************************/
  871. $("#QYGS_RFDL").html(getValueInfo(res["QYGS_RFDL"] ));
  872. $("#QYGS_LLFDL").html(getValueInfo(res["QYGS_LLFDL"] ));
  873. $("#QYGS_RSWDL").html(getValueInfo(res["QYGS_RSWDL"] ));
  874. $("#QYGS_SCADAFDL").html(getValueInfo(res["QYGS_SCADAFDL"] ));
  875. //$("#QYGS_YLYXS").html(getValueInfo(res["QYGS_YLYXS"] ));
  876. if(parseFloat(res["QYGS_FNLYL"])<80){
  877. $("#QYGS_YLYXS").attr("style","color:red");
  878. }
  879. $("#QYGS_YLYXS").html(getValueInfo(res["QYGS_FNLYL"] ));
  880. $("#QYGS_WHSS").html(getValueInfo(res["QYGS_WHSS"] ));
  881. $("#QYGS_FS").html(getValueInfo(res["QYGS_FS"] ));
  882. $("#QYGS_GZSS").html(getValueInfo(res["QYGS_GZSS"] ));
  883. $("#QYGS_GL").html(getValueInfo(res["QYGS_GL"] ));
  884. $("#QYGS_XDSS").html(getValueInfo(res["QYGS_XDSS"] ));
  885. $("#QYGS_LLGL").html(getValueInfo(res["QYGS_LLGL"] ));
  886. $("#QYGS_SLSS").html(getValueInfo(res["QYGS_SLSS"] ));
  887. $("#QYGS_YFGL").html(getValueInfo(res["QYGS_YFGL"] ));
  888. $("#QYGS_XNSS").html(getValueInfo(res["QYGS_XNSS"] ));
  889. //$("#CL_FDC_FS1").html();
  890. //$("#DX_FDC_FS1").html();
  891. //$("#KB_FDC_FS1").html();
  892. var clfs = [];
  893. var kbfs = [];
  894. var dxfs = [];
  895. clfs.push( parseFloat(res["CL_FDC_FS"] ));
  896. kbfs.push(parseFloat(res["KB_FDC_FS"] ));
  897. dxfs.push(parseFloat(res["DX_FDC_FS"] ));
  898. options6.series[0].data = clfs;
  899. options7.series[0].data = kbfs;
  900. options8.series[0].data = dxfs;
  901. chart6 = new Highcharts.Chart(options6);
  902. chart7 = new Highcharts.Chart(options7);
  903. chart8 = new Highcharts.Chart(options8);
  904. /********************************************************************************************************/
  905. }
  906. });
  907. }
  908. function goaction(wpId)
  909. {
  910. $("#f1").attr("action","/wpmonitor/zmindex.action?wpId="+wpId).submit();
  911. }