powercomparedetailNew.jsp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <%@ page language="java" contentType="text/html;charset=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/javascript" src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js"></script>
  8. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
  9. <script type="text/ecmascript" src="<%=request.getContextPath()%>/pages/apdata/powercomparegrid.js"></script>
  10. <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
  11. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  12. <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
  13. <script type="text/javascript">
  14. $(document).ready(function(){
  15. showJqGrid();
  16. });
  17. function showJqGrid() {
  18. var id = 'gridTable';
  19. var url = '${url}';
  20. var datatype = 'json';
  21. //var colNames = ['编号','名称', '理论发电量','SCADA发电量','风速','非计划检修','计划检修','受累','限电','性能','风能利用率(%)'];
  22. var colNames = ['编号','名称', '理论发电量','SCADA发电量','风速','故障损失电量','故障受累损失电量','检修损失电量','检修受累损失电量',
  23. '电网受累损失电量','环境受累损失电量','限电降出力损失电量','限电停机损失电量','待风损失电量','手动停机损失电量','正常发电损失电量',
  24. '缺陷降出力损失电量','风能利用率(%)'];
  25. var colModel = [
  26. { name: 'windPowerStationId', index: 'windPowerStationId', width: 110, align: 'center', hidden:true,key: true },
  27. { name: 'name', index: 'name', width: 80, align: 'center', sortable: true},
  28. { name: 'llfdl', index: 'llfdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  29. { name: 'scadafdl', index: 'scadafdl', width: 80, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  30. { name: 'avgSpeed', index: 'avgSpeed', width: 40, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  31. { name: 'statusLossofpower6', index: 'statusLossofpower6', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  32. { name: 'statusLossofpower7', index: 'statusLossofpower7', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  33. { name: 'statusLossofpower8', index: 'statusLossofpower8', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  34. { name: 'statusLossofpower9', index: 'statusLossofpower9', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  35. { name: 'statusLossofpower10', index: 'statusLossofpower10', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  36. { name: 'statusLossofpower11', index: 'statusLossofpower11', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  37. { name: 'statusLossofpower4', index: 'statusLossofpower4', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  38. { name: 'statusLossofpower5', index: 'statusLossofpower5', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  39. { name: 'statusLossofpower0', index: 'statusLossofpower0', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  40. { name: 'statusLossofpower1', index: 'statusLossofpower1', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  41. { name: 'statusLossofpower2', index: 'statusLossofpower2', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  42. { name: 'statusLossofpower3', index: 'statusLossofpower3', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
  43. { name: 'fnlyl', index: 'fnlyl', width: 80, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'}
  44. ];
  45. var caption = '项目列表';
  46. var sortname = 'fnlyl';
  47. var gridPagerID ='gridPager';
  48. var sortorder='desc';
  49. var height='auto';
  50. var width='960';
  51. var rownumbers=true;
  52. var multiselect=false;
  53. myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
  54. multiselect,rownumbers);
  55. }
  56. function goWtInfo(id)
  57. {
  58. console.log(id);
  59. if(id!=null && id !='')
  60. {
  61. parent.wpids=id;
  62. parent.pjIds=id;
  63. parent.lines=id;
  64. parent.queryApData();
  65. }
  66. }
  67. </script>
  68. </head>
  69. <body>
  70. <form action="" method="post" id="f1">
  71. <table id='gridTable' >
  72. </table>
  73. </form>
  74. </body>