benchmarkloss.jsp 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714
  1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp" %>
  3. <head>
  4. <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js"></script>
  5. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
  6. <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
  7. <script type="text/ecmascript" src="<%=request.getContextPath()%>/resource/js/system/jqdatagrid.js"></script>
  8. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  9. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  10. <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
  11. <link rel="stylesheet" href="<%=request.getContextPath() %>/resource/css/ztree/zTreeStyle.css" type="text/css">
  12. <script src="<%=request.getContextPath() %>/resource/js/ztree/jquery.ztree.all.min.js" type="text/javascript"></script>
  13. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts.src.js" type="text/javascript"></script>
  14. <script src="<%=request.getContextPath()%>/resource/js/highcharts/highcharts-more.js"></script>
  15. <script src="<%=request.getContextPath()%>/resource/js/highcharts/modules/solid-gauge.src.js"></script>
  16. <script type="text/javascript" src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js"></script>
  17. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
  18. <style type="text/css">
  19. fieldset legend {
  20. color:#302A2A;
  21. font: bold 16px/2 Verdana, Geneva, sans-serif;
  22. font-weight: bold;
  23. text-align: left;
  24. text-shadow: 2px 2px 2px rgb(88, 126, 156);
  25. }
  26. </style>
  27. <script type="text/javascript">
  28. hs.graphicsDir = '<%=request.getContextPath()%>/resource/plugin/highslide/graphics/';
  29. hs.outlineType = 'rounded-white';
  30. hs.wrapperClassName = 'draggable-header';
  31. var chart1;
  32. var chart2;
  33. var chart3;
  34. var chart4;
  35. var chart5;
  36. var options1;
  37. var options2;
  38. var options3;
  39. var options4;
  40. var options5;
  41. function showDiv() {
  42. var hc = $("#container1");
  43. return hs.htmlExpand(hc[0], {
  44. contentId : "showDiv",
  45. width : 1100,
  46. height : 1050,
  47. align : 'center',
  48. headingText : '对标信息分析'
  49. });
  50. }
  51. function showDiv2() {
  52. var hc = $("#container5");
  53. return hs.htmlExpand(hc[0], {
  54. contentId : "showDiv2",
  55. width : 800,
  56. height : 800,
  57. align : 'center',
  58. headingText : '损失应对措施'
  59. });
  60. }
  61. function displayInfo(str)
  62. {
  63. switch (str)
  64. {
  65. case 1:
  66. $("#xdsscs").css("display","");
  67. $("#gzsscs").css("display","none");
  68. $("#jxsscs").css("display","none");
  69. $("#xnsscs").css("display","none");
  70. $("#slsscs").css("display","none");
  71. break;
  72. case 2:
  73. $("#gzsscs").css("display","");
  74. $("#jxsscs").css("display","none");
  75. $("#xnsscs").css("display","none");
  76. $("#slsscs").css("display","none");
  77. $("#xdsscs").css("display","none");
  78. break;
  79. case 3:
  80. $("#gzsscs").css("display","none");
  81. $("#jxsscs").css("display","");
  82. $("#xnsscs").css("display","none");
  83. $("#slsscs").css("display","none");
  84. $("#xdsscs").css("display","none");
  85. break;
  86. case 4:
  87. $("#gzsscs").css("display","none");
  88. $("#jxsscs").css("display","none");
  89. $("#xnsscs").css("display","");
  90. $("#slsscs").css("display","none");
  91. $("#xdsscs").css("display","none");
  92. break;
  93. case 5:
  94. $("#gzsscs").css("display","none");
  95. $("#jxsscs").css("display","none");
  96. $("#xnsscs").css("display","none");
  97. $("#slsscs").css("display","");
  98. $("#xdsscs").css("display","none");
  99. break;
  100. }
  101. showDiv2();
  102. }
  103. function contrast()
  104. {
  105. var wp1=" ";
  106. var wp2=" ";
  107. var arr=$("#gridTable").jqGrid('getGridParam', 'selarrrow');
  108. var i=0;
  109. var data1 = [];
  110. var data2 = [];
  111. var xddl = [];
  112. var gzdl = [];
  113. var whdl = [];
  114. var qfdl = [];
  115. var sldl = [];
  116. var names = [];
  117. $.each(arr,function(n,value) {
  118. var wpName= $("#gridTable").jqGrid('getCell',value,'wpName');
  119. var fnlylfraction= $("#gridTable").jqGrid('getCell',value,'fnlylfraction');
  120. var gzsslfraction= $("#gridTable").jqGrid('getCell',value,'gzsslfraction');
  121. var jxsslfraction= $("#gridTable").jqGrid('getCell',value,'jxsslfraction');
  122. var qflfraction= $("#gridTable").jqGrid('getCell',value,'qflfraction');
  123. var xnsslfraction= $("#gridTable").jqGrid('getCell',value,'xnsslfraction');
  124. var slsslfraction= $("#gridTable").jqGrid('getCell',value,'slsslfraction');
  125. var fwjslfraction= $("#gridTable").jqGrid('getCell',value,'fwjslfraction');
  126. var ztzhjslfraction= $("#gridTable").jqGrid('getCell',value,'ztzhjslfraction');
  127. var xqjslfraction= $("#gridTable").jqGrid('getCell',value,'xqjslfraction');
  128. var fnlyl= $("#gridTable").jqGrid('getCell',value,'fnlyl');
  129. var gzssl= $("#gridTable").jqGrid('getCell',value,'gzssl');
  130. var jxssl= $("#gridTable").jqGrid('getCell',value,'jxssl');
  131. var qfl= $("#gridTable").jqGrid('getCell',value,'qfl');
  132. var slssl= $("#gridTable").jqGrid('getCell',value,'slssl');
  133. var fwjsl= $("#gridTable").jqGrid('getCell',value,'fwjsl');
  134. var ztzhjsl= $("#gridTable").jqGrid('getCell',value,'ztzhjsl');
  135. var xqjsl= $("#gridTable").jqGrid('getCell',value,'xqjsl');
  136. var xnssl= $("#gridTable").jqGrid('getCell',value,'xnssl');
  137. var scadafdl= $("#gridTable").jqGrid('getCell',value,'scadafdl');
  138. var qfss= $("#gridTable").jqGrid('getCell',value,'qfss');
  139. var gzss= $("#gridTable").jqGrid('getCell',value,'gzss');
  140. var whss= $("#gridTable").jqGrid('getCell',value,'whss');
  141. var xdss= $("#gridTable").jqGrid('getCell',value,'xdss');
  142. var slss= $("#gridTable").jqGrid('getCell',value,'slss');
  143. if(i==0)
  144. {
  145. wp1=wpName;
  146. data1.push(parseInt(fnlylfraction));
  147. data1.push(parseInt(gzsslfraction));
  148. data1.push(parseInt(jxsslfraction));
  149. data1.push(parseInt(qflfraction));
  150. data1.push(parseInt(xnsslfraction));
  151. data1.push(parseInt(slsslfraction));
  152. data1.push(parseInt(fwjslfraction));
  153. data1.push(parseInt(ztzhjslfraction));
  154. data1.push(parseInt(xqjslfraction));
  155. $("#wpid1").html(wpName + "&nbsp;");
  156. $("#fnlyl1").html(fnlyl + "&nbsp;");
  157. if(gzssl>=5)
  158. {
  159. $("#gzssl1").css("background-color","red");
  160. $("#gzssl1").html("<a href='#' onclick='displayInfo(2)'>"+gzssl + "</a>");
  161. }else
  162. {
  163. $("#gzssl1").html(gzssl+ "&nbsp;");
  164. }
  165. if(jxssl>=5)
  166. {
  167. $("#jxssl1").css("background-color","red");
  168. $("#jxssl1").html("<a href='#' onclick='displayInfo(3)'>"+jxssl + "</a>");
  169. }else
  170. {
  171. $("#jxssl1").html(jxssl + "&nbsp;");
  172. }
  173. if(qfl>=5)
  174. {
  175. $("#qfl1").html("<a href='#' onclick='displayInfo(1)'>"+qfl + "</a>");
  176. $("#qfl1").css("background-color","red");
  177. }else
  178. {
  179. $("#qfl1").html(qfl + "&nbsp;");
  180. }
  181. if(slssl>=5)
  182. {
  183. $("#slssl1").html("<a href='#' onclick='displayInfo(5)'>"+slssl + "</a>");
  184. $("#slssl1").css("background-color","red");
  185. }else
  186. {
  187. $("#slssl1").html(slssl + "&nbsp;");
  188. }
  189. if(xnssl>=5)
  190. {
  191. $("#xnssl1").html("<a href='#' onclick='displayInfo(4)'>"+xnssl + "</a>");
  192. $("#xnssl1").css("background-color","red");
  193. }else
  194. {
  195. $("#xnssl1").html(slssl + "&nbsp;");
  196. }
  197. $("#fwjsl1").html(fwjsl + "&nbsp;");
  198. $("#ztzhjsl1").html(ztzhjsl + "&nbsp;");
  199. $("#xqjsl1").html(xqjsl + "&nbsp;");
  200. $("#scadafdl1").html(scadafdl + "&nbsp;");
  201. $("#gzss1").html(gzss + "&nbsp;");
  202. $("#qfss1").html(qfss + "&nbsp;");
  203. $("#whss1").html(whss + "&nbsp;");
  204. $("#xdss1").html(xdss + "&nbsp;");
  205. $("#slss1").html(slss + "&nbsp;");
  206. names.push(wp1);
  207. if (xdss != null) {
  208. xddl.push( parseFloat(xdss) );
  209. }
  210. if (gzss != null) {
  211. gzdl.push( parseFloat(gzss) );
  212. }
  213. if (whss != null) {
  214. whdl.push( parseFloat(whss) );
  215. }
  216. if (qfss != null) {
  217. qfdl.push( parseFloat(qfss) );
  218. }
  219. sldl.push(parseFloat('0'));
  220. }else if(i==1)
  221. {
  222. wp2=wpName;
  223. data2.push(parseInt(fnlylfraction));
  224. data2.push(parseInt(gzsslfraction));
  225. data2.push(parseInt(jxsslfraction));
  226. data2.push(parseInt(qflfraction));
  227. data2.push(parseInt(xnsslfraction));
  228. data2.push(parseInt(slsslfraction));
  229. data2.push(parseInt(fwjslfraction));
  230. data2.push(parseInt(ztzhjslfraction));
  231. data2.push(parseInt(xqjslfraction));
  232. $("#wpid2").html(wpName + "&nbsp;");
  233. $("#fnlyl2").html(fnlyl + "&nbsp;");
  234. if(gzssl>=5)
  235. {
  236. $("#gzssl2").css("background-color","red");
  237. $("#gzssl2").html("<a href='#' onclick='displayInfo(2)'>"+gzssl + "</a>");
  238. }else
  239. {
  240. $("#gzssl2").html(gzssl+ "&nbsp;");
  241. }
  242. if(jxssl>=5)
  243. {
  244. $("#jxssl2").css("background-color","red");
  245. $("#jxssl2").html("<a href='#' onclick='displayInfo(3)'>"+jxssl + "</a>");
  246. }else
  247. {
  248. $("#jxssl2").html(jxssl + "&nbsp;");
  249. }
  250. if(qfl>=5)
  251. {
  252. $("#qfl2").html("<a href='#' onclick='displayInfo(1)'>"+qfl + "</a>");
  253. $("#qfl2").css("background-color","red");
  254. }else
  255. {
  256. $("#qfl2").html(qfl + "&nbsp;");
  257. }
  258. if(slssl>=5)
  259. {
  260. $("#slssl2").html("<a href='#' onclick='displayInfo(5)'>"+slssl + "</a>");
  261. $("#slssl2").css("background-color","red");
  262. }else
  263. {
  264. $("#slssl2").html(slssl + "&nbsp;");
  265. }
  266. if(xnssl>=5)
  267. {
  268. $("#xnssl2").html("<a href='#' onclick='displayInfo(4)'>"+xnssl + "</a>");
  269. $("#xnssl2").css("background-color","red");
  270. }else
  271. {
  272. $("#xnssl2").html(xnssl + "&nbsp;");
  273. }
  274. $("#fwjsl2").html(fwjsl + "&nbsp;");
  275. $("#ztzhjsl2").html(ztzhjsl + "&nbsp;");
  276. $("#xqjsl2").html(xqjsl + "&nbsp;");
  277. $("#scadafdl2").html(scadafdl + "&nbsp;");
  278. $("#gzss2").html(gzss + "&nbsp;");
  279. $("#qfss2").html(qfss + "&nbsp;");
  280. $("#whss2").html(whss + "&nbsp;");
  281. $("#xdss2").html(xdss + "&nbsp;");
  282. $("#slss2").html(slss + "&nbsp;");
  283. names.push(wp2);
  284. if (xdss != null) {
  285. xddl.push( parseFloat(xdss) );
  286. }
  287. if (gzss != null) {
  288. gzdl.push( parseFloat(gzss) );
  289. }
  290. if (whss != null) {
  291. whdl.push( parseFloat(whss) );
  292. }
  293. if (qfss != null) {
  294. qfdl.push( parseFloat(qfss) );
  295. }
  296. sldl.push(parseFloat('0'));
  297. }
  298. i++;
  299. })
  300. options2.series[0].data = data1;
  301. options2.series[0].name = wp1;
  302. options2.series[1].data = data2;
  303. options2.series[1].name = wp2;
  304. chart2 = new Highcharts.Chart(options2);
  305. options5.series[0].data = xddl;
  306. options5.series[1].data = gzdl;
  307. options5.series[2].data = whdl;
  308. options5.series[3].data = qfdl;
  309. options5.series[4].data = sldl;
  310. options5.xAxis.categories = names;
  311. chart5 = new Highcharts.Chart(options5);
  312. if(i>2)
  313. {
  314. alert("一次最多能选择两个场站!");
  315. return false;
  316. }else if(i<2)
  317. {
  318. alert("请选择两个场站!");
  319. return false;
  320. }
  321. showDiv();
  322. }
  323. function findWpPowerChat(wpId,beginDate,endDate) {
  324. var typeid =$("#typeid").val();
  325. var url = "/benchmark/findWpPowerOutChat.action?wpId="+wpId
  326. +"&beginDate="+beginDate +"&endDate="+endDate;
  327. $.ajax({
  328. url : url,
  329. type : "post",
  330. cache : false,
  331. dataType : "json",
  332. async : false,
  333. data : {},
  334. ifModified : false,
  335. success : function(result) {
  336. var xddl = [];
  337. var gzdl = [];
  338. var whdl = [];
  339. var qfdl = [];
  340. var sldl = [];
  341. var xaixs1 = [];
  342. var xaixs2 = [];
  343. var name = [];
  344. if(result!=null)
  345. {
  346. $.each(result, function(m, obj) {
  347. //if(m == result.length -1){
  348. var total=0;
  349. if (obj.value1 != null) {
  350. total=total+parseFloat(obj.value1);
  351. xddl.push( parseFloat(obj.value1) );
  352. }
  353. if (obj.value2 != null) {
  354. total=total+parseFloat(obj.value2);
  355. gzdl.push( parseFloat(obj.value2) );
  356. }
  357. if (obj.value3 != null) {
  358. total=total+parseFloat(obj.value3);
  359. whdl.push( parseFloat(obj.value3) );
  360. }
  361. if (obj.value4 != null) {
  362. total=total+parseFloat(obj.value4);
  363. qfdl.push( parseFloat(obj.value4) );
  364. }
  365. if (obj.value5 != null) {
  366. total=total+parseFloat(obj.value5);
  367. sldl.push( parseFloat(obj.value5) );
  368. }
  369. var jsonObj1 = [obj.name, obj.value6 ];
  370. var jsonObj2 ;
  371. switch (typeid)
  372. {
  373. case "1":
  374. if (obj.value1 != null) {
  375. jsonObj2 =[obj.name, parseFloat(obj.value1) ];
  376. }
  377. options4.title.text='限电损失占比';
  378. break;
  379. case "2":
  380. if (obj.value2 != null) {
  381. jsonObj2 =[obj.name, parseFloat(obj.value2) ];
  382. }
  383. options4.title.text='故障损失占比';
  384. break;
  385. case "3":
  386. if (obj.value3 != null) {
  387. jsonObj2 =[obj.name, parseFloat(obj.value3) ];
  388. }
  389. options4.title.text='检修损失占比';
  390. break;
  391. case "4":
  392. if (obj.value4 != null) {
  393. jsonObj2 =[obj.name, parseFloat(obj.value4) ];
  394. }
  395. options4.title.text='性能损失占比';
  396. break;
  397. case "5":
  398. if (obj.value5 != null) {
  399. jsonObj2 =[obj.name, parseFloat(obj.value5) ];
  400. }
  401. options4.title.text='受累损失占比';
  402. break;
  403. }
  404. xaixs1.push(jsonObj1);
  405. xaixs2.push(jsonObj2);
  406. if(obj.name!= null )
  407. {
  408. name.push(obj.name);
  409. }
  410. });
  411. //alert(xtime.length);
  412. options1.series[0].data = xddl;
  413. options1.series[1].data = gzdl;
  414. options1.series[2].data = whdl;
  415. options1.series[3].data = qfdl;
  416. options1.series[4].data = sldl;
  417. options1.xAxis.categories = name;
  418. options3.series[0].data = xaixs1;
  419. options4.series[0].data = xaixs2;
  420. chart1 = new Highcharts.Chart(options1);
  421. chart3 = new Highcharts.Chart(options3);
  422. chart4 = new Highcharts.Chart(options4);
  423. }
  424. }
  425. });
  426. }
  427. var setting = {
  428. check : {
  429. enable : true,
  430. chkboxType : {
  431. "Y" : "",
  432. "N" : ""
  433. }
  434. },
  435. view: {
  436. dblClickExpand: false
  437. },
  438. data: {
  439. simpleData: {
  440. enable: true
  441. }
  442. },
  443. callback: {
  444. beforeClick: beforeClickWindfarm,
  445. onCheck: selectWindfarm
  446. },
  447. async: {
  448. enable: true,
  449. url:"../power/windfarmAjax.action",
  450. dataType:"json"
  451. }
  452. };
  453. function beforeClickWindfarm(treeId, treeNode) {
  454. var zTree = $.fn.zTree.getZTreeObj(treeId);
  455. zTree.checkNode(treeNode, !treeNode.checked, null, true);
  456. return false;
  457. }
  458. function showWindfarm() {
  459. var cityObj = $("#wpId");
  460. var cityOffset = $("#wpId").offset();
  461. $("#menuWindfarm").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");
  462. $("body").bind("mousedown", onBodyDown);
  463. }
  464. function hideMenuWindfarm() {
  465. $("#menuWindfarm").fadeOut("fast");
  466. }
  467. var wpids="";
  468. function selectWindfarm(e, treeId, treeNode) {
  469. var zTree = $.fn.zTree.getZTreeObj("treeWindfarm"),
  470. nodes = zTree.getCheckedNodes(true);
  471. v = "";
  472. d="";
  473. for (var i=0, l=nodes.length; i<l; i++) {
  474. v += nodes[i].name + ",";
  475. d+=nodes[i].id+",";
  476. }
  477. if (v.length > 0 ) v = v.substring(0, v.length-1);
  478. if (d.length > 0 ) d = d.substring(0, d.length-1);
  479. wpids=d;
  480. var cityObj = $("#wpId");
  481. cityObj.attr("value", v);
  482. //$("#menuWindfarm").fadeOut("fast");
  483. }
  484. function onBodyDown(event) {
  485. if (( event.target.id != "wpId" && event.target.id != "menuWindfarm" && $(event.target).parents("#menuWindfarm").length<=0)) {
  486. hideMenuWindfarm();
  487. }
  488. }
  489. function queryData(){
  490. if("" == $("#beginDate").val()){
  491. alert("请选择查询开始日期!");
  492. }else if("" == $("#endDate").val()){
  493. alert("请选择查询结束日期!");
  494. }
  495. else{
  496. //var type=$("#type").val();
  497. //var wpId=$("#wpId").find("option:selected").val();
  498. //var beginDate=$("#beginDate").val();
  499. //var endDate=$("#endDate").val();
  500. //var url = '<%=request.getContextPath() %>/charts/lossList.action?wpId='+wpId
  501. // +"&beginDate="+beginDate +"&endDate="+endDate+"&type="+type;
  502. //$("#gridTable").setGridParam({url:url}).trigger("reloadGrid");
  503. $("#gridTable").jqGrid('GridUnload');
  504. showJqGrid();
  505. }
  506. }
  507. $(document).ready(function () {
  508. initial();
  509. options1 = {
  510. colors: [
  511. '#D201D8', //限电
  512. '#FD0100',//故障
  513. '#FF7B16', //维护
  514. '#8085E9',//性能
  515. '#A6A6A6' //受累
  516. ],
  517. chart: {
  518. renderTo: 'container',
  519. type: 'column',
  520. width:1568,
  521. height:308,
  522. //backgroundColor:'#BFDFFF',
  523. //plotBackgroundColor:'#BFDFFF',
  524. zoomType: 'x'
  525. },
  526. title : {
  527. text : '损失电量分析'
  528. },
  529. xAxis: {
  530. type: 'category'
  531. },
  532. yAxis: [{ // Primary yAxis
  533. labels: {
  534. format: '{value}万kw',
  535. style: {
  536. color: '#89A54E'
  537. }
  538. },
  539. title: {
  540. text: '电量',
  541. style: {
  542. color: '#89A54E'
  543. }
  544. }
  545. }],
  546. legend: {
  547. layout: 'vertical',
  548. // backgroundColor: '#FFFFFF',
  549. align: 'right',
  550. verticalAlign: 'top',
  551. x:-80,
  552. floating: true
  553. // shadow: true
  554. // layout: 'vertical',
  555. // align: 'right',
  556. // verticalAlign: 'middle',
  557. // borderWidth: 0
  558. },
  559. tooltip: {
  560. shared:true,
  561. xDateFormat:'%Y-%m-%d %H:%M'
  562. /*formatter: function() {
  563. return '<b>'+ this.series.name +'</b>:'+
  564. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  565. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  566. }*/
  567. },
  568. series: [{
  569. name: '限电损失电量(单位:万KWh)',
  570. yAxis:0
  571. },
  572. {name: '故障损失电量(单位:万KWh)',
  573. yAxis:0
  574. },{
  575. name: '检修损失电量(单位:万KWh)',
  576. yAxis:0
  577. },{
  578. name: '性能损失电量(单位:万KWh)',
  579. yAxis:0
  580. }
  581. ,{
  582. name: '受累损失电量(单位:万KWh)',
  583. yAxis:0
  584. }]
  585. };
  586. /******************************************玫瑰图1***********************************************/
  587. options2 = {
  588. colors: [
  589. '#7CB5EC',
  590. '#ACF19D'
  591. ],
  592. chart: {
  593. renderTo : 'fzy',
  594. polar: true,
  595. width:450,
  596. height:450,
  597. type: 'area'
  598. },
  599. title: {
  600. text: '对标排名分析',
  601. x: 0
  602. },
  603. pane: {
  604. size: '80%'
  605. },
  606. xAxis: {
  607. categories: ['风能利用率','故障损失率','检修损失率','弃风率','性能损失率','受累损失率','复位及时率','状态转换率','消缺及时率'
  608. ],
  609. tickmarkPlacement: 'on',
  610. lineWidth: 0
  611. },
  612. yAxis: {
  613. gridLineInterpolation: 'polygon',
  614. lineWidth: 0,
  615. min: 0
  616. },
  617. tooltip: {
  618. shared: true,
  619. pointFormat: '<span style="color:{series.color}"> <b>{point.y:,.0f}</b><br/>'
  620. },
  621. series: [{
  622. name: " ",
  623. data: [],
  624. pointPlacement: 'on'
  625. },{
  626. name: " ",
  627. data: [],
  628. pointPlacement: 'on'
  629. }]
  630. }
  631. /***************************************************************************************************/
  632. options3 = {
  633. colors: [
  634. '#00B259', //绿
  635. '#B20000', //红
  636. '#006DD9', //蓝
  637. '#000000', //黑
  638. '#FFBFFF',//藕荷色
  639. '#CC9900',//黄褐色
  640. '#FF8000',//橘黄
  641. '#DDDDDD',
  642. '#FF7744',
  643. '#33FFFF',
  644. '#FF44AA',
  645. '#FF00FF',
  646. '#FF0000',
  647. '#007799'
  648. ],
  649. chart : {
  650. renderTo : 'container3',
  651. height:313,width:785,
  652. plotBackgroundColor : null,
  653. plotBorderWidth : null,
  654. plotShadow : false
  655. },
  656. title : {
  657. text : '发电量占比'
  658. },
  659. tooltip : {
  660. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  661. },
  662. plotOptions : {
  663. pie : {
  664. allowPointSelect : true,
  665. cursor : 'pointer',
  666. dataLabels : {
  667. enabled : false,
  668. color : '#000000',
  669. connectorColor : '#000000',
  670. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  671. },
  672. showInLegend : true
  673. }
  674. },
  675. legend : {
  676. layout : 'vertical',
  677. align : 'left',
  678. verticalAlign : 'left',
  679. borderWidth : 0
  680. },
  681. series : [ {
  682. type : 'pie',
  683. name : '占比',
  684. data : []
  685. } ]
  686. }
  687. /***************************************************************************************************/
  688. options4 = {
  689. colors: [
  690. '#00B259', //绿
  691. '#B20000', //红
  692. '#006DD9', //蓝
  693. '#000000', //黑
  694. '#FFBFFF',//藕荷色
  695. '#CC9900',//黄褐色
  696. '#FF8000',//橘黄
  697. '#DDDDDD',
  698. '#FF7744',
  699. '#33FFFF',
  700. '#FF44AA',
  701. '#FF00FF',
  702. '#FF0000',
  703. '#007799'
  704. ],
  705. chart : {
  706. renderTo : 'container4',
  707. height:313,width:785,
  708. plotBackgroundColor : null,
  709. plotBorderWidth : null,
  710. plotShadow : false
  711. },
  712. title : {
  713. text : '损失电量占比'
  714. },
  715. tooltip : {
  716. pointFormat : '{series.name}: <b>{point.percentage:.1f}%</b>'
  717. },
  718. plotOptions : {
  719. pie : {
  720. allowPointSelect : true,
  721. cursor : 'pointer',
  722. dataLabels : {
  723. enabled : false,
  724. color : '#000000',
  725. connectorColor : '#000000',
  726. format : '<b>{point.name}</b>: {point.percentage:.1f} %'
  727. },
  728. showInLegend : true
  729. }
  730. },
  731. legend : {
  732. layout : 'vertical',
  733. align : 'left',
  734. verticalAlign : 'left',
  735. borderWidth : 0
  736. },
  737. series : [ {
  738. type : 'pie',
  739. name : '占比',
  740. data : []
  741. } ]
  742. }
  743. /***************************************************************************************************/
  744. options5 = {
  745. colors: [
  746. '#D201D8', //限电
  747. '#FD0100',//故障
  748. '#FF7B16', //维护
  749. '#8085E9',//性能
  750. '#A6A6A6' //受累
  751. ],
  752. chart: {
  753. renderTo: 'containers',
  754. type: 'column',
  755. width:450,
  756. height:300,
  757. //backgroundColor:'#BFDFFF',
  758. //plotBackgroundColor:'#BFDFFF',
  759. zoomType: 'x'
  760. },
  761. title : {
  762. text : '损失电量分析'
  763. },
  764. xAxis: {
  765. type: 'category'
  766. },
  767. yAxis: [{ // Primary yAxis
  768. labels: {
  769. format: '{value}万kw',
  770. style: {
  771. color: '#89A54E'
  772. }
  773. },
  774. title: {
  775. text: '电量',
  776. style: {
  777. color: '#89A54E'
  778. }
  779. }
  780. }],
  781. legend: {
  782. layout: 'vertical',
  783. // backgroundColor: '#FFFFFF',
  784. verticalAlign: 'top',
  785. x:-80,
  786. floating: true
  787. // shadow: true
  788. // layout: 'vertical',
  789. // align: 'right',
  790. // verticalAlign: 'middle',
  791. // borderWidth: 0
  792. },
  793. tooltip: {
  794. shared:true,
  795. xDateFormat:'%Y-%m-%d %H:%M'
  796. /*formatter: function() {
  797. return '<b>'+ this.series.name +'</b>:'+
  798. Highcharts.numberFormat(this.y, 2) +' 万kW<br/>时间:'+
  799. Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x);
  800. }*/
  801. },
  802. series: [{
  803. name: '限电损失电量(单位:万KWh)',
  804. yAxis:0
  805. },
  806. {name: '故障损失电量(单位:万KWh)',
  807. yAxis:0
  808. },{
  809. name: '检修损失电量(单位:万KWh)',
  810. yAxis:0
  811. },{
  812. name: '性能损失电量(单位:万KWh)',
  813. yAxis:0
  814. }
  815. ,{
  816. name: '受累损失电量(单位:万KWh)',
  817. yAxis:0
  818. }]
  819. };
  820. /***************************************************************************************************/
  821. showJqGrid();
  822. });
  823. function displaybuttons(cellvalue, options, rawObject) {
  824. var detail = "<input type='button' value='详情' onclick=detail('"
  825. + rawObject.wpId + "')>";
  826. return "&nbsp;&nbsp;&nbsp;\t" + detail + "&nbsp;&nbsp;&nbsp;\t";
  827. };
  828. function detail(wpId) {
  829. $("#f1").attr("action", "../benchmark/benchmarkLossWtindex.action?wpId="+wpId).submit();
  830. }
  831. function showJqGrid() {
  832. var wpId=wpids;
  833. var beginDate=$("#beginDate").val();
  834. var endDate=$("#endDate").val();
  835. var typeid=$("#typeid").val();
  836. findWpPowerChat(wpId,beginDate,endDate);
  837. var id = 'gridTable';
  838. var url = '<%=request.getContextPath() %>/benchmark/benchmarkLossList.action?wpId='+wpId
  839. +"&beginDate="+beginDate +"&endDate="+endDate;
  840. var datatype = 'json';
  841. var colNames = ['复位及时率分数','状态转换分数','状态转换分数','风能利用率分数','故障损失率分数','检修损失率分数'
  842. ,'弃风率分数','受累损失率分数','性能损失分数','风电场编号','风电场名称','综合排名', '发电量排名', '发电量', '故障损失电量排名', '故障损失电量', '检修损失电量排名', '检修损失电量', '性能损失电量排名', '性能损失电量',
  843. '限电损失电量排名', '限电损失电量', '受累损失电量排名', '受累损失电量',
  844. '风能利用率排名', '风能利用率(%)', '故障损失率排名', '故障损失率(%)','检修损失率排名',
  845. '检修损失率(%)','弃风率排名','弃风率(%)','性能损失率排名','性能损失率(%)','受累损失率排名','受累损失率(%)', '复位及时率排名', '复位及时率(%)', '状态转换率排名', '状态转换率(%)',
  846. '消缺及时率排名', '消缺及时率(%)', "操作"];
  847. var colModel =null;
  848. switch (typeid)
  849. {
  850. case "1":
  851. colModel = [
  852. { name: 'fwjslfraction', index: 'fwjslfraction', width: 240, align: 'center',hidden:true},
  853. { name: 'ztzhjslfraction', index: 'ztzhjslfraction', width: 240, align: 'center',hidden:true},
  854. { name: 'xqjslfraction', index: 'xqjslfraction', width: 240, align: 'center',hidden:true},
  855. { name: 'fnlylfraction', index: 'fnlylfraction', width: 240, align: 'center',hidden:true},
  856. { name: 'gzsslfraction', index: 'gzsslfraction', width: 240, align: 'center',hidden:true},
  857. { name: 'jxsslfraction', index: 'jxsslfraction', width: 240, align: 'center',hidden:true},
  858. { name: 'qflfraction', index: 'qflfraction', width: 240, align: 'center',hidden:true},
  859. { name: 'slsslfraction', index: 'slsslfraction', width: 240, align: 'center',hidden:true},
  860. { name: 'xnsslfraction', index: 'xnsslfraction', width: 240, align: 'center',hidden:true},
  861. { name: 'wpId', index: 'wpId', width: 240, align: 'center',hidden:true },
  862. { name: 'wpName', index: 'wpName', width: 240, align: 'center'},
  863. { name: 'ordernum', index: 'ordernum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  864. { name: 'scadafdlnum', index: 'scadafdlnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  865. { name: 'scadafdl', index: 'scadafdl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  866. { name: 'gzssnum', index: 'gzssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  867. { name: 'gzss', index: 'gzss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  868. { name: 'whssnum', index: 'whssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  869. { name: 'whss', index: 'whss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  870. { name: 'qfssnum', index: 'qfssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  871. { name: 'qfss', index: 'qfss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  872. { name: 'xdssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  873. { name: 'xdss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float'},
  874. { name: 'slssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  875. { name: 'slss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  876. { name: 'fnlylnum', index: 'fnlylnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  877. { name: 'fnlyl', index: 'fnlyl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  878. { name: 'gzsslnum', index: 'gzsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  879. { name: 'gzssl', index: 'gzssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  880. { name: 'jxsslnum', index: 'jxsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  881. { name: 'jxssl', index: 'jxssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  882. { name: 'qflnum', index: 'qflnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  883. { name: 'qfl', index: 'qfl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float'},
  884. { name: 'xnsslnum', index: 'xnsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  885. { name: 'xnssl', index: 'xnssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  886. { name: 'slsslnum', index: 'slsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  887. { name: 'slssl', index: 'slssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  888. { name: 'fwjslnum', index: 'fwjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  889. { name: 'fwjsl', index: 'fwjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  890. { name: 'ztzhjslnum', index: 'ztzhjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  891. { name: 'ztzhjsl', index: 'ztzhjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  892. { name: 'xqjslnum', index: 'xqjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  893. { name: 'xqjsl', index: 'xqjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  894. { name: 'wpId', index: 'wpId', width: 240, align: 'center',formatter:displaybuttons}
  895. ];
  896. break;
  897. case "2":
  898. colModel = [
  899. { name: 'fwjslfraction', index: 'fwjslfraction', width: 240, align: 'center',hidden:true},
  900. { name: 'ztzhjslfraction', index: 'ztzhjslfraction', width: 240, align: 'center',hidden:true},
  901. { name: 'xqjslfraction', index: 'xqjslfraction', width: 240, align: 'center',hidden:true},
  902. { name: 'fnlylfraction', index: 'fnlylfraction', width: 240, align: 'center',hidden:true},
  903. { name: 'gzsslfraction', index: 'gzsslfraction', width: 240, align: 'center',hidden:true},
  904. { name: 'jxsslfraction', index: 'jxsslfraction', width: 240, align: 'center',hidden:true},
  905. { name: 'qflfraction', index: 'qflfraction', width: 240, align: 'center',hidden:true},
  906. { name: 'slsslfraction', index: 'slsslfraction', width: 240, align: 'center',hidden:true},
  907. { name: 'xnsslfraction', index: 'xnsslfraction', width: 240, align: 'center',hidden:true},
  908. { name: 'wpId', index: 'wpId', width: 240, align: 'center',hidden:true },
  909. { name: 'wpName', index: 'wpName', width: 240, align: 'center'},
  910. { name: 'ordernum', index: 'ordernum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  911. { name: 'scadafdlnum', index: 'scadafdlnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  912. { name: 'scadafdl', index: 'scadafdl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  913. { name: 'gzssnum', index: 'gzssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  914. { name: 'gzss', index: 'gzss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float'},
  915. { name: 'whssnum', index: 'whssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  916. { name: 'whss', index: 'whss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  917. { name: 'qfssnum', index: 'qfssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  918. { name: 'qfss', index: 'qfss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  919. { name: 'xdssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  920. { name: 'xdss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  921. { name: 'slssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  922. { name: 'slss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  923. { name: 'fnlylnum', index: 'fnlylnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  924. { name: 'fnlyl', index: 'fnlyl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  925. { name: 'gzsslnum', index: 'gzsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  926. { name: 'gzssl', index: 'gzssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float'},
  927. { name: 'jxsslnum', index: 'jxsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  928. { name: 'jxssl', index: 'jxssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  929. { name: 'qflnum', index: 'qflnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  930. { name: 'qfl', index: 'qfl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  931. { name: 'xnsslnum', index: 'xnsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  932. { name: 'xnssl', index: 'xnssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  933. { name: 'slsslnum', index: 'slsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  934. { name: 'slssl', index: 'slssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  935. { name: 'fwjslnum', index: 'fwjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  936. { name: 'fwjsl', index: 'fwjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  937. { name: 'ztzhjslnum', index: 'ztzhjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  938. { name: 'ztzhjsl', index: 'ztzhjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  939. { name: 'xqjslnum', index: 'xqjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  940. { name: 'xqjsl', index: 'xqjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  941. { name: 'wpId', index: 'wpId', width: 240, align: 'center',formatter:displaybuttons}
  942. ];
  943. break;
  944. case "3":
  945. colModel = [
  946. { name: 'fwjslfraction', index: 'fwjslfraction', width: 240, align: 'center',hidden:true},
  947. { name: 'ztzhjslfraction', index: 'ztzhjslfraction', width: 240, align: 'center',hidden:true},
  948. { name: 'xqjslfraction', index: 'xqjslfraction', width: 240, align: 'center',hidden:true},
  949. { name: 'fnlylfraction', index: 'fnlylfraction', width: 240, align: 'center',hidden:true},
  950. { name: 'gzsslfraction', index: 'gzsslfraction', width: 240, align: 'center',hidden:true},
  951. { name: 'jxsslfraction', index: 'jxsslfraction', width: 240, align: 'center',hidden:true},
  952. { name: 'qflfraction', index: 'qflfraction', width: 240, align: 'center',hidden:true},
  953. { name: 'slsslfraction', index: 'slsslfraction', width: 240, align: 'center',hidden:true},
  954. { name: 'xnsslfraction', index: 'xnsslfraction', width: 240, align: 'center',hidden:true},
  955. { name: 'wpId', index: 'wpId', width: 240, align: 'center',hidden:true },
  956. { name: 'wpName', index: 'wpName', width: 240, align: 'center'},
  957. { name: 'ordernum', index: 'ordernum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  958. { name: 'scadafdlnum', index: 'scadafdlnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  959. { name: 'scadafdl', index: 'scadafdl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  960. { name: 'gzssnum', index: 'gzssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  961. { name: 'gzss', index: 'gzss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  962. { name: 'whssnum', index: 'whssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  963. { name: 'whss', index: 'whss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float'},
  964. { name: 'qfssnum', index: 'qfssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  965. { name: 'qfss', index: 'qfss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  966. { name: 'xdssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  967. { name: 'xdss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  968. { name: 'slssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  969. { name: 'slss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  970. { name: 'fnlylnum', index: 'fnlylnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  971. { name: 'fnlyl', index: 'fnlyl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  972. { name: 'gzsslnum', index: 'gzsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  973. { name: 'gzssl', index: 'gzssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  974. { name: 'jxsslnum', index: 'jxsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  975. { name: 'jxssl', index: 'jxssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float'},
  976. { name: 'qflnum', index: 'qflnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  977. { name: 'qfl', index: 'qfl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  978. { name: 'xnsslnum', index: 'xnsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  979. { name: 'xnssl', index: 'xnssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  980. { name: 'slsslnum', index: 'slsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  981. { name: 'slssl', index: 'slssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  982. { name: 'fwjslnum', index: 'fwjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  983. { name: 'fwjsl', index: 'fwjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  984. { name: 'ztzhjslnum', index: 'ztzhjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  985. { name: 'ztzhjsl', index: 'ztzhjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  986. { name: 'xqjslnum', index: 'xqjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  987. { name: 'xqjsl', index: 'xqjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  988. { name: 'wpId', index: 'wpId', width: 240, align: 'center',formatter:displaybuttons}
  989. ];
  990. break;
  991. case "4":
  992. colModel = [
  993. { name: 'fwjslfraction', index: 'fwjslfraction', width: 240, align: 'center',hidden:true},
  994. { name: 'ztzhjslfraction', index: 'ztzhjslfraction', width: 240, align: 'center',hidden:true},
  995. { name: 'xqjslfraction', index: 'xqjslfraction', width: 240, align: 'center',hidden:true},
  996. { name: 'fnlylfraction', index: 'fnlylfraction', width: 240, align: 'center',hidden:true},
  997. { name: 'gzsslfraction', index: 'gzsslfraction', width: 240, align: 'center',hidden:true},
  998. { name: 'jxsslfraction', index: 'jxsslfraction', width: 240, align: 'center',hidden:true},
  999. { name: 'qflfraction', index: 'qflfraction', width: 240, align: 'center',hidden:true},
  1000. { name: 'slsslfraction', index: 'slsslfraction', width: 240, align: 'center',hidden:true},
  1001. { name: 'xnsslfraction', index: 'xnsslfraction', width: 240, align: 'center',hidden:true},
  1002. { name: 'wpId', index: 'wpId', width: 240, align: 'center',hidden:true },
  1003. { name: 'wpName', index: 'wpName', width: 240, align: 'center'},
  1004. { name: 'ordernum', index: 'ordernum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1005. { name: 'scadafdlnum', index: 'scadafdlnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1006. { name: 'scadafdl', index: 'scadafdl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1007. { name: 'gzssnum', index: 'gzssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1008. { name: 'gzss', index: 'gzss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1009. { name: 'whssnum', index: 'whssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1010. { name: 'whss', index: 'whss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1011. { name: 'qfssnum', index: 'qfssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  1012. { name: 'qfss', index: 'qfss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float'},
  1013. { name: 'xdssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1014. { name: 'xdss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1015. { name: 'slssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1016. { name: 'slss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1017. { name: 'fnlylnum', index: 'fnlylnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1018. { name: 'fnlyl', index: 'fnlyl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1019. { name: 'gzsslnum', index: 'gzsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1020. { name: 'gzssl', index: 'gzssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1021. { name: 'jxsslnum', index: 'jxsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1022. { name: 'jxssl', index: 'jxssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1023. { name: 'qflnum', index: 'qflnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1024. { name: 'qfl', index: 'qfl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1025. { name: 'xnsslnum', index: 'xnsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  1026. { name: 'xnssl', index: 'xnssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float'},
  1027. { name: 'slsslnum', index: 'slsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1028. { name: 'slssl', index: 'slssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1029. { name: 'fwjslnum', index: 'fwjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1030. { name: 'fwjsl', index: 'fwjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1031. { name: 'ztzhjslnum', index: 'ztzhjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1032. { name: 'ztzhjsl', index: 'ztzhjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1033. { name: 'xqjslnum', index: 'xqjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1034. { name: 'xqjsl', index: 'xqjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1035. { name: 'wpId', index: 'wpId', width: 240, align: 'center',formatter:displaybuttons}
  1036. ];
  1037. break;
  1038. case "5":
  1039. colModel = [
  1040. { name: 'fwjslfraction', index: 'fwjslfraction', width: 240, align: 'center',hidden:true},
  1041. { name: 'ztzhjslfraction', index: 'ztzhjslfraction', width: 240, align: 'center',hidden:true},
  1042. { name: 'xqjslfraction', index: 'xqjslfraction', width: 240, align: 'center',hidden:true},
  1043. { name: 'fnlylfraction', index: 'fnlylfraction', width: 240, align: 'center',hidden:true},
  1044. { name: 'gzsslfraction', index: 'gzsslfraction', width: 240, align: 'center',hidden:true},
  1045. { name: 'jxsslfraction', index: 'jxsslfraction', width: 240, align: 'center',hidden:true},
  1046. { name: 'qflfraction', index: 'qflfraction', width: 240, align: 'center',hidden:true},
  1047. { name: 'slsslfraction', index: 'slsslfraction', width: 240, align: 'center',hidden:true},
  1048. { name: 'xnsslfraction', index: 'xnsslfraction', width: 240, align: 'center',hidden:true},
  1049. { name: 'wpId', index: 'wpId', width: 240, align: 'center',hidden:true },
  1050. { name: 'wpName', index: 'wpName', width: 240, align: 'center'},
  1051. { name: 'ordernum', index: 'ordernum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1052. { name: 'scadafdlnum', index: 'scadafdlnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1053. { name: 'scadafdl', index: 'scadafdl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1054. { name: 'gzssnum', index: 'gzssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1055. { name: 'gzss', index: 'gzss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1056. { name: 'whssnum', index: 'whssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1057. { name: 'whss', index: 'whss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1058. { name: 'qfssnum', index: 'qfssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1059. { name: 'qfss', index: 'qfss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1060. { name: 'xdssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1061. { name: 'xdss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float',hidden:true},
  1062. { name: 'slssnum', index: 'slssnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  1063. { name: 'slss', index: 'slss', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'float'},
  1064. { name: 'fnlylnum', index: 'fnlylnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1065. { name: 'fnlyl', index: 'fnlyl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1066. { name: 'gzsslnum', index: 'gzsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1067. { name: 'gzssl', index: 'gzssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1068. { name: 'jxsslnum', index: 'jxsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1069. { name: 'jxssl', index: 'jxssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1070. { name: 'qflnum', index: 'qflnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1071. { name: 'qfl', index: 'qfl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1072. { name: 'xnsslnum', index: 'xnsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1073. { name: 'xnssl', index: 'xnssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1074. { name: 'slsslnum', index: 'slsslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int'},
  1075. { name: 'slssl', index: 'slssl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float'},
  1076. { name: 'fwjslnum', index: 'fwjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1077. { name: 'fwjsl', index: 'fwjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1078. { name: 'ztzhjslnum', index: 'ztzhjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1079. { name: 'ztzhjsl', index: 'ztzhjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1080. { name: 'xqjslnum', index: 'xqjslnum', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 0},sorttype: 'int',hidden:true},
  1081. { name: 'xqjsl', index: 'xqjsl', width: 240, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'float',hidden:true},
  1082. { name: 'wpId', index: 'wpId', width: 240, align: 'center',formatter:displaybuttons}
  1083. ];
  1084. break;
  1085. }
  1086. var caption = '损失率对标列表';
  1087. var sortname = 'total';
  1088. var gridPagerID ='gridPager';
  1089. var sortorder='desc';
  1090. var height='auto';
  1091. var width='auto';
  1092. var rownumbers=true;
  1093. var multiselect=true;
  1094. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  1095. multiselect,rownumbers);
  1096. }
  1097. function initial()
  1098. {
  1099. $.fn.zTree.init($("#treeWindfarm"), setting);
  1100. wpids='<s:property value="wpId"/>';
  1101. $("#beginDate").val('<s:property value="beginDate"/>');
  1102. $("#endDate").val('<s:property value="endDate"/>');
  1103. $("#wpId").val('${wpName}');
  1104. }
  1105. </script>
  1106. <style type="text/css">
  1107. fieldset legend {
  1108. color:#302A2A;
  1109. font: bold 16px/2 Verdana, Geneva, sans-serif;
  1110. font-weight: bold;
  1111. text-align: left;
  1112. text-shadow: 2px 2px 2px rgb(88, 126, 156);
  1113. }
  1114. .ui-jqgrid tr.jqgrow td {
  1115. white-space: normal !important;
  1116. height:auto;
  1117. vertical-align:text-top;
  1118. padding-top:2px;
  1119. }
  1120. th.ui-th-column div{
  1121. white-space:normal !important;
  1122. height:auto !important;
  1123. padding:0px;
  1124. }
  1125. .text_title {
  1126. font-family: "宋体";
  1127. font-size: 12px;
  1128. color: #000;
  1129. text-decoration: none;
  1130. }
  1131. .text_unit {
  1132. font-family: "宋体";
  1133. font-size: 12px;
  1134. color: #333;
  1135. text-decoration: none;
  1136. }
  1137. .text_main{
  1138. font-family: Arial, Helvetica, sans-serif;
  1139. font-size: 12px;
  1140. color: #000;
  1141. text-decoration: none;
  1142. font-weight: bold;
  1143. }
  1144. fieldset legend {
  1145. color:#302A2A;
  1146. font: bold 16px/2 Verdana, Geneva, sans-serif;
  1147. font-weight: bold;
  1148. text-align: left;
  1149. text-shadow: 2px 2px 2px rgb(88, 126, 156);
  1150. }
  1151. .panelcontainer {
  1152. width: 100%;
  1153. height: 70px;
  1154. border-style: solid;
  1155. border-color: #f1f1f1;
  1156. border-width:1px;
  1157. }
  1158. .panelquery {
  1159. width:100%;
  1160. height:25px;
  1161. background-color:#f1f1f1;
  1162. line-height:25px;
  1163. }
  1164. .panelquerytext {
  1165. margin-left:3px;
  1166. font-weight:bold;
  1167. font-size: 12px;
  1168. font-family: tahoma,arial,verdana,sans-serif;
  1169. }
  1170. .querycondcontainer {
  1171. line-height:39px;
  1172. padding:3px;
  1173. float:left;
  1174. font-size: 12px;
  1175. }
  1176. </style>
  1177. </head>
  1178. <body>
  1179. <form action="lossIndex.action" method="post" id="f1">
  1180. <div class="panelcontainer" style="width:1620px;" >
  1181. <div class="querycondcontainer">
  1182. 场站:<input id="wpId" type="text" readonly value="" style="width:400px;" onclick="showWindfarm();" />
  1183. </div>
  1184. <div class="querycondcontainer">
  1185. 分类:<select name="typeid" id="typeid" >
  1186. <option value="1">弃风率</option>
  1187. <option value="2" selected="selected">故障损失率</option>
  1188. <option value="3">检修损失率</option>
  1189. <option value="4">性能损失率</option>
  1190. <option value="5">受累损失率</option>
  1191. </select>
  1192. </div>
  1193. <div class="querycondcontainer">
  1194. 开始日期:<input type="text" style="width:150px;" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowWeek:true,readOnly:true})"
  1195. id="beginDate" name="beginDate"/>
  1196. </div>
  1197. <div class="querycondcontainer">
  1198. 结束日期:<input type="text" style="width:150px;" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowWeek:true,readOnly:true})"
  1199. id="endDate" name="endDate"/>
  1200. </div>
  1201. <div style="float:left;line-height:39px;margin-left:20px;width:80px;">
  1202. <input id="backbuttona" type="button" value="查询" onClick="queryData()" />
  1203. </div>
  1204. <div style="float:left;line-height:39px;margin-left:20px;width:80px;">
  1205. <input id="backbuttona" type="button" value="对标分析" onClick="contrast()" />
  1206. </div>
  1207. </div>
  1208. <div id="menuWindfarm" class="menuContent" style="overflow-y:scroll;overflow-x:auto;z-index:9999; border: 1px solid #617775;background: #f0f6e4;display:none;position: absolute;">
  1209. <ul id="treeWindfarm" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
  1210. </div>
  1211. <table id='gridTable' >
  1212. </table>
  1213. <div id='gridPager'></div>
  1214. <br/>
  1215. <div id="container2" style="width:1570px;height:310px;float:left">
  1216. <div id="container3" style=" width:785px; float:left"></div>
  1217. <div id="container4" style=" width:785px; float:left"></div>
  1218. </div>
  1219. <br/>
  1220. <div id="container" style="width:1570px;height:310px"></div>
  1221. </form>
  1222. <div class="highslide-html-content" id="showDiv" style="width: 1000">
  1223. <div class="highslide-header">
  1224. <ul>
  1225. <li class="highslide-move">
  1226. <a href="#" onclick="return false">Move</a>
  1227. </li>
  1228. <li class="highslide-close" style="width: 18px;height: 10px">
  1229. <a href="#" onclick="return hs.close(this)" ></a>
  1230. </li>
  1231. </ul>
  1232. </div>
  1233. <div class="highslide-body" id="container1" style="width: 1100;height : 1050;">
  1234. <table width="1000" border="0" cellspacing="0" cellpadding="0" bgcolor="#efefef">
  1235. <tr>
  1236. <td width="560" rowspan="15" align="center" bgcolor="#FFFFFF"><div id="fzy"></div><div id="containers"></div></td>
  1237. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span class='text_main' >指标</span></td>
  1238. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span class='text_main' id="wpid1" >指标</span></td>
  1239. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span class='text_main' id="wpid2">指标</span></td>
  1240. </tr>
  1241. <tr>
  1242. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>发电量</span></td>
  1243. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="scadafdl1" class='text_title'></span></td>
  1244. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="scadafdl2" class='text_title'></span></td>
  1245. </tr>
  1246. <tr>
  1247. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>故障损失电量</span></td>
  1248. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="gzss1" class='text_title'></span></td>
  1249. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="gzss2" class='text_title'></span></td>
  1250. </tr>
  1251. <tr>
  1252. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>检修损失电量</span></td>
  1253. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="whss1" class='text_title'></span></td>
  1254. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="whss2" class='text_title'></span></td>
  1255. </tr>
  1256. <tr>
  1257. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>性能损失电量</span></td>
  1258. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="qfss1" class='text_title'></span></td>
  1259. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="qfss2" class='text_title'></span></td>
  1260. </tr>
  1261. <tr>
  1262. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>受累损失电量</span></td>
  1263. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="slss1" class='text_title'></span></td>
  1264. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="slss2" class='text_title'></span></td>
  1265. </tr>
  1266. <tr>
  1267. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>风能利用率</span></td>
  1268. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="fnlyl1" class='text_title'></span></td>
  1269. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="fnlyl2" class='text_title'></span></td>
  1270. </tr>
  1271. <tr>
  1272. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>故障损失率</span></td>
  1273. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="gzssl1" class='text_title'></span></td>
  1274. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="gzssl2" class='text_title'></span></td>
  1275. </tr>
  1276. <tr>
  1277. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>检修损失率</span></td>
  1278. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="jxssl1" class='text_title'></span></td>
  1279. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="jxssl2" class='text_title'></span></td>
  1280. </tr>
  1281. <tr>
  1282. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>弃风率</span></td>
  1283. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="qfl1" class='text_title'></span></td>
  1284. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="qfl2" class='text_title'></span></td>
  1285. </tr>
  1286. <tr>
  1287. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>性能损失率</span></td>
  1288. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="xnssl1" class='text_title'></span></td>
  1289. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="xnssl2" class='text_title'></span></td>
  1290. </tr>
  1291. <tr>
  1292. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>受累损失率</span></td>
  1293. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="slssl1" class='text_title'></span></td>
  1294. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="slssl2" class='text_title'></span></td>
  1295. </tr>
  1296. <tr>
  1297. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>复位及时率</span></td>
  1298. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="fwjsl1" class='text_title'></span></td>
  1299. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="fwjsl2" class='text_title'></span></td>
  1300. </tr>
  1301. <tr>
  1302. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>消缺及时率</span></td>
  1303. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="xqjsl1" class='text_title'></span></td>
  1304. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="xqjsl2" class='text_title'></span></td>
  1305. </tr>
  1306. <tr>
  1307. <td width="140" height="50" align="center" valign="middle" bgcolor="#FFFFFF"><span id="" class='text_title'>状态转换率</span></td>
  1308. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="ztzhjsl1" class='text_title'></span></td>
  1309. <td width="140" height="50" align="center" bgcolor="#FFFFFF"><span id="ztzhjsl2" class='text_title'></span></td>
  1310. </tr>
  1311. </table>
  1312. </div>
  1313. </div>
  1314. <!--***************************************************************************************************************************-->
  1315. <div class="highslide-html-content" id="showDiv2" style="width: 1000">
  1316. <div class="highslide-header">
  1317. <ul>
  1318. <li class="highslide-move">
  1319. <a href="#" onclick="return false">Move</a>
  1320. </li>
  1321. <li class="highslide-close" style="width: 18px;height: 10px">
  1322. <a href="#" onclick="return hs.close(this)" ></a>
  1323. </li>
  1324. </ul>
  1325. </div>
  1326. <div class="highslide-body" id="container5" style="width: 1000">
  1327. <!--***************************************************************************************************************************-->
  1328. <div id="gzsscs" style="display:none">
  1329. <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#efefef">
  1330. <tr>
  1331. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >故障损失应对措施</span><span id="wtid" class='text_title'></span></td>
  1332. </tr>
  1333. <tr>
  1334. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >1、加强风机大部件的维护、消缺工作,确保能够长周期运行。</span><span id="wtid" class='text_title'></span></td>
  1335. </tr>
  1336. <tr>
  1337. <td width="579" height="26" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>2、定期针对风机易损件的更换、检查、维护,减少风机易损件故障的影响。</span><span id="level" class='text_title'></span></td>
  1338. </tr>
  1339. <tr>
  1340. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>3、加强备品备件的管理;提前采购,并采购优质的备品备件;定期对备品备件进行维护。</span>
  1341. </td>
  1342. </tr>
  1343. <tr>
  1344. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>4、按期、保证质量的完成定检项目。</span>
  1345. </td>
  1346. </tr>
  1347. <tr>
  1348. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>5、加强技术力量的储备、培训,培养优秀的风机检修维护人员。</span>
  1349. </td>
  1350. </tr>
  1351. <tr>
  1352. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>6、采购适用各类型风机检修、检测的工器具、仪表。</span>
  1353. </td>
  1354. </tr>
  1355. <tr>
  1356. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>7、建立检修、维护时间定额、工艺确认、验收等管理机制。</span>
  1357. </td>
  1358. </tr>
  1359. </table>
  1360. </div>
  1361. <!--***************************************************************************************************************************-->
  1362. <div id="xnsscs" style="display:none">
  1363. <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#efefef">
  1364. <tr>
  1365. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >性能损失应对措施</span><span id="wtid" class='text_title'></span></td>
  1366. </tr>
  1367. <tr>
  1368. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >1、积极协调风机厂家技术人员,进行风机控制策略升级,提高切入风速、额定风速合格率,使风机进入最佳状态。</span><span id="wtid" class='text_title'></span></td>
  1369. </tr>
  1370. <tr>
  1371. <td width="579" height="26" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>2、加强风机大部件的维护、消缺工作,确保能够长周期运行。</span><span id="level" class='text_title'></span></td>
  1372. </tr>
  1373. <tr>
  1374. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>3、定期针对风机易损件的更换、检查、维护,减少风机易损件故障的影响。</span>
  1375. </td>
  1376. </tr>
  1377. <tr>
  1378. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>4、加强备品备件的管理;提前采购,并采购优质的备品备件;定期对备品备件进行维护。</span>
  1379. </td>
  1380. </tr>
  1381. <tr>
  1382. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>5、制定年度技改项目计划,及时进行风机性能优化,风能利用率。</span>
  1383. </td>
  1384. </tr>
  1385. <tr>
  1386. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>6、申请技改费用,更换风速仪、风向标为声波或激光测风,提升风机控制。</span>
  1387. </td>
  1388. </tr>
  1389. <tr>
  1390. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>7、按期、保证质量的完成定检项目。</span>
  1391. </td>
  1392. </tr>
  1393. <tr>
  1394. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>8、加强技术力量的储备、培训,培养优秀的风机检修维护人员。</span>
  1395. </td>
  1396. </tr>
  1397. <tr>
  1398. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>9、采购适用各类型风机检修、检测的工器具、仪表。</span>
  1399. </td>
  1400. </tr>
  1401. <tr>
  1402. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>10、建立风机性能优化、提效的技术团队;建立检修维护工艺确认、验收管理等机制。</span>
  1403. </td>
  1404. </tr>
  1405. </table>
  1406. </div>
  1407. <!--***************************************************************************************************************************-->
  1408. <div id="jxsscs" style="display:none">
  1409. <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#efefef">
  1410. <tr>
  1411. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >检修损失应对措施</span><span id="wtid" class='text_title'></span></td>
  1412. </tr>
  1413. <tr>
  1414. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >1、进行检修时间优化(年度计划时间的确定,检修工期的优化)。</span><span id="wtid" class='text_title'></span></td>
  1415. </tr>
  1416. <tr>
  1417. <td width="579" height="26" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>2、季节检修向状态检修转变。</span><span id="level" class='text_title'></span></td>
  1418. </tr>
  1419. <tr>
  1420. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>3、通过制定详细、周密的检修计划,确定检修项目,定额情况,确保按计划或提前完成检修工作。</span>
  1421. </td>
  1422. </tr>
  1423. <tr>
  1424. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>4、提前安排备品备件的采购工作,确保检修工作前,备品备件到场。</span>
  1425. </td>
  1426. </tr>
  1427. <tr>
  1428. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>5、定期检查检修工具、仪器仪表等的配置、完好。提前联系大型车辆、机械等设备到场。做好其他车辆的检查、维护工作,保证车辆不出现异常情况。</span>
  1429. </td>
  1430. </tr>
  1431. <tr>
  1432. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>6、提前做好检修队伍的落实,人员资质、技术能力的审查。</span>
  1433. </td>
  1434. </tr>
  1435. <tr>
  1436. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>7、做好检修的设备性能、状态、可靠性、缺陷(故障)情况的详查,落实检修项目。</span>
  1437. </td>
  1438. </tr>
  1439. <tr>
  1440. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>8、检修工作中严格执行检修作业指导书,标准化检修。</span>
  1441. </td>
  1442. </tr>
  1443. <tr>
  1444. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>9、合理安排检修、运行人员,缩短工期。</span>
  1445. </td>
  1446. </tr>
  1447. <tr>
  1448. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>10、加强后勤保障能力,保证人员吃住行的安全。</span>
  1449. </td>
  1450. </tr>
  1451. <tr>
  1452. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>11、进行班前思想教育、统一思想,认真完成工作交底,确保人员、设备安全。</span>
  1453. </td>
  1454. </tr>
  1455. </table>
  1456. </div>
  1457. <!--***************************************************************************************************************************-->
  1458. <div id="slsscs" style="display:none">
  1459. <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#efefef">
  1460. <tr>
  1461. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >受累损失应对措施</span><span id="wtid" class='text_title'></span></td>
  1462. </tr>
  1463. <tr>
  1464. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >1、关注电网计划检修时间,合理优化、适当建议电网检修避开大风天气、恶略天气。</span><span id="wtid" class='text_title'></span></td>
  1465. </tr>
  1466. <tr>
  1467. <td width="579" height="26" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>2、恶略天气关注电网的变化,根据实际情况适当变换运行方式,做好事故预想。</span><span id="level" class='text_title'></span></td>
  1468. </tr>
  1469. <tr>
  1470. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>3、电网出现故障后,积极联络、及时沟通、主动采取措施,尽快消除故障,恢复运行。</span>
  1471. </td>
  1472. </tr>
  1473. <tr>
  1474. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>4、电网检修时,安排专人负责联系检修人员、大客户经理、调度员等,确认检修进度,及时反馈。工作完成后,及时联系相关人员,争取提前恢复运行。安排风场做好恢复运行的准备工作。</span>
  1475. </td>
  1476. </tr>
  1477. </table>
  1478. </div>
  1479. <!--***************************************************************************************************************************-->
  1480. <div id="xdsscs" style="display:none">
  1481. <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#efefef">
  1482. <tr>
  1483. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >限电损失应对措施</span><span id="wtid" class='text_title'></span></td>
  1484. </tr>
  1485. <tr>
  1486. <td width="579" height="20" align="left" bgcolor="#FFFFFF"><span class='text_main' >1、关注国家、自治区、电网各级关于弃风限电的政策。按相关政策要求,及时应对和采取措施。</span><span id="wtid" class='text_title'></span></td>
  1487. </tr>
  1488. <tr>
  1489. <td width="579" height="26" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>2、在新能源电量与小火电置换、大用户直供、外送等方面增加营销力度。</span><span id="level" class='text_title'></span></td>
  1490. </tr>
  1491. <tr>
  1492. <td width="579" height="28" align="left" bgcolor="#FFFFFF"><span id="span" class='text_main'>3、积极与宁夏电网调度机构进行沟通,在负荷有空间时,有较高风速时,及时申请提高负荷。</span>
  1493. </td>
  1494. </tr>
  1495. </table>
  1496. </div>
  1497. <!--***************************************************************************************************************************-->
  1498. </div>
  1499. </div>
  1500. <!--***************************************************************************************************************************-->
  1501. </body>