cde769ecc40fca5b4994426114dc1f71c8b523ec.svn-base 9.93 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 src="${ctxStatic}/gis/lib/iconfont/iconfont.js"></script>
	<style type="text/css">
 	 .icon {  
 	    width: 32px;  
 	    height: 32px;   
 	    fill: currentColor;  
 	}  
 	</style>
	<script type="text/javascript">

		$(document).ready(function() {
			hideMask();
			var msg = '${msg}';
			if(msg != null && msg != ""){
				alert('${msg}');
			}
		});
// 		function page(n,s){
// 			$("#pageNo").val(n);
// 			$("#pageSize").val(s);
// 			$("#searchForm").submit();
//         	return false;
//         }
		function page(n,s){
			if(n) $("#pageNo").val(n);
			if(s) $("#pageSize").val(s);
			$("#searchForm").attr("action","${ctx}/reg/bus/regBusClhjFw/list");
			$("#searchForm").submit();
	    	return false;
	    }
		//初始化方法,改变已审核数据的颜色
		window.onload = function(){
			//改变 已打印的 行颜色
			$("#contentTable > tbody").find("tr").each(function(){
				var ret = $(this).find('input:hidden').attr('id');
				if(ret == "1"){
					$(this).find("td").attr("style","background-color:#C1FFC1;");
				}
			});
		};

		function daoru()
		{
			showMask();
			if(confirm('确认上传文件吗?')){
				var url = "${ctx}/reg/bus/regBusClhjFw/importFile";
				window.location = url;
			}
// 			$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
// 				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});		
		}	
		
		function hideMask(){
	        $("#mask").hide();
	    }

		function showMask(){
	        $("#mask").css("height",$(document).height());     
	        $("#mask").css("width",$(document).width());     
	        $("#mask").show();
	    }

		//启用
		function audit(id,isaudit){
			 if(isaudit == '1'){
				  alert("已启用的数据不能重复启用!");
				  return;
			  }
			  if(confirm('启用后数据将正式生效,确认要启用该信息吗?')){
				  showMask();
				  $.ajax({ 
						type:"POST", 
						url:"${ctx}/reg/bus/regBusClhjFw/audityz", 
						cache: false, 
						data:"ids="+id,
					    async : false,  
						success:function(modelmap){
							successbj = modelmap.success;
							if(successbj == 0){
						 		url = "${ctx}/reg/bus/regBusClhjFw/audit?id="+id;
					 	 		window.location.href=url;
							}else{
								alert(modelmap.msg);
							}
						}
				  });
			  }else{
				  	hideMask();
			  }
		}

		//查看
		function winOpenHisDjxx(id){
			//弹出窗口的宽度; 
			var iWidth=1500; 
			//弹出窗口的高度;
	       	var iHeight=800;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("${ctx}/reg/bus/regBusClhjFw/form?LISTVIEWS=1&id="+ id,"newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		//批量审核
		function getsavebat(){
			showMask();
			var iWidth=400;
	       	var iHeight=150;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
			window.open("/ODM/a/reg/bus/regBusClhjFw/batform","审核信息",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");		
			window.close();
		}
		
		//全部批量审核
		function getsavebatall(){
			showMask();
			if(confirm('审核后数据将正式生效,确认要审核该信息吗?')){
				$.ajax({
					type:"POST", 
					url:"${ctx}/reg/bus/regBusClhjFw/saveauditbatall",
					cache: false, 
					data:"",
					async : false,
					success:function(modelmap){
						if(modelmap.success == 0){
							window.location.reload();
					 	}
					}
				});
		 	}
		}
	</script>
</head>
<body>
	<div id="mask" class="mask">
		<div class="maskloading"></div>
	</div>
	<div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/reg/bus/regBusClhjFw/importFile" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
<!-- 			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/> -->
			<input class="btn btn-default" style="height: 50px" id="excel_file"   type="file" name="filename"  accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
			<br>
			<input id="btnImportSubmit" style="height: 50px;width: 100px" class="btn btn-primary" type="button"  value="   导    入   " />
<%-- 			<a href="${ctx}/reg/bus/regBusClhjFw/importFileTemplate">下载模板</a> --%>
		</form>
	</div>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusClhjFw/list">存量数据汇交房屋历史表列表</a></li>
<%-- 		<shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><li><a href="${ctx}/reg/bus/regBusClhjFw/form">存量数据汇交房屋历史表添加</a></li></shiro:hasPermission> --%>
	</ul>
	<form:form id="searchForm" name="importForms"  modelAttribute="regBusClhjFw" action="${ctx}/reg/bus/regBusClhjFw/" 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}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<table class="table-form">
		<tr>
			<td>项目小区</td>
			<td>
				<form:input path="xmxq" htmlEscape="false"  class="input-medium"/>
			</td>
			<td>不动产权证号</td>
			<td>
				<form:input path="bdcqzh" htmlEscape="false"  class="input-medium"/>
			</td>
			<td>不动产单元号</td>
			<td>
				<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
			</td>
			<td>坐落</td>
			<td>
				<form:input path="zl" htmlEscape="false"  class="input-xlarge"/>
			</td>
		</tr>
		<tr>
			<td>业务细类</td>
			<td>
				<form:select path="djxl" id="djxltext" class="input-medium ">
						<form:option value="" label=""/>
						<form:option value="207" label="房屋建筑物所有权"/>
						<form:option value="302"  label="房屋建筑物所有权转移登记"/>
						<form:option value="214"  label="房屋建筑物一般抵押权登记"/> 
						<form:option value="215"  label="房屋建筑物最高额抵押权登记"/> 
						<form:option value="905"  label="房屋查封登记"/>
				</form:select>
			</td>
			<td> 层号</td>
			<td>
				<form:input path="ch" htmlEscape="false" maxlength="20" class="input-medium"/>
			</td>
			<td>室号部位</td>
			<td>
				<form:input path="shbw" htmlEscape="false" maxlength="50" class="input-medium"/>
			</td>
			<td>审核</td>
			<td>
				<form:select path="isaudit" id="isaudit" class="input-medium ">
						<form:option value="" label=""/>
						<form:option value="0" label="未启用"/>
						<form:option value="1"  label="已启用"/>
						<form:option value="2"  label="已引用"/> 
				</form:select>
			</td>
		</tr>
		<tr>
			<td>建筑面积</td>
			<td>
				<form:input path="jzmj" htmlEscape="false" maxlength="20" class="input-medium"/>
			</td>
			<td  align="right" class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></td>
			<td  align="right" class="btns"><input id="btn btn-inverse" class="btn btn-primary" type="button" value="存量数据导入" onclick="daoru()"/></td>
<!-- 			<td  align="right"><input id="btnSubmit"class="btn btn-info" type="button"  onclick="getsavebat()"  value="批量审核"/></td> -->
			<td align="left"><input id="btnSubmit"class="btn btn-success" type="button"  onclick="getsavebatall()"  value="全部审核"/></td>
		</tr>
	</table>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th class="sort-column ywh">业务编号</th>
				<th class="sort-column bdcdyh">不动产单元号</th>
				<th>项目小区</th>
				<th class="sort-column djxl">业务细类</th>
				<th>建筑物名称</th>
				<th>层号</th>
				<th>室号部位</th>
				<th>建筑面积</th>
				<th>房地坐落</th>
				<shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><th width="6%">操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusClhjFw">
			<tr>
				<td>
					${regBusClhjFw.ywh}
					<input type="hidden"  name="isaudit"  id="${regBusClhjFw.isaudit}"  value=""/>
				</td>
				<td>
					<a href="javascript:void(0);" onclick="winOpenHisDjxx('${regBusClhjFw.id}');">
						${regBusClhjFw.bdcdyh}
					</a>
				</td>
				<td>
					${regBusClhjFw.xmxq}
				</td>
				<td>
					${fns:getDictLabel(regBusClhjFw.djxl, 'reg_bus_djxl', '')}
				</td>
				<td>
					${regBusClhjFw.jgzwmc}
				</td>
				<td>
					${regBusClhjFw.ch}
				</td>
				<td>
					${regBusClhjFw.shbw}
				</td>
				<td>				   
					${regBusClhjFw.jzmj}
				</td>
				<td>				   
					${regBusClhjFw.zl}
				</td>
				<shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><td>
				    <c:if test="${regBusClhjFw.isaudit eq '0' }">
				      <a href="${ctx}/reg/bus/regBusClhjFw/form?id=${regBusClhjFw.id}">修改</a>
					  <a href="${ctx}/reg/bus/regBusClhjFw/delete?id=${regBusClhjFw.id}" onclick="return confirmx('确认要删除该存量数据吗?', this.href)"><span><font color="red">删除</font></span></a>
				      <a href="#" onclick="audit('${regBusClhjFw.id}','${regBusClhjFw.isaudit}');"><span><font color="green">启用</font></span></a>
				    </c:if>
				    <c:if test="${regBusClhjFw.isaudit eq '1' }">
				      <a href="#">已启用</a>
				    </c:if>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>