123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <%@ page language="java" contentType="text/html;charset=utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp"%>
- <head>
- <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js"></script>
- <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
- <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
- <script type="text/javascript" src="<%=request.getContextPath()%>/resource/plugin/highslide/highslide-with-html.js"></script>
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resource/plugin/highslide/highslide.css" />
- <script type="text/ecmascript" src="<%=request.getContextPath()%>/pages/apdata/powercomparegrid.js"></script>
- <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
- <script type="text/javascript">
-
- $(document).ready(function(){
- showJqGrid();
- });
- function showJqGrid() {
-
- var id = 'gridTable';
- var url = '${url}';
- var datatype = 'json';
- //var colNames = ['编号','名称', '理论发电量','SCADA发电量','风速','非计划检修','计划检修','受累','限电','性能','风能利用率(%)'];
- var colNames = ['编号','名称', '理论发电量','SCADA发电量','风速','故障损失电量','故障受累损失电量','检修损失电量','检修受累损失电量',
- '电网受累损失电量','环境受累损失电量','限电降出力损失电量','限电停机损失电量','待风损失电量','手动停机损失电量','正常发电损失电量',
- '缺陷降出力损失电量','风能利用率(%)'];
- var colModel = [
- { name: 'windPowerStationId', index: 'windPowerStationId', width: 150, align: 'center', hidden:true,key: true },
- { name: 'name', index: 'name', width: 130, align: 'center', sortable: true},
- { name: 'llfdl', index: 'llfdl', width: 100, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'scadafdl', index: 'scadafdl', width: 100, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'avgSpeed', index: 'avgSpeed', width: 40, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower6', index: 'statusLossofpower6', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower7', index: 'statusLossofpower7', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower8', index: 'statusLossofpower8', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower9', index: 'statusLossofpower9', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower10', index: 'statusLossofpower10', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower11', index: 'statusLossofpower11', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower4', index: 'statusLossofpower4', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower5', index: 'statusLossofpower5', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower0', index: 'statusLossofpower0', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower1', index: 'statusLossofpower1', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower2', index: 'statusLossofpower2', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'statusLossofpower3', index: 'statusLossofpower3', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'fnlyl', index: 'fnlyl', width: 80, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'}
- ];
- var caption = '项目列表';
- var sortname = 'fnlyl';
- var gridPagerID ='gridPager';
- var sortorder='desc';
- var height='auto';
- var width='960';
- var rownumbers=true;
- var multiselect=false;
- myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID,sortorder,height,width,
- multiselect,rownumbers);
- }
- function goWtInfo(id)
- {
- console.log(id);
- if(id!=null && id !='')
- {
- parent.wpids=id;
- parent.pjIds=id;
- parent.lines=id;
- parent.queryApData();
- }
- }
- </script>
- </head>
- <body>
- <form action="" method="post" id="f1">
-
- <table id='gridTable' >
- </table>
- </form>
- </body>
|