123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!DOCTYPE>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <meta name="format-detection" content="telephone=no"/>
- <title>预计划查询</title>
- <link href="${ctx}/css/xf0.css" rel="stylesheet" type="text/css" />
- <script src="${ctx}/js/jquery-2.1.1.min.js"></script>
- <script src="${ctx}/js/xf.js"></script>
- </head>
- <body>
- <div class="loading"></div>
- <div class="hc_page">
- <div class="hc_pagecxjg hc_pageysjh">
- <form id="myFormId" action="${ctx}/busInit/editYearUnitNotice.do" method="post" target="frmright">
- <#if plan??>
- <ul class="hc_ysjh_ul01">
- <li><span>单位名称:</span><span>${plan.orgName!''}</span></li>
- <li><span>年度:</span><span>${plan.year!'' }</span></li>
- <li><span>全年计划用水指标:</span><span><#if plan??> ${plan.planOfWater?string("0")!''}<#else>暂无数据</#if></span></li>
- </ul>
- <#else>
- <li><span>无数据</span></li>
- </#if>
- </form>
- </div>
-
- </div>
- </body>
- <script type="text/javascript">
- var LODOP;
- function initComplete(){
- $("#myFormId").Validform({
- tiptype:3,
- ajaxPost:true,
- showAllError:true,
- callback:function(responseText){
- $.Hidemsg();
- if(responseText.status=="y"){
- top.Dialog.alert(responseText.info,function(){
- closeWin();
- });
- }else{
- top.Dialog.alert(responseText.info,function(){
- return false;
- });
- }
-
- }
- });
- initData();
- }
- function resum(){
- // var planOfWater = $("#planOfWater").val();
- // var replyOfWater = $("#replyOfWater").val();
- // var firstQuarterPlan = $("#firstQuarterPlan").val();
- // var firstQuarterReply = $("#firstQuarterReply").val();
- // var secondQuarterPlan = $("#secondQuarterPlan").val();
- // var secondQuarterReply = $("#secondQuarterReply").val();
- // var thirdQuarterPlan = $("#thirdQuarterPlan").val();
- // var thirdQuarterReply = $("#thirdQuarterReply").val();
- // var fourthQuarterPlan = $("#fourthQuarterPlan").val();
- // var fourthQuarterReply = $("#fourthQuarterReply").val();
- // var plan = Number(firstQuarterPlan)+Number(secondQuarterPlan)+Number(thirdQuarterPlan)+Number(fourthQuarterPlan);
- // var reply = Number(firstQuarterReply)+Number(secondQuarterReply)+Number(thirdQuarterReply)+Number(fourthQuarterReply);
- // if(plan > Number(planOfWater)+2 || plan < Number(planOfWater)-2){
- // top.Dialog.alert("计åç¨æ°´åé
ä¸å¯¹");
- // return ;
- // }
- // if(reply>Number(replyOfWater)+2 || reply<Number(replyOfWater)-2){
- // top.Dialog.alert("æ¹å¤ç¨æ°´åé
ä¸å¯¹");
- // return;
- // }
- $("#myFormId").submit();
- }
- function closeWin(){
- top.frmright.stayPage();
- top.Dialog.close();
- }
- function initData(){
- // $("#planOfWater").blur(function(){
- // var planOfWater = $("#planOfWater").val();
- // var avg = Math.round(planOfWater/4);
- // $("#replyOfWater").val(planOfWater);
- // $("#firstQuarterPlan").val(avg);
- // $("#firstQuarterReply").val(avg);
- // $("#secondQuarterPlan").val(avg);
- // $("#secondQuarterReply").val(avg);
- // $("#thirdQuarterPlan").val(avg);
- // $("#thirdQuarterReply").val(avg);
- // $("#fourthQuarterPlan").val(avg);
- // $("#fourthQuarterReply").val(avg);
- // });
-
- // $("#replyOfWater").blur(function(){
- // var replyOfWater = $("#replyOfWater").val();
- // var avg = Math.round(replyOfWater/4);
- // $("#planOfWater").val(replyOfWater);
- // $("#firstQuarterPlan").val(avg);
- // $("#firstQuarterReply").val(avg);
- // $("#secondQuarterPlan").val(avg);
- // $("#secondQuarterReply").val(avg);
- // $("#thirdQuarterPlan").val(avg);
- // $("#thirdQuarterReply").val(avg);
- // $("#fourthQuarterPlan").val(avg);
- // $("#fourthQuarterReply").val(avg);
- // });
- $("#firstQuarterReply,#secondQuarterReply,#thirdQuarterReply,#fourthQuarterReply").blur(function(){
- var total = Number($("#firstQuarterReply").val())+Number($("#secondQuarterReply").val())
- +Number($("#thirdQuarterReply").val())+Number($("#fourthQuarterReply").val());
- $("#replyOfWater").val(total);
- });
- }
- function doPrint() {
- LODOP = getLodop();
- LODOP.PRINT_INITA(-17,-13,793,1061,"reply_edit");
- LODOP.SET_PRINT_PAGESIZE(1,"212mm","281mm","");
- LODOP.ADD_PRINT_HTM(250,60,670,800,document.getElementById("box121").innerHTML);
- LODOP.PREVIEW();
- }
- </script>
- </html>
|