123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <%@ page language="java" contentType="text/html; charset=utf-8"
- pageEncoding="utf-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link type="text/css" rel="stylesheet" href="<%=request.getContextPath() %>/pages/monitor/fslr/css/jquery.dragval-1.01.css" />
- <script src="<%=request.getContextPath() %>/resource/js/jquery.min.js" type="text/javascript"></script>
- <script src="<%=request.getContextPath() %>/resource/js/jquery-ui.min.js" type="text/javascript"></script>
- <script src="<%=request.getContextPath() %>/resource/js/jquery.dragval-1.0-pack.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- getData();
- });
- function getData(){
- $.ajax({
- url : "/matrix/getdata.action",
- type : "post",
- cache : false,
- dataType : "json",
- data : {},
- async : true,
- ifModified : false,
- success : function(res) {
- $("#clfs").val(res["clfs"]);
- $("#kbfs").val(res["kbfs"]);
- $("#dxfs").val(res["dxfs"]);
- $("#syfs").val(res["syfs"]);
- }
- });
-
- }
-
- function cleditdata() {
- var fs = $("#clfs").val();
- var edosid = "HB_GD_CLF_JS_XX_XX_XXX_CI0269";
- $.ajax({
- url : "/matrix/editdata.action",
- type : "post",
- cache : false,
- dataType : "json",
- data : {"edosid":edosid,"fs":fs},
- async : false,
- ifModified : false,
- success : function() {
- alert("崇礼风速补录成功,风速为"+fs+"m/s");
- }
- });
-
-
-
-
-
- }
- function kbeditdata() {
- var fs = $("#kbfs").val();
- var edosid = "HB_GD_KBF_JS_XX_XX_XXX_CI0269";
- $.ajax({
- url : "/matrix/editdata.action",
- type : "post",
- cache : false,
- dataType : "json",
- data : {"edosid":edosid,"fs":fs},
- async : false,
- ifModified : false,
- success : function() {
- alert("康保风速补录成功,风速为"+fs+"m/s");
- }
- });
-
-
- }
- function dxeditdata() {
- var fs = $("#dxfs").val();
- var edosid = "HB_GD_DXF_JS_XX_XX_XX_CI0269";
- $.ajax({
- url : "/matrix/editdata.action",
- type : "post",
- cache : false,
- dataType : "json",
- data : {"edosid":edosid,"fs":fs},
- async : false,
- ifModified : false,
- success : function() {
- alert("代县风速补录成功,风速为"+fs+"m/s");
- }
- });
-
- }
-
- function syeditdata() {
- var fs = $("#syfs").val();
- var edosid = "HB_GD_SYF_JS_XX_XX_XXX_CI0269";
- $.ajax({
- url : "/matrix/editdata.action",
- type : "post",
- cache : false,
- dataType : "json",
- data : {"edosid":edosid,"fs":fs},
- async : false,
- ifModified : false,
- success : function() {
- alert("寿阳风速补录成功,风速为"+fs+"m/s");
- }
- });
-
- }
-
-
-
- </script>
- </head>
- <body>
- <div>
- <h1>崇礼风电场</h1>
- <div id="CL_FDC" class="Dragval">
- <input type="text" name="fs" value="" class="Output" id="clfs"/><input type="button" value="风速补录" onClick="cleditdata()" />
- </div>
-
- <script type="text/javascript">
- $(function() {
- $("#CL_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
- });
- </script>
- <h1>康保风电场</h1>
- <div id="KB_FDC" class="Dragval">
- <input type="text" name="fs" value="" class="Output" id="kbfs"/> <input type="button" value="风速补录" onClick="kbeditdata()" />
- </div>
- <script type="text/javascript">
- $(function() {
- $("#KB_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
- });
- </script>
-
- <h1>代县风电场</h1>
- <div id="DX_FDC" class="Dragval">
- <input type="text" name="" value="" class="Output" id="dxfs"/><input type="button" value="风速补录" onClick="dxeditdata()" />
- </div>
- <script type="text/javascript">
- $(function() {
- $("#DX_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
- });
- </script>
-
- <h1>寿阳风电场</h1>
- <div id="SY_FDC" class="Dragval">
- <input type="text" name="" value="" class="Output" id="syfs"/><input type="button" value="风速补录" onClick="syeditdata()" />
- </div>
- <script type="text/javascript">
- $(function() {
- $("#SY_FDC").dragval({ step: 0.5, min: 0, max: 25, startValue: 0 });
- });
- </script>
-
-
- </div>
- </body>
- </html>
|