baa8ac5492d54e159fea01e2120f43f0f23795c7.svn-base 3.78 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() {
			var zsbhs = ${bhList};
			var zsbh = document.getElementById("zsbh");
			if(zsbhs) {
				for(var i=0;i<zsbhs.length;i++) {
					var opt = document.createElement("option");
					opt.innerHTML = zsbhs[i];
					zsbh.appendChild(opt);
				}
			}
		});
		
		function isOK(){
			var options1=$("#zsbh option:selected"); //获取选中的项
			var options2=$("#bdcqlsx option:selected");
// 		    alert(options.val()); 拿到选中项的值
// 		    alert(options.text()); 拿到选中项的文本
			var oldbm = ${ysxlh};
			var newbm = options1.text().trim();
			var newqlsx = options2.val().trim();
			if(oldbm==newbm){
				alert("证书编码与原编码相同,请检查。");
				return;
			}
			var oldqlsx = ${fn:length(pageList)};
			var ywh = ${ywh};
			$.ajax({
	               type:"POST",
	               url:"${ctx}/reg/base/regBaseZsglbSub/checkData",
	               data:{"newbm":newbm,"oldbm":oldbm,"newqlsx":newqlsx,"oldqlsx":oldqlsx,"ywh":ywh},
	               datatype:"json",
	               success:function(model1){
	            		if(model1.successbj==1){
		   					alert(model1.msg);
		   					return;
	   					}else{
	   						var url="${ctx}/reg/bus/regBusSz/jcblist?ywh=${ywh}&sqzsbs=${sqzsbs}";
	   					   	window.location = url;
	   					}
	               },
	               error:function(model1){
	               	alert("修改失败!");
	               }
	       });
		  
			
		}
		
		
		function isNotNull(val){
		     if(val != null && val != 'null' && val != undefined && val != 'undefined' && val != ''){
		         return true ;
		     }
		     return false;
		}
		
		
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active">维护缮证信息列表</li>
	</ul>
		<br>
	<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>
			</tr>
		</thead>
		<tbody>
		
		<c:forEach items="${pageList}" var="subList" varStatus="status">
			<tr>
				<td colspan="2">
					<font color="blue">不动产权利第${status.index+1 }页</font>
				</td>
				<c:if test="${fn:length(pageList) eq status.index+1 }">
				<td>
					当前证书编码:<font color="red">${ysxlh }</font>  
				</td>
				<td colspan="6">
					目标证书编码:
					<select id="zsbh" class="input-small required">
					</select>
					不动产权利<select id="bdcqlsx" class="input-mini required">
					<option value="2"></option>
					<option value="3"></option>
					</select>
				</td>
				</c:if>
			</tr>
			<c:forEach items="${subList }" var="regBaseZsglbSub">
				<tr>
				<td>
					${regBaseZsglbSub.qlrmc}
				</td>
				<td>
					${regBaseZsglbSub.gyqk}
				</td>
				<td>
					${regBaseZsglbSub.zl}
				</td>
				<td>
					${fns:getDictLabel(regBaseZsglbSub.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${regBaseZsglbSub.qlxz}
				</td>
				<td>
					${regBaseZsglbSub.syqx}
				</td>
				<td style="word-wrap:break-word;word-break:break-all;" >
					${regBaseZsglbSub.bdcdyh}
				</td>
				<td>
					${regBaseZsglbSub.yt}
				</td>
				<td>
					${regBaseZsglbSub.mj}
				</td>
			</tr>
			</c:forEach>
		
		</c:forEach>
		
		
		
		
		</tbody>
	</table>
	<input id="btnCancel" class="btn btn-primary" type="button" value="返 回" onclick="history.go(-1)"/>
	<input id="btnSure" class="btn btn-primary"  type="button"  onclick="isOK();"  value="确定"/>
</body>
</html>