4c1caa7d4b5702fc6bfffe3860b458664d09e778.svn-base 3.48 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 btnNext(){
			var checkedCount = $("input[type='radio']:checked").length;
			if(checkedCount == 0){
				alert("必须选择一条信息!");
				return;
			}
			var idValue = $("input[name='radio_regBaseFdcqxm']:checked").attr("id");
			$.ajax({ 
				url:"${ctx}/reg/base/regBaseFdcqxm/canbeused",
				type:"POST",
				data:{"id":idValue},
				dataType:"json",
				success:function(data){
					if("1"==data.result){
						alert(data.msg);
						return;
					}else{
						//验证成功,继续后续操作
						var url =  "${ctx}/reg/bus/regBusFdcq1/form?XMID="+idValue+"&ywh=${YWH}&djlx=${DJLX}";
						window.location = url;
					}
				},
				error:function(){
					alert("数据验证过程出错");
				}
			});
			
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">项目内多幢房屋列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseFdcqxm" action="${ctx}/reg/base/regBaseFdcqxm/guideList" 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><label>不动产单元号:</label>
				<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
			</li>
			<li><label>项目名称:</label>
				<form:input path="xmmc" htmlEscape="false" maxlength="200" class="input-medium"/>
			</li>
			<li><label>幢号:</label>
				<form:input path="zh" htmlEscape="false" maxlength="200" 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>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>选择</th>
				<th>不动产单元号</th>
				<th>项目名称</th>
				<th>幢号</th>
				<th>总层数</th>
				<th>规划用途</th>
				<th>房屋结构</th>
				<th>建筑面积</th>
				<th>竣工时间</th>
				<th>总套数</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseFdcqxm">
			<tr>
				<td>
					<input type="radio" name="radio_regBaseFdcqxm"  id="${regBaseFdcqxm.id}" value=""/>
				</td>
				<td>
					${regBaseFdcqxm.bdcdyh}
				</td>
				<td>
					${regBaseFdcqxm.xmmc}
				</td>
				<td>
					${regBaseFdcqxm.zh}
				</td>
				<td>
					${regBaseFdcqxm.zcs}
				</td>
				<td>
					${fns:getDictLabel(regBaseFdcqxm.ghyt, 'reg_bus_fwyt', '')}
				</td>
				<td>
					${fns:getDictLabel(regBaseFdcqxm.fwjg, 'reg_bus_fwjg', '')}
				</td>
				<td>
					${regBaseFdcqxm.jzmj}
				</td>
				<td>
					<fmt:formatDate value="${regBaseFdcqxm.jgsj}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${regBaseFdcqxm.zts}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div id="btnGroup" class="control-group">
		<input id="btnNext"  class="btn btn-primary"  type="button"  onclick="btnNext();" value="下一步"/>
	</div>
</body>
</html>