d991a8288ed65e5c0afef6d65c9cb52b1d27e3ad.svn-base 8.66 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() {
			$('.hdetailinfo_icon').hover(function(){
				$(this).css("cursor","hand");
				$(this).next().addClass('hDetailInfoOver');
			},function(){
			     //鼠标离开时移除divOver样式 
			    $(this).next().removeClass('hDetailInfoOver'); 
			});
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		//CheckBox 全选 |注意:当checkbox disabled时不能进行操作
		function selectAll(){
			var a = document.getElementsByTagName("input");
			for(var i = 0;i<a.length;i++){
				if(a[i].type == "checkbox" && a[i].disabled != true){ 
					a[i].checked = true;
				}
			}
		}
		//全不选择  |注意:当checkbox disabled时不能进行操作
		function unselectAll(){
			var a = document.getElementsByTagName("input");
			for(var i = 0;i<a.length;i++){
				if(a[i].type == "checkbox" && a[i].disabled != true){
					a[i].checked = false;
				}
			}
		}
		//选中一层数据  |注意:当checkbox disabled时不能进行操作
		function selectC(ch){
			$("#"+ch).find("input[type=checkbox]").each(function() {
				//当checkbox disabled时不进行操作,直接跳出 
				if($(this).prop("disabled")){
					return true; //跳出当前循环,进入下一个循环;相当于 javascript 中的 continue 效果
				}
				if($(this).is(":checked")) {
	            	$(this).attr("checked", false);
				}else{
					$(this).attr("checked", true);
				}
	        });
		}
		
		var chk_value =[];
		//选择房屋信息并提交选择的房屋ID到后台进行处理 ,每次选择一个
		function choiceFwxx(){
			$('input[name="fwxx"]:checked').each(function(){
				chk_value.push($(this).val());
			});
			var url;
			if(chk_value.length == 0){
				alert('你还没有选择任何内容!');
				chk_value =[];
				return;
			}
			if(chk_value.length > 1){
				alert('只能选择一套房屋!');
				chk_value =[];
				window.location.reload();
				return;
			}
 			var selectedIDs = chk_value.join(';');
 			
 			var url = "${ctx}/reg/bus/regBusFdcq2/nextHouseChangeForm?YWH=${ywh}&zh=${ZH}&ZID=${ZID}&WO=1&YSDM=2001010000&djlx=${DJLX}&selectedIDs="+selectedIDs;
 			window.location = url;
 			
		}
		
		//每次只能选择一条数据,多余的会被移除
		function changStauts(id){
			for(var i = 0; i< chk_value.length; i++){
				if($("#"+id).attr("checked") == "checked"){ //undefined
					 chk_value.splice(i, 1);
					 alert(id+" is removed");
				 }
			}
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">楼盘信息表</a></li>
	</ul>
	<sys:message content="${message}"/>
	<div class="form-horizontal">
	<div class="current_fwinfo">当前楼盘信息:项目【${XMMC}】,建筑物【${JZWMC}】,实测建筑面积【${ZSCJZMJ}】㎡;一共【${cCount}】层,【${hCount}】户</div>
	<input id="btnSelectAll" class="btn btn-primary" type="button"  value="全   选" onclick="javascript:selectAll();"/>&nbsp;&nbsp;
	<input id="btnunSelectAll" class="btn btn-primary" type="button"  value="全不选" onclick="javascript:unselectAll();"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<input id="btnunSelectAll" class="btn btn-primary" type="button"  value="下一步"  onclick="javascript:{this.disabled=true;choiceFwxx();}"/>&nbsp;&nbsp;&nbsp;
					
	<table class="zchtable-form">
		<tr>
			<td><div class="chao">层号</div></td>
			<td><div class="cinfo">层概况</div></td>
			<c:forEach items="${requestScope.intS}" var="intS" varStatus="statusmch">
				<td><div class="cinfo">${intS}</div></td>
			</c:forEach>
		</tr>
		<c:forEach items="${requestScope.regBaseCList}" var="regBaseC" varStatus="status">
			<tr id="${regBaseC.ch}">
				<td><div class="chao">${regBaseC.ch} &nbsp;&nbsp;<input id="btnSelectC" class="btn btn-primary btn-xs" type="button" 
						value="(反)选" onclick="javascript:selectC('${regBaseC.ch}');"/>
				    </div>
				</td>
				<td><div class="cinfo">${regBaseC.cjzmj}&nbsp;</div></td>
				<c:set value="${'option'}${status.index}" var="option" />
				<c:forEach items="${requestScope[option]}" var="regBaseH">
					<td>
						<div class="hhao">
							<!-- 开始判断房屋信息是否可以在当前业务中选择 -->
							<c:if test="${regBaseH.ischafeng >= '100'}">
								<c:if test="${regBaseH.isyiyi eq '1'}">
									<c:if test="${regBaseH.isdiya eq '1'}">
										<input id="${regBaseH.id}" name="fwxx"  value="${regBaseH.id}"
										   disabled="disabled"  class="input-small" type="checkbox">&nbsp;&nbsp;
									</c:if>
								</c:if>
							</c:if>
							<c:if test="${regBaseH.ischafeng eq '0'}">
								<c:if test="${regBaseH.isyiyi eq '0'}">
									<c:if test="${regBaseH.isdiya eq '0'}">
										<input id="${regBaseH.id}" name="fwxx"  value="${regBaseH.id}"
										   class="input-small" type="checkbox">&nbsp;&nbsp;
									</c:if>
								</c:if>
							</c:if>
							<!-- 室号部位 -->
							
							${regBaseH.shbw} &nbsp;&nbsp;
							<div class="hdetailinfo_icon icon-th-list">
							</div>
							<div id="hdetailinfo" class="hdetailinfo">
								<ul>
									<li class="hdetailhuhao">【不动产单元号】:${regBaseH.bdcdyh}</li>
									<li class="hdetailhuhao">【户号】:${regBaseH.hh}</li>
								</ul>
								<ul>
									<li>【房屋编码】:${regBaseH.fwbm}</li>
									<li>【要素代码】:${regBaseH.ysdm}</li>
									<li>【自然幢号】:${regBaseH.zrzh}</li>
									<li>【逻辑幢号】:${regBaseH.ljzh}</li>
								</ul>
								<ul>
									<li>【层号】:${regBaseH.ch}</li>
									<li>【坐落】:${regBaseH.zl}</li>
									<li>【面积单位】:${fns:getDictLabel(regBaseH.mjdw, 'reg_bus_mjdw', '')}</li>
									<li>【实际层数】:${regBaseH.sjcs}</li>
								</ul>
								<ul>
									<li>【室号部位】:${regBaseH.shbw}</li>
									<li>【户型】:${fns:getDictLabel(regBaseH.hx, 'reg_bus_hx', '')}</li>
									<li>【户型结构】:${fns:getDictLabel(regBaseH.hxjg, 'reg_bus_hxjg', '')}</li>
								</ul>
								<ul>
									<li>【房屋用途】:${fns:getDictLabel(regBaseH.fwyt1, 'reg_bus_fwyt', '')}</li>
									<li>【实测建筑面积 】:${regBaseH.scjzmj}</li>
									<li>【实测套内建筑面积】:${regBaseH.sctnjzmj}</li>
									<li>【实测分摊建筑面积】:${regBaseH.scftjzmj}</li>
								</ul>
								<ul>
									<li>【实测地下部分建筑面积】:${regBaseH.scdxbfjzmj}</li>
									<li>【实测其它建筑面积】:${regBaseH.scqtjzmj}</li>
									<li>【实测分摊系数】:${regBaseH.scftxs}</li>
									<li>【共有土地面积】:${regBaseH.gytdmj}</li>
								</ul>
								<ul>
									<li>【分摊土地面积】:${regBaseH.fttdmj}</li>
									<li>【独用土地面积】:${regBaseH.dytdmj}</li>
									<li>【房屋类型】:${fns:getDictLabel(regBaseH.fwlx, 'reg_bus_fwlx', '')}</li>
									<li>【房屋性质】:${fns:getDictLabel(regBaseH.fwxz, 'reg_bus_fwxz', '')}</li>
								</ul>
								<ul>
									<li>【状态】:${fns:getDictLabel(regBaseH.zt, 'reg_bus_bdcdyzt', '')}</li>
									<li>【抵押状态】:${fns:getDictLabel(regBaseH.isdiya, 'reg_bus_isdiya', '')}</li>
									<li>【查封状态】:${fns:getDictLabel(regBaseH.ischafeng, 'reg_bus_ischafeng', '')}</li>
									<li>【异议状态】:${fns:getDictLabel(regBaseH.isyiyi, 'reg_bus_isyiyi', '')}</li>
								</ul>
								<ul>
									<li>【权属状态】:${fns:getDictLabel(regBaseH.rights, 'reg_bus_isrights', '')}</li>
								</ul>
							</div>
						</div>
					</td>
				</c:forEach>
			</tr>
		</c:forEach>
	</table>
	<br>
	<div class="loupantuli">
		<div class='isnotcf' title='未抵押、查封、异议和转移'></div>
		<div class="isnotregdyyycftitle">&nbsp;未抵押、查封、异议、转移和未登记</div>
		<div class='isdy' title='已抵押'></div>
		<div class="isdytitle">&nbsp;已抵押</div>
		<div class='isyy' title='已异议'></div>
		<div class="isyytitle">&nbsp;已异议</div>
		<div class='iscf' title='已查封'></div>
		<div class="iscftitle">&nbsp;已查封</div>
		<div class='iszy' title='已转移'></div>
		<div class="iszytitle">&nbsp;已转移</div>
		<div class='isqifang' title='期房'></div>
		<div class="isqifnagtitle">&nbsp;期房</div>
		<div class='isxianfang' title='现房'></div>
		<div class="isxianfangtitle">&nbsp;现房</div>
	</div>
	<br><br>
	<input id="btnCancel" class="btn" type="button" value="返回幢列表" onclick="history.go(-1)"/>
	</div> 
</body>
</html>