ckxxedit.jsp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="/xkzzx/editmain?path=6:id="+$('#id').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. recordStatus:11
  13. }, function(data) {
  14. if (data) {
  15. var str =""
  16. for(var i=0;i<data.length;i++){
  17. var ck = data[i];
  18. str+="<tr class='tr_bg'>";
  19. if(ck.isTrue){
  20. str+="<td><input type='checkbox' checked name='ckid' value='"+ck.id+"'/></td>";
  21. }else{
  22. str+="<td><input type='checkbox' name='ckid' value='"+ck.id+"'/></td>";
  23. }
  24. str+="<td>"+ck.ckmc+"</td>";
  25. str+="<td>"+ck.ssjyrzw+"</td>";
  26. str+="<td>"+ck.ssmtzw+"</td>";
  27. str+="<td>"+ck.szgkzw+"</td>";
  28. str+="<td>"+ck.szgqzw+"</td>";
  29. str+="<td>"+ck.wxpckzw+"</td>";
  30. str+="<td>";
  31. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"ckxxview('"+ck.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  32. str+="</td>";
  33. str+="</tr>";
  34. }
  35. $('#ckxxdiv').empty();
  36. $('#ckxxdiv').append(str);
  37. }
  38. }, "json");
  39. }
  40. </script>
  41. <table class="main_table" cellpadding="0" cellspacing="0">
  42. <tr>
  43. <th width="5%"></th>
  44. <th width="10%">仓库名称</th>
  45. <th width="15%">港口经营人</th>
  46. <th width="15%">前沿码头名称</th>
  47. <th width="15%">所在港口</th>
  48. <th width="10%">所在港区</th>
  49. <th width="10%">是否危险品仓库</th>
  50. <th width="20%">操作</th>
  51. </tr>
  52. <tbody id="ckxxdiv"></tbody>
  53. </table>