123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <%@ page language="java" contentType="text/html;charset=utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp"%>
- <head>
- <script src="<%=request.getContextPath()%>/resource/js/datePicker/WdatePicker.js" type="text/javascript"></script>
- <script language="javascript">
-
- $(function(){
- // if('<s:property value="supplier.id" />' != null){
- // $("#suppId").val('<s:property value="supplier.id" />');
- // changeSelect();
- // }
- var wfid='<s:property value="wfId" />';
- if(wfid!='')
- {
- changeFc(wfid);
- }
-
- });
-
- function returnIndex(){
- $("#f1").attr("action", "planIndex.action").attr("validate", false).submit();
- }
-
- function returnEdit(){
- $("#f1").attr("action", "editData.action").attr("validate", false).submit();
- }
-
- function returnDetail(){
- $("#f1").attr("action", "editData.action").attr("validate", false).submit();
- }
-
- function save(){
- alert($("#id").text());
- if($("#id").text()==null)
- {
- var wfId=$("#wfId").val();
- var projectid=$("#projectid").val();
- var year=$("vo\.year").val();
- if(wfId=='undefined' || wfId=='' )
- {
- alert("请选择场站编号");
- return false;
- }
- if(projectid=='undefined' || projectid=='')
- {
- alert("请选择项目编号");
- return false;
- }
- if(year==null || year=='')
- {
- alert("请选择年份");
- return false;
- }
- }
-
- $("#f1").attr("action", "saveData.action").submit();
-
- }
- function selectAll(t) {
- $("input[name='wtIds']").attr("checked", t.checked);
- }
- function changeFc(fcId){
- var url = "changeWindpowerAjax.action?wfId="+fcId;
-
- $.ajax({
- type:"post",
- url:url,
- dataType:"json",
- success: function(data){
- if(data.length != 0){
- eval(data);
- $("#projectid").empty();
- $("#projectid").append("<option value=''>请选择</option>");
-
- for(var i=0; i<data.length; i++){
- $("#projectid").append("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
- }
-
- }else{
- $("#projectid").empty();
- $("#projectid").append("<option value=''>请选择</option>");
- }
- }
- });
-
-
- }
- </script>
- <style type="text/css">
- .mycss {
- font-family: "宋体";
- font-size: 12px;
- color: #000;
- text-decoration: none;
-
- }
- </style>
- </head>
- <body>
- <s:form action="" method="post" id="f1">
- <lt:token/>
- <s:hidden name="page"></s:hidden>
- <s:hidden name="pageSize"></s:hidden>
-
- <s:hidden name="year"></s:hidden>
- <s:hidden name="vo.windpower"></s:hidden>
- <s:hidden name="vo.projectid"></s:hidden>
- <table width="100%">
- <tr>
- <td id="id" align="left" class="mycss">
- ${vo.id==null?"新增计划发电量":"修改计划发电量" }
- </td>
- <td align="right">
- <input type="button" class="button" value='保存' onclick="javascript:save()"/>
- <s:if test="vo.id != null">
- <input type="button" class="button" value='返回' onclick="javascript:returnIndex()"/>
- </s:if>
- <s:else>
- <input type="button" class="button" value='返回' onclick="javascript:returnIndex()"/>
- </s:else>
-
-
- </td>
- </tr>
- </table>
- <hr />
- <s:actionerror />
- <s:actionmessage />
- <!-- 页面修改 开始 -->
- <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#f1f1f1">
- <tr>
- <td width="20%" height="26" bgcolor="#f1f1f1"><span class="mycss">风场:</span></td>
- <td width="30%" bgcolor="#f1f1f1"><span class="mycss">
- <s:if test="vo == null">
- <s:select list="windpowers" cssStyle="width:90%" listKey="id" listValue="name" id="wfId" name="wfId" headerKey="" headerValue="请选择" onchange="javascript:changeFc(this.value);" ></s:select>
- </s:if>
- <s:else>
- <s:property value="vo.windpowerName" />
- </s:else>
- </span></td>
- <td width="20%" height="26" bgcolor="#f1f1f1"><span class="mycss">项目:</span></td>
- <td width="30%" bgcolor="#f1f1f1"><span class="mycss">
- <s:if test="vo == null">
- <select name="projectid" id="projectid" style="width:90%">
- <option value="">请选择</option>
- </select>
- </s:if>
- <s:else>
- <s:property value="vo.projectName" />
- </s:else>
- </span></td>
- </tr>
-
- <tr>
- <td width="20%" height="26" bgcolor="#ffffff"><span class="mycss">年:</span></td>
- <td width="30%" bgcolor="#ffffff" colspan="3"><span class="mycss">
- <s:if test="vo == null">
- <s:textfield cssClass="Wdate" onFocus="WdatePicker({dateFmt:'yyyy',isShowWeek:true,readOnly:true})"
- id="vo.year" name="vo.year" title="开始日期"/>
- </s:if>
- <s:else>
- <s:property value="vo.year" />
- </s:else>
- </span></td>
-
-
-
- </tr>
- <tr>
- <td width="20%" height="26" bgcolor="#f1f1f1"><span class="mycss">1月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc01" name="vo.gc01" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">2月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc02" name="vo.gc02" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">3月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc03" name="vo.gc03" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">4月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc04" name="vo.gc04" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">5月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc05" name="vo.gc05" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">6月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc06" name="vo.gc06" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">7月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc07" name="vo.gc07" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">8月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc08" name="vo.gc08" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">9月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc09" name="vo.gc09" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">10月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc10" name="vo.gc10" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">11月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc11" name="vo.gc11" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">12月份计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.gc12" name="vo.gc12" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
- <tr>
- <td width="10%" height="26" bgcolor="#f1f1f1"><span class="mycss">全年计划发电量(万kWh):</span></td>
- <td colspan="3" width="40%" bgcolor="#f1f1f1"><span class="mycss"><s:textfield id="vo.generatingcapacity" name="vo.generatingcapacity" title="计划发电量" maxlength="500" cssStyle="width:90%"/></span></td>
-
- </tr>
-
-
- </table>
-
- <!-- 页面修改 结束 -->
-
- </s:form>
- </body>
|