123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <%@ page language="java" import="java.util.*" pageEncoding="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/ecmascript" src="<%=request.getContextPath()%>/resource/js/system/jqdatagridpage.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">
-
- $(function(){
- showJqGrid();
- });
- var columnE = 1;
- function showJqGrid(){
-
- // 获取场站ID
- var wfId = $("#wfId").val();
- // 获取数据日期
- var recordDate = $("#recordDate").val();
-
- jQuery("#gridTable").jqGrid({
- url:'/singleMachineAnalysis/measureEvaluationMainList.action?wfId='+wfId+'&recordDate='+recordDate,
- datatype: "json",
- colNames: ['设备',
- '评估项',
- <s:iterator value="mtList" var="bean">
- '${bean.name}',
- </s:iterator>
- '总计'],
- colModel: [
- {name: 'wtName', index: 'wtName', width: 70 },
- {name: 'item', index: 'item', width: 70 },
- <s:iterator value="mtList" var="bean">
- {name: '${bean.targetCode}', index: '${bean.targetCode}', width: 70 },
- </s:iterator>
- {name: 'total', index: 'total', width: 70 }
- ],
- rowNum:1000,
- height:'670',
- width:'1610',
- autowidth: true,
- pager: '#gridPager',
- viewrecords: true,
- sortorder: "desc",
- jsonReader: {
- repeatitems : false
- },
- caption: "${wpName}定量评估列表${recordDate}",
- height: '100%'
- });
-
- jQuery("#gridTable").jqGrid('setGroupHeaders', {
- useColSpanStyle: true,
- groupHeaders:[
- <s:iterator value="mergeColumnList" var="bean">
- {startColumnName: '${bean.startColumnName}', numberOfColumns: ${bean.numberOfColumns}, titleText: '${bean.titleText}'},
- </s:iterator>
- {startColumnName: 'aaaa', numberOfColumns: 1, titleText: 'aaaa'}
- ]
- });
- }
-
-
- function returnMainPage(){
- $("#f1").attr("action",'/singleMachineAnalysis/evaluateViewMain.action');
- $("#f1").submit();
- }
- </script>
- <style type="text/css">
- fieldset legend {
- color:#302A2A;
- font: bold 16px/2 Verdana, Geneva, sans-serif;
- font-weight: bold;
- text-align: left;
- text-shadow: 2px 2px 2px rgb(88, 126, 156);
- }
- </style>
- </head>
- <body>
- <table id='gridTable'></table>
- <div id='gridPager'></div>
- <div style="width: 100%;" align="right">
- <input type="button" style="margin-top: 10px;margin-right: 10px;" class="button" onclick="returnMainPage();" value="返回"/>
- </div>
- <form action="" method="post" id="f1">
- <input type="text" id="wfId" value="${wfId}" style="display: none;"/>
- <input type="text" id="recordDate" value="${recordDate}" style="display: none;"/>
- </body>
|