8377b390636ac0cc5b57040cd052dd90e374ab5c.svn-base 6.27 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() {
			hideMask();
			
	 	});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }

		function auditXm(id){
			if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
				url = "${ctx}/reg/base/regBaseXm/audit?id="+id;
				window.location.href=url;
			}
		}
		function unauditXm(id){
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/base/regBaseZrz/isnounaudit", 
				cache: false,
				data:"id="+id+"&bj=4",
			    async : false,
				success:function(modelmap){
					if(modelmap.success == 0){
						if(confirm('反审核后数据恢复可删除和修改。确认要反审核该信息吗?')){
							url = "${ctx}/reg/base/regBaseXm/unaudit?id="+id;
							window.location.href=url;
						}
					}else{
						alert(modelmap.msg);
						return;
					}
				}
			});
		}
		
		function exportXm(id){
			showMask();
			$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/base/regBaseXm/xmExport",
				cache: false,
				data:"XMID="+id,
			    async : false,
				success:function(modelmap){
					if(modelmap.success == 0){
						hideMask();
					}else{
						hideMask();
					}
				}
			});
		}
		
		function showMask(){
	        $("#mask").css("height",$(document).height());     
	        $("#mask").css("width",$(document).width());     
	        $("#mask").show();
	        window.setTimeout("hideMask()",5000);//使用字符串执行方法 

	    }
		
		function hideMask(){     
	        $("#mask").hide();
	    }
		
		function Xmdaoru()
		{
			$.jBox($("#importXmForm").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
		 //打开导入界面
		function importOpen(){
// 			var iWidth=1100;
// 	       	var iHeight=600;
// 	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
// 	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
// 			window.open("/ODM/a/reg/base/regBaseXm/upload","项目导入",
// 					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");		
			var url = "${ctx}/reg/base/regBaseXm/upload";
			window.location = url;
		 }

	</script>
</head>
<body>
	<div id="mask" class="mask">
		<div class="maskloading"></div>
	</div> 
	<div id="importBox" class="hide">
		<form id="importXmForm" action="${ctx}/reg/base/regBaseXm/importFile" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>  
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   " />
			<a href="#">下载模板</a>
		</form>
	</div>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/base/regBaseXm/">项目(小区)信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBaseXm" action="${ctx}/reg/base/regBaseXm/exportXm" 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}"/>
		<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>建设单位名称</th>
				<th>证件种类</th>
				<th>证件号</th>
				<th>说明</th>
				<th>创建时间</th>
				<th>创建人</th>
				<th>最后修改时间</th>
				<th>最后修改人</th>
				<shiro:hasPermission name="reg:base:regBaseXm:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBaseXm">
			<tr>
				<shiro:hasPermission name="reg:base:regBaseXm:view">
					<td><%--<a href="${ctx}/reg/base/regBaseXm/form?id=${regBaseXm.id}&view=1"></a> --%>
						${regBaseXm.xmbh}
					</td>
				</shiro:hasPermission>
				<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>
				<shiro:hasPermission name="reg:base:regBaseXm:edit"><td>
					<c:if test="${regBaseXm.isaudit ne '2'}">
							<c:if test="${zchinfo ne '1'}">
								<a href="${ctx}/reg/base/regBaseZrz/zrzExportList?XMID=${regBaseXm.id}">幢[栋]信息</a>
							</c:if>
							<c:if test="${zchinfo eq '1'}">
								<a href="${ctx}/reg/base/regBaseZrz/zrzExportList?XMID=${regBaseXm.id}&zchinfo=${zchinfo}">幢[栋]信息</a>
							</c:if>
				<%-- 			<a href="${ctx}/reg/base/regBaseXm/xmExport?XMID=${regBaseXm.id}" onclick="showMask()">项目导出</a>--%>
					</c:if>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	
</body>
</html>