c041d4d8d4f1c1780de1bdbffea75170473d104e.svn-base 8.53 KB
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>
<c:if test="${DJLX ne '302'}"> 
权利人信息管理
</c:if>
</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 winBack() {
		var checkedCount = $("input[type='checkbox']:checked").length;
		if (checkedCount >= 2) {
			alert("只能选择一个权利人姓名!");
			return;
		}
		//选中一行后,获取宗地代码值 
		var qlrValue = $("input[name='checkbox_qlr']:checked").attr("id");
		if (window.opener) {
			fWindowText1 = window.opener.document.getElementById("qlrtext");
			fWindowText1.value = qlrValue;
			window.close();
		}
	}
	
	

	function winOpenQlr(ywh,id) {
		var success = '1';
		$.ajax({
			type:"POST", //请求方式 
			url:"${ctx}/reg/nf/regBusQlr/queryinfo", //请求路径 
			cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
			data:"id="+id,  //传参 
			async: false,
			success:function(modelmap){
				success = modelmap.success;
				if(success=='2'){
					success = '2';
					alert("入库时为单独所有,无法进行添加权利人操作");
					return;
			}/*else if(success=='3'){
					success = '3';
					alert("已进行一体登记,无法进行添加");
					return;
			}*/else{
				success='1';
			}
			}
			});
			if(success=='1'){
		     window.location.href="${ctx}/reg/nf/regBusQlr/form?ywh="+ywh;
			}
	}

	function winOpenUpdateQlr(id) {
		var success = '';
		//弹出窗口的宽度; 
		var iWidth = 1100;
		//弹出窗口的高度;
		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/nf/regBusQlr/queryinfo", //请求路径 
			cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
			data:"id="+id+"&flag=xg",  //传参 
			async: false,
			success:function(modelmap){
				success = modelmap.success;
				if(success=='1'){
					success = '1';
					alert("此权利人人员信息已被其他业务引用,无法修改");
					return;
			}else{
				success='2';
			}
			}
			});
		if(success=='2'){
		window.location.href = "${ctx}/reg/nf/regBusQlr/form?id=" + id;
		}
	}
	
	function interHisOpen(pcode){
		var iWidth=1300;
       	var iHeight=600;
       	var iTop = (window.screen.height - 30 - iHeight) / 2;
       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
		window.open("/ODM/a/InterSi/list?pcode="+pcode,"核验记录信息",
				"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");		

	}
	
  
	function reloadqlr() {
		var optype = "${optype}";
		var djlx = "${DJLX}";
		window.close();
		if (window.opener) {
			//新增 
			if (optype == undefined || optype == null || optype == "") {
				window.opener.document.qlrframe.location.reload();
				if(djlx == 214215){
					window.opener.document.dyaqframe.location.reload();
					window.opener.document.mortgageframe.location.reload();
				}else{
					if(djlx == 201){
						window.opener.document.firstframe.location.reload();
					}else if(djlx == 601 || djlx == 602){
						window.opener.document.propertyframe.location.reload();
					}else if(djlx == 604){
						window.opener.document.housePropertframe.location.reload();
					}else if(djlx == 609){
						window.opener.document.bgforenoticeframe.location.reload();
					}else if(djlx == 208){
						window.opener.document.mortgageframe.location.reload();
					}else if(djlx == 220){
						window.opener.document.firstframe.location.reload();
					}else{
						window.opener.document.forenoticeframe.location.reload();
					}
				}
			}else { //更新 
				window.opener.parent.document.qlrframe.location.reload();
				if(djlx == 214215){
					window.opener.parent.document.dyaqframe.location.reload();
					window.opener.parent.document.mortgageframe.location.reload();
				}else{
					if(djlx == 201){
						window.opener.parent.document.firstframe.location.reload();
					}else if(djlx == 601 || djlx == 602){
						window.opener.parent.document.propertyframe.location.reload();
					}else if(djlx == 604){
						window.opener.parent.document.housePropertframe.location.reload();
					}else if(djlx == 609){
						window.opener.parent.document.bgforenoticeframe.location.reload();
					}else if(djlx == 208){
						window.opener.parent.document.mortgageframe.location.reload();
					}else{
						window.opener.parent.document.forenoticeframe.location.reload();
					}
				}
			}
		}
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="javascript:void(0);">
		权利人信息列表
		</a></li>
		
	</ul>
	
	<form:form id="searchForm" modelAttribute="regBusQlr" action="${ctx}/reg/nf/regBusQlr/list" 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}"/>
		<ul class="ul-form">
			
				<li><label>顺序号:</label>
					<form:input path="sxh" htmlEscape="false" maxlength="6" class="input-medium"/>
				</li>
				<li><label>权利人名称:</label>
					<form:input path="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
				</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	 
	<c:if test="${not empty WO}">
		<br>
		<input id="reLoadQlr" class="btn btn-primary" type="button" onclick="reloadqlr();" value="退出列表" />
		<br>
		<br>
	</c:if>
	<c:if test="${not empty QLRXXXZ}">
		<br>
		<input id="btnSelected" class="btn btn-primary" type="button" onclick="btnSelectedQlr();" value="选择权利人" />
		<br>
		<br>
	</c:if>
	<sys:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<c:if test="${not empty QLRXXXZ}">
					<th>选择</th>
				</c:if>
				<th>顺序号</th>
				<th>权利人名称</th>
				<th>宗地代码</th>
				<th>地址</th>
				<th>证件号</th>
				<th>权利人类型</th>
				<th>共有情况</th>
				<th>权利比例(%)</th>
				<!-- 
				<c:if test="${DJLX eq '305' or DJLX eq '306' or DJLX eq '307' or DJLX eq '209'  or DJLX eq '507' or DJLX eq '804' or DJLX eq '214'  or DJLX eq '215' or DJLX eq '807'}">
					<th>义务人</th>
				</c:if>
				 -->
				 <th>
				 	操作
				 </th>
				 
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="regBusQlr">
				<tr>
					<c:if test="${not empty QLRXXXZ}">
						<td><input type="checkbox" name="checkbox_qlr"  id="${regBusQlr.id}"   value=""  /></td>
					</c:if>
					<td>${regBusQlr.sxh}</td> 
					
