ckxxview.jsp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function ckxxview(ckid){
  5. var path="/xkzsq/viewmain?path=6:id="+$('#id').val()+":jyrid="+$('#jyrid').val()+"";
  6. location.href=$.app+'/ck/view?id='+ckid+'&path='+path;
  7. }
  8. function initckxx(){
  9. $.post($.app + "/gkjyr/ckxx", {
  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 ck = data[i];
  17. str+="<tr class='tr_bg'>";
  18. str+="<td>"+(i+1)+"</td>";
  19. str+="<td>"+ck.ckmc+"</td>";
  20. str+="<td>"+ck.ssjyrzw+"</td>";
  21. str+="<td>"+ck.ssmtzw+"</td>";
  22. str+="<td>"+ck.szgkzw+"</td>";
  23. str+="<td>"+ck.szgqzw+"</td>";
  24. str+="<td>"+ck.wxpckzw+"</td>";
  25. str+="<td>";
  26. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ckxxview('"+ck.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  27. str+="</td>";
  28. str+="</tr>";
  29. }
  30. $('#ckxxdiv').empty();
  31. $('#ckxxdiv').append(str);
  32. }
  33. }, "json");
  34. }
  35. </script>
  36. <table class="main_table" cellpadding="0" cellspacing="0">
  37. <tr>
  38. <th width="5%">序号</th>
  39. <th width="10%">仓库名称</th>
  40. <th width="15%">港口经营人</th>
  41. <th width="15%">前沿码头名称</th>
  42. <th width="15%">所在港口</th>
  43. <th width="10%">所在港区</th>
  44. <th width="10%">是否危险品仓库</th>
  45. <th width="20%">操作</th>
  46. </tr>
  47. <tbody id="ckxxdiv"></tbody>
  48. </table>