7e66e7766739ddbcb91ddfd48bd5f3d55d8aa1fa.svn-base 5.67 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>农用地使用管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function reloadNydsyq(){
			var optype = "${optype}";
			var zx = "${zx}";
		    if(window.opener) {
		    	//新增 
		    	if(optype == undefined || optype == null || optype ==""){
	    			if(zx != null && zx != ""){
		    			window.opener.document.qlrframe.location.reload();
		    		}
	    			window.opener.document.nydsyqframe.location.reload();
	    			window.opener.mortgageframe.location.reload();
		    	}else{ //更新 
 		    		if(zx != null && zx != ""){
	 		    		window.opener.parent.document.qlrframe.location.reload();
		    		}
 		    		window.opener.parent.document.nydsyqframe.location.reload();
 		    		window.opener.parent.document.mortgageframe.location.reload();
		    	}
		    	window.close();
		    }
		}
		
		function winOpenNydsyq(id,ywh){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	if('${djlx}' == 519){
				window.open("${ctx}/reg/bus/regBusNydsyq/zxform?id="+ id +"&optype=update&VIEWS=1&ywh="+ywh,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}else{
				window.open("${ctx}/reg/bus/regBusNydsyq/form?id="+ id +"&VIEWS=1&ywh="+ywh,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}
		}
		
		function winOpenUpdateNydsyq(id,ywh){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	if('${djlx}' == 519){
				window.open("${ctx}/reg/bus/regBusNydsyq/zxform?id="+ id+"&optype=update&YWH="+ywh,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}else{
				window.open("${ctx}/reg/bus/regBusNydsyq/form?id="+ id+"&optype=update&YWH="+ywh,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}
		}
		
		function deletelink(ywh,zddm){
			if(confirm('确认要删除该所有权信息和对应的已登记信息吗?')){
				var iWidth=1100; 
		       	var iHeight=400;
		       	var iTop = (window.screen.height - 30 - iHeight) / 2;
		       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
				window.open("${ctx}/reg/bus/regBusNydsyq/delete?ywh="+ywh+"&zddm="+zddm+"&zx=${zx}","deletewindow",
						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
			}
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusNydsyq/">农用地使用列表</a></li>
	</ul>
	<c:if test="${not empty WO}">
		<br>
		<input id="reLoadJsydsyq" class="btn btn-primary" type="button" onclick="reloadNydsyq();" value="退出列表"/>
		<br><br>
	</c:if>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>业务号</th>
				<th>不动产单元号</th>
				<th>权利类型</th>
				<th>土地所有权性质</th>
				<th>发包方</th>
				<th>承包面积</th>
				<th>承包起始时间</th>
				<th>承包结束时间</th>
				<c:if test="${not empty LISTVIEWS}">
				<shiro:hasPermission name="reg:bus:regBusNydsyq:edit"><th>操作</th></shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusNydsyq">
			<tr>
				<td>
					${regBusNydsyq.ywh}
				</td>
				<td>
					<c:if test="${not empty LISTVIEW}">
						<a href="javascript:void(0);" onclick="winOpenNydsyq('${regBusNydsyq.id}','${regBusNydsyq.ywh}');">
						${regBusNydsyq.bdcdyh}
						</a>
					</c:if>
					<c:if test="${empty LISTVIEW}">
						<a href="#">
						${regBusNydsyq.bdcdyh}
						</a>
					</c:if>
				</td>
				<td>
					${fns:getDictLabel(regBusNydsyq.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusNydsyq.tdsyqxz, 'reg_bus_tdsyqxz', '')}
				</td>
				<td>
					${regBusNydsyq.fbf}
				</td>
				<td>
					${regBusNydsyq.cbsyqmj}
				</td>
				<td>
					<fmt:formatDate value="${regBusNydsyq.cbsyqssj}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					<fmt:formatDate value="${regBusNydsyq.cbsyjssj}" pattern="yyyy-MM-dd"/>
				</td>
				<c:if test="${not empty LISTVIEWS}">
				<shiro:hasPermission name="reg:bus:regBusNydsyq:edit"><td>
    				<a href="javascript:void(0);" onclick="winOpenUpdateNydsyq('${regBusNydsyq.id}','${regBusNydsyq.ywh}');">修改</a>
					<a href="javascript:void(0);" onclick="deletelink('${regBusNydsyq.ywh}','${regBusNydsyq.zddm}');">删除</a>
				</td></shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>