editmonth.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <%@ page language="java" contentType="text/html;charset=utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp"%>
  3. <head>
  4. <style type="text/css">
  5. .mycss {
  6. font-family: "宋体";
  7. font-size: 12px;
  8. color: #000;
  9. text-decoration: none;
  10. }
  11. .mytitlecss {
  12. font-family: "宋体";
  13. font-weight:bold;
  14. font-size: 15px;
  15. color: #000;
  16. text-decoration: none;
  17. }
  18. </style>
  19. <script language="javascript">
  20. $(function(){
  21. // if('<s:property value="supplier.id" />' != null){
  22. // $("#suppId").val('<s:property value="supplier.id" />');
  23. // changeSelect();
  24. // }
  25. });
  26. function returnIndex(){
  27. $("#f1").attr("action", "comparemonthindex.action").submit();
  28. }
  29. function save(){
  30. var actualpower = $("#windturbinecurvefittingmonth\\.actualpower").val();
  31. var optimalpower = $("#windturbinecurvefittingmonth\\.optimalpower").val();
  32. if (isNaN(actualpower)) {
  33. alert("实际拟合只能为数字");
  34. return false;
  35. }
  36. if (isNaN(optimalpower)) {
  37. alert("最优拟合只能为数字");
  38. return false;
  39. }
  40. $("#f1").attr("action", "editmonth.action").submit();
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <s:form action="" method="post" id="f1">
  46. <s:hidden name="windturbinecurvefittingmonth.id"></s:hidden>
  47. <s:hidden name="windturbineid"></s:hidden>
  48. <s:hidden name="windfarm"></s:hidden>
  49. <s:hidden name="year"></s:hidden>
  50. <s:hidden name="month"></s:hidden>
  51. <table width="100%">
  52. <tr>
  53. <td align="left" class="navbar">
  54. </td>
  55. <td align="right">
  56. <input type="button" class="button" value='保存' onclick="javascript:save()"/>
  57. <input type="button" class="button" value='返回' onclick="javascript:returnIndex()"/>
  58. </td>
  59. </tr>
  60. </table>
  61. <hr />
  62. <s:actionerror cssClass="item_Name"/>
  63. <s:actionmessage cssClass="item_Name"/>
  64. <fieldset>
  65. <legend class="item_Name">
  66. 月风电功率编辑
  67. </legend>
  68. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C1C1C1">
  69. <tr>
  70. <th width="5%" bgcolor="#efefef">
  71. <span class="mycss">风机编号:</span>
  72. </th>
  73. <td width="20%" style="text-align: left" bgcolor="#efefef">
  74. <s:textfield readonly="true" id="windturbinecurvefittingmonth.windturbineid" name="windturbinecurvefittingmonth.windturbineid" title="风机编号" cssStyle="width:90%"/>
  75. </td>
  76. <th width="5%" bgcolor="#efefef">
  77. <span class="mycss" >年份:</span>
  78. </th>
  79. <td width="20%" style="text-align: left" bgcolor="#efefef">
  80. <s:textfield readonly="true" id="windturbinecurvefittingmonth.year" name="windturbinecurvefittingmonth.year" title="日期" cssStyle="width:90%"/>
  81. </td>
  82. </tr>
  83. <tr>
  84. <th width="5%" bgcolor="#efefef">
  85. <span class="mycss" >月份:</span>
  86. </th>
  87. <td width="20%" style="text-align: left" bgcolor="#efefef">
  88. <s:textfield readonly="true" id="windturbinecurvefittingmonth.month" name="windturbinecurvefittingmonth.month" title="日期" cssStyle="width:90%"/>
  89. </td>
  90. <th width="5%" bgcolor="#ffffff">
  91. <span class="mycss">风速:</span>
  92. </th>
  93. <td width="20%" style="text-align: left" bgcolor="#ffffff">
  94. <s:textfield readonly="true" id="windturbinecurvefittingmonth.speed" name="windturbinecurvefittingmonth.speed" title="风速" cssStyle="width:90%"/>
  95. </td>
  96. </tr>
  97. <tr>
  98. <th width="5%" bgcolor="#ffffff">
  99. <span class="mycss">实际拟合:</span>
  100. </th>
  101. <td width="20%" style="text-align: left" bgcolor="#ffffff">
  102. <s:textfield id="windturbinecurvefittingmonth.actualpower" name="windturbinecurvefittingmonth.actualpower" title="实际拟合" cssStyle="width:90%"/>
  103. </td>
  104. <th width="5%" bgcolor="#efefef">
  105. <span class="mycss" >最优拟合:</span>
  106. </th>
  107. <td width="20%" style="text-align: left" bgcolor="#efefef">
  108. <s:textfield id="windturbinecurvefittingmonth.optimalpower" name="windturbinecurvefittingmonth.optimalpower" title="最优拟合" cssStyle="width:90%"/>
  109. </td>
  110. <tr>
  111. </tr>
  112. </tr>
  113. </table>
  114. </fieldset>
  115. </s:form>
  116. </body>