ccd1434d00d53b040d11f29d539da380318fdb93.svn-base 11.3 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 winOpenFdcq2(id){
			var iWidth=1100; 
	       	var iHeight=600;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var djlx = '${DJLX}';
	       	$.ajax({ 
				type:"POST",
				url:"${ctx}/reg/bus/regBusDyaq/getBaseH",
				cache: false,
				data:"id="+id+"&djlx=${DJLX}",
			    async:false, 
				success:function(modelmap){
					var ywh = modelmap.ywh;
					var status = modelmap.status;
			       	if(djlx == '403' || djlx == '404'){
			       		window.open("${ctx}/reg/bus/regBusFdcq2/nextHouseDivisionForm?dyId="+ id +"&VIEWS=1&optype=update","newwindow",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
			       	}else if(djlx == '402'){
						if(status == '97'){//权属变更
							window.open("${ctx}/reg/bus/regBusFdcq2/HousePropertyForm?YWH="+ywh+"&ids="+id+"&VIEWS=1&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/bus/regBusFdcq2/nextHousePropertyForm?qsId="+ id +"&VIEWS=1&optype=update","newwindow",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
						}
					}else if(djlx == '604'){
						window.open("${ctx}/reg/bus/regBusFdcq2/HousePropertyForm?YWH="+ywh+"&ids="+id+"&VIEWS=1&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/bus/regBusFdcq2/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 winOpenUpdateFdcq2(id){
			//弹出窗口的宽度; 
			var iWidth=1128; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			$.ajax({ 
				type:"POST",
				url:"${ctx}/reg/bus/regBusDyaq/getBaseH",
				cache: false,
				data:"id="+id+"&djlx=${DJLX}",
			    async:false, 
				success:function(modelmap){
					var qsId = modelmap.qsId;
					var hid = modelmap.hid;
					var cid = modelmap.cid;
					var ywh = modelmap.ywh;
					var djlx = modelmap.djlx;
					var oldId = modelmap.oldId;
					var status = modelmap.status;
					if(djlx == '403'){
						window.open("${ctx}/reg/base/regBaseH/divisionform?YWH="+ywh+"&CID="+cid+"&DJLX="+djlx+"&OldYWID="+oldId+"&HID="+hid+"&dyId="+qsId+"&optype=update","newwindow",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}else if(djlx == '404'){
						window.open("${ctx}/reg/base/regBaseH/mergerform?YWH="+ywh+"&CID="+cid+"&DJLX="+djlx+"&ids="+oldId+"&HID="+hid+"&dyId="+qsId+"&optype=update","newwindow",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}else if(djlx == '402'){
						if(status == '97'){//权属变更
							window.open("${ctx}/reg/bus/regBusFdcq2/HousePropertyForm?YWH="+ywh+"&DJLX="+djlx+"&ids="+id+"&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/regBaseH/bgpropertyform?YWH="+ywh+"&DJLX="+djlx+"&ids="+oldId+"&qsId="+qsId+"&HID="+hid+"&optype=update","newwindow",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
						}
					}else if(djlx == '604'){
						window.open("${ctx}/reg/bus/regBusFdcq2/HousePropertyForm?YWH="+ywh+"&DJLX="+djlx+"&ids="+id+"&optype=update","newwindow",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}
				}
			});
	    }
		
		function deletedyfg(ywh,bdcdyh,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 djlx = '${DJLX}';
		       	$.ajax({ 
					type:"POST",
					url:"${ctx}/reg/bus/regBusDyaq/getBaseH",
					cache: false,
					data:"id="+id+"&djlx=${DJLX}",
				    async:false, 
					success:function(modelmap){
						var status = modelmap.status;
				       	if(djlx == '403' || djlx == '404'){//房屋建筑物所有权分割合并
							window.open("${ctx}/reg/bus/regBusFdcq2/deletedyqfghb?ywh="+ywh+"&bdcdyh="+bdcdyh+"&wo=1&DJLX="+djlx,"newwindow",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
				       	}else if(djlx == '402'){
							if(status == '97'){//房屋建筑物所有权权属变更删除
								window.open("${ctx}/reg/bus/regBusFdcq2/deletedyqbggz?ywh="+ywh+"&bdcdyh="+bdcdyh+"&wo=1&DJLX="+djlx+"&status=97","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/regBusFdcq2/deletedyqbggz?ywh="+ywh+"&bdcdyh="+bdcdyh+"&wo=1&DJLX="+djlx+"&status=00","newwindow",
										"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
							}
						}else if(djlx == '604'){//房屋建筑物所有权权属更正删除
							window.open("${ctx}/reg/bus/regBusFdcq2/deletedyqbggz?ywh="+ywh+"&bdcdyh="+bdcdyh+"&wo=1&DJLX="+djlx+"&status=97","newwindow",
									"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
						}
					}
				}); 
			 }
		}
		
		function reloadFdcq2(){
			var optype = "${optype}";
			var regedInfoType = "${DJLX}";
		    if(window.opener) {
		    	if (regedInfoType == "403") { //房屋分割登记 
		    		if(optype == undefined || optype == null || optype ==""){
			    		window.opener.divisionframe.location.reload();
		    		}else{
		    			window.opener.parent.document.qlrframe.location.reload();
		    			window.opener.parent.document.gjzwframe.location.reload();
		    			window.opener.parent.document.divisionframe.location.reload();
		    			window.opener.parent.document.divisionbeforeframe.location.reload();
		    		}
		    	}else if(regedInfoType == "404"){//房屋合并登记 
		    		if(optype == undefined || optype == null || optype ==""){
			    		window.opener.mergerframe.location.reload();
			    		window.opener.mergerbeforeframe.location.reload();
				    	window.opener.gjzwframe.location.reload();
				    	window.opener.qlrframe.location.reload();
		    		}else{
		    			window.opener.parent.document.mergerbeforeframe.location.reload();
		    			window.opener.parent.document.mergerframe.location.reload();
		    			window.opener.parent.document.gjzwframe.location.reload();
		    			window.opener.parent.document.qlrframe.location.reload();
		    		}
		    	}else if(regedInfoType == "402" || regedInfoType == "604"){//房屋所有权变更更正 
		    		if(optype == undefined || optype == null || optype ==""){
				    	window.opener.qlrframe.location.reload();
				    	window.opener.gjzwframe.location.reload();
			    		window.opener.housePropertframe.location.reload();
			    		window.opener.housePropertbeforeframe.location.reload();
		    		}else{
		    			window.opener.parent.document.qlrframe.location.reload();
		    			window.opener.parent.document.gjzwframe.location.reload();
		    			window.opener.parent.document.housePropertframe.location.reload();
		    			window.opener.parent.document.housePropertbeforeframe.location.reload();
		    		}
		    	}
		    	window.close();
		    }
		}
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">房地产权登记信息(独幢、层、套、间房屋)列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBusFdcq2" action="${ctx}/reg/bus/regBusFdcq2/list?ywh=${YWH}&WO=${WO}&DJLX=${DJLX}&optype=${optype}&LISTVIEWS=${LISTVIEWS}" method="post" class="">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<c:if test="${not empty WO}">
		<br>
		<input id="reLoadFdcq2" class="btn btn-primary" type="button" onclick="reloadFdcq2();" value="退出列表"/>
		<br><br>
	</c:if>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>业务号</th>
				<c:if test="${empty WO}">
					<th>不动产单元号</th>
				</c:if>
				<th>权利类型</th>
				<th>登记类型</th>
				<th>分摊土地面积</th>
				<th>建筑面积</th>
				<th>专有面积</th>
				<th>产权来源</th>
				<c:if test="${empty LISTVIEWS}">
					<th>操作</th>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusFdcq2">
			<tr>
				<td>
					${regBusFdcq2.ywh}
				</td>
				<c:if test="${empty WO}">
				<td>
					<a href="javascript:void(0);" onclick="winOpenFdcq2('${regBusFdcq2.id}')">
						${regBusFdcq2.bdcdyh}
					</a> 
				</td>
				</c:if>
				<td>
					${fns:getDictLabel(regBusFdcq2.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusFdcq2.djlx, 'reg_bus_djlx', '')}
				</td>
				<td>
					${regBusFdcq2.fttdmj}
				</td>
				<td>
					${regBusFdcq2.jzmj}
				</td>
				<td>
					${regBusFdcq2.zyjzmj}
				</td>
				<td>
					${fns:getDictLabel(regBusFdcq2.cqly, 'reg_bus_cqly', '')}
				</td>
				<c:if test="${empty LISTVIEWS}">
					<shiro:hasPermission name="reg:bus:regBusDyaq:edit">
						<td>
							<a href="javascript:void(0);" onclick="winOpenUpdateFdcq2('${regBusFdcq2.id}');">修改</a>
							<a href="javascript:void(0);" onclick="deletedyfg('${regBusFdcq2.ywh}','${regBusFdcq2.bdcdyh}','${regBusFdcq2.id}');">删除</a>
						</td>
					</shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>