35993d4ca0005d86e76913904950bf00f81be3b2.svn-base 3.69 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 lqhzbzSave(){
			var trList = $("#contentTable").find("tr");
			if(trList.length<=1){
				alert("没有已选择的房屋信息!");
				return;
			}
			var djlx = "${djlx}";
			var oldywh = "${oldywh}";
			var bdcqzh = "${bdcqzh}";
			var newywh = "${newywh}";
			var flag = "${flag}";
			var ids="";
			var idindex="";
			var trList = $("#contentTable").find("tr");
		    for (var i=1;i<trList.length;i++) {
		        var tdArr = trList.eq(i).find("td");
				idindex = tdArr.eq(0).text().trim();
				if(isNotNull(ids)){
					ids += ","+idindex;
				}else{
					ids = idindex;
				}
		    }
		    $.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/IsTransactionhzbz", 
				cache: false, 
				data:"&YWH="+newywh+"&flag="+flag+"&bdcqzh="+bdcqzh+"&ids="+idindex,
			    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/lqbfsave?newywh="+newywh+"&bdcqzh="+bdcqzh+"&oldywh="+oldywh+"&djlx="+djlx;
				window.location = url;
			}
		}
		
		
		function isNotNull(val){
		     if(val != null && val != 'null' && val != undefined && val != 'undefined' && val != ''){
		         return true ;
		     }
		     return false;
		}
		
	</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 style="display: none;">
					${regBusBdcqzsdjxx.id}
				</td>
				<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="lqhzbzSave();" value="换证/补证"/>
		<input id="btnCancel" class="btn btn-primary" type="button" value="返回" onclick="history.go(-1)"/>
		<br><br>
	</div>
</body>
</html>