123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <%@ 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 wpsChangeValue(){
- // 场站编号
- var wfId = $("#wfId").val();
- if(wfId==''){
- $("#model").text('');
- $("#quantity").text('');
- $("#capacity").text('');
- $("#capacityunit").text('');
- } else {
- $.ajax({
- type:"POST",
- url:"/singleMachineAnalysis/valueChangeGetData.action?wfId="+wfId,
- success:function(data){
- var d = eval("("+data+")");
- var model = d.model;
- var quantity = d.quantity;
- var capacity = d.capacity;
- var capacityunit = d.capacityunit;
-
- $("#model").text(model);
- $("#quantity").text(quantity+'台');
- $("#capacity").text(capacity);
- $("#capacityunit").text(capacityunit);
-
- $("#ts").removeAttr("disabled");
- }
- });
- }
- }
-
- function tsChangeValue(){
- var tsselected = $("#ts").val();
- var vtext = $("#"+tsselected).text();
- $("#tsv").text(vtext);
- }
-
- // 进行评估
- function evaluateAction(){
- // 校验场站、体系、时间是否选中
- var wfId = $("#wfId").val();
- var tid = $("#ts").val();
- var recordDate = $("#recordDate").val();
- if(wfId==''){
- alert('请选择场站名称!');
- return false;
- }
- if(tid==''){
- alert('请选择体系名称!');
- return false;
- }
- if(recordDate==''){
- alert('请选择时间范围!');
- return false;
- }
-
- // 获取评估日期
- var evaluateDate = $("#evaluateDate").val();
-
- confirm_ = confirm('确认要进行评估吗?');
- if(confirm_){
- $.ajax({
- type:"POST",
- url:encodeURI(encodeURI("/singleMachineAnalysis/evaluate.action?wfId="+wfId+"&tid="+tid+"&recordDate="+recordDate+"&evaluateDate="+evaluateDate)),
- success:function(data){
- var d = eval("("+data+")");
- if(d.action=='success'){
- alert("评估成功,请到评估列表查看!");
- }else{
- alert("无风机统计分析数据,不能进行评估!");
- }
- }
- });
- }
- }
-
- // 评估列表查看
- function evaluateView(){
- $("#f1").submit();
- }
-
- $(function(){
- });
- </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>
- <div style="margin-top: 10px;margin-left: 10px">场站基本信息</div>
- <hr>
- <table style="width: 100%;border-style:double;">
- <tr>
- <td style="width: 80px;">场站名称:</td>
- <td><s:select list="windpowers" cssStyle="width:173px;" listKey="id" listValue="name" id="wfId" name="wfId" headerKey="" headerValue="请选择" onchange="wpsChangeValue()"></s:select><font color="red">*</font></td>
- </tr>
- <tr>
- <td style="height: 30px;">设备型号:</td>
- <td><font id="model"></font></td>
- </tr>
- <tr>
- <td style="height: 30px;">装机容量:</td>
- <td><font id="capacity"></font><font id="capacityunit"></font></td>
- </tr>
- <tr>
- <td style="height: 30px;">装机台数:</td>
- <td><font id="quantity"></font></td>
- </tr>
- <tr>
- <td style="height: 30px;">体系名称:</td>
- <td><s:select list="targetSystems" cssStyle="width:173px;" listKey="id" listValue="name" id="ts" name="ts" headerKey="" headerValue="请选择" onchange="tsChangeValue()"></s:select><font color="red">*</font></td>
- </tr>
- <tr>
- <td style="height: 30px;">指标体系:</td>
- <td><font id="tsv"></font></td>
- </tr>
- <tr>
- <td style="height: 30px;">时间范围:</td>
- <td>
- <s:textfield
- cssClass="Wdate"
- onFocus="WdatePicker({dateFmt:'yyyy-MM',isShowWeek:true,readOnly:true})"
- id="recordDate" name="recordDate" title="日期" /><font color="red" style="margin-left: 10px;">*</font>
- </td>
- </tr>
- <tr>
- <td style="height: 30px;">评估时间:</td>
- <td>${evaluateDate}</td>
- </tr>
- </table>
- <div align="right" style="padding-top: 5px;padding-right: 10px;"><input type="button" class="button" onclick="evaluateView()" id="evaluateViewBtn" value="返回" style="margin-right: 10px;"/><input type="button" class="button" onclick="evaluateAction()" id="evaluateBtn" value="进行评估"/></div>
- <input type="text" id="evaluateDate" value="${evaluateDate}" style="display: none;"/>
- <s:iterator value="targetSystems" var="bean">
- <div id="${bean.id}" style="display: none;">场站:${bean.windPowestationName} 工程:${bean.projectName} 线路:${bean.lineName} 设备型号${bean.equipmentId}</div>
- </s:iterator>
- <form id="f1" action="/singleMachineAnalysis/evaluateViewMain.action" method="post"></form>
- </body>
|