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="/xkzyx/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. }, function(data) {
  13. if (data) {
  14. var str =""
  15. for(var i=0;i<data.length;i++){
  16. var cg = data[i];
  17. str+="<tr class='tr_bg'>";
  18. if(cg.isTrue){
  19. str+="<td><input type='checkbox' checked name='cgid' value='"+cg.id+"'/></td>";
  20. }else{
  21. str+="<td><input type='checkbox' name='cgid' value='"+cg.id+"'/></td>";
  22. }
  23. str+="<td>"+cg.cgmc+"</td>";
  24. str+="<td>"+cg.hxpmc+"</td>";
  25. str+="<td>"+cg.ssjyrzw+"</td>";
  26. str+="<td>"+(cg.cgqmj == null?"":cg.cgqmj)+"</td>";
  27. str+="<td>"+(cg.aqgd == null ? "":cg.aqgd)+"</td>";
  28. str+="<td>";
  29. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxview('"+cg.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  30. str+="</td>";
  31. str+="</tr>";
  32. }
  33. $('#cgxxdiv').empty();
  34. $('#cgxxdiv').append(str);
  35. } else {
  36. }
  37. }, "json");
  38. }
  39. </script>
  40. <table class="main_table" cellpadding="0" cellspacing="0">
  41. <tr>
  42. <th width="5%"></th>
  43. <th width="15%">储罐名称</th>
  44. <th width="15%">作业品名</th>
  45. <th width="15%">港口经营人</th>
  46. <!-- <th width="12%">企业存储编号</th>
  47. <th width="11%">储罐容积(升)</th> -->
  48. <th width="15">罐体容积(立方米)</th>
  49. <th width="15%">罐体高度(米)</th>
  50. <!-- <th width="12%">是否危险品储罐</th> -->
  51. <th width="20%">操作</th>
  52. </tr>
  53. <tbody id="cgxxdiv"></tbody>
  54. </table>