zxjxxxedit.jsp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function zxjxxxview(zxjxid){
  5. var path="/xkzzx/editmain?path=11:id="+$('#id').val()+"";
  6. location.href=$.app+'/zxjx/view?id='+zxjxid+'&path='+path;
  7. }
  8. function initzxjxxx(){
  9. $.post($.app + "/gkjyr/zxjxxx", {
  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 zxjx = data[i];
  18. str+="<tr class='tr_bg'>";
  19. if(zxjx.isTrue){
  20. str+="<td><input type='checkbox' checked name='zxjxid' value='"+zxjx.id+"'/></td>";
  21. }else{
  22. str+="<td><input type='checkbox' name='zxjxid' value='"+zxjx.id+"'/></td>";
  23. }
  24. str+="<td>"+zxjx.jxlbmczw+"</td>";
  25. str+="<td>"+zxjx.ssjyrzw+"</td>";
  26. str+="<td>"+zxjx.xhhgg+"</td>";
  27. str+="<td>"+zxjx.jxsl+"</td>";
  28. str+="<td>"+zxjx.syqzw+"</td>";
  29. str+="<td>";
  30. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxview('"+zxjx.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  31. str+="</td>";
  32. str+="</tr>";
  33. }
  34. $('#zxjxxxdiv').empty();
  35. $('#zxjxxxdiv').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="15%">机械类别名称</th>
  45. <th width="15%">港口经营人</th>
  46. <th width="15%">型号或规格</th>
  47. <th width="15%">机械数量</th>
  48. <th width="15%">所有权</th>
  49. <th width="20%">操作</th>
  50. </tr>
  51. <tbody id="zxjxxxdiv"></tbody>
  52. </table>