acceptNotice.jsp 13.2 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 language="javascript" src="${ctxStatic}/lodop/LodopFuncs.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctxStatic}/jquery/jquery-1.9.1.min.js"></script>  
    <script type="text/javascript" src="${ctxStatic}/jquery/qrcode.js"></script>  
	<object id="LODOP_OB"  classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA"  width=0  height=0>
		<embed id="LODOP_EM"  type="application/x-print-lodop"  width=0  height=0></embed>
	</object>
	<script type="text/javascript">
		$(document).ready(function() {});
	</script>
	<script type="text/javascript">
	
		var LODOP; //声明为全局变量
		
		//直接打印
		function print() {		
			createPrintPage();
			LODOP.PRINT();	
		};  
		
		//选择打印机
		function printA() {		
			createPrintPage();
			LODOP.PRINTA();		
		};  	
		
		//打印预览
		function preview() {
			createPrintPage();
			LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",1);
			LODOP.PREVIEW();	
		};		
		
		//打印维护
		function setup() {		
			createPrintPage();
			LODOP.PRINT_SETUP();		
		};	
		
		//打印设计
		function design() {		
			createPrintPage();
			LODOP.PRINT_DESIGN();		
		};	
		
		//创建打印数据
		function createPrintPage() {
			//生成二维码
			var info="${YWH}";
			var content = utf16to8(info); 
			var qr = qrcode(7, 'M');  
			qr.addData(content);  
			qr.make();  
			
			LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
	        LODOP.PRINT_INIT("不动产登记受理通知单");
	        LODOP.PRINT_INITA(0,-20,900,800,"套打登记受理通知单的模板");
	        LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4");
	        LODOP.ADD_PRINT_TEXT(20, 240, 500, 30, "不动产登记受理通知单")
	        LODOP.SET_PRINT_STYLEA(1, "ItemType", 1);
	        LODOP.SET_PRINT_STYLEA(1, "FontSize", 20);
	        LODOP.ADD_PRINT_TEXT(71,160,70,20,"登记种类:");
	        LODOP.ADD_PRINT_TEXT(128,160,70,20,"业务细类:");
	        LODOP.ADD_PRINT_TEXT(100,160,70,20,"业务编号:");
	        LODOP.ADD_PRINT_TEXT(71,230,85,20,"${DJDL}");//登记大类
	        LODOP.ADD_PRINT_TEXT(128,230,195,20,"${DJXL}");//登记小类
	        LODOP.ADD_PRINT_TEXT(100,230,100,20,"${YWH}");//业务编号
	        LODOP.ADD_PRINT_IMAGE(41,580,110,110,qr.createImgTag());//二维码
	        LODOP.ADD_PRINT_TABLE(160, 65, 900, 800, $("#printsltzdiv").html());
		}
		
		function closeWin(){
			window.close();
		}
		
		function utf16to8(str) {  
            var out, i, len, c;  
            out = "";  
            len = str.length;  
            for (i = 0; i < len; i++) {  
                c = str.charCodeAt(i);  
                if ((c >= 0x0001) && (c <= 0x007F)) {  
                    out += str.charAt(i);  
                } else if (c > 0x07FF) {  
                    out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F));  
                    out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F));  
                    out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F));  
                } else {  
                    out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F));  
                    out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F));  
                }  
            }  
            return out;  
        }  
       
// 		function erweima()
// 		{
// 			//参数1表示图像大小,取值范围1-10;参数2表示质量,取值范围'L','M','Q','H'
// 			var IP = "http://www.hzbdcdj.com";
// 			var info="YWH=${YWH}&IP="+IP;
// 			var content = utf16to8(info); 
// 			var qr = qrcode(8, 'M');  
// 			qr.addData(content);  
// 			qr.make();  
// 			$("#qrcode").html(qr.createImgTag());   
// 		}
	</script>
