mtxxadd.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function mtxxview(mtid){
  5. var path="/xkzyx/addmain?path=3:id="+$('#jyrid').val()+"";
  6. location.href=$.app+'/mt/view?id='+mtid+'&path='+path;
  7. }
  8. function initmtxx(){
  9. $.post($.app + "/gkjyr/mtxx", {
  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 mt = data[i];
  17. str+="<tr class='tr_bg'>";
  18. if( !isEmpty(mt.xkzid)){
  19. str+="<td><input type='checkbox' checked name='mtid' value='"+mt.id+"'/></td>";
  20. str+="<td>"+mt.mtmc+"</td>";
  21. str+="<td>"+mt.ssjyrzw+"</td>";
  22. str+="<td>"+mt.szgkzw+"</td>";
  23. str+="<td>"+mt.szgqzw+"</td>";
  24. str+="<td>"+(mt.mtytzw == null? "":mt.mtytzw)+"</td>";
  25. str+="<td>"+(mt.fwlxzw == null? "":mt.fwlxzw)+"</td>";
  26. str+="<td>"+mt.sfwhpzw+"</td>";
  27. str+="<td>";
  28. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"mtxxview('"+mt.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  29. str+="</td>";
  30. str+="</tr>";
  31. }
  32. }
  33. $('#mtxxdiv').empty();
  34. $('#mtxxdiv').append(str);
  35. } else {
  36. }
  37. }, "json");
  38. }
  39. </script>
  40. <table class="main_table" cellpadding="0" cellspacing="0">
  41. <tr>
  42. <th width="10%"></th>
  43. <th width="14%">码头名称</th>
  44. <th width="14%">港口经营人</th>
  45. <th width="10%">所在港口</th>
  46. <th width="10%">所在港区</th>
  47. <th width="14%">码头用途</th>
  48. <th width="6%">服务类型</th>
  49. <th width="10%">是否危化品码头</th>
  50. <th width="20%">操作</th>
  51. </tr>
  52. <tbody id="mtxxdiv"></tbody>
  53. <%--
  54. <c:forEach items="${mtxx}" var="mt" varStatus="status">
  55. </c:forEach> --%>
  56. </table>