123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <script type="text/javascript">
- function bwxxadd(){
- var path="/gkjyr/details?path=4:id="+$('#jyrid').val()+"";
- location.href=$.app+'/bw/add?path='+path;
- }
- function bwxxview(bwid){
- var path="/gkjyr/details?path=4:id="+$('#jyrid').val()+"";
- location.href=$.app+'/bw/view?id='+bwid+'&path='+path;
- }
- function bwxxedit(bwid){
- var path="/gkjyr/details?path=4:id="+$('#jyrid').val()+"";
- location.href=$.app+'/bw/edit?id='+bwid+'&path='+path;
- }
- function bwxxdelete(bwid){
- $.confirm({
- title: '确认框',
- content: '确认删除吗',
- confirm: function(){
- $.post($.app + "/bw/delete", {
- id : bwid
- }, function(data) {
- if (data.success) {
- $.alert({
- title: '提示',
- content: '操作成功',
- confirm: function(){
- initbwxx();
- }
- });
- } else {
- $.alert({
- title: '提示',
- content: data.message,
- confirm: function(){
-
- }
- });
- }
- }, "json");
- },
- cancel: function(){
-
- }
- });
- }
- function initbwxx(){
- $.post($.app + "/gkjyr/bwxx2", {
- id : $('#jyrid').val()
- }, function(data) {
- if (data) {
- var str ="";
- for(var i=0;i<data.length;i++){
- var bw = data[i];
- str+="<tr class='tr_bg'>";
- str+="<td>"+(i+1)+"</td>";
- str+="<td>"+bw.bwmc+"</td>";
- str+="<td>"+(bw.ssjyrzw==null?"":bw.ssjyrzw)+"</td>";
- str+="<td>"+bw.ssmtzw+"</td>";
- str+="<td>"+bw.szgkzw+"</td>";
- str+="<td>"+bw.szgqzw+"</td>";
- str+="<td>"+(bw.bwytzw==null?"":bw.bwytzw)+"</td>";
- str+="<td>"+(bw.wxpbwzw==null?"":bw.wxpbwzw)+"</td>";
- str+="<td>"+(bw.sfdwkfzw==null?"":bw.sfdwkfzw)+"</td>";
- str+="<td>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxview('"+bw.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
- if(bw.recordStatus==1&&bw.xkzid==''){
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxedit('"+bw.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
- str+="<a class='btn btn-default btn-xs' href='#' onclick=\"bwxxdelete('"+bw.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
- }
- str+="</td>";
- str+="</tr>";
- }
- $('#bwxxdiv').empty();
- $('#bwxxdiv').append(str);
- } else {
-
- }
- }, "json");
- }
- </script>
- <a class="btn btn-default btn-sm" href="#"
- onclick="bwxxadd()" 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="10%">泊位名称</th>
- <th width="10%">港口经营人</th>
- <th width="10%">码头名称</th>
- <th width="10%">所在港口</th>
- <th width="10%">所在港区</th>
- <!-- <th width="10%">泊位属性</th> -->
- <th width="15%">泊位用途</th>
- <th width="5%">是否<br>危险品泊位</th>
- <th width="5%">是否<br>对外开放泊位</th>
- <th width="20%">操作</th>
- </tr>
- <tbody id="bwxxdiv"></tbody>
- </table>
|