1530fb3e22e9e9e14583119efaa5d90952fbdb57.svn-base 3.88 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_regBaseXm']:checked").attr("id");
			$.ajax({ 
				url:"${ctx}/reg/base/regBaseXm/canbeused",
				type:"POST",
				data:{"id":idValue},
				dataType:"json",
				success:function(data){
					if("1"==data.result){
						alert(data.msg);
						return;
					}else{
// 						alert("验证成功");
						//验证成功,继续后续操作
						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="regBaseXm" action="${ctx}/reg/base/regBaseXm/dzguideList?YWH=${ywh }&DJLX=${DJLX }" 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}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<table>
		<tr>
			<td>项目编码&nbsp;</td>
			<td>
				<form:input path="xmbh" htmlEscape="false" maxlength="30" class="input-medium"/>
			</td>
			<td>&nbsp;&nbsp;&nbsp;项目名称&nbsp;</td>
			<td>
				<form:input path="xmmc" htmlEscape="false" maxlength="80" class="input-medium"/>
			</td>
			<td>&nbsp;&nbsp;&nbsp;建设单位&nbsp;</td>
			<td>
				<form:input path="jsdwmc" htmlEscape="false" maxlength="100" class="input-medium"/>
			</td>
			<td>&nbsp;&nbsp;&nbsp;说明&nbsp;</td>
			<td>
				<form:input path="sm" htmlEscape="false" maxlength="300" class="input-medium"/>&nbsp;&nbsp;
			</td>
			<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></td>
			<td class="clearfix"></td>
		</tr>
	</table>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>选择</th>
				<th>项目编码</th>
				<th class="sort-column xmmc">项目名称</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="regBaseXm">
			<tr>
				<td>
					<input type="radio" name="radio_regBaseXm"  id="${regBaseXm.id}" value=""/>
				</td>
				<td>
					${regBaseXm.xmbh}
				</td>
				<td>
					${regBaseXm.xmmc}
				</td>
				<td>
					${regBaseXm.jsdwmc}
				</td>
				<td>
					${fns:getDictLabel(regBaseXm.zjzl, 'reg_bus_zjlx', '')}
				</td>
				<td>
					${regBaseXm.zjh}
				</td>
				<td>
					${regBaseXm.sm}
				</td>
				<td>
					<fmt:formatDate value="${regBaseXm.sqsj}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${regBaseXm.creater}
				</td>
				<td>
					<fmt:formatDate value="${regBaseXm.updateDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${regBaseXm.updater}
				</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>