2430f4587470b77f6606bc7a0721f9c64552ffd7.svn-base 8.22 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 winOpenJsydsyq(id){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var djxl = "${DJLX}";
	       	if(djxl == '421'){
	       		window.open("${ctx}/reg/base/regBaseZdjbxx/propertygmform?YWH=${YWH}&ids="+id+"&djlx=421&optype=update&LISTVIEWS=1&VIEWS=1","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/regBusJsydsyq/bgchangeform?id="+ id +"&VIEWS=1&ywh=${YWH}&DJLX=${DJLX}&optype=update","newwindow",
	    				"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}
		}
		
		function winOpenUpdateJsydsyq(id,zddm){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var djxl = "${DJLX}";
	       	if(djxl == '406'){//土地使用权分割
				window.open("${ctx}/reg/base/regBaseZdjbxx/divisionform?YWH=${YWH}&oldywid="+id+"&djlx=${DJLX}&optype=update&rights=shiy","newwindow",
						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}else if(djxl == '407'){//土地使用权合并
				window.open("${ctx}/reg/base/regBaseZdjbxx/nextmerger?YWH=${YWH}&ids="+id+"&djlx=${DJLX}&optype=update&rights=shiy","newwindow",
						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}else if(djxl == '421'){//土地使用权更名
				window.open("${ctx}/reg/base/regBaseZdjbxx/propertygmform?YWH=${YWH}&ids="+id+"&djlx=421&optype=update","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/base/regBaseZdjbxx/propertyform?YWH=${YWH}&oldywid="+id+"&djlx=${DJLX}&zddm="+zddm+"&optype=update&rights=shiy","newwindow",
						"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
	       	}
		}
		
		function reloadJsydsyq(){
			var optype = "${optype}";
			var djxl = "${DJLX}";
		    if(window.opener) {
				if(djxl == '406'){//土地使用权分割
					if(optype == undefined || optype == null || optype ==""){
						window.opener.divisionframe.location.reload();
			    	}else{ //更新 
			    		window.opener.parent.document.jsydsyqframe.location.reload();
	 		    		window.opener.parent.document.qlrframe.location.reload();
 		    			window.opener.parent.document.divisionbeforeframe.location.reload();
 		    			window.opener.parent.document.divisionframe.location.reload();
			    	}
				}else{
			    	//新增 
			    	if(optype == undefined || optype == null || optype ==""){
		    			window.opener.document.jsydsyqframe.location.reload();
		    			window.opener.document.qlrframe.location.reload();
		    			if(djxl == '407'){//土地使用权合并
			    			window.opener.document.mergerbeforeframe.location.reload();
			    			window.opener.document.mergerframe.location.reload();
		    			}else{
			    			window.opener.document.propertyframe.location.reload();
			    			window.opener.document.propertyOldframe.location.reload();
			    			if(djxl=='421'){
			    				window.opener.document.bgqpropertyframe.location.reload();
			    			}
			    			
		    			}
			    	}else{ //更新 
	 		    		window.opener.parent.document.jsydsyqframe.location.reload();
	 		    		window.opener.parent.document.qlrframe.location.reload();
			    		if(window.opener.parent.document.propertyframe){
	 		    			window.opener.parent.document.propertyframe.location.reload();
	 		    			if(djxl=='421'){
	 		    				window.opener.parent.document.bgqpropertyframe.location.reload();
	 		    			}
	 		    		}
			    		if(window.opener.parent.document.propertyOldframe){
	 		    			window.opener.parent.document.propertyOldframe.location.reload();
	 		    		}
			    		if(window.opener.parent.document.mergerbeforeframe){
	 		    			window.opener.parent.document.mergerbeforeframe.location.reload();
	 		    		}
			    		if(window.opener.parent.document.mergerframe){
	 		    			window.opener.parent.document.mergerframe.location.reload();
	 		    		}
			    	}
				}
		    	window.close();
		    }
		}
		
		function winOpendeleteBg(id){
			 if(confirm('是否删除?')){
				//弹出窗口的宽度; 
				var iWidth=1100; 
				//弹出窗口的高度;
		       	var iHeight=400;
		       	//获得窗口的垂直位置 
		       	var iTop = (window.screen.height - 30 - iHeight) / 2;
		       	//获得窗口的水平位置 
		       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
		       	var url = "";
		       	var djlx = "${DJLX}";
		       	if(djlx == "406"){//分割
		       		url = "${ctx}/reg/bus/regBusJsydsyq/deleteTdfgbg?id="+ id +"&YWH=${YWH}";
		       	}else if(djlx == "407"){ //合并
		       		url = "${ctx}/reg/bus/regBusJsydsyq/deleteTdhbbg?id="+ id +"&YWH=${YWH}";
		       	}else{ //djlx == "405" || djlx == "421" || djlx == "602"
		       		url = "${ctx}/reg/bus/regBusJsydsyq/deleteTdsxbg?id="+ id +"&YWH=${YWH}";
		       	} 
				window.open(url ,"变更删除",
						"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="javascript:void(0);">建设用地宅基地使用权信息列表</a></li>
	</ul>
 	<c:if test="${not empty WO}">
		<br>
		<input id="reLoadJsydsyq" class="btn btn-primary" type="button" onclick="reloadJsydsyq();" 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>
				<c:if test="${empty LISTVIEWS}">
				<shiro:hasPermission name="reg:bus:regBusJsydsyq:edit"><th>操作</th></shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusJsydsyq">
			<tr> 
				<td>
					${regBusJsydsyq.ywh}
				</td>
				<td>
					<c:if test="${empty WO}">
					<a href="javascript:void(0);" onclick="winOpenJsydsyq('${regBusJsydsyq.id}');">
					${regBusJsydsyq.bdcdyh}
					</a>
					</c:if>
					<c:if test="${not empty WO}">
					${regBusJsydsyq.bdcdyh}
					</c:if>
				</td>
				<td>
					${fns:getDictLabel(regBusJsydsyq.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusJsydsyq.djlx, 'reg_bus_djlx', '')}
				</td>
				<td>
					${regBusJsydsyq.djyy}
				</td>
				<td>
					${regBusJsydsyq.syqmj}
				</td>
				<c:if test="${empty LISTVIEWS}">
				<shiro:hasPermission name="reg:bus:regBusJsydsyq:edit"><td>
					<a href="javascript:void(0);" onclick="winOpenUpdateJsydsyq('${regBusJsydsyq.id}','${regBusJsydsyq.zddm}');">修改</a>
					<a href="javascript:void(0);" onclick="winOpendeleteBg('${regBusJsydsyq.id}')">删除</a>
				</td></shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<!-- 
	<div class="pagination">${page}</div>
	 -->
</body>
</html>