ba9f2ee82e8c90df2ad6083e488fef7d1b44f34c.svn-base 6.57 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 winOpenDyaq(id,ywh){
			//弹出窗口的宽度; 
			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/regBusDyaq/nextHouseDivisionForm?YWH="+ ywh +"&dyId="+ id +"&VIEWS=1&optype=update","newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function winOpenUpdateDyaq(id){
			//弹出窗口的宽度; 
			var iWidth=1128; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	
			$.ajax({ 
				type:"POST",
				url:"${ctx}/reg/bus/regBusDyaq/getBaseH",
				cache: false,
				data:"id="+id+"&djlx=${djlx}",
			    async:false, 
				success:function(modelmap){
					var qsId = modelmap.qsId;
					var hid = modelmap.hid;
					var cid = modelmap.cid;
					var ywh = modelmap.ywh;
					var djlx = modelmap.djlx;
					var oldId = modelmap.oldId;
					if(djlx == '423' || djlx == '426' || djlx == '427'){
						window.open("${ctx}/reg/base/regBaseH/divisionform?YWH="+ywh+"&CID="+cid+"&DJLX="+djlx+"&OldYWID="+oldId+"&HID="+hid+"&dyId="+qsId+"&optype=update","newwindow",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}else if(djlx == '424' || djlx == '428'){
						window.open("${ctx}/reg/base/regBaseH/mergerform?YWH="+ywh+"&CID="+cid+"&DJLX="+djlx+"&ids="+oldId+"&HID="+hid+"&dyId="+qsId+"&optype=update","newwindow",
							"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
					}
				}
			});
	    }
		
		function deletedyfg(ywh,bdcdyh){
			 if(confirm('是否删除?')){
				//弹出窗口的宽度; 
				var iWidth=1100; 
				//弹出窗口的高度;
		       	var iHeight=400;
		       	//获得窗口的垂直位置 
		       	var iTop = (window.screen.height - 30 - iHeight) / 2;
		       	//获得窗口的水平位置 
		       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
		       	var djlx = '${djlx}';
				window.open("${ctx}/reg/bus/regBusDyaq/deletedyqfghb?ywh="+ywh+"&bdcdyh="+bdcdyh+"&wo=1&DJLX="+djlx,"newwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
			 }
		}
		
		function reloadDyaq(){
			var optype = "${optype}";
			var djlx = "${djlx}";
		    if(window.opener) {
		    	//新增 
		    	if(optype == undefined || optype == null || optype ==""){
		    		if(djlx == "423" || djlx == "426" || djlx == "427"){//分割
		    			window.opener.divisionframe.location.reload();
		    		}else if(djlx == "424" || djlx == "428"){//合并 
		    			window.opener.qlrframe.location.reload();
		    			window.opener.dyaqframe.location.reload();
		    			window.opener.mergerbeforeframe.location.reload();
		    			window.opener.mergerframe.location.reload();
		    		}
		    	}else{ //更新 
		    		window.opener.parent.document.dyaqframe.location.reload();
		    		if(djlx == "423" || djlx == "426" || djlx == "427"){//分割
			    		window.opener.parent.document.divisionbeforeframe.location.reload();
			    		window.opener.parent.divisionframe.location.reload();
		    		}else if(djlx == "424" || djlx == "428"){//合并
			    		window.opener.parent.document.mergerbeforeframe.location.reload();
			    		window.opener.parent.mergerframe.location.reload();
		    		}
		    		window.opener.parent.document.qlrframe.location.reload();
		    	}
		    	window.close();
		    }
		}
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusDyaq/">抵押权信息列表</a></li>
	</ul>
	<c:if test="${not empty WO}">
		<br>
			<input id="reLoadDyaq" class="btn btn-primary" type="button" onclick="reloadDyaq();" value="退出列表" />
		<br>
	</c:if>
	<sys:message content="${message}"/>
	<legend></legend>
	<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>
				<c:if test="${empty LISTVIEWS}">
					<shiro:hasPermission name="reg:bus:regBusDyaq:edit"><th>操作</th></shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}"  var="regBusDyaq">
			<tr>
				<td>
					${regBusDyaq.ywh}
				</td>
				<td>
					<c:if test="${empty view}">
						${regBusDyaq.bdcdyh}
					</c:if>
					<c:if test="${not empty view}">
						<shiro:hasPermission name="reg:bus:regBusDyaq:view">
							<a href="javascript:void(0);" onclick="winOpenDyaq('${regBusDyaq.id}','${regBusDyaq.ywh}')">
								${regBusDyaq.bdcdyh}
							</a>
						</shiro:hasPermission>
					</c:if>
				</td>
				<td>
					${fns:getDictLabel(regBusDyaq.dybdclx, 'reg_bus_dybdclx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusDyaq.dyfs, 'reg_bus_dyfs', '')}
				</td>
				<td>
					${regBusDyaq.dyr}
				</td>
				<td>
					${regBusDyaq.dyqr}
				</td>
				<td>
					<fmt:formatNumber value ="${regBusDyaq.dbze}" pattern=".0"/>
				</td>
				<td>
					${regBusDyaq.zgzqse}
				</td>
				<td>
					${regBusDyaq.zwr}
				</td>
				<c:if test="${empty LISTVIEWS}">
					<shiro:hasPermission name="reg:bus:regBusDyaq:edit">
						<td>
							<a href="javascript:void(0);" onclick="winOpenUpdateDyaq('${regBusDyaq.id}');">修改</a>
							<a href="javascript:void(0);" onclick="deletedyfg('${regBusDyaq.ywh}','${regBusDyaq.bdcdyh}');">删除</a>
						</td>
					</shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>