827dde2a5493ebeaad9568cae937482ab11f79fe.svn-base 3.18 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 hzbzSave(){
			var djlx = "${djlx}";
			var oldywh = "${oldywh}";
			var bdcqzh = "${bdcqzh}";
			var newywh = "${newywh}";
			var flag = "${flag}";
			var ids="";
			var trList = $("#contentTable").find("tr");
		    for (var i=1;i<trList.length;i++) {
		        var tdArr = trList.eq(i).find("td");
				ids = tdArr.eq(0).text();
		    }
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/IsTransactionhzbz", 
				cache: false, 
				data:"&YWH="+newywh+"&flag="+flag+"&bdcqzh="+bdcqzh+"&ids="+ids,
			    async : false,  
				success:function(modelmap){
					successbj = modelmap.success;
					if(modelmap.success != 1){
						alert(modelmap.msg);
						return;
					}
				}
			});
			if(successbj == 1){
				//点击之后按钮置灰
				document.getElementById("choiceReged").disabled="disabled";
				document.getElementById("btnCancel").disabled="disabled";
				var url =  "${ctx}/reg/bus/regBusBdcqzsdjxx/fwbfsave?newywh="+newywh+"&bdcqzh="+bdcqzh+"&oldywh="+oldywh+"&djlx="+djlx;
				window.location = url;
			}
		}
		
	</script>
</head>
<body>
	<form:form id="searchForm" modelAttribute="regBusBdcqzsdjxx" action="${ctx}/reg/bus/regBusBdcqzsdjxx/fwhzbzList?islogout=0&FormalMortgage=1&oldywh=${oldywh}&newywh=${newywh}&DJLX=${djlx}&bdcqzh=${bdcqzh}&flagSplit=${flagSplit}" 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>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusBdcqzsdjxx/">房屋已登记信息列表</a></li>
	</ul>
	<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>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}"  var="regBusBdcqzsdjxx">
			<tr>
				<td>
					${regBusBdcqzsdjxx.ywh}
				</td>
				<td>
					${regBusBdcqzsdjxx.bdcdyh}
				</td>
				<td>
					${regBusBdcqzsdjxx.bdcqzh}
				</td>
				<td>
					${regBusBdcqzsdjxx.qlrmc}
				</td>
				<td>
					${regBusBdcqzsdjxx.gyqk}
				</td>
				<td>
					${regBusBdcqzsdjxx.yt}
				</td>
				<td>
					${regBusBdcqzsdjxx.mj}
				</td>
				<td>
					${regBusBdcqzsdjxx.syqx}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div align="center">
		<br>
		<input id="choiceReged" class="btn btn-primary" type="button" onclick="hzbzSave();" value="换证/补证"/>
		<input id="btnCancel" class="btn btn-primary" type="button" value="返回" onclick="history.go(-1)"/>
		<br><br>
	</div>
</body>
</html>