9b974425258c1ea66025079c50483ae75cdb4199.svn-base 16.7 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 zddmValue = $("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().next().text();
			//选中一行后,获取测绘信息相关值 
			var idvalue = $("input[type='radio']:checked").val();
			if ('${djlx}'.indexOf('2')!= -1){
				$.ajax({ 
					type:"POST",
					url:"${ctx}/reg/bus/regBusBdcqzsdjxx/isTransactionCh",
					cache: false,
					data:"zddm="+zddmValue,
				    async:false, 
					success:function(modelmap){
						var successbj = modelmap.success;
						if(successbj == '1'){
							alert(modelmap.msg);
							return;
						}
					}
				})
			  }
			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 zddmValue = $("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().next().text();
			var bdcdyhValue = $("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().next().next().text();
			var qllxValue = $("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().next().next().next().text();
			var ytValue = $("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().next().next().next().next().text();
			var rjlValue = $("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().next().next().next().next().next().text();
			var djValue = $("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().next().next().next().next().next().next().text();
			var qlxzValue = $("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().next().next().next().next().next().next().next().text();
			var tdsyqdmValue = $("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().next().next().next().next().next().next().next().next().text();
			var qlsdfsValue = $("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().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) { 
				fWindowqlrxmText = window.opener.document.getElementById("qlrxmtext");
				fWindowchrymcText = window.opener.document.getElementById("chrymctext");
				fWindowzlText = window.opener.document.getElementById("zltext");
	           	fWindowzdmjText = window.opener.document.getElementById("zdmjtext");
	           	fWindowzdszdText = window.opener.document.getElementById("zdszdtext");
	           	fWindowzdsznText = window.opener.document.getElementById("zdszntext");
	           	fWindowzdszxText = window.opener.document.getElementById("zdszxtext");
	           	fWindowzdszbText = window.opener.document.getElementById("zdszbtext");
	        	fWindowzbText = window.opener.document.getElementById("jzdzbtext");
	        	fWindowtfhText = window.opener.document.getElementById("tfhtext");
	        	fWindowzdtText = window.opener.document.getElementById("zdt");
	        	fWindowdjqText = window.opener.document.getElementById("seachcitytext");
	        	fWindowdjzqText = window.opener.document.getElementById("seachdistricttext");
	        	fWindowxqText = window.opener.document.getElementById("seachprovtext");
	        	fWindowchsjText = window.opener.document.getElementById("textchsj");
				fWindowbdcdyhText = window.opener.document.getElementById("bdcdyhid");
				fWindowzddmText = window.opener.document.getElementById("zddm");
				fWindowsyqmjText = window.opener.document.getElementById("syqmjtext");
				fWindowqllxText = window.opener.document.getElementById("qllx");
				fWindowytText = window.opener.document.getElementById("yt");
				fWindowrjlText = window.opener.document.getElementById("rjl");
				fWindowtdsyqdmText = window.opener.document.getElementById("tdsyqdm");
				fWindowdjText = window.opener.document.getElementById("dj");
				fWindowqlxzText = window.opener.document.getElementById("qlxz");
				fWindowchidtext = window.opener.document.getElementById("idtext");
				fWindowzdtzmText = window.opener.document.getElementById("zdtzmTxt");
				fWindowmjdwText = window.opener.document.getElementById("mjdwtext");
				fWindowqlsdfsText = window.opener.document.getElementById("qlsdfs");
				if(fWindowzdtzmText){
	           	window.opener.select2_zdtzm(zdtzmValue.trim());
				}
				if(fWindowmjdwText){
	             window.opener.select3_dwlx(mjdwValue.trim());
				}
				if(fWindowqlsdfsText){
	             window.opener.select2_qlsdfs(qlsdfsValue.trim());
				}
	           	if(fWindowzdmjText){
	           		fWindowzdmjText.value = zdmjValue.trim();
	           	}
	        	if(fWindowsyqmjText){
	           		fWindowsyqmjText.value = zdmjValue.trim();
	           	}
                if(fWindowqllxText){
	           		window.opener.select2_qllx(qllxValue.trim());
	           	}
				if(fWindowytText){
					fWindowytText.value = ytValue.trim();
	           	}
				if(fWindowrjlText){
	           		fWindowrjlText.value = rjlValue.trim();
	           	}
				if(fWindowdjText){
	           		window.opener.select2_dj(djValue.trim());
	           	}
				if(fWindowqlxzText){
	           		window.opener.select2_qlxz(qlxzValue.trim());
	           	}
				if(fWindowtdsyqdmText){
	           		window.opener.select2_tdsyqdm(tdsyqdmValue.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){
	        		fWindowdjqText.value = djqValue.trim();
	           	}
	        	if(fWindowdjzqText){
	        		fWindowdjzqText.value = djzqValue.trim();
	           	}
	        	if(fWindowxqText){
	        		fWindowxqText.value = xqValue.trim();
	           	}
				if(fWindowzdszdText){
	        	fWindowzdszdText.value = zdszdValue.trim();
				}
				if(fWindowzdsznText){
	           	fWindowzdsznText.value = zdsznValue.trim();
				}
				if(fWindowzdszxText){
	           	fWindowzdszxText.value = zdszxValue.trim();
				}
				if(fWindowzdszbText){
	           	fWindowzdszbText.value = zdszbValue.trim();
				}
				if(fWindowbdcdyhText){
				fWindowbdcdyhText.value = bdcdyhValue.trim();
				}
				if(fWindowzddmText){
				fWindowzddmText.value = zddmValue.trim();
				}
	          	if(fWindowzbText){
	           		fWindowzbText.value = zbValue.trim()+" ";
	           	}
	        	if(fWindowtfhText){
	           		fWindowtfhText.value = tfhValue.trim();
	           	}
	        	if(fWindowqlrxmText){
	        		fWindowqlrxmText.value = qlrxmValue.trim();
	           	}
	        	fWindowchidtext.value = $("input[type='radio']:checked").val();
	        	window.close();
	        	
		    }
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">宗地信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseZdjbxx" action="${ctx}/reg/base/regBaseZdjbxx/tdlist?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="qlrxm" 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="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 style="display:none;">测绘编码</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>
				<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 style="display:none;">权利设定方式</th>
				
<!-- 			<th>操作</th> -->
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZdjbxx">
			<tr>
				<td>
					<input type="radio" name="radio_chxx" id="${regBaseZdjbxx.id}" value="${regBaseZdjbxx.id}"/>
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.sfzh}
				</td>
				<td>
					${regBaseZdjbxx.qlrxm}
				</td>
				<td>
					${fns:getDictLabel(regBaseZdjbxx.zjlx, 'reg_bus_zjlx', '')}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zjlx}
				</td>
				<td>
					${regBaseZdjbxx.sfzh}
				</td>
				<td>
					${regBaseZdjbxx.zl}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdszd}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdszn}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdszx}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdszb}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zb}
				</td>
				<td>
					<fmt:formatNumber value="${regBaseZdjbxx.zdmj}"   pattern="#0.##"  var="formattedNumber"/>
	               ${formattedNumber}  
				</td>
				
				<td style="display:none;">
					${regBaseZdjbxx.zdt}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdtzm}
				</td>
				<td>
					${regBaseZdjbxx.tfh}
				</td>
				<td style="display:none;">
					${fns:getDictLabel(regBaseZdjbxx.seachcity, 'reg_bus_djq', '')}
				</td>
				<td style="display:none;">
					${fns:getDictLabel(regBaseZdjbxx.seachdistrict, 'reg_bus_djzq', '')}
				</td>
				<td style="display:none;">
					${fns:getDictLabel(regBaseZdjbxx.seachprov, 'reg_bus_xq', '')}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.qlrxm}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.zdtzm}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.mjdw}
				</td>
				<td>
					${regBaseZdjbxx.zddm}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.bdcdyh}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.qllx}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.yt}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.rjl}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.dj}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.qlxz}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.tdsyqdm}
				</td>
				<td style="display:none;">
					${regBaseZdjbxx.qlsdfs}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>

</body>
</html>