selectInfoZhRkView.jsp 12.4 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">
		function openPrintView(){
			//弹出窗口的宽度; 
			var iWidth=500; 
			//弹出窗口的高度;
	       	var iHeight=250;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var isLs = "${ProcInsId}";
	       	if(isLs == undefined || isLs == null || isLs ==""){
	       		alert("历史数据不能打印受理通知单!");
	       		return;
	       	}
	       	var url =  "${ctx}/reg/bus/regBusBdcqzsdjxx/printView?ywh=${regBusBdcqzsdjxx.ywh}&BdcqzsdjxxID=${regBusBdcqzsdjxx.id}";
	       	window.open(url, "newwindow", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
		}
		
		function printHousejfView(){
			//弹出窗口的宽度; 
			var iWidth=500; 
			//弹出窗口的高度;
	       	var iHeight=250;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var url =  "${ctx}/reg/bus/regBusBdcqzsdjxx/printHousejfView?ywh=${regBusBdcqzsdjxx.ywh}";
	       	window.open(url, "newwindow", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
		}
		
		function openPrintSlsqView(){
			//弹出窗口的宽度; 
			var iWidth=950; 
			//弹出窗口的高度;
	       	var iHeight=1000;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var isLs = "${ProcInsId}";
	       	if(isLs == undefined || isLs == null || isLs ==""){
	       		alert("历史数据不能打印受理申请单!");
	       		return;
	       	}
	       	var url =  "${ctx}/reg/bus/regBusBdcqzsdjxx/printViewSqspb?ywh=${regBusBdcqzsdjxx.ywh}&djlx=${regBusBdcqzsdjxx.djlx}";
	       	window.open(url, "newwindow", "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 printRegbooksView(){
			//弹出窗口的宽度; 
			var iWidth=950; 
			//弹出窗口的高度;
	       	var iHeight=800;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var url =  "${ctx}/reg/books/orightbook?bdcdyh=${regBusBdcqzsdjxx.bdcdyh}";
	       	window.open(url, "newwindow", "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 openHouseView(){
			//弹出窗口的宽度; 
			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/regBusBdcqzsdjxx/openHouseView?ywh=${regBusBdcqzsdjxx.ywh}&DJLX=${regBusBdcqzsdjxx.djlx}&cxfs=${cxfs}";
	       	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 openGroundView(){
			//弹出窗口的宽度; 
			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/regBusBdcqzsdjxx/openGroundView?ywh=${regBusBdcqzsdjxx.ywh}&DJLX=${regBusBdcqzsdjxx.djlx}&cxfs=${cxfs}";
	       	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 printHousejfView(){
			//弹出窗口的宽度; 
			var iWidth=500; 
			//弹出窗口的高度;
	       	var iHeight=250;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	$.ajax({ 
				type:"POST",
				url:"${ctx}/reg/bus/regBusSf/isnotsfed", 
				cache: false,
				data:"YWH=${regBusBdcqzsdjxx.ywh}",
			    async : false,
				success:function(modelmap){
					var isnotsfed = modelmap.data;
					if(isnotsfed == "0"){
						alert("没有收费维护,请先维护收费信息再打印!");
						return;
					}else{
				       	var url =  "${ctx}/reg/bus/regBusBdcqzsdjxx/printHousejfView?ywh=${regBusBdcqzsdjxx.ywh}";
				       	window.open(url, "newwindow", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
					}
				}
			});
		}
		function winOpenBdcdjxx(){
			//弹出窗口的宽度; 
			var iWidth=1100; 
			//弹出窗口的高度;
	       	var iHeight=600;
	       	//获得窗口的垂直位置 
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	//获得窗口的水平位置 
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	var ywh = "${regBusBdcqzsdjxx.ywh}";
	       	var id = "${regBusBdcqzsdjxx.id}";
	       	$.ajax({ 
				type:"POST", 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/getInfo", 
				cache: false, 
				data:"id="+id,
			    async : false,  
				success:function(modelmap){
					var djlx = modelmap.djlx;
					if(djlx == '214' || djlx == '215' || djlx == '515' || djlx == '317' || djlx == '424' 
			       		|| djlx == '318' || djlx == '608' || djlx == '433'  || djlx == '433' || djlx == '426'){
			       		var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regHousesCardxf?ywh="+ywh+"&id="+id;
			       	}else if(djlx == '213' || djlx == '509' || djlx == '316' || djlx == '606' || djlx == '431' 
			       		|| djlx == '427' || djlx == '428'){
				    	var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regHousesCardzjgc?ywh="+ywh+"&id="+id;
			       	}else if(djlx == '804' || djlx == '807' || djlx== "510" || djlx == "513" 
			       		|| djlx == '818' || djlx == '432' || djlx == '607' || djlx == '423'){
				    	var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regHousesCardyg?ywh="+ywh+"&id="+id;
			       	}else if(djlx == '201' || djlx == '202' || djlx == '203' || djlx== "204" 
		       				|| djlx == '418' || djlx == "419" || djlx == '401' || djlx == '601'
			       			|| djlx == '405' || djlx == '602' || djlx == '406' || djlx == '407' ){
				    	var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regTdCardsc?ywh="+ywh+"&id="+id;
			       	}else if(djlx == '209' || djlx == '507' || djlx == '315' || djlx == '605' || djlx == '430'){
				    	var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regTdCarddy?ywh="+ywh+"&id="+id;
			       	}else if(djlx== "806" || djlx == "302" 
			       			|| djlx == "811" || djlx == "812" || djlx == "810" || djlx == "609" 
			       			|| djlx == "416" || djlx == "809" || djlx == "819" || djlx == "422" 
			       			|| djlx == '905' || djlx == '906' || djlx == "703" || djlx == "704" 
			       			|| djlx == '512' || djlx == '305' || djlx == "306" || djlx == "307" 
			       			|| djlx == '901' || djlx == '904' || djlx == "701" || djlx == "702"
			       			|| djlx == "905" || djlx == "906" || djlx == "907" || djlx == "908"){
			       		var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/ygzyregHousesInfoView?id="+id;
			       	}else if(djlx == '803' || djlx == '207' || djlx == '511' || djlx == '505' 
			       			|| djlx == '403' || djlx == '404' || djlx == '402' || djlx == '604'){
			       		var url = "${ctx}/reg/bus/regBusBdcqzsdjxx/regHousesInfoView?id="+id;
			       	}
				    window.open(url, "lpxxwindow", "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 openFeePrint(){
			//收费缴费单凭证获取数据
			
			var iWidth=600;
	       	var iHeight=200;
	       	var iTop = (window.screen.height - 30 - iHeight) / 2;
	       	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	       	
	        //点击打印之前,检查缮证入口是否维护 
			$.ajax({ 
				type:"POST",
				url:"${ctx}/reg/bus/regBusSf/isnotsfed", 
				cache: false,
				data:"YWH=${regBusBdcqzsdjxx.ywh}",
			    async : false,
				success:function(modelmap){
					var isnotsfed = modelmap.data;
					if(isnotsfed == "0"){
						alert("没有收费维护,请先维护收费信息再打印!");
						return;
					}else{
				       	var url =  "${ctx}/reg/bus/regBusSf/printView?ywh=${regBusBdcqzsdjxx.ywh}";
				       	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>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">业务历史详细入口</a></li>
	</ul><br/>
	<form:form class="form-horizontal" modelAttribute="regBusBdcqzsdjxx">
			<fieldset>
				<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>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>
								${regBusBdcqzsdjxx.ywh}
							</td>
							<td>
								${regBusBdcqzsdjxx.bdcqzh}
							</td>
							<td>
								${regBusBdcqzsdjxx.djlx}
							</td>
							<td>
								${regBusBdcqzsdjxx.qlrmc}
							</td>
							<td>
								${isfz}
							</td>
							
							<td>
							<c:choose>
							 
								<c:when test="${fn:contains(regBusBdcqzsdjxx.ywh,'L')}">
								${regBusBdcqzsdjxx.fzsj}
								</c:when>
								 <c:otherwise>
								<fmt:formatDate value="${regBusBdcqzsdjxx.createDate}" pattern="yyyy-MM-dd"/>
								</c:otherwise>
								
								</c:choose>
							</td>
							<td>
								${regBusBdcqzsdjxx.fzsj}
							</td>
							<td>
								${regBusBdcqzsdjxx.creater}
							</td>
						</tr>
					</tbody>
				</table>
			</fieldset>
		<sys:message content="${message}"/>
		<div align="center">
			<button type="button" class="btn btn-primary" onclick="winOpenBdcdjxx();">业务详细单</button>
			<button type="button" class="btn btn-primary" onclick="openPrintSlsqView();">受理申请单</button>
			<button type="button" class="btn btn-primary" onclick="openPrintView();">受理通知单</button>
			<button type="button" class="btn btn-primary"  onclick="openFeePrint();">收费票据</button>
			<button type="button" class="btn btn-primary" onclick="printHousejfView();">缴费单</button>
			<button type="button" class="btn btn-primary" onclick="printRegbooksView();">登记薄</button>
			<c:if test="${FwOrTd eq 'W'}">
				<button type="button" class="btn btn-warning" onclick="openGroundView();">宗地</button>
			</c:if>
			<c:if test="${FwOrTd eq 'F'}">
				<button type="button" class="btn btn-info" onclick="openHouseView();">楼盘</button>
			</c:if>
			<c:if test="${zhcx eq '1'}">
				<input id="btnCancel" class="btn" type="button" value="关闭" onclick="window.close()"/>
			</c:if>
			<c:if test="${zhcx ne '1'}">
				<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
			</c:if>
		</div>
		<c:if test="${not empty ProcInsId}">
			<act:histoicFlow procInsId="${ProcInsId}" />
		</c:if>
	</form:form>
</body>
</html>