0264476a53f6bb2d969560968e9e23bb248ea360.svn-base 9.2 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">
	    var mapreturnvale;
		$(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;
        } 

	</script>
	<script type="text/javascript">
		function winBackYw(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条宗地信息!");
				return;
			}
			//选中一行后,获取宗地代码值 
			var bdcdyhtextValue = $("input[name='radio_regBaseSllm']:checked").parent().next().text();
			var syqmjtextValue  = $("input[name='radio_regBaseSllm']:checked").parent().next().next().text();
			var lbtextValue     = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().text();
			var xbtextValue     = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().text();
			var xdmtextValue    = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().text();
			var tdsyqtextValue  = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().text();
			var zlndtextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().text();
			var zddmtextValue      = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().text();
			var lmbmtextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().text();
			var ysdmtextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().text();
			var zltextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().text();
			var yttextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zysztextValue     = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var zstextValue     = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var lztextValue   = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			var qytextValue     = $("input[name='radio_regBaseSllm']:checked").parent().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().next().text();
			if(window.opener) { 
		       	fWindowZddmText = window.opener.document.getElementById("zddmtext");
		       	fWindowSyqmjText = window.opener.document.getElementById("syqmjtext");
		       	fWindowBsmText = window.opener.document.getElementById("bsmtext");
		       	fWindowYsdmText = window.opener.document.getElementById("ysdmtext");
		       	fWindowBdcdyhText = window.opener.document.getElementById("bdcdyhtext");
		       	fWZlText = window.opener.document.getElementById("zltext");
		       	fWindowYtText = window.opener.document.getElementById("yttext");
		       	fWindowZyszText = window.opener.document.getElementById("zysztext");
		       	fWindowZsText = window.opener.document.getElementById("zstext");
		       	fWindowLzText = window.opener.document.getElementById("lztext");
		       	fWindowQyText = window.opener.document.getElementById("qytext");
		       	fWindowLbText = window.opener.document.getElementById("lbtext");
		       	fWindowXbText = window.opener.document.getElementById("xbtext");
		       	fWindowXdmText = window.opener.document.getElementById("xdmtext");
		       	fWindowZlndText = window.opener.document.getElementById("zlndtext");
		       	if(fWindowZddmText){
		       		fWindowZddmText.value = zddmtextValue.toString().trim();
		       	}
		       	if(fWindowSyqmjText){
		       		fWindowSyqmjText.value = syqmjtextValue.toString().trim();
		       	}
		       	if(fWindowBsmText){
		       		fWindowBsmText.value = lmbmtextValue.toString().trim();
		       	}
		    	if(fWindowYsdmText){
		    		fWindowYsdmText.value = ysdmtextValue.trim();
		       	}
		       	if(fWindowBdcdyhText){
		       		fWindowBdcdyhText.value = bdcdyhtextValue.toString().trim();
		       	}
		       	if(fWZlText){
		       		fWZlText.value = zltextValue.toString().trim();
		       	}
		       	if(fWindowZyszText){
		       		fWindowZyszText.value = zysztextValue.toString().trim();
		       	}
		       	if(fWindowZsText){
		       		fWindowZsText.value = zstextValue.toString().trim();
		       	}
		       	if(fWindowLzText){
		       		fWindowLzText.value = lztextValue.toString().trim();
		       	}
		       	if(fWindowQyText){
		       		fWindowQyText.value = qytextValue.toString().trim();
		       	}
		       	if(fWindowLbText){
		       		fWindowLbText.value = lbtextValue.toString().trim();
		       	}
		       	if(fWindowXbText){
		       		fWindowXbText.value = xbtextValue.toString().trim();
		       	}
		       	if(fWindowXdmText){
		       		fWindowXdmText.value = xdmtextValue.toString().trim();
		       	}
		       	if(fWindowZlndText){
		       		fWindowZlndText.value = zlndtextValue.toString().trim();
		       	}
		     	
		       	//select2 权利类型winOpen返填表单 
		    	if(window.opener.select2_tdsyq){
		    		window.opener.select2_tdsyq(tdsyqtextValue.trim());
		       	}
		    	if(window.opener.select2_tdyt){
		    		window.opener.select2_tdyt(yttextValue.trim());
		       	}
		       	window.close();
		    }
		}
		
	</script>
	
</head>
<body>
	<form:form id="searchForm" modelAttribute="regBaseSllm" action="${ctx}/reg/base/regBaseSllm/lqList" 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}"/>
		<br>
		<ul class="ul-form">
			<li>&nbsp;&nbsp;&nbsp;&nbsp;不动产单元号:&nbsp;&nbsp;&nbsp;&nbsp;
				<form:input path="bdcdyh" htmlEscape="false" maxlength="80" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;小地名:&nbsp;&nbsp;&nbsp;&nbsp;
				<form:input path="xdm" htmlEscape="false" maxlength="80" class="input-medium"/>
			</li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;使用权面积:&nbsp;&nbsp;&nbsp;&nbsp;
				<form:input path="syqmj" htmlEscape="false" maxlength="80" 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><br>
	<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-bordered table-condensed">
		<thead>
			<tr>
				<th>选择</th>
				<th>不动产单元号</th>
				<th>使用权面积</th>
				<th>林班</th>
				<th>小班</th>
				<th>小地名</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 style="display:none;">主要树种</th>
				<th style="display:none;">株数</th>
				<th style="display:none;">林种</th>
				<th style="display:none;">起源</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseSllm">
			<tr>
				<td>
					<input type="radio" name="radio_regBaseSllm"  id="${regBaseSllm.id}" value=""/>
				</td>
				<td>
					${regBaseSllm.bdcdyh}
				</td>
				<td>
					${regBaseSllm.syqmj}
				</td>
				<td>
					${regBaseSllm.lb}
				</td>
				<td>
					${regBaseSllm.xb}
				</td>
				<td>
					${regBaseSllm.xdm}
				</td>
				<td>
					${fns:getDictLabel(regBaseSllm.ldsyqxz, 'reg_bus_tdsyqxz', '')}
				</td>
				<td>
					${regBaseSllm.zlnd}
				</td>
				<td style="display:none;">
					${regBaseSllm.zddm}
				</td>
				<td style="display:none;">
					${regBaseSllm.lmbm}
				</td>
				<td style="display:none;">
					${regBaseSllm.ysdm}
				</td>
				<td style="display:none;">
					${regBaseSllm.zl}
				</td>
				<td style="display:none;">
					${regBaseSllm.yt}
				</td>
				<td style="display:none;">
					${regBaseSllm.zysz}
				</td>
				<td style="display:none;">
					${regBaseSllm.zs}
				</td>
				<td style="display:none;">
					${regBaseSllm.lz}
				</td>
				<td style="display:none;">
					${regBaseSllm.qy}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>