</head>
<body>
	<div class="control-group"  align="center">
		<fieldset>
			<legend><div align="center" style="font-size:14px;font-weight: bold">${DJXL}</div></legend>
			<table width="400" border="1" cellpadding="3" cellspacing="0" style="font-family:宋体">
				<tr>
				    <td height="25"><div align="center">业务号</div></td>
				    <td height="25" colspan="3">&nbsp;${YWH}</td>
				  </tr>
				  <tr>
				    <td height="25"><div align="center">申请人</div></td>
				    <td height="25" colspan="3">&nbsp;${TZRXM}</td>
				  </tr>
				  <tr>
				    <td height="25"><div align="center">受托人</div></td>
				    <td height="25" >&nbsp;${STR}</td>
				    <td height="25"><div align="center">联系电话</div></td>
				    <td height="25">&nbsp;${TZRYDDH}</td>
				  </tr>
				  <tr>
				    <td height="28"><div align="center">受理日期</div></td>
				    <td height="28" colspan="3">&nbsp;
				    	${SLSJ}
				    </td>
				  </tr>
			</table> 
		</fieldset>
	</div>
	<div class="control-group"  style="height: 25px;padding-top: 5px" align="center">
		<input id="btnClose" class="btn btn-primary"  type="button"  onclick="closeWin();"  value="关闭"/>
		<input id="btnPreview" class="btn btn-primary"  type="button"  onclick="preview();"  value="打印预览"/>
		<input id="btnPrint" class="btn btn-primary"  type="button"  onclick="print();"  value="打印"/>
	</div>
	
	<div id="printsltzdiv"  style="display: none">
			<table width="700" border="1" cellpadding="3" cellspacing="0" style="font-family:宋体">
			  <tr>
			    <td width="180" height="25"><div align="center">申请人</div></td>
			    <td height="25" colspan="4">&nbsp;${TZRXM}</td>
			  </tr>
			  <tr>
			    <td height="25"><div align="center">坐落</div></td>
			    <td height="25" colspan="4">&nbsp;${ZL}</td>
			  </tr>
			  <tr>
			    <td height="25"><div align="center">受托人</div></td>
			    <td height="25" colspan="2">&nbsp;${STR}</td>
			    <td width="160" height="25"><div align="center">联系电话</div></td>
			    <td width="170" height="25">&nbsp;${TZRYDDH}</td>
			  </tr>
			  <tr>
			    <td height="25" colspan="5"><div align="center">受理情况</div></td>
			  </tr>
			  <tr>
			    <td height="25" colspan="5"> 已受理申请人提交材料 ${SJSL} 件;其中原件${YJSL}件。材料清单如下:</td>
			  </tr>
			  <tr>
			    <td height="25"><div align="center">序号</div></td>
			    <td height="25" colspan="2"><div align="center">证件名称</div></td>
			    <td height="25"><div align="center">证件类别</div></td>
			    <td height="25"><div align="center">份数</div></td>
			  </tr>
			  <c:forEach items="${regBusSjlist}" var="regBusSj" varStatus="currentSj">
			      <tr>
	                    <td height="25"><div align="center">${currentSj.index + 1 }</div></td>
	                    <c:if test="${DJLXCODE ne '207' and DJLXCODE ne '209' and DJLXCODE ne '213' and DJLXCODE ne '214' and DJLXCODE ne '215'  and DJLXCODE ne '220'
									 and  DJLXCODE ne '302' and  DJLXCODE ne '509' and DJLXCODE ne '510' and  DJLXCODE ne '513' and DJLXCODE ne '515'
									 and  DJLXCODE ne '402' and  DJLXCODE ne '403' and  DJLXCODE ne '404' and  DJLXCODE ne '416' and  DJLXCODE ne '429'
									 and  DJLXCODE ne '604' and  DJLXCODE ne '305' and  DJLXCODE ne '306' and  DJLXCODE ne '307' and  DJLXCODE ne '433'
									 and DJLXCODE ne '803' and DJLXCODE ne '804' and  DJLXCODE ne '806' and DJLXCODE ne '807' and  DJLXCODE ne '608'
						   			 and  DJLXCODE ne '905' and  DJLXCODE ne '901' and  DJLXCODE ne '904' and  DJLXCODE ne '907' and DJLXCODE ne '810' 
						   			 and DJLXCODE ne '811' and DJLXCODE ne '812' and DJLXCODE ne '609' and DJLXCODE ne '1003' and  DJLXCODE ne '1004' 
						   			 and  DJLXCODE ne '512' and DJLXCODE ne '432' and  DJLXCODE ne '607' and  DJLXCODE ne '818' and  DJLXCODE ne '507' 
						   			 and  DJLXCODE ne '511' and DJLXCODE ne '430' and  DJLXCODE ne '315' and  DJLXCODE ne '605' and  DJLXCODE ne '427' 
						   			 and  DJLXCODE ne '428' and DJLXCODE ne '606' and  DJLXCODE ne '316' and  DJLXCODE ne '605' and  DJLXCODE ne '427' }">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_sjmc', '')}</td>
					    </c:if>
					  	<c:if test="${DJLXCODE eq '207'}">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_cs', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '416'}">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_bg_sjmc', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '512' or DJLXCODE eq '511'}">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ygzx', '')}</td>
						</c:if>
					  	<c:if test="${DJLXCODE eq '209' or DJLXCODE eq '430' or DJLXCODE eq '315' or DJLXCODE eq '605'}">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_tdsjmc_tddy', '')}</td>
						</c:if>
					  	<c:if test="${DJLXCODE eq '507'}">
					  		<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_tdsjmc_tddyzx', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '213' or DJLXCODE eq '427' or DJLXCODE eq '428' or DJLXCODE eq '431'
							 or DJLXCODE eq '606' or DJLXCODE eq '316'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_zjgc', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '302'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_zy', '')}</td>
						</c:if> 
						<c:if test="${DJLXCODE eq '1003' or DJLXCODE eq '1004'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_bhz', '')}</td>
						</c:if> 
						<c:if test="${DJLXCODE eq '905' or DJLXCODE eq '901' or DJLXCODE eq '907' or DJLXCODE eq '904'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_cf', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '305'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_tdsjmc_gyjssyqzy', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '306'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_tdsjmc_jtjssyqzy', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '307'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_tdsjmc_zjdsyqzy', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '604'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_gz', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '803'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ygyg', '')}</td>
						</c:if> 
						<c:if test="${DJLXCODE eq '804' or DJLXCODE eq '807' or DJLXCODE eq '432' or DJLXCODE eq '607' or DJLXCODE eq '818'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ygdyyg', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '806'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_zyyg', '')}</td>
						</c:if> 
						<c:if test="${DJLXCODE eq '214' or DJLXCODE eq '215' or DJLXCODE eq '433' or DJLXCODE eq '608'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ybzgedy', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '509' or DJLXCODE eq '510' or DJLXCODE eq '513' or DJLXCODE eq '515'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_dyzx', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '402' or DJLXCODE eq '403' or DJLXCODE eq '404'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_fwjzwsyqbg', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '429'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_qzxbg_sjmc', '')}</td>
						</c:if>
						<c:if test="${DJLXCODE eq '810'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ygfg', '')}</td>
						</c:if>
							<c:if test="${DJLXCODE eq '811'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_yghb', '')}</td>
						</c:if>
							<c:if test="${DJLXCODE eq '812' or DJLXCODE eq '609'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_ygbg', '')}</td>
						</c:if>
							<c:if test="${DJLXCODE eq '220'}">
							<td height="25" colspan="2">${fns:getDictLabel(regBusSj.sjmc, 'reg_bus_fwsjmc_cs', '')}</td>
						</c:if>
					  <td height="25">${fns:getDictLabel(regBusSj.sjlx, 'reg_bus_sjlxyf', '')}</td>
					  <td height="25"><div align="center">${regBusSj.sjsl }</div></td>
				  </tr>
			  </c:forEach>
			  <tr>
			    <td height="40"><div align="center">申请人(签字)</div></td>
			    <td width="255" height="40">&nbsp;</td>
			    <td width="180"><div align="center">受理人(签字)</div></td>
			    <td height="40" colspan="2">&nbsp;${SLRMC}</td>
			  </tr>
			  <tr>
			    <td height="28"><div align="center">受理日期</div></td>
			    <td height="28" colspan="4">&nbsp;
			    	${SLSJ}
			    </td>
			  </tr>
			  <tr>
			    <td height="100"><div align="center">告知内容</div></td>
			    <td height="100" colspan="4"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    	请于&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    	日后,由领证人持有有效身份证件和本受理通知单,缴费后领取证书(证明)。 </td>
			  </tr>
			</table>
		</div>
</body>
</html>