ea0cc54167507223da9cf37a25d501027df2ba58.svn-base 12 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;
        } 
		
		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");
		}
		
		function winOpenUpdateZdjbxx(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?YWH=${YWH}&id="+id+"&SXBGLX=${SXBGLX}","zddmwindow",
					"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 zdid = $("input[name='radio_zddm']:checked").attr("id");
			var zddmValue = $("input[name='radio_zddm']:checked").parent().next().text();
              
			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();
			var yttextValue = $("input[name='radio_zddm']:checked").parent().next().next().next().next().next().next().next().next().next().next().text();
		    var mjdwValue = $("input[name='radio_zddm']:checked").parent().next().next().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");
		       	LMzdid = window.opener.document.getElementById("zdid");
		       	ytText = window.opener.document.getElementById("yttext");
		       	if(LMzdid){
		       		LMzdid.value = zdid.toString().trim();
		       	}
		       	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(window.opener.select3_dwlx){
		       	window.opener.select3_dwlx(mjdwValue.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();
		       	}
		       	if(ytText){
		       		ytText.value = yttextValue.trim();
		       	}
		       	window.close();
		    }
		}
		
		function auditZdjbxx(id){
			if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
				url = "${ctx}/reg/base/regBaseZdjbxx/audit?id="+id;
				window.location.href=url;
			}
		}
		function unauditZdjbxx(id){
			if(confirm('反审核后数据恢复可删除和修改。确认要反审核该信息吗?')){
				url = "${ctx}/reg/base/regBaseZdjbxx/unaudit?id="+id;
				window.location.href=url;
			}
		}
	</script>
	
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/base/regBaseZdjbxx/list?bz=${bz}&flag=${flag}&djlx=${djlx}&syq=${syq}&isNyd=${isNyd}">宗地基本信息列表</a></li>
		<!--<shiro:hasPermission name="reg:base:regBaseZdjbxx:edit">
			<li><a href="${ctx}/reg/base/regBaseZdjbxx/form?flag=${flag}&djlx=${djlx}&syq=${syq}&isNyd=${isNyd}">宗地基本信息添加</a></li>
		</shiro:hasPermission> -->
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseZdjbxx" action="${ctx}/reg/base/regBaseZdjbxx/list?bz=${bz}&SXBGLX=${SXBGLX}&flag=${flag}&djlx=${djlx}&syq=${syq}&isNyd=${isNyd}" 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>&nbsp;&nbsp;&nbsp;&nbsp;宗地代码:
					<form:input path="zddm" htmlEscape="false" maxlength="19" class="input-medium"/>
				</li>
				<li>&nbsp;&nbsp;&nbsp;&nbsp;权利人姓名:
					<form:input path="qlrxm"  htmlEscape="false"  maxlength="200" class="input-medium"/>
				</li>
			</c:if>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;不动产单元号:
				<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>
	<%-- <c:if test="${not empty ZDXXXZ}"> --%>
		<div class="zxdiv">
			<input id="btnChose" class="btn btn-primary" type="button" onclick="winBackYw()" value="宗地代码选择" />
		</div>
		<br>
	<%-- </c:if> --%>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-bordered table-condensed">
		<thead>
			<tr>
				<!-- <th>标识码</th> -->
				<!-- begin -->
				<th>选择</th>
				<!-- end -->
				<%--
				<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>
				<th style="display:none;">用途</th>
				<th style="display:none;">面积单位</th>
				<!-- 
				<c:if test="${empty SXBGLX}">
					<th>用途</th>
					<th>等级</th>
					<th>价格</th>
					<th>权利类型</th>
					<th>权利性质</th>
					<th>权利设定方式</th>
					<th>容积率</th>
					<th>建筑密度</th>
					<th>建筑限高</th>
					<th>宗地四至-东</th>
					<th>宗地四至-南</th>
					<th>宗地四至-西</th>
					<th>宗地四至-北</th>
					<th>宗地图</th>
					<th>图幅号</th>
					<th>地籍号</th>
					<th>档案号</th>
					<th>备注</th>
					<th>状态</th>
				</c:if>
				 --> 
				<!--<shiro:hasPermission name="reg:base:regBaseZdjbxx:edit"><th>操作</th></shiro:hasPermission>-->
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseZdjbxx">
			<tr>
				<!-- begin  -->
				<td>
					<input type="radio" name="radio_zddm" id="${regBaseZdjbxx.id}" value="${regBaseZdjbxx.zddm}"/>
				</td>
				<!-- end -->
				<%--
				<td>
					${regBaseZdjbxx.ysdm}
				</td>
				--%>
				<td>
					<c:if test="${empty flag}">
					<a href="javascript:void(0);" onclick="winOpenZdjbxx('${regBaseZdjbxx.id}');">
						${regBaseZdjbxx.zddm}
					</a>
					</c:if>
					<c:if test="${not empty flag}">
						${regBaseZdjbxx.zddm}
					</c:if>
				</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>
				<td style="display:none;">
						${regBaseZdjbxx.yt}
				</td>
				<td style="display:none;">
						${regBaseZdjbxx.mjdw}
				</td>
				<%--
				<c:if test="${empty SXBGLX}">
					<td>
						${regBaseZdjbxx.yt}
					</td>
					<td>
						${fns:getDictLabel(regBaseZdjbxx.dj, 'reg_bus_tddj', '')}
					</td>
					<td>
						${regBaseZdjbxx.jg}
					</td>
					<td>
						${fns:getDictLabel(regBaseZdjbxx.qllx, 'reg_bus_qllx', '')}
					</td>
					<td>
						${fns:getDictLabel(regBaseZdjbxx.qlxz, 'reg_bus_qlxz', '')}
					</td>
					<td>
						${fns:getDictLabel(regBaseZdjbxx.qlsdfs, 'reg_bus_qlsdfs', '')}
					</td>
					<td>
						${regBaseZdjbxx.rjl}
					</td>
					<td>
						${regBaseZdjbxx.jzmd}
					</td>
					<td>
						${regBaseZdjbxx.jzxg}
					</td>
					<td>
						${regBaseZdjbxx.zdszd}
					</td>
					<td>
						${regBaseZdjbxx.zdszn}
					</td>
					<td>
						${regBaseZdjbxx.zdszx}
					</td>
					<td>
						${regBaseZdjbxx.zdszb}
					</td>
					<td>
						${regBaseZdjbxx.zdt}
					</td>
					<td>
						${regBaseZdjbxx.tfh}
					</td>
					<td>
						${regBaseZdjbxx.djh}
					</td>
					<td>
						${regBaseZdjbxx.dah}
					</td>
					<td>
						${regBaseZdjbxx.bz}
					</td>
					<td>
						${fns:getDictLabel(regBaseZdjbxx.zt, 'reg_bus_bdcdyzt', '')}
					</td>
				</c:if>
				--%>	
				<!--<shiro:hasPermission name="reg:base:regBaseZdjbxx:edit"><td>
    					<a href="${ctx}/reg/base/regBaseZdjbxx/form?YWH=${YWH}&id=${regBaseZdjbxx.id}&SXBGLX=${SXBGLX}&flag=${flag}&djlx=${djlx}&update=1&syq=${syq}&isNyd=${isNyd}">修改</a>
						<a href="${ctx}/reg/base/regBaseZdjbxx/delete?id=${regBaseZdjbxx.id}&flag=${flag}&djlx=${djlx}&syq=${syq}&isNyd=${isNyd}" onclick="return confirmx('确认要删除该宗地基本信息吗?', this.href)">删除</a>
				</td></shiro:hasPermission>-->
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>