88c0c0e83d420bfbe8297ad6ca21ae9808961c85.svn-base 5.1 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 winOpenYgdj(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/bus/regBusYgdj/yggmeditForm?LISTVIEWS=1&id="+ id +"&VIEWS=1&YWH=${YWH}","newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function winOpenUpdateYgdj(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/bus/regBusYgdj/yggmeditForm?id="+ id,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function reloadYgdj(){ 
		    var optype = "${optype}";
		    if(window.opener) {
		    	if(optype == undefined || optype == null || optype ==""){
		    		window.opener.document.gmframe.location="${ctx}/reg/bus/regBusQlr/fwgmdjlist?gm=1&ywh=${YWH}&slhj=1";
		    		window.opener.ygdjframe.location.reload();
		    		window.opener.forenoticeframe.location.reload();
		    		window.opener.bgqforenoticeframe.location.reload();
		    	}else{
		    		window.opener.parent.document.gmframe.location="${ctx}/reg/bus/regBusQlr/fwgmdjlist?gm=1&ywh=${YWH}&slhj=1";
		    		window.opener.parent.document.ygdjframe.location.reload();
		    		window.opener.parent.document.forenoticeframe.location.reload();
		    		window.opener.parent.document.bgqforenoticeframe.location.reload();
		    	}
		    	window.close();
		    }
		}
		
		function deletelink(id){
			if(confirm('确认要删除该预告信息和对应的已登记信息,权利人信息吗?')){
				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/bus/regBusYgdj/yggmdelete?id="+id+"&WO=1","deletewindow",
						"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="#">预告登记信息列表</a></li>
	</ul>
	<c:if test="${not empty WO}">
		<br>
			<input id="reLoadYgdj" class="btn btn-primary" type="button" onclick="reloadYgdj();" value="退出列表" />
		<br>
	</c:if>
	<form:form id="searchForm" modelAttribute="regBusYgdj" action="${ctx}/reg/bus/regBusYgdj/nextlist?ywh=${YWH}&WO=${WO}&DJLX=${DJLX}&optype=${optype}" method="post" class="">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/> 
	</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>
				<c:if test="${empty LISTVIEWS}">
				<shiro:hasPermission name="reg:bus:regBusYgdj:edit"><th>操作</th></shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusYgdj">
			<tr>
				<td>
					${regBusYgdj.ywh}
				</td>
				<%--<c:if test="${empty WO}"> --%>
					<td>
						<shiro:hasPermission name="reg:bus:regBusYgdj:view">
							<a href="javascript:void(0);" onclick="winOpenYgdj('${regBusYgdj.id}');">
								${regBusYgdj.bdcdyh}
							</a>
						</shiro:hasPermission>
					</td>
				<%--</c:if>  --%>
				
				<td>
					${regBusYgdj.htbh}
				</td>
				<td>
					${regBusYgdj.qdjg}
				</td>
				<td>
					${regBusYgdj.ywr}
				</td>
				<td>
					${fns:getDictLabel(regBusYgdj.djlx, 'reg_bus_djlx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusYgdj.ghyt, 'reg_bus_fwyt', '')}
				</td>
				<c:if test="${empty LISTVIEWS}">
					<shiro:hasPermission name="reg:bus:regBusYgdj:edit">
						<td>
		    				<a href="#" onclick="winOpenUpdateYgdj('${regBusYgdj.id}');">修改</a>
							<a href="#" onclick="deletelink('${regBusYgdj.id}');">删除</a>
						</td>
					</shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>