bwxxedit.jsp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function bwxxview(bwid){
  5. var path="/xkzyx/editmain?path=4:id="+$('#id').val()+"";
  6. location.href=$.app+'/bw/view?id='+bwid+'&path='+path;
  7. }
  8. function initbwxx(){
  9. $.post($.app + "/gkjyr/bwxx2", {
  10. id : $('#jyrid').val(),
  11. czid:$('#id').val()
  12. }, function(data) {
  13. if (data) {
  14. var str =""
  15. for(var i=0;i<data.length;i++){
  16. var bw = data[i];
  17. str+="<tr class='tr_bg'>";
  18. if(bw.isTrue){
  19. str+="<td><input type='checkbox' checked name='bwid' value='"+bw.id+"'/></td>";
  20. }else{
  21. str+="<td><input type='checkbox' name='bwid' value='"+bw.id+"'/></td>";
  22. }
  23. str+="<td>"+bw.bwmc+"</td>";
  24. str+="<td>"+(bw.ssjyrzw==null?"":bw.ssjyrzw)+"</td>";
  25. str+="<td>"+bw.ssmtzw+"</td>";
  26. str+="<td>"+bw.szgkzw+"</td>";
  27. str+="<td>"+bw.szgqzw+"</td>";
  28. str+="<td>"+(bw.bwytzw==null?"":bw.bwytzw)+"</td>";
  29. str+="<td>"+(bw.wxpbwzw==null?"":bw.wxpbwzw)+"</td>";
  30. str+="<td>"+(bw.sfdwkfzw==null?"":bw.sfdwkfzw)+"</td>";
  31. str+="<td>";
  32. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxview('"+bw.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  33. str+="</td>";
  34. str+="</tr>";
  35. }
  36. $('#bwxxdiv').empty();
  37. $('#bwxxdiv').append(str);
  38. } else {
  39. }
  40. }, "json");
  41. }
  42. </script>
  43. <table class="main_table" cellpadding="0" cellspacing="0">
  44. <tr>
  45. <th width="10%"></th>
  46. <th width="10%">泊位名称</th>
  47. <th width="10%">港口经营人</th>
  48. <th width="10%">码头名称</th>
  49. <th width="10%">所在港口</th>
  50. <th width="10%">所在港区</th>
  51. <!-- <th width="10%">泊位属性</th> -->
  52. <th width="15%">泊位用途</th>
  53. <th width="5%">是否<br>危险品泊位</th>
  54. <th width="5%">是否<br>对外开放泊位</th>
  55. <th width="20%">操作</th>
  56. </tr>
  57. <tbody id="bwxxdiv"></tbody>
  58. </table>