bwxxedit.jsp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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( !isEmpty(bw.xkzid)){
  19. str+="<td><input type='checkbox' checked name='bwid' value='"+bw.id+"'/></td>";
  20. str+="<td>"+bw.bwmc+"</td>";
  21. str+="<td>"+(bw.ssjyrzw==null?"":bw.ssjyrzw)+"</td>";
  22. str+="<td>"+bw.ssmtzw+"</td>";
  23. str+="<td>"+bw.szgkzw+"</td>";
  24. str+="<td>"+bw.szgqzw+"</td>";
  25. str+="<td>"+(bw.bwytzw==null?"":bw.bwytzw)+"</td>";
  26. str+="<td>";
  27. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxview('"+bw.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  28. str+="</td>";
  29. str+="</tr>";
  30. }
  31. }
  32. $('#bwxxdiv').empty();
  33. $('#bwxxdiv').append(str);
  34. } else {
  35. }
  36. }, "json");
  37. }
  38. </script>
  39. <table class="main_table" cellpadding="0" cellspacing="0">
  40. <tr>
  41. <th width="10%"></th>
  42. <th width="10%">泊位名称</th>
  43. <th width="10%">港口经营人</th>
  44. <th width="10%">码头名称</th>
  45. <th width="10%">所在港口</th>
  46. <th width="10%">所在港区</th>
  47. <!-- <th width="10%">泊位属性</th> -->
  48. <th width="15%">泊位用途</th>
  49. <th width="20%">操作</th>
  50. </tr>
  51. <tbody id="bwxxdiv"></tbody>
  52. </table>