c21d5c58b2766f1d7f08ebb7a24c2f9ae8c52f18.svn-base 6.72 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 winOpenZdjbxx(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/regBaseZdjbxx/form?id="+ id +"&VIEWS=1","newwindow_zdjbxxview",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}

	</script>
	<script type="text/javascript">
		function winBackYw(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条宗地信息!");
				return;
			}
			//选中一行后,获取宗地代码值 
			var zddmValue = $("input[name='radio_zddm']:checked").attr("id");
			var bdcdyhtextValue = $("input[name='radio_zddm']:checked").parent().next().next().text();
			var zltextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().text();
			var syqmjtextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().text();
			var qdjgtextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().next().text();
			var qlrxmtextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().next().next().text();
			var qllxTValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().next().next().next().text();
			var qllxtextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().next().next().next().next().text();
		    if(window.opener) { 
		       	fWindowText1 = window.opener.document.getElementById("zddmtext");
		       	fWindowText2 = window.opener.document.getElementById("bdcdyhtext");
		       	fWindowSyqmjText = window.opener.document.getElementById("syqmjtext");
		       	fWindowQdjgText = window.opener.document.getElementById("qdjgtext");
		       	fWindowQlrmcText = window.opener.document.getElementById("qlrmctext");
		       	//提供另外页面使用-楼盘栋信息里加入宗地的信息
		       	fWQlrmcText = window.opener.document.getElementById("zdqlr");
		    	fWQllxText = window.opener.document.getElementById("zdqllx");
		       	fWSyqmjText = window.opener.document.getElementById("zdjm");
		       	fWZlText = window.opener.document.getElementById("zdzl");
		       	
		       	
		       	if(fWindowSyqmjText){
		       		fWindowSyqmjText.value = syqmjtextValue.toString().trim();
		       	}
		       	if(fWindowQdjgText){
		       		fWindowQdjgText.value = qdjgtextValue.toString().trim();
		       	}
		       	if(fWindowText1){
		       		fWindowText1.value = zddmValue.trim();
		       	}
		       	if(fWindowText2){
		       		fWindowText2.value = bdcdyhtextValue.trim();
		       	}
		       	if(fWindowQlrmcText){
		       		fWindowQlrmcText.value = qlrxmtextValue.trim();
		       	}
		       	//select2 权利类型winOpen返填表单 
		       	if(window.opener.select2_qllx){
		       		window.opener.select2_qllx(qllxtextValue.trim());
		       	}
		       	
		       	//其他地方使用-楼盘栋信息里加入宗地的信息
		    	if(fWQlrmcText){
		    		fWQlrmcText.innerText = qlrxmtextValue.trim();
		       	}
		    	if(fWQllxText){
		    		fWQllxText.innerText = qllxTValue.trim();
		       	}
		       	if(fWSyqmjText){
		       		fWSyqmjText.innerText = syqmjtextValue.toString().trim();
		       	}
		    	if(fWZlText){
		    		fWZlText.innerText = zltextValue.trim();
		       	}
		       	
		       	window.close();
		    }
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/base/regBaseZdjbxx/fwlinklist?CXMID=${XMID}">宗地基本信息列表</a></li> 
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseZdjbxx" action="${ctx}/reg/base/regBaseZdjbxx/fwlinklist?ywh=${YWH}&CXMID=${XMID}" 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">
			<c:if test="${empty SXBGLX}">
				<li>
					<label>宗地代码:</label>
					<form:input path="zddm" htmlEscape="false" maxlength="19" class="input-medium"/>
				</li>
				<li>
					<label>权利人姓名</label>
					<form:input path="qlrxm"  htmlEscape="false"  maxlength="200" class="input-medium"/>
				</li>
			</c:if>
			<li>
				<label>不动产单元号</label> 
				<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
		<div class="zxdiv">
			<input id="btnChose" class="btn btn-primary" type="button" onclick="winBackYw()" value="宗地代码选择" />
		</div>
		<br>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr> 
				<th>选择</th> 
				<th>宗地代码</th>
				<th style="display:none;">不动产单元号</th>
				<th>宗地特征码</th>
				<th>坐落</th>
				<th>宗地面积</th>
				<th>价格</th>
				<th>权利人</th>
				<th>权利类型</th>
				<th style="display:none;">权利类型代码</th>  
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZdjbxx">
			<tr>
				<td>
					<input type="radio" name="radio_zddm" id="${regBaseZdjbxx.zddm}" value="${regBaseZdjbxx.zddm}"/>
				</td>
				 
				<td>
					<!-- onclick="winOpenZdjbxx('${regBaseZdjbxx.id}');" -->
					<a href="javascript:void(0);" >
						${regBaseZdjbxx.zddm}
					</a>
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.bdcdyh}
				</td>
				<td>
					${fns:getDictLabel(regBaseZdjbxx.zdtzm, 'reg_bus_zdtzm', '')}
				</td>
				<td>
					${regBaseZdjbxx.zl}
				</td>
				<td>
					${regBaseZdjbxx.zdmj}
				</td>
				<td>
					${regBaseZdjbxx.jg}
				</td>
				<td>
					${regBaseZdjbxx.qlrxm}
				</td>
				<td>
					${fns:getDictLabel(regBaseZdjbxx.qllx, 'reg_bus_qllx', '')}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.qllx}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>