5a5ee4fbfacc4b4944cbe8e261eaadb88c461784.svn-base 11.4 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 src="${ctxStatic}/gis/js/init.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/OpenLayers.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/zdclient.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/jquery.orbit-1.2.3.js" type="text/javascript"></script>    
    <script src="${ctxStatic}/gis/js/global.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/js/config.js" type="text/javascript"></script>
	
	<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 winBackZdjbxx() 
		{
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条测绘信息!");
				return;
			}
			//选中一行后,获取测绘信息相关值 
			var idvalue = $("input[type='radio']:checked").val();
			var districtValue = $("input[name='radio_chxx']:checked").parent().next().text();
			var qlrxmValue = $("input[name='radio_chxx']:checked").parent().next().next().text();
			var zdmjValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var mjdwValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdszdValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().text();
			var zdsznValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().text();
			var zdszxValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().text();
			var zdszbValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().text(); 
			var zbValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().text();
			var tfhValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdtValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zlValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().text();
			var djqValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var djzqValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var xqValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var chrymcValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zdtzmValue = $("input[name='radio_chxx']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			if(window.opener) { 
		        fWindowchidtext = window.opener.document.getElementById("chid");
				fWindowdistrictText = window.opener.document.getElementById("chcodetext");
				fWindowchrymcText = window.opener.document.getElementById("chrymctext");
				fWindowzlText = window.opener.document.getElementById("zltext");
	           	fWindowzdmjText = window.opener.document.getElementById("zdmjtext");
	           	fWindowzdszdText = window.opener.document.getElementById("zdszd");
	           	fWindowzdsznText = window.opener.document.getElementById("zdszn");
	           	fWindowzdszxText = window.opener.document.getElementById("zdszx");
	           	fWindowzdszbText = window.opener.document.getElementById("zdszb");
	        	fWindowzbText = window.opener.document.getElementById("zb");
	        	fWindowtfhText = window.opener.document.getElementById("tfhtext");
	        	fWindowzdtText = window.opener.document.getElementById("zdt");
	        	fWindowdjqText = window.opener.document.getElementById("DJQ");
	        	fWindowdjzqText = window.opener.document.getElementById("QJZQ");
	        	fWindowxqText = window.opener.document.getElementById("xq");
				fWindowqlrText = window.opener.document.getElementById("qlrmc");
	        	fWindowchsjText = window.opener.document.getElementById("textchsj");
				fWindowzddmText = window.opener.document.getElementById("zddm");
				fWindowbdcdyhText = window.opener.document.getElementById("bdcdyhid");
	           	window.opener.select2_zjlx(zdtzmValue.trim());
	           	window.opener.select3_dwlx(mjdwValue.trim());
	           	if(fWindowzdmjText){
	           		fWindowzdmjText.value = zdmjValue.trim();
	           	}
	        	
	           	if(fWindowzdtText){
					fWindowzdtText.value = zdtValue.trim();
					window.opener.upfile_zdt(zdtValue.trim());
				}
	           	if(fWindowchrymcText){
	           		fWindowchrymcText.value = chrymcValue.trim();
	           	}
	           	if(fWindowzlText){
					fWindowzlText.value = zlValue.trim();
				}
	        	if(fWindowdjqText){
	        		window.opener.select2_djq(djqValue.trim());
	           	}
	        	if(fWindowdjzqText){
	        		window.opener.select2_djzq(djzqValue.trim());
					fWindowzddmText.value = djzqValue.trim();
					fWindowbdcdyhText.value = djzqValue.trim();
	           	}
	        	if(fWindowxqText){
	        		window.opener.select2_xq(xqValue.trim());
	           	}
	        	fWindowzdszdText.value = zdszdValue.trim();
	           	fWindowzdsznText.value = zdsznValue.trim();
	           	fWindowzdszxText.value = zdszxValue.trim();
	           	fWindowzdszbText.value = zdszbValue.trim();
	          	if(fWindowzbText){
	           		fWindowzbText.value = zbValue.trim()+" ";
	           	}
	        	if(fWindowtfhText){
	           		fWindowtfhText.value = tfhValue.trim();
	           	}
	        	if(fWindowdistrictText){
	        		fWindowdistrictText.value = districtValue.trim();
	           	}
				if(fWindowqlrText){
	        		fWindowqlrText.value = qlrxmValue.trim();
	           	}
				fWindowchidtext.value = idvalue.trim();
	        	//window.opener.setchbc(idvalue);
	        	window.close();
	        	
		    }
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">测绘信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseChxx11" action="${ctx}/reg/base/regBaseChxx/tdlslist?flag=2" 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;权利人姓名:
				<form:input path="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;坐落:
				<form:input path="zl" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;图幅号:
				<form:input path="tfh" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;宗地面积:
				<form:input path="zdmj" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
			   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			</li>
			<li class="clearfix"></li>
			
		</ul>
	</form:form>
	<div class="zxdiv"><label><span class="tipinfo">请点击测绘信息选择按钮,只能选择一个</span></label>
		<input id="btnChose" class="btn btn-primary" type="button" onclick="javascript:winBackZdjbxx();" value="测绘信息选择"/>
	</div>
	<br>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-bordered table-condensed">
		<thead>
			<tr>
				<th>选择</th>
				<th>测绘编码</th>
				<th>权利人姓名</th>
				<th>证件类型</th>
				<th style="display:none;">证件类型代码</th>
				<th>证件号</th>
				<th>坐落</th>
				<th style="display:none;">宗地四至-东</th>
				<th style="display:none;">宗地四至-南</th>
				<th style="display:none;">宗地四至-西</th>
				<th style="display:none;">宗地四至-北</th> 
				<th style="display:none;">界址点坐标</th>
				<th>宗地面积</th>
				<th style="display:none;">宗地图</th>
				<th style="display:none;">宗地特征码</th>
				<th>图幅号</th>
				<th style="display:none;">地籍区</th>
				<th style="display:none;">地籍子区</th>
				<th style="display:none;">县级行政区</th>
				<th style="display:none;">测绘人员名称</th>
				<th style="display:none;">宗地特征码</th>
				<th style="display:none;">面积单位</th>
