wx-water-plan.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <meta name="format-detection" content="telephone=no"/>
  7. <title>预计划查询</title>
  8. <link href="${ctx}/css/xf0.css" rel="stylesheet" type="text/css" />
  9. <script src="${ctx}/js/jquery-2.1.1.min.js"></script>
  10. <script src="${ctx}/js/xf.js"></script>
  11. </head>
  12. <body>
  13. <div class="loading"></div>
  14. <div class="hc_page">
  15. <div class="hc_pagecxjg hc_pageysjh">
  16. <form id="myFormId" action="${ctx}/busInit/editYearUnitNotice.do" method="post" target="frmright">
  17. <#if plan??>
  18. <ul class="hc_ysjh_ul01">
  19. <li><span>单位名称:</span><span>${plan.orgName!''}</span></li>
  20. <li><span>年度:</span><span>${plan.year!'' }</span></li>
  21. <li><span>全年计划用水指标:</span><span><#if plan??>&nbsp;${plan.planOfWater?string("0")!''}<#else>暂无数据</#if></span></li>
  22. </ul>
  23. <#else>
  24. <li><span>无数据</span></li>
  25. </#if>
  26. </form>
  27. </div>
  28. </div>
  29. </body>
  30. <script type="text/javascript">
  31. var LODOP;
  32. function initComplete(){
  33. $("#myFormId").Validform({
  34. tiptype:3,
  35. ajaxPost:true,
  36. showAllError:true,
  37. callback:function(responseText){
  38. $.Hidemsg();
  39. if(responseText.status=="y"){
  40. top.Dialog.alert(responseText.info,function(){
  41. closeWin();
  42. });
  43. }else{
  44. top.Dialog.alert(responseText.info,function(){
  45. return false;
  46. });
  47. }
  48. }
  49. });
  50. initData();
  51. }
  52. function resum(){
  53. // var planOfWater = $("#planOfWater").val();
  54. // var replyOfWater = $("#replyOfWater").val();
  55. // var firstQuarterPlan = $("#firstQuarterPlan").val();
  56. // var firstQuarterReply = $("#firstQuarterReply").val();
  57. // var secondQuarterPlan = $("#secondQuarterPlan").val();
  58. // var secondQuarterReply = $("#secondQuarterReply").val();
  59. // var thirdQuarterPlan = $("#thirdQuarterPlan").val();
  60. // var thirdQuarterReply = $("#thirdQuarterReply").val();
  61. // var fourthQuarterPlan = $("#fourthQuarterPlan").val();
  62. // var fourthQuarterReply = $("#fourthQuarterReply").val();
  63. // var plan = Number(firstQuarterPlan)+Number(secondQuarterPlan)+Number(thirdQuarterPlan)+Number(fourthQuarterPlan);
  64. // var reply = Number(firstQuarterReply)+Number(secondQuarterReply)+Number(thirdQuarterReply)+Number(fourthQuarterReply);
  65. // if(plan > Number(planOfWater)+2 || plan < Number(planOfWater)-2){
  66. // top.Dialog.alert("计划用水分配不对");
  67. // return ;
  68. // }
  69. // if(reply>Number(replyOfWater)+2 || reply<Number(replyOfWater)-2){
  70. // top.Dialog.alert("批复用水分配不对");
  71. // return;
  72. // }
  73. $("#myFormId").submit();
  74. }
  75. function closeWin(){
  76. top.frmright.stayPage();
  77. top.Dialog.close();
  78. }
  79. function initData(){
  80. // $("#planOfWater").blur(function(){
  81. // var planOfWater = $("#planOfWater").val();
  82. // var avg = Math.round(planOfWater/4);
  83. // $("#replyOfWater").val(planOfWater);
  84. // $("#firstQuarterPlan").val(avg);
  85. // $("#firstQuarterReply").val(avg);
  86. // $("#secondQuarterPlan").val(avg);
  87. // $("#secondQuarterReply").val(avg);
  88. // $("#thirdQuarterPlan").val(avg);
  89. // $("#thirdQuarterReply").val(avg);
  90. // $("#fourthQuarterPlan").val(avg);
  91. // $("#fourthQuarterReply").val(avg);
  92. // });
  93. // $("#replyOfWater").blur(function(){
  94. // var replyOfWater = $("#replyOfWater").val();
  95. // var avg = Math.round(replyOfWater/4);
  96. // $("#planOfWater").val(replyOfWater);
  97. // $("#firstQuarterPlan").val(avg);
  98. // $("#firstQuarterReply").val(avg);
  99. // $("#secondQuarterPlan").val(avg);
  100. // $("#secondQuarterReply").val(avg);
  101. // $("#thirdQuarterPlan").val(avg);
  102. // $("#thirdQuarterReply").val(avg);
  103. // $("#fourthQuarterPlan").val(avg);
  104. // $("#fourthQuarterReply").val(avg);
  105. // });
  106. $("#firstQuarterReply,#secondQuarterReply,#thirdQuarterReply,#fourthQuarterReply").blur(function(){
  107. var total = Number($("#firstQuarterReply").val())+Number($("#secondQuarterReply").val())
  108. +Number($("#thirdQuarterReply").val())+Number($("#fourthQuarterReply").val());
  109. $("#replyOfWater").val(total);
  110. });
  111. }
  112. function doPrint() {
  113. LODOP = getLodop();
  114. LODOP.PRINT_INITA(-17,-13,793,1061,"reply_edit");
  115. LODOP.SET_PRINT_PAGESIZE(1,"212mm","281mm","");
  116. LODOP.ADD_PRINT_HTM(250,60,670,800,document.getElementById("box121").innerHTML);
  117. LODOP.PREVIEW();
  118. }
  119. </script>
  120. </html>