bwxxadd.jsp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="/xkzzx/addmain?path=4:id="+$('#jyrid').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. recordStatus:0
  13. }, function(data) {
  14. if (data) {
  15. var str =""
  16. for(var i=0;i<data.length;i++){
  17. var bw = data[i];
  18. str+="<tr class='tr_bg'>";
  19. if(bw.isTrue){
  20. str+="<td><input type='checkbox' checked name='bwid' value='"+bw.id+"'/></td>";
  21. }else{
  22. str+="<td><input type='checkbox' name='bwid' value='"+bw.id+"'/></td>";
  23. }
  24. str+="<td>"+bw.bwmc+"</td>";
  25. str+="<td>"+(bw.ssjyrzw==null?"":bw.ssjyrzw)+"</td>";
  26. str+="<td>"+bw.ssmtzw+"</td>";
  27. str+="<td>"+bw.szgkzw+"</td>";
  28. str+="<td>"+bw.szgqzw+"</td>";
  29. str+="<td>"+(bw.bwytzw==null?"":bw.bwytzw)+"</td>";
  30. str+="<td>";
  31. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxview('"+bw.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  32. str+="</td>";
  33. str+="</tr>";
  34. }
  35. $('#bwxxdiv').empty();
  36. $('#bwxxdiv').append(str);
  37. } else {
  38. }
  39. }, "json");
  40. }
  41. </script>
  42. <table class="main_table" cellpadding="0" cellspacing="0">
  43. <tr>
  44. <th width="10%"></th>
  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="15%">泊位用途</th>
  52. <th width="20%">操作</th>
  53. </tr>
  54. <tbody id="bwxxdiv"></tbody>
  55. </table>