hxhbtjEdit.jsp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8">
  7. <title>江苏省港口建设与经营管理信息系统</title>
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <%@ include file="../../common.jsp"%>
  10. <script type="text/javascript" src="${app }/static/biz/js/gkyxtjyfx/hxhbtj/hxhbtjdetail.js"></script>
  11. <script type="text/javascript">
  12. $(document).ready(function () {
  13. initgkSelect('szgksel','${szgkid }','','showgq','80%');
  14. iFrameHeightIframe('${menuid}');//自适应高度
  15. });
  16. function percent(obj){
  17. var reg = /^[+-]?\d*\.?\d{0,1}$/;
  18. if(!reg.test(obj.value)){
  19. obj.value = obj.value.substring(0,obj.value.length-1);
  20. obj.value = obj.value.replace(/[^\d.-]/g,""); //清除"数字"和"."以外的字符
  21. obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
  22. obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
  23. obj.value = obj.value.replace(/\-{2,}/g,"-"); //只保留第一个, 清除多余的
  24. obj.value = obj.value.replace("-","$#$").replace(/\-/g,"").replace("$#$","-");
  25. obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3'); //只能输入两个小数
  26. }else{
  27. obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
  28. }
  29. }
  30. function twoNumeber(obj){
  31. obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
  32. obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
  33. obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
  34. obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
  35. obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d)(\d).*$/,'$1$2.$3$4'); //只能输入两个小数
  36. }
  37. </script>
  38. <style type="text/css">
  39. .apply th {
  40. width: 9%;
  41. height: 35px;
  42. font-weight: normal;
  43. border-bottom: 1px solid #dadbda;
  44. border-right: 1px solid #dadbda;
  45. color: #185f8a;
  46. background: #e6eff9;
  47. font-size: 14px;
  48. text-align: center;
  49. }
  50. .apply td {
  51. width: 15%;
  52. height: 30px;
  53. border: 1px solid #e2e3cb;
  54. text-indent: 5px;
  55. font-size: 14px;
  56. color: #000000
  57. }
  58. </style>
  59. </head>
  60. <body>
  61. <div class="box" >
  62. <div class="box-content" >
  63. <div class="apply_fill">
  64. <form id="addform" method="post">
  65. <input type="hidden" name="id" value="${record.id }">
  66. <table class="apply" cellpadding="0" cellspacing="0">
  67. <tr>
  68. <th><span class="needwrite">*</span>所在地区:&nbsp;</th>
  69. <td >
  70. <input type="hidden" id="dq" name="dq" value="${record.dq }"/> ${ record.dqzw }
  71. </td>
  72. <th><span class="needwrite">*</span>日期:&nbsp;</th>
  73. <td >
  74. <input class="Wdate" id="rq" name="rq" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})" value="${record.rq }">
  75. </td>
  76. </tr>
  77. </table>
  78. <h2 align="center" style="margin-top:0px;"><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">集装箱吞吐量完成情况</font></h2>
  79. <table class="apply" cellpadding="0" cellspacing="0">
  80. <tr>
  81. <th colspan="2">本月完成量(TEU):&nbsp;</th>
  82. <td>
  83. <input type="text" class="form-control" id="bywcl" name="bywcl" value="${record.bywcl }" onkeyup="twoNumeber(this)">
  84. </td>
  85. <th colspan="2">本年累计量(TEU):&nbsp;</th>
  86. <td>
  87. <input type="text" class="form-control" id="bnljl" name="bnljl" value="${record.bnljl }" onkeyup="twoNumeber(this)">
  88. </td>
  89. <th colspan="2">同比增长数(%):&nbsp;</th>
  90. <td>
  91. <input type="text" class="form-control" id="tbzzs" name="tbzzs" value="${record.tbzzs }" onkeyup="percent(this)">
  92. </td>
  93. </tr>
  94. <tr>
  95. <th rowspan="2">其中:</th>
  96. <th>外贸:&nbsp;</th>
  97. <td><input type="text" class="form-control" id="wmjzxttl" name="wmjzxttl" value="${record.wmjzxttl }" onkeyup="twoNumeber(this)"></td>
  98. <th rowspan="2">其中:</th>
  99. <th>外贸:&nbsp;</th>
  100. <td><input type="text" class="form-control" id="nwmjzxttl" name="nwmjzxttl" value="${record.nwmjzxttl }" onkeyup="twoNumeber(this)"></td>
  101. <th rowspan="2">其中:</th>
  102. <th>外贸:&nbsp;</th>
  103. <td><input type="text" class="form-control" id="wmtbzzs" name="wmtbzzs" value="${record.wmtbzzs }" onkeyup="percent(this)"></td>
  104. </tr>
  105. <tr>
  106. <th>内贸:&nbsp;</th>
  107. <td><input type="text" class="form-control" id="nmjzxttl" name="nmjzxttl" value="${record.nmjzxttl }" onkeyup="twoNumeber(this)"></td>
  108. <th>内贸:&nbsp;</th>
  109. <td><input type="text" class="form-control" id="nnmjzxttl" name="nnmjzxttl" value="${record.nnmjzxttl }" onkeyup="twoNumeber(this)"></td>
  110. <th>内贸:&nbsp;</th>
  111. <td><input type="text" class="form-control" id="nmtbzzs" name="nmtbzzs" value="${record.nmtbzzs }" onkeyup="percent(this)"></td>
  112. </tr>
  113. </table>
  114. <h2 align="center" style="margin-top:0px;"><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">集装箱航线航班开辟情况</font></h2>
  115. <table class="apply">
  116. <tr>
  117. <th></th>
  118. <th>本月营运航线总数</th>
  119. <th>本月营运航班总数</th>
  120. <th>本月新开辟航线数</th>
  121. <th>本月停开航线数</th>
  122. </tr>
  123. <tr>
  124. <th>远洋航线:</th>
  125. <td><input type="text" class="form-control" id="yyhxts" name="yyhxts" value="${record.yyhxts }" onkeyup="num(this)"></td>
  126. <td><input type="text" class="form-control" id="yyhxhbs" name="yyhxhbs" value="${record.yyhxhbs }" onkeyup="num(this)"></td>
  127. <td><input type="text" class="form-control" id="yyxkphxs" name="yyxkphxs" value="${record.yyxkphxs }" onkeyup="num(this)"></td>
  128. <td><input type="text" class="form-control" id="yytkhxs" name="yytkhxs" value="${record.yytkhxs }" onkeyup="num(this)"></td>
  129. </tr>
  130. <tr>
  131. <th>近洋航线:</th>
  132. <td><input type="text" class="form-control" id="jyhxts" name="jyhxts" value="${record.jyhxts }" onkeyup="num(this)"></td>
  133. <td><input type="text" class="form-control" id="jyhxhbs" name="jyhxhbs" value="${record.jyhxhbs }" onkeyup="num(this)"></td>
  134. <td><input type="text" class="form-control" id="jyxkphxs" name="jyxkphxs" value="${record.jyxkphxs }" onkeyup="num(this)"></td>
  135. <td><input type="text" class="form-control" id="jytkhxs" name="jytkhxs" value="${record.jytkhxs }" onkeyup="num(this)"></td>
  136. </tr>
  137. <tr>
  138. <th>外贸内支线:</th>
  139. <td><input type="text" class="form-control" id="nzxts" name="nzxts" value="${record.nzxts }" onkeyup="num(this)"></td>
  140. <td><input type="text" class="form-control" id="nzxhbs" name="nzxhbs" value="${record.nzxhbs }" onkeyup="num(this)"></td>
  141. <td><input type="text" class="form-control" id="nzxxkphxs" name="nzxxkphxs" value="${record.nzxxkphxs }" onkeyup="num(this)"></td>
  142. <td><input type="text" class="form-control" id="nzxtkhxs" name="nzxtkhxs" value="${record.nzxtkhxs }" onkeyup="num(this)"></td>
  143. </tr>
  144. <tr>
  145. <th>内贸航线:</th>
  146. <td><input type="text" class="form-control" id="nmhxts" name="nmhxts" value="${record.nmhxts }" onkeyup="num(this)"></td>
  147. <td><input type="text" class="form-control" id="nmhxhbs" name="nmhxhbs" value="${record.nmhxhbs }" onkeyup="num(this)"></td>
  148. <td><input type="text" class="form-control" id="nmxkphxs" name="nmxkphxs" value="${record.nmxkphxs }" onkeyup="num(this)"></td>
  149. <td><input type="text" class="form-control" id="nmtkhxs" name="nmtkhxs" value="${record.nmtkhxs }" onkeyup="num(this)"></td>
  150. </tr>
  151. <tr>
  152. <th>填表人:</th>
  153. <td><input type="text" class="form-control" id="tbr" readOnly = "true" value="${record.tbr }" ></td>
  154. <th>联系电话:</th>
  155. <td colspan="2"><input type="text" class="form-control" id="lxdh" readOnly = "true" value="${record.lxdh }"></td>
  156. </tr>
  157. </table>
  158. </form>
  159. <div id="buttons">
  160. <a class="btn btn-default btn-sm" href="#" onclick="hxhbtj.detail.save()">
  161. <i class="glyphicon glyphicon-floppy-disk"></i>保存
  162. </a>
  163. <a class="btn btn-default btn-sm" href="#" onclick="hxhbtj.detail.saveTbzt()">
  164. <i class="glyphicon glyphicon-share"></i>提交
  165. </a>
  166. <a class="btn btn-default btn-sm" href="#" onclick="hxhbtj.detail.back()">
  167. <i class="glyphicon glyphicon-arrow-left"></i>返回
  168. </a>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </body>
  174. </html>