12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <%@ 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: 'wtId', index: 'wtId', width: 110, align: 'center', hidden:true,key: true },
- { name: 'wtName', index: 'wtName', width: 80, align: 'center', sortable: true},
- { name: 'total', index: 'total', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'daydl2', index: 'daydl2', width: 80, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'dayspeed', index: 'dayspeed', width: 40, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'},
- { name: 'daynhgzssdl', index: 'daynhgzssdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'daynhwhssdl', index: 'daynhwhssdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'daynhcfdl', index: 'daynhcfdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'daynhxdssdl', index: 'daynhxdssdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'daynhqfdl', index: 'daynhqfdl', width: 60, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 4},sorttype: 'int'},
- { name: 'lyl', index: 'lyl', width: 80, align: 'center', formatter:'number', formatoptions:{decimalPlaces: 2},sorttype: 'int'}
- ];
- var caption = '项目列表';
- var sortname = 'lyl';
- var gridPagerID ='gridPager';
- var sortorder='desc';
- var height='auto';
- var width='720';
- 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>
|