1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <script type="text/javascript">
- function cgxxadd(){
- var path="/gkjyr/details?path=5:id="+$('#jyrid').val()+"";
- location.href=$.app+'/cg/add?path='+path;
- }
- function cgxxview(cgid){
- var path="/gkjyr/details?path=5:id="+$('#jyrid').val()+"";
- location.href=$.app+'/cg/view?id='+cgid+'&path='+path;
- }
- function cgxxedit(cgid){
- var path="/gkjyr/details?path=5:id="+$('#jyrid').val()+"";
- location.href=$.app+'/cg/edit?id='+cgid+'&path='+path;
- }
- function cgxxdelete(cgid){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/cg/delete", {
- id : cgid
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- initcgxx();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- function initcgxx(){
- $.post($.app + "/gkjyr/cgxx", {
- id : $('#jyrid').val()
- }, function(data) {
- if (data) {
- var str ="";
- for(var i=0;i<data.length;i++){
- var cg = data[i];
- str+="<tr class='tr_bg'>";
- str+="<td>"+(i+1)+"</td>";
- str+="<td>"+cg.cgmc+"</td>";
- str+="<td>"+cg.hxpmc+"</td>";
- str+="<td>"+cg.ssjyrzw+"</td>";
- str+="<td>"+(cg.cgqmj == null?"":cg.cgqmj)+"</td>";
- str+="<td>"+(cg.aqgd == null ? "":cg.aqgd)+"</td>";
- str+="<td>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxview('"+cg.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
- if(cg.recordStatus==1&&cg.xkzid==''){
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxedit('"+cg.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"cgxxdelete('"+cg.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
- }
- str+="</td>";
- str+="</tr>";
- }
- $('#cgxxdiv').empty();
- $('#cgxxdiv').append(str);
- } else {
-
- }
- }, "json");
- }
- </script>
-
- <a class="btn btn-default btn-sm" href="#"
- onclick="cgxxadd()" style="float:right;"> <i class="glyphicon glyphicon-plus"></i> 新增
- </a>
- <table class="main_table" cellpadding="0" cellspacing="0">
- <tr>
- <th width="5%">序号</th>
- <th width="15%">储罐名称</th>
- <th width="15%">作业品名</th>
- <th width="15%">港口经营人</th>
- <!-- <th width="12%">企业存储编号</th>
- <th width="11%">储罐容积(升)</th> -->
- <th width="15">罐体容积(立方米)</th>
- <th width="15%">罐体高度(米)</th>
- <!-- <th width="12%">是否危险品储罐</th> -->
- <th width="20%">操作</th>
- </tr>
- <tbody id="cgxxdiv"></tbody>
- </table>
|