46664d94217b743a21c1b325c8e3e44bc2e6f446.svn-base 7.55 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() {
			$("tbody > tr").bind("click",function(){
				$("tbody > tr").each(function(i){    
		             $(this).removeClass("trBgcolor");
		        });
				$(this).find('input:radio').prop('checked', true);
				$(this).addClass("trBgcolor");
			});
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function choiceOneRegedinfo(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条信息!");
				return;
			}
			//选中一行后,获取信息相关值 
			var idValue = $("input[name='radio_Bdcqzsdjxx']:checked").attr("id");
			var ptype = "${PTYPE}";
			
			//检查当前选中的不动产 信息有没有在办理其它业务  有的话给提示
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/isTransaction", 
				cache: false, 
				data:"id="+idValue+"&djlx="+'${DJLX}',
			    async : false,  
				success:function(modelmap){
					if(modelmap.success == 1){
						//返回值设置 
						window.opener.DoAfterDialogForBzhzSxbg(idValue, ptype);
						window.close();
					}else{
						alert("您选择的不动产登记信息正在办理其它业务!");
						return;
					}
				}
			});
		}
		
		function choiceOneRegedinfoBak(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条信息!");
				return;
			}
			//选中一行后,获取信息相关值 
			var idValue = $("input[name='radio_Bdcqzsdjxx']:checked").attr("id");
			var ptype = "${PTYPE}";
			if(ptype == "sxbg"){
				$.ajax({
					type:"POST", //请求方式 
					url:"${ctx}/reg/bus/regBusBdcqzsdjxx/choiceOneRegedInfoSxbg", //请求路径 
					cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
					//data:"zddm="+ zddmValue.trim() +"&id="+idValue.trim(),  //传参 
					data:"id="+idValue.trim(),  //传参 
					dataType: "html",   //返回值类型       使用json的话也可以,但是需要在JS中编写迭代的html代码,如果格式样式复杂的话还是用html返回类型好 
					success:function(data){
						//给父页面的div html()宗地基本信息的内容 通过ID 
						if(window.opener) {
							window.opener.document.getElementById('reg_sxbginfo').innerHTML = data;
						}
						window.close();
					}
				});
			}else{
				$.ajax({ 
					type:"POST", //请求方式 
					url:"${ctx}/reg/bus/regBusBdcqzsdjxx/choiceOneRegedInfo", //请求路径 
					cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
					//data:"zddm="+ zddmValue.trim() +"&id="+idValue.trim(),  //传参 
					data:"id="+idValue.trim()+"&bhzinfo=1",  //传参 
					dataType: "html",   //返回值类型       使用json的话也可以,但是需要在JS中编写迭代的html代码,如果格式样式复杂的话还是用html返回类型好 
					success:function(data){
						//给父页面的div html()宗地基本信息的内容 通过ID 
						if(window.opener) {
							window.opener.document.getElementById('reg_bzinfo').innerHTML = data; 
						}
						window.close();
					}
				});
			}
		}
		
		function choiceNext(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条信息!");
				return;
			}
			var djlx = "${DJLX}";
			var idValue = $("input[name='radio_Bdcqzsdjxx']:checked").attr("id");
			var zddm = $("input[name='radio_Bdcqzsdjxx']:checked").parent().next().next().text();
			var url;
			var idValue = $("input[name='radio_Bdcqzsdjxx']:checked").attr("id");
			//检查当前选中的不动产 信息有没有在办理其它业务  有的话给提示
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/isTransaction", 
				cache: false, 
				data:"id="+idValue+"&YWH="+'${ywhStr}'+"&djlx="+djlx,
			    async : false,  
				success:function(modelmap){
					successbj = modelmap.success;
					if(modelmap.success != 1){
						alert(modelmap.msg);
						return;
					}
				}
			});
			//设置选择的信息
			if(successbj == 1){
				if(djlx == "420"){
					url = "${ctx}/reg/base/regBaseZdjbxx/TdSyqpropertygmform?YWH=${ywhStr}&YSDM=2001010000&oldywid="+ idValue +"&djlx=${DJLX}&zddm="+zddm;
					window.location = url;
				}
			}
		}
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">选择可变更业务信息</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBusBdcqzsdjxx" action="${ctx}/reg/bus/regBusBdcqzsdjxx/selectinfo?WO=1&ywhStr=${ywhStr}&djlx=${DJLX}" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>业务编号:</label>
				<form:input path="ywh" htmlEscape="false" maxlength="20" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;不动产证号:
				<form:input path="bdcqzh" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>权利人:</label>
				<form:input path="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>宗地代码:</label>
				<form:input path="zddm" htmlEscape="false" maxlength="28" class="input-medium"/>
			</li> 
			<li><label>权利类型:</label>
				<form:select path="qllx" class="input-medium">
					<form:option value="" label=""/>
					<form:option value="1" label="集体土地所有权"/>
<%-- 					<form:options items="${fns:getDictList('reg_bus_qllx')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	 
	<table id="contentTable" class="table table-bordered table-condensed">
		<thead>
			<tr>
				<c:if test="${not empty WO}">
					<th>选择</th>
				</c:if>
				<th>业务编号</th>
				<th>宗地代码</th>
				<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>
				<c:if test="${not empty WO}">
					<td><input type="radio" name="radio_Bdcqzsdjxx" id="${regBusBdcqzsdjxx.id}" value=""/></td>
				</c:if>
				<td><a href="#">
					${regBusBdcqzsdjxx.ywh}
					</a>
				</td> 
				<td>
					${regBusBdcqzsdjxx.zddm}
				</td>
				<td>
					${regBusBdcqzsdjxx.bdcqzh}
				</td> 
				<td>
					${regBusBdcqzsdjxx.qlrmc}
				</td>
				<td>
					${regBusBdcqzsdjxx.gyqk}
				</td>
				<td>
					${fns:getDictLabel(regBusBdcqzsdjxx.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${regBusBdcqzsdjxx.qlxz}
				</td>
				<td>
					${regBusBdcqzsdjxx.yt}
				</td>
				<td>
					${regBusBdcqzsdjxx.mj}
				</td>
				<td>
					${regBusBdcqzsdjxx.syqx}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<input id="btnNext" class="btn btn-primary" type="button"  value="下一步" onclick="javascript:choiceNext();"/>
</body>
</html>