26e845a93a8ebb0284db7a7827cb5ff9503b4f2c.svn-base 12.8 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/js/init.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/OpenLayers.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/zdclient.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/lib/jquery.orbit-1.2.3.js" type="text/javascript"></script>    
    <script src="${ctxStatic}/gis/js/global.js" type="text/javascript"></script>
    <script src="${ctxStatic}/gis/js/config.js" type="text/javascript"></script>
   
	<script type="text/javascript">
	     var tempMapValue;
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		function addHisData(){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var url =  "${ctx}/reg/bus/regBusHisBdcqzsdjxx/form?daoruxinxi=0";
	       	window.open(url, "窗口", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
		}
		
		function winOpenUpdateHisDjxx(id,isaudit){
			 if(isaudit == '1'){
				  alert("已审核的数据不能修改!");
				  return;
			  }
			//弹出窗口的宽度; 
			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/regBusHisBdcqzsdjxx/form?id="+ id +"&optype=1","newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
		function winOpenHisDjxx(id){
			//弹出窗口的宽度; 
			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/regBusHisBdcqzsdjxx/form?id="+ id +"&optype=update&xg=1&VIEWS=1","newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}

		
		function deleteHisDjxx(id,isaudit){
			 if(isaudit == '1'){
				  alert("已审核的数据不能删除!");
				  return;
			  }
			 
			  if(confirm('确认要删除该历史不动产登记信息吗?')){
				 url = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/delete?id="+id;
				 window.location.href=url;
			  }
		}
		
		/*function auditHisDjxx(id,isaudit){
			 if(isaudit == '1'){
				  alert("已审核的数据不能重复审核!");
				  return;
			  }
			  if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
					$.ajax({ 
			  			type:"POST", //请求方式 
			  			url:"${ctx}/reg/bus/regBusHisBdcqzsdjxx/audit1", //请求路径 
			  			cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
			  			data:"id="+id,//"seachcity="+$("#seachcitytext").val()+"&seachdistrict="+$("#seachdistricttext").val()+"&qlrmc="+$("#qlrxmtext").val()+"&zjlx="+$("#zjlxtext").val()+"&zjhm="+$("#zjhmtext").val()+"&seachprov="+$("#seachprovtext").val()+"&zdtzm="+$("#zdtzmTxt").val()+"&zl="+$("#zltext").val()+"&zdmj="+$("#zdmjtext").val()+"&tfh="+$("#tfhtext").val()+"&zdszd="+$("#adszdtext").val()+"&zdszn="+$("#zdszntext").val()+"&zdszx="+$("#zdszxtext").val()+"&zdszb="+$("#zdszbtext").val()+"&zdt="+$("#zdt").val()+"&chrymc="+$("#chrymctext").val()+"&chsj="+$("#chsjtext").val()+"&jzdzb="+zbtemp,//chrymctext
			  			async:true,
			  	        //dataType: "html",   //返回值类型 
			  			success:function(modelmap){	
			  				tempMapValue=modelmap;
			  				//this=tempMapValue.yemian;
			  			//	saveHisdata(tempMapValue);
			  			}
					});
				//  url = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/audit?id="+id;
				//  window.location.href=url;
			  }
		}*/
		function auditHisDjxx(id,isaudit){
			 if(isaudit == '1'){
				  alert("已审核的数据不能重复审核!");
				  return;
			  }
			  if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){					
                  url = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/audit1?id="+id;
                  window.location.href=url; 
			  }
		}
		
		function reload(){
		    if(window.opener) {		
		    	/*var daoruxinxi="${daoruxinxi}";		    
		    	if(daoruxinxi=="1")
		    	{	
		    		//var url = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/list?id=";		 
		  			//var url = "${ctx}/reg/bus/hisLandManger/hisLandManagerList";
		    		//window.location = url;
		    	}
		    	else
		    	{
		    		//window.opener.location.reload();	
		    	}*/
		    	//window.opener.location.reload("${ctx}/reg/bus/regBusHisBdcqzsdjxx/list?daoruxinxi=0");
		    	window.close();	
		    	var url = "${ctx}/reg/bus/regBusHisBdcqzsdjxx/list?daoruxinxi=0";	
		    	window.location.href=url;		    
		    }
		}
	
		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:#D2E9FF;");
				}
			});
		};
		//--------------------------------
		function daoru()
		{
			$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
				bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
		}
		//-----------------------------------
		$(document).ready(function() {
			var daoruzb="${daorujzdzb}";
			var daorutm="${daorutzm}";
			var daoruywh="${daoruywh}";
			var daoruxinxi="${daoruxinxi}"
			var daoruxinxishuaxin="${daoruxinxishuaxin}";
           
			if((daoruxinxi=="2")&&(daoruxinxishuaxin=="2")&&(daoruzb!="")&&(daoruzb!=null)&&(daoruzb != undefined)&&(daorutm!="")&&(daorutm!=null)&&(daorutm != undefined))
			{	
				  alert("11111");
				  alert(daoruxinxi);
				  alert(daoruxinxishuaxin);
				//弹出窗口的宽度; 
				var iWidth=1100; 
				//弹出窗口的高度;
		       	var iHeight=600;
		       	//获得窗口的垂直位置 
		       	var iTop = (window.screen.height - 30 - iHeight) / 2;
		       	//获得窗口的水平位置 
		       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
		       	daoruxinxishuaxin="0";
		       	daoruxinxi="0";
		     	var url =  "${ctx}/reg/bus/regBusHisBdcqzsdjxx/form?daoruzb="+daoruzb+"&daorutm="+daorutm+"&daoruywh="+daoruywh+"&daoruxinxi="+daoruxinxi+"&daoruxinxishuaxin="+daoruxinxishuaxin;
		       	window.open(url, "窗口", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
			}
			
		});
	</script>
</head>
<body>

    <div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/reg/bus/regBusHisBdcqzsdjxx/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 id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   " />
	
			<a href="${ctx}/reg/bus/regBusHisBdcqzsdjxx/importFileTemplate">下载模板</a>
		</form>
	</div>

	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusHisBdcqzsdjxx/list">土地历史登记信息</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="regBusHisBdcqzsdjxx" action="${ctx}/reg/bus/regBusHisBdcqzsdjxx/list?PTYPE=${PTYPE}" 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}"/>
		<c:if test="${empty WO}">
		<ul class="ul-form">
			<li><label>不动产权证号</label>
				<form:input path="bdcqzh" htmlEscape="false" maxlength="12" class="input-medium"/>
			</li>
			<li><label>权利人</label>
				<form:input path="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>不动产单元号</label>
				<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
			</li>
<!-- 			<li><label>宗地代码</label> -->
<%-- 				<form:input path="zddm" htmlEscape="false" maxlength="19" class="input-medium"/> --%>
<!-- 			</li> -->
			<li><label>权利类型</label>
				<form:select path="qllx" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('reg_bus_qllx')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
<!-- 			<li><label>权利性质</label> -->
<%-- 				<form:select path="qlxz" class="input-medium"> --%>
<%-- 					<form:option value="" label=""/> --%>
<%-- 					<form:options items="${fns:getDictList('reg_bus_qlxz')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
<%-- 				</form:select> --%>
<!-- 			</li> -->
			<li class="btns"><input id="btnSubmit" class="btn btn-primary"  type="submit" value="查询"/></li>
			<c:if test="${empty WO}">
				<shiro:hasPermission name="reg.bus:regBusHisBdcqzsdjxx:edit">
					<li class="btns"><input id="btnAdd"  class="btn btn-primary"  type="button"  onclick="addHisData();"  value="土地历史登记信息录入"/></li>
					 <li> <input id="btndaoru" class="btn btn-primary" type="button" value="界址点导入" onclick="daoru()"/></li>
				</shiro:hasPermission>
			</c:if>
			<li class="clearfix"></li>
		</ul>
		</c:if>
	</form:form>
	<c:if test="${not empty WO}">
		<input id="reLoad" class="btn btn-primary" type="button" onclick="reload();" value="退出列表" />
	</c:if>
	<sys:message content="${message}"/>
	<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>
				<th>原不动产单元号</th>
				<c:if test="${empty WO}">
				<shiro:hasPermission name="reg.bus:regBusHisBdcqzsdjxx:edit">
					<th>操作</th>
				</shiro:hasPermission>
				</c:if>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusHisBdcqzsdjxx">
			<tr>
				<td>
					<a href="#"  onclick="winOpenHisDjxx('${regBusHisBdcqzsdjxx.id}');">${regBusHisBdcqzsdjxx.ywh}</a>
					<input type="hidden"  name="isaudit"  id="${regBusHisBdcqzsdjxx.isaudit}"  value=""/>
				</td>
				<td>
					${regBusHisBdcqzsdjxx.bdcdyh}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.zddm}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.bdcqzh}
				</td>
				<td>
					${fns:getDictLabel(regBusHisBdcqzsdjxx.qllx, 'reg_bus_qllx', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusHisBdcqzsdjxx.qlxz, 'reg_bus_qlxz', '')}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.yt}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.zdmj}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.syqx}
				</td>
				<td>
					${regBusHisBdcqzsdjxx.bz}
				</td>
				<c:if test="${regBusHisBdcqzsdjxx.isaudit eq 0}">
					<c:if test="${empty WO}">
					<shiro:hasPermission name="reg.bus:regBusHisBdcqzsdjxx:edit">
						<td>
		    				<a href="#" onclick="winOpenUpdateHisDjxx('${regBusHisBdcqzsdjxx.id}','${regBusHisBdcqzsdjxx.isaudit}');">修改</a>
		    				<a href="#" onclick="auditHisDjxx('${regBusHisBdcqzsdjxx.id}','${regBusHisBdcqzsdjxx.isaudit}');">审核</a>
							<a href="#"  onclick="deleteHisDjxx('${regBusHisBdcqzsdjxx.id}','${regBusHisBdcqzsdjxx.isaudit}');">删除</a>
						</td>
					</shiro:hasPermission>
					</c:if>
				</c:if>
				<c:if test="${regBusHisBdcqzsdjxx.isaudit eq 1}">
					<shiro:hasPermission name="reg.bus:regBusHisBdcqzsdjxx:edit">
						<td>
		    				<a href="#" onclick="auditHisDjxx('${regBusHisBdcqzsdjxx.id}','${regBusHisBdcqzsdjxx.isaudit}');">已审核</a>
						</td>
					</shiro:hasPermission>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<c:if test="${empty WO}">
	<div><span class="help-inline"><font color="red">(提示:此入口针对土地使用权,所有权已登记信息录入!!!)</font> </span></div>
	</c:if>
</body>
</html>