| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 | 
							- <%@ page language="java" contentType="text/html; charset=UTF-8"
 
- 	pageEncoding="UTF-8"%>
 
- 	
 
- <script type="text/javascript">
 
- 	function zxjxxxadd(){
 
- 		var path="/gkjyr/details?path=11:id="+$('#jyrid').val()+"";
 
- 		location.href=$.app+'/zxjx/add?path='+path;
 
- 	}
 
- 	function zxjxxxview(zxjxid){
 
- 		var path="/gkjyr/details?path=11:id="+$('#jyrid').val()+"";
 
- 		location.href=$.app+'/zxjx/view?id='+zxjxid+'&path='+path;
 
- 	}
 
- 	function zxjxxxedit(zxjxid){
 
- 		var path="/gkjyr/details?path=11:id="+$('#jyrid').val()+"";
 
- 		location.href=$.app+'/zxjx/edit?id='+zxjxid+'&path='+path;
 
- 	}
 
- 	function zxjxxxdelete(zxjxid){
 
- 		$.confirm({
 
- 		    title: '确认框',
 
- 		    content: '确认删除吗',
 
- 		    confirm: function(){
 
- 		    	 $.post($.app + "/zxjx/delete", {
 
- 	                 id : zxjxid
 
- 	             }, function(data) {
 
- 	                 if (data.success) {
 
- 	                	 $.alert({
 
- 	                		    title: '提示',
 
- 	                		    content: '操作成功',
 
- 	                		    confirm: function(){
 
- 	                		    	initzxjxxx();
 
- 	                		    }
 
- 	                	 });
 
- 	                 } else {
 
- 	                	 $.alert({
 
- 	             		    title: '提示',
 
- 	             		    content: data.message,
 
- 	             		    confirm: function(){
 
- 	             		        
 
- 	             		    }
 
- 	             	 });
 
- 	                 }
 
- 	             }, "json");
 
- 		    },
 
- 		    cancel: function(){
 
- 		        
 
- 		    }
 
- 		});
 
- 	}	
 
- 	function initzxjxxx(){
 
- 		$.post($.app + "/gkjyr/zxjxxx", {
 
- 			id : $('#jyrid').val()
 
- 		}, function(data) {
 
- 			if (data) {
 
- 				var str =""
 
- 				for(var i=0;i<data.length;i++){
 
- 					var zxjx = data[i];
 
- 					str+="<tr class='tr_bg'>";
 
- 					str+="<td>"+(i+1)+"</td>";
 
- 					str+="<td>"+zxjx.jxlbmczw+"</td>";
 
- 					str+="<td>"+zxjx.ssjyrzw+"</td>";
 
- 					str+="<td>"+zxjx.xhhgg+"</td>";
 
- 					str+="<td>"+zxjx.jxsl+"</td>";
 
- 					str+="<td>"+zxjx.syqzw+"</td>";
 
- 					str+="<td>";
 
- 					str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxview('"+zxjx.id+"')\"> <i class='glyphicon glyphicon-search'></i> 查看</a>";
 
- 					if(zxjx.recordStatus==1&&zxjx.xkzid==''){
 
- 						str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxedit('"+zxjx.id+"')\"> <i class='glyphicon glyphicon-pencil'></i> 编辑</a>";
 
- 						str+="<a class='btn btn-default btn-xs' href='#' onclick=\"zxjxxxdelete('"+zxjx.id+"')\"> <i class='glyphicon glyphicon-trash'></i> 删除</a>";
 
- 					}
 
- 					str+="</td>";
 
- 					str+="</tr>";
 
- 				}
 
- 				$('#zxjxxxdiv').empty();
 
- 				$('#zxjxxxdiv').append(str);
 
- 			} else {
 
- 				
 
- 			}
 
- 		}, "json");
 
- 	}
 
- </script>  
 
- 	
 
- 	<a class="btn btn-default btn-sm" href="#"
 
- 		onclick="zxjxxxadd()" 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="15%">机械数量</th>
 
- 	        <th width="15%">所有权</th>
 
- 	        <th width="20%">操作</th>
 
- 	    </tr>
 
- 	 	<tbody id="zxjxxxdiv"></tbody>
 
- 		
 
- 	</table>
 
 
  |