windeditdata.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/pages/monitor/fslr/css/jquery.dragval-1.01.css" />
  8. <script src="<%=request.getContextPath() %>/resource/js/jquery.min.js" type="text/javascript"></script>
  9. <script src="<%=request.getContextPath() %>/resource/js/jquery-ui.min.js" type="text/javascript"></script>
  10. <script src="<%=request.getContextPath() %>/resource/js/jquery.dragval-1.0-pack.js" type="text/javascript"></script>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. getData();
  14. });
  15. function getData(){
  16. $.ajax({
  17. url : "/matrix/getdata.action",
  18. type : "post",
  19. cache : false,
  20. dataType : "json",
  21. data : {},
  22. async : true,
  23. ifModified : false,
  24. success : function(res) {
  25. $("#clfs").val(res["clfs"]);
  26. $("#kbfs").val(res["kbfs"]);
  27. $("#dxfs").val(res["dxfs"]);
  28. $("#syfs").val(res["syfs"]);
  29. }
  30. });
  31. }
  32. function cleditdata() {
  33. var fs = $("#clfs").val();
  34. var edosid = "HB_GD_CLF_JS_XX_XX_XXX_CI0269";
  35. $.ajax({
  36. url : "/matrix/editdata.action",
  37. type : "post",
  38. cache : false,
  39. dataType : "json",
  40. data : {"edosid":edosid,"fs":fs},
  41. async : false,
  42. ifModified : false,
  43. success : function() {
  44. alert("崇礼风速补录成功,风速为"+fs+"m/s");
  45. }
  46. });
  47. }
  48. function kbeditdata() {
  49. var fs = $("#kbfs").val();
  50. var edosid = "HB_GD_KBF_JS_XX_XX_XXX_CI0269";
  51. $.ajax({
  52. url : "/matrix/editdata.action",
  53. type : "post",
  54. cache : false,
  55. dataType : "json",
  56. data : {"edosid":edosid,"fs":fs},
  57. async : false,
  58. ifModified : false,
  59. success : function() {
  60. alert("康保风速补录成功,风速为"+fs+"m/s");
  61. }
  62. });
  63. }
  64. function dxeditdata() {
  65. var fs = $("#dxfs").val();
  66. var edosid = "HB_GD_DXF_JS_XX_XX_XX_CI0269";
  67. $.ajax({
  68. url : "/matrix/editdata.action",
  69. type : "post",
  70. cache : false,
  71. dataType : "json",
  72. data : {"edosid":edosid,"fs":fs},
  73. async : false,
  74. ifModified : false,
  75. success : function() {
  76. alert("代县风速补录成功,风速为"+fs+"m/s");
  77. }
  78. });
  79. }
  80. function syeditdata() {
  81. var fs = $("#syfs").val();
  82. var edosid = "HB_GD_SYF_JS_XX_XX_XXX_CI0269";
  83. $.ajax({
  84. url : "/matrix/editdata.action",
  85. type : "post",
  86. cache : false,
  87. dataType : "json",
  88. data : {"edosid":edosid,"fs":fs},
  89. async : false,
  90. ifModified : false,
  91. success : function() {
  92. alert("寿阳风速补录成功,风速为"+fs+"m/s");
  93. }
  94. });
  95. }
  96. </script>
  97. </head>
  98. <body>
  99. <div>
  100. <h1>崇礼风电场</h1>
  101. <div id="CL_FDC" class="Dragval">
  102. <input type="text" name="fs" value="" class="Output" id="clfs"/><input type="button" value="风速补录" onClick="cleditdata()" />
  103. </div>
  104. <script type="text/javascript">
  105. $(function() {
  106. $("#CL_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
  107. });
  108. </script>
  109. <h1>康保风电场</h1>
  110. <div id="KB_FDC" class="Dragval">
  111. <input type="text" name="fs" value="" class="Output" id="kbfs"/> <input type="button" value="风速补录" onClick="kbeditdata()" />
  112. </div>
  113. <script type="text/javascript">
  114. $(function() {
  115. $("#KB_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
  116. });
  117. </script>
  118. <h1>代县风电场</h1>
  119. <div id="DX_FDC" class="Dragval">
  120. <input type="text" name="" value="" class="Output" id="dxfs"/><input type="button" value="风速补录•" onClick="dxeditdata()" />
  121. </div>
  122. <script type="text/javascript">
  123. $(function() {
  124. $("#DX_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
  125. });
  126. </script>
  127. <h1>寿阳风电场</h1>
  128. <div id="SY_FDC" class="Dragval">
  129. <input type="text" name="" value="" class="Output" id="syfs"/><input type="button" value="风速补录•" onClick="syeditdata()" />
  130. </div>
  131. <script type="text/javascript">
  132. $(function() {
  133. $("#SY_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
  134. });
  135. </script>
  136. </div>
  137. </body>
  138. </html>