<!-- 				<th>操作</th> -->
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseChxx">
			<tr>
				<td>
					<input type="radio" name="radio_chxx" id="${regBaseChxx.id}" value="${regBaseChxx.id}"/>
				</td>
				<td>
					${regBaseChxx.chcode}
				</td>
				<td>
					${regBaseChxx.qlrmc}
				</td>
				<td>
					${fns:getDictLabel(regBaseChxx.zjlx, 'reg_bus_zjlx', '')}
				</td>
				<td style="display:none;">
					${regBaseChxx.zjlx}
				</td>
				<td>
					${regBaseChxx.zjhm}
				</td>
				<td>
					${regBaseChxx.zl}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszd}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszn}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszx}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdszb}
				</td>
				<td style="display:none;">
					${regBaseChxx.jzdzb}
				</td>
				<td>
					<fmt:formatNumber value="${regBaseChxx.zdmj}"   pattern="#0.##"  var="formattedNumber"/>
	               ${formattedNumber}  
				</td>
				
				<td style="display:none;">
					${regBaseChxx.zdt}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdtzm}
				</td>
				<td>
					${regBaseChxx.tfh}
				</td>
				<td style="display:none;">
					${regBaseChxx.seachcity}
				</td>
				<td style="display:none;">
					${regBaseChxx.seachdistrict}
				</td>
				<td style="display:none;">
					${regBaseChxx.seachprov}
				</td>
				<td style="display:none;">
					${regBaseChxx.chrymc}
				</td>
				<td style="display:none;">
					${regBaseChxx.zdtzm}
				</td>
				<td style="display:none;">
					${regBaseChxx.mjdw}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>

</body>
</html>