f01e31c76cdd90d4fb80f36c6f0f16bbc4aa968d.svn-base 6.25 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(zid){
			//alert(zid);
			//弹出窗口的宽度; 
			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&ZID="+zid,"楼盘立体展示",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		//户信息查看 
		function openHViews(id){
			//弹出窗口的宽度; 
			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/regBaseH/houseform?id="+id+"&VIEWS=1&CID=${CID}","楼盘期转现变更户信息查看",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		//户信息变更 
		function winOpenUpdateH(id){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2; //&selectedIDs=${selectedIDs}
			window.open("${ctx}/reg/base/regBaseH/houseform?id="+id+"&CID=${CID}&YWH=${YWH}&DJLX=${DJLX}&zid=${zid}","楼盘期转现变更户信息更新",
					"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){
				window.opener.Beforepropertyframe.location.reload();
				window.opener.Afterpropertyframe.location.reload();
			}
			window.close();
		}
		
		//批量变更
		function hpledit(){
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/base/regBaseH/validateplbg", 
				cache: false, 
				data:"selectedIDs=${selectedIDs}",
			    async : false,  
				success:function(modelmap){
					if(modelmap.success == 0){
						//弹出窗口的宽度; 
						var iWidth=1100; 
						//弹出窗口的高度;
				       	var iHeight=600;
				       	//获得窗口的垂直位置 
				       	var iTop = (window.screen.height - 30 - iHeight) / 2;
				       	//获得窗口的水平位置 
				       	var iLeft = (window.screen.width - 10 - iWidth) / 2; //&selectedIDs=${selectedIDs}
						window.open("${ctx}/reg/base/regBaseH/plhouseform?selectedIDs=${selectedIDs}&CID=${CID}&YWH=${YWH}&DJLX=${DJLX}&zid=${zid}","楼盘期转现变更",
								"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}else{
						 alert(modelmap.msg);
						 return;
					}
				}
			});
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">期转现楼盘变更户信息列表</a></li>
	</ul>
	<input id="btnConform" class="btn btn-primary" style="float:right;" type="button" onClick="hpledit();" value="批量变更"/>
	<sys:message content="${message}"/>
	<div class="current_fwinfo">当前项目【${XMMC}】,所属建筑物【${GZWMC}】</div>
	<table id="contentTable" class="table 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>
				<shiro:hasPermission name="reg:base:regBaseH:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseH">
			<c:if test="${not empty regBaseH.updated}">
				<tr bgcolor="#B9EFF0">
			</c:if>
			<c:if test="${empty regBaseH.updated}">
				<tr>
			</c:if>
				<td><a href="#" onclick="openHViews('${regBaseH.id}')">
					${regBaseH.bdcdyh}
				</a></td>
				<td>
					${regBaseH.fwbm}
				</td> 
				<td>
					${regBaseH.jgzwmc}
				</td> 
				<td>
					${regBaseH.sjc}
				</td>
				<td>
					${regBaseH.zl}
				</td>
				<td>
					${regBaseH.scjzmj}
				</td> 
				<td>
					${regBaseH.sjcs}
				</td>
				<td>
					${regBaseH.hh}
				</td>
				<td>
					${regBaseH.shbw}
				</td> 
				<td>
					${regBaseH.updater}
				</td>
				<td>
					<fmt:formatDate value="${regBaseH.updateDate}" pattern="yyyy-MM-dd"/>
				</td> 				
				<shiro:hasPermission name="reg:base:regBaseH:edit"> 
				<td>
					<c:if test="${empty regBaseH.updated}"> 
						<a href="#" onclick="winOpenUpdateH('${regBaseH.id}');">变更</a>
					</c:if>
					<c:if test="${not empty regBaseH.updated}">
						<a href="#">已变更</a>
					</c:if>
				</td>
				</shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<input id="btnConform" class="btn btn-primary" style="float:right;" type="button" onClick="btnNextClick();" value="确  认"/>
	<div align="center" style="font-size:20px">
		<a href="javascript:void(0);" onclick="winOpenZCHView('${zid}');">立体展示</a>
	</div>
</body>
</html>