d5036817aad223cbcf1867b254f696dfb0bf5d34.svn-base 7.76 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;
        }
		//初始化方法,改变已审核数据的颜色
		window.onload = function(){
			//改变 已打印的 行颜色
			$("#contentTable > tbody").find("tr").each(function(){
				var ret = $(this).find('input:hidden').attr('id');
				if(ret == "1"){
					$(this).find("td").attr("style","background-color:#C1FFC1;");
				}
				if(ret == "3"){
					$(this).find("td").attr("style","background-color:#D4D4D4;");
				}
			});
		};

       function audit(ids) {  
    	   if(confirm("是否审核通过?")) {
    		   $.ajax({ 
					type:"POST",
					url:"${ctx}/reg/bus/kc01/audit",
					cache: false,
					data:"ids="+ids,
					async:false, 
					success:function(modelmap){
						 if(modelmap.success == 0){
							url = "${ctx}/reg/bus/kc01/list";
		  		            window.location.href=url;
						 }else{
							 alert(modelmap.msg);
							 return;
						 }
					}
				});
           }
       } 
       
       function unaudit(ids) {  
    	   if(confirm("是否审核不通过?")) {
    		   $.ajax({ 
					type:"POST",
					url:"${ctx}/reg/bus/kc01/unaudit",
					cache: false,
					data:"ids="+ids,
					async:false, 
					success:function(modelmap){
						 if(modelmap.success == 0){
							url = "${ctx}/reg/bus/kc01/list";
		  		            window.location.href=url;
						 }else{
							 return;
						 }
					}
				});
           }
       } 
       
       function caudit(ids) {  
    	   if(confirm("是否申请重新审核?")) {
    		   $.ajax({ 
					type:"POST",
					url:"${ctx}/reg/bus/kc01/caudit",
					cache: false,
					data:"ids="+ids,
					async:false, 
					success:function(modelmap){
						 if(modelmap.success == 0){
							url = "${ctx}/reg/bus/kc01/list";
		  		            window.location.href=url;
						 }else{
							 return;
						 }
					}
				});
           }
       }
       
       function printzm(ids) { 
    		var iWidth=900; 
	       	var iHeight=680;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/bus/kc01/printzmdy?ids="+ids,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
       }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/kc01/list">网点信息查询列表</a></li>
		<shiro:hasPermission name="reg:bus:kc01:edit"><li><a href="${ctx}/reg/bus/kc01/form">网点信息查询添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="kc01" action="${ctx}/reg/bus/kc01/" 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 class="table-form">
			<tr>
				<td class="tit">坐落</td>
				<td><form:input path="akc005" htmlEscape="false"  class="input-medium " /></td>
				<td class="tit">权利人名称</td>
				<td><form:input path="akc004" htmlEscape="false"  class="input-medium " /></td>
				<td class="tit">不动产证号</td>
				<td><form:input path="akc003" htmlEscape="false"  class="input-medium " /></td>
				<td class="tit">状态</td>
				<td>
					<form:select path="akc008" id="akc008" class="input-medium ">
						<form:option value="" label=""/>
						<form:option value="0"  label="未审核"/>
						<form:option value="1"  label="已审核"/>
						<form:option value="3"  label="未通过"/> 
					</form:select></td>
				<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></td>
			</tr>
		</table>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th hidden="hidden">ID编号</th>
				<th width="10%">不动产单元号</th>
				<th width="20%">不动产证号</th>
				<th width="10%">权利人名称</th>
				<th width="30%">坐落</th>
				<th width="5%">状态</th>
				<shiro:hasPermission name="reg:bus:kc01:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="kc01">
			<tr>
				<td width="10%" hidden="hidden">
					${kc01.id}
					<input type="hidden"  name="akc008"  id="${kc01.akc008}"  value=""/>
				</td>
				<td width="10%">
					${kc01.akc002}
				</td>
				<td width="20%">
					${kc01.akc003}
				</td>
				<td width="10%">
					${kc01.akc004}
				</td>
				<td width="30%">
					${kc01.akc005}
				</td>
				<td width="5%">
						<c:if test="${kc01.akc008 eq '0' }">
							未审核
						</c:if>
						<c:if test="${kc01.akc008 eq '1' }">
							已审核
						</c:if>
						<c:if test="${kc01.akc008 eq '3' }">
							未通过
						</c:if>
				</td>
				<shiro:hasPermission name="reg:bus:kc01:edit"><td>
				 	<c:if test="${kc01.akc008 eq '0'}">
						<c:if test="${officeCode eq 'S00001001888' }">
							<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&view=1"><span><font style="color: #B22222">查看</font></span></a>
							<a href="#" onclick="audit('${kc01.id}');"><span><font color="green">审核</font></span></a>
							<a href="#" onclick="unaudit('${kc01.id}');"><span><font color="#4169E1">不通过</font></span></a>
						</c:if>
						<c:if test="${officeCode ne 'S00001001888' }">
							<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&view=1"><span><font style="color: #B22222">查看</font></span></a>
		    				<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&update=1">修改</a>
							<a href="${ctx}/reg/bus/kc01/delete?id=${kc01.id}" onclick="return confirmx('确认要删除该网点信息查询吗?', this.href)"><span><font color="red">删除</font></span></a>
						</c:if>
						<a href="#" onclick="printzm('${kc01.id}');"><span><font color="green">证明打印</font></span></a>
					</c:if>
					<c:if test="${kc01.akc008 eq '3'}">
						<c:if test="${officeCode eq 'S00001001888' }">
							<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&view=1"><span><font style="color: #B22222">查看</font></span></a>
							<a href="#" onclick="unaudit('${kc01.id}');"><span><font color="#4169E1">不通过</font></span></a>
						</c:if>
						<c:if test="${officeCode ne 'S00001001888' }">
							<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&view=1"><span><font style="color: #B22222">查看</font></span></a>
		    				<a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&update=1">修改</a>
							<a href="${ctx}/reg/bus/kc01/delete?id=${kc01.id}" onclick="return confirmx('确认要删除该网点信息查询吗?', this.href)"><span><font color="red">删除</font></span></a>
							<a href="#" onclick="caudit('${kc01.id}');"><span><font color="green">重审核</font></span></a>
						</c:if>
						<a href="#" onclick="printzm('${kc01.id}');"><span><font color="green">证明打印</font></span></a>
					</c:if>
					<c:if test="${kc01.akc008 eq '2' or kc01.akc008 eq '1'}">
					  <a href="${ctx}/reg/bus/kc01/form?id=${kc01.id}&view=1"><span><font style="color: #B22222">查看</font></span></a>
				      <a href="#">已审核/已引用</a>
				      <a href="#" onclick="printzm('${kc01.id}');"><span><font color="green">证明打印</font></span></a>
				    </c:if>
				    <a href="${ctx}/reg/bus/kc01/download"><span><font color="blue">打印控件下载</font></span></a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>