<%-- 					<c:if test="${empty WO}"> --%>
						<td>
						<shiro:hasPermission name="reg:bus:regBusQlr:view">
							<a href="javascript:void(0);" onclick="winOpenQlr('${regBusQlr.id}');">${regBusQlr.qlrmc}</a>
						</shiro:hasPermission>
						</td>
<%-- 					</c:if> --%>
					<td>${fn:substring(regBusQlr.bdcdyh, 0, 19)}</td>
					<td>${regBusQlr.dz}</td>
					<td>${regBusQlr.zjh}</td> 
					<td>${fns:getDictLabel(regBusQlr.qlrlx, 'reg_bus_qlrlx', '')}</td>
					<td>${fns:getDictLabel(regBusQlr.gyfs, 'reg_bus_gyfs', '')}</td>
					<td>${regBusQlr.qlbl}</td>
					<!-- 
					<c:if test="${DJLX eq '305' or DJLX eq '306' or DJLX eq '307' or DJLX eq '209'  or DJLX eq '507' or DJLX eq '804' or DJLX eq '214' or DJLX eq '215' or DJLX eq '807'}">
						<td>${regBusQlr.ywrmc}</td>
					</c:if>
					 -->
					 <td>
					<c:if test="${empty LISTVIEWS}">
					
						<shiro:hasPermission name="reg:bus:regBusQlr:edit">
							    <a href="javascript:void(0);" onclick="winOpenQlr('${regBusQlr.ywh}','${regBusQlr.id}');">添加</a>
								<a href="javascript:void(0);" onclick="winOpenUpdateQlr('${regBusQlr.id}');">修改</a> 
									<c:if test="${empty SXBGLX}">
										<a href="${ctx}/reg/nf/regBusQlr/delete?id=${regBusQlr.id}&YWH=${regBusQlr.ywh}" onclick="return confirmx('确认要删除该权利人信息吗?', this.href)">删除</a>
									</c:if>		
						</shiro:hasPermission>	
					</c:if>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>