a0bbc6fddeb3a1d773a196176122a9118cdf127c.svn-base 6.2 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 gobackc(){
			var url = "${ctx}/reg/base/regBaseC/list?ZID=${ZID}&XMMC=${XMMC}";
			window.location = url;
		}
		
		function goVerFrom(){
			if(confirm("请将所有层都添加完后再纵向添加户信息!确定要进入户信息纵向添加吗?")){
				var url = "${ctx}/reg/base/regBaseH/verform?CID=${CID}";
				window.location = url;
			}
		}
		
		function winOpenZCHView(){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度; 
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/base/regBaseC/zchListView?CID=${CID}&XMID=${XMID}&XMMC=${regBaseXmmc}&hlb=1","楼盘立体展示",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		//返回并刷新父页面 
		function btnNextClick(){
			if(window.opener){
				var url = "${ctx}/reg/base/regBaseH/getHBGListLand?CID=${CID}&YWH=${YWH}&djlx=${DJLX}&selectedIDs=${selectedIDs}&ZID=${zid}&updated=1";
				window.opener.document.location = url;
			}
			window.close();
		}
		
		//返回并刷新父页面 
		function btnNextFClick(){
			if(window.opener){
				window.opener.parent.Beforepropertyframe.location.reload();
				window.opener.parent.Afterpropertyframe.location.reload();
			}
			window.close();
		}
		
		function openhview(id){
			var iWidth=1100; 
	       	var iHeight=500;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/base/regBaseH/houseformview?id="+id+"&VIEWS=1","户信息查看",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function updateHBG(id, cid){
			var iWidth=1100; 
	       	var iHeight=500;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/base/regBaseH/houseupdateform?id="+id+"&YWH=${YWH}&CID="+cid,"户信息修改",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function deleteHBG(id){
			if(confirm('确认要删除此次户信息变更吗?')){
				//通过发送ajax请求删除当前变更后的户信息、以及户情况变化表和已登记信息里的数据 
				$.ajax({
					type:"POST",
					url:"${ctx}/reg/base/regBaseH/deleteHBGAndRelationInfo",
					cache: false,
					data:"id="+id+"&YWH=${YWH}",
				    async : false,
					success:function(modelmap){
						var issucess = modelmap.issucess;
						if(issucess == "1"){
							window.parent.Beforepropertyframe.location.reload();
							window.parent.Afterpropertyframe.location.reload();
						}
					}
				});
			}
		}

	</script>
</head>
<body>
	<!-- ul class="nav nav-tabs">
		<li class="active"><a href="#">户信息变更列表</a></li>
	</ul -->
	<form:form id="searchForm" modelAttribute="regBaseH" action="${ctx}/reg/base/regBaseH/getHBGList?YWH=${YWH}" 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>
	<sys:message content="${message}"/>
	<!-- div class="current_fwinfo">当前项目【${XMMC}】,所属幢号为【${ZH}】</div -->
	<c:if test="${not empty WO}">
		<c:if test="${not empty updatetypeofslsq }">
			<input id="btnConform" class="btn btn-primary" type="button" onClick="btnNextFClick();" value="返回并刷新变更列表"/>
		</c:if>
		<c:if test="${empty updatetypeofslsq }">
			<input id="btnConform" class="btn btn-primary" type="button" onClick="btnNextClick();" value="返回并刷新变更面板"/>
		</c:if>
	</c:if>
	<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>
				<th>室号部位</th>
				<th>户型</th>
				<th>房屋性质</th>
				<c:if test="${empty changetype}">
					<c:if test="${empty LISTVIEWS}">
					<c:if test="${empty updatetypeofslsq }">
					<c:if test="${empty updatetypess }"> <!-- 区别变更面板上点击“楼盘变更”后可以返回到 -->
						<th>操作</th>
					</c:if>
					</c:if>
					</c:if>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseH">
			<tr>
				<td><a href="#" onclick="openhview('${regBaseH.id}');">
					${regBaseH.bdcdyh}
				</a></td>
				<td>
					${regBaseH.fwbm}
				</td> 
				<td>
					${regBaseH.jgzwmc}
				</td>
				<td>
					${regBaseH.zl}
				</td>
				<td>
					${regBaseH.scjzmj}
				</td>
				<td>
					${regBaseH.sctnjzmj}
				</td> 
				<td>
					${regBaseH.sjcs}
				</td>
				<td>
					${regBaseH.fttdmj}
				</td>
				<td>
					${regBaseH.shbw}
				</td>
				<td>
					${fns:getDictLabel(regBaseH.hx, 'reg_bus_hx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBaseH.fwxz, 'reg_bus_fwxz', '')}
				</td>
				<c:if test="${empty changetype}">
					<c:if test="${empty LISTVIEWS}">
					<c:if test="${empty updatetypeofslsq }">
					<c:if test="${empty updatetypess }">
						<td>
							<a href="#" onclick="updateHBG('${regBaseH.id}', '${CID}');">修改</a>
							<a href="#" onclick="deleteHBG('${regBaseH.id}');">删除</a>
						</td>
					</c:if>
					</c:if>
					</c:if>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
<%-- 	<div class="pagination">${page}</div> --%>
</body>
</html>