mtxxedit.jsp 1.9 KB

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