edit.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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", "compareindex.action").submit();
  28. }
  29. function save(){
  30. var actualpower = $("#windturbinecurvefitting\\.actualpower").val();
  31. var optimalpower = $("#windturbinecurvefitting\\.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", "edit.action").submit();
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <s:form action="" method="post" id="f1">
  46. <s:hidden name="windturbinecurvefitting.id"></s:hidden>
  47. <s:hidden name="windturbineid"></s:hidden>
  48. <s:hidden name="windfarm"></s:hidden>
  49. <s:hidden name="recorddate"></s:hidden>
  50. <table width="100%">
  51. <tr>
  52. <td align="left" class="navbar">
  53. </td>
  54. <td align="right">
  55. <input type="button" class="button" value='保存' onclick="javascript:save()"/>
  56. <input type="button" class="button" value='返回' onclick="javascript:returnIndex()"/>
  57. </td>
  58. </tr>
  59. </table>
  60. <hr />
  61. <s:actionerror cssClass="item_Name"/>
  62. <s:actionmessage cssClass="item_Name" />
  63. <fieldset>
  64. <legend class="item_Name">
  65. 日风电功率编辑
  66. </legend>
  67. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C1C1C1">
  68. <tr>
  69. <th width="5%" bgcolor="#efefef">
  70. <span class="mycss">风机编号:</span>
  71. </th>
  72. <td width="20%" style="text-align: left" bgcolor="#efefef">
  73. <s:textfield readonly="true" id="windturbinecurvefitting.windturbineid" name="windturbinecurvefitting.windturbineid" title="风机编号" cssStyle="width:90%"/>
  74. </td>
  75. <th width="5%" bgcolor="#efefef">
  76. <span class="mycss" >日期:</span>
  77. </th>
  78. <td width="20%" style="text-align: left" bgcolor="#efefef">
  79. <s:textfield readonly="true" id="windturbinecurvefitting.recorddate" name="windturbinecurvefitting.recorddate" title="日期" cssStyle="width:90%"/>
  80. </td>
  81. </tr>
  82. <tr>
  83. <th width="5%" bgcolor="#ffffff">
  84. <span class="mycss">风速:</span>
  85. </th>
  86. <td width="20%" style="text-align: left" bgcolor="#ffffff">
  87. <s:textfield readonly="true" id="windturbinecurvefitting.speed" name="windturbinecurvefitting.speed" title="风速" cssStyle="width:90%"/>
  88. </td>
  89. <th width="5%" bgcolor="#ffffff">
  90. <span class="mycss">实际拟合:</span>
  91. </th>
  92. <td width="20%" style="text-align: left" bgcolor="#ffffff">
  93. <s:textfield id="windturbinecurvefitting.actualpower" name="windturbinecurvefitting.actualpower" title="实际拟合" cssStyle="width:90%"/>
  94. </td>
  95. </tr>
  96. <tr>
  97. <th width="5%" bgcolor="#efefef">
  98. <span class="mycss" >最优拟合:</span>
  99. </th>
  100. <td width="20%" style="text-align: left" bgcolor="#efefef">
  101. <s:textfield id="windturbinecurvefitting.optimalpower" name="windturbinecurvefitting.optimalpower" title="最优拟合" cssStyle="width:90%"/>
  102. </td>
  103. <tr>
  104. <th width="5%" bgcolor="#ffffff">
  105. </th>
  106. <td width="20%" style="text-align: left" bgcolor="#ffffff">
  107. </td>
  108. </tr>
  109. </tr>
  110. </table>
  111. </fieldset>
  112. </s:form>
  113. </body>