cgxxedit.jsp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. function cgxxview(cgid){
  5. var path="/xkzzx/editmain?path=5:id="+$('#id').val()+"";
  6. location.href=$.app+'/cg/view?id='+cgid+'&path='+path;
  7. }
  8. function initcgxx(){
  9. $.post($.app + "/gkjyr/cgxx", {
  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 cg = data[i];
  18. str+="<tr class='tr_bg'>";
  19. if( !isEmpty(cg.xkzid)){
  20. str+="<td><input type='checkbox' checked name='cgid' value='"+cg.id+"'/></td>";
  21. str+="<td>"+cg.cgmc+"</td>";
  22. str+="<td>"+cg.hxpmc+"</td>";
  23. str+="<td>"+cg.ssjyrzw+"</td>";
  24. str+="<td>"+(cg.cgqmj == null?"":cg.cgqmj)+"</td>";
  25. str+="<td>"+(cg.aqgd == null ? "":cg.aqgd)+"</td>";
  26. str+="<td>";
  27. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxview('"+cg.id+"')\" title='查看'> <i class='glyphicon glyphicon-search'></i> </a>";
  28. str+="</td>";
  29. str+="</tr>";
  30. }
  31. }
  32. $('#cgxxdiv').empty();
  33. $('#cgxxdiv').append(str);
  34. } else {
  35. }
  36. }, "json");
  37. }
  38. </script>
  39. <table class="main_table" cellpadding="0" cellspacing="0">
  40. <tr>
  41. <th width="5%"></th>
  42. <th width="15%">储罐名称</th>
  43. <th width="15%">作业品名</th>
  44. <th width="15%">港口经营人</th>
  45. <!-- <th width="12%">企业存储编号</th>
  46. <th width="11%">储罐容积(升)</th> -->
  47. <th width="15">罐体容积(立方米)</th>
  48. <th width="15%">罐体高度(米)</th>
  49. <!-- <th width="12%">是否危险品储罐</th> -->
  50. <th width="20%">操作</th>
  51. </tr>
  52. <tbody id="cgxxdiv"></tbody>
  53. </table>