cgxxedit.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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(cg.isTrue){
  20. str+="<td><input type='checkbox' checked name='cgid' value='"+cg.id+"'/></td>";
  21. }else{
  22. str+="<td><input type='checkbox' name='cgid' value='"+cg.id+"'/></td>";
  23. }
  24. str+="<td>"+cg.cgmc+"</td>";
  25. str+="<td>"+cg.hxpmc+"</td>";
  26. str+="<td>"+cg.ssjyrzw+"</td>";
  27. str+="<td>"+(cg.cgqmj == null?"":cg.cgqmj)+"</td>";
  28. str+="<td>"+(cg.aqgd == null ? "":cg.aqgd)+"</td>";
  29. str+="<td>";
  30. str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxview('"+cg.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
  31. str+="</td>";
  32. str+="</tr>";
  33. }
  34. $('#cgxxdiv').empty();
  35. $('#cgxxdiv').append(str);
  36. } else {
  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="15%">储罐名称</th>
  45. <th width="15%">作业品名</th>
  46. <th width="15%">港口经营人</th>
  47. <!-- <th width="12%">企业存储编号</th>
  48. <th width="11%">储罐容积(升)</th> -->
  49. <th width="15">罐体容积(立方米)</th>
  50. <th width="15%">罐体高度(米)</th>
  51. <!-- <th width="12%">是否危险品储罐</th> -->
  52. <th width="20%">操作</th>
  53. </tr>
  54. <tbody id="cgxxdiv"></tbody>
  55. </table>