b795d61cc7e1c19cb3db8d5e0e2078f8e0c0dd4a.svn-base 15.1 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>
	<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">
		var mapinfo;
		$(document).ready(function() {
			 $("tbody > tr").bind("click",function(){
					$(this).find('input:radio').prop('checked', true);
					var ywh = $("input[name='radio_szxx']:checked").parent().next().text().trim();
					var ysxlh = $("input[name='radio_szxx']:checked").parent().next().next().next().next().next().next().next().next().text().trim();
					$.ajax({ 
						type:"POST", //请求方式 
						url:"${ctx}/reg/bus/regBusSz/getPrintJcbData", //请求路径 
						data:{"ywh":ywh,"ysxlh":ysxlh},
			            datatype:"json",
						success:function(modelmap){
							mapinfo = modelmap.data;
						},
						error:function(modelmap){
		                	alert("初始化失败!");
		                }
					});
				 })
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		var LODOP; //声明为全局变量
		var LODOP1;
		var LODOP2;
		
		function closeWin(){
			window.close();
		}
		
		function deleteszxx(){
			if(confirm("确定要删除此业务缮证信息?")){
				var bhs="";
				var bhindex="";
				var trList = $("#contentTable").find("tr");
			    for (var i=1;i<trList.length;i++) {
			        var tdArr = trList.eq(i).find("td");
			        bhindex = tdArr.eq(8).text().trim();
					if(isNotNull(bhs)){
						bhs += ","+bhindex;
					}else{
						bhs = bhindex;
					}
			    }
				url = "${ctx}/reg/bus/regBusSz/jcbdelete?ywh=${ywh}&sqzsbs=${sqzsbs}&bhs="+bhs;
				window.location = url;
			}
		}
		
		function isNotNull(val){
		     if(val != null && val != 'null' && val != undefined && val != 'undefined' && val != ''){
		         return true ;
		     }
		     return false;
		}
		
		function view_zs(pageindex) {
			var szxxid = $("input[name='radio_szxx']:checked").val();
			if(szxxid == null){
				alert("请选择需要打印的缮证信息!");
				return;
			}
			if(pageindex==0){
				init_zs0();
			}else{
				init_zs1(pageindex);
			}
			LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",1);
			LODOP.PREVIEW();
		}
		
		function init_zs1(pageindex) {
			LODOP= getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
			LODOP.PRINT_INIT("打印不动产权证书内容页");
			LODOP.SET_PRINT_PAGESIZE(2, "910px", "1266px", "");
			if(pageindex==1){
				LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/jcb01.jpg'>");
				LODOP.ADD_PRINT_TEXT(135,216,383,31,mapinfo.qlr1);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(175,216,383,31,mapinfo.gyqk1);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				if(mapinfo.zl1.length <= 28){
					LODOP.ADD_PRINT_TEXT(225,216,383,45,mapinfo.zl1);
				}else if(mapinfo.zl1.length <= 56){
					LODOP.ADD_PRINT_TEXT(215,216,383,45,mapinfo.zl1);
				}else if(mapinfo.zl1.length <= 84){
					LODOP.ADD_PRINT_TEXT(205,216,383,45,mapinfo.zl1);
				}
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(255,216,383,31,mapinfo.qllx1);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(295,216,383,31,mapinfo.qlxz1);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(335,216,393,35,mapinfo.syqx1);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,90,383,31,mapinfo.bdcdyh11);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,230,383,31,mapinfo.yt11);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,360,383,31,mapinfo.mj11);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,430,383,31,mapinfo.bz11);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(460,90,383,31,mapinfo.bdcdyh12);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,230,383,31,mapinfo.yt12);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,360,383,31,mapinfo.mj12);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,430,383,31,mapinfo.bz12);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(500,90,383,31,mapinfo.bdcdyh13);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,230,383,31,mapinfo.yt13);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,360,383,31,mapinfo.mj13);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,430,383,31,mapinfo.bz13);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(540,90,383,31,mapinfo.bdcdyh14);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,230,383,31,mapinfo.yt14);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,360,383,31,mapinfo.mj14);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,430,383,31,mapinfo.bz14);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(860,370,53,25,mapinfo.yearStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,430,33,25,mapinfo.monthStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,470,33,25,mapinfo.dayStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			}else if(pageindex==2){
				LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/jcb02.jpg'>");
				LODOP.ADD_PRINT_TEXT(135,216,383,31,mapinfo.qlr2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(175,216,383,31,mapinfo.gyqk2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(215,216,383,45,mapinfo.zl2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(255,216,383,31,mapinfo.qllx2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(295,216,383,31,mapinfo.qlxz2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(335,216,393,35,mapinfo.syqx2);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,90,383,31,mapinfo.bdcdyh21);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,230,383,31,mapinfo.yt21);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,360,383,31,mapinfo.mj21);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,430,383,31,mapinfo.bz21);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(460,90,383,31,mapinfo.bdcdyh22);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,230,383,31,mapinfo.yt22);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,360,383,31,mapinfo.mj22);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,430,383,31,mapinfo.bz22);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(500,90,383,31,mapinfo.bdcdyh23);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,230,383,31,mapinfo.yt23);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,360,383,31,mapinfo.mj23);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,430,383,31,mapinfo.bz23);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(540,90,383,31,mapinfo.bdcdyh24);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,230,383,31,mapinfo.yt24);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,360,383,31,mapinfo.mj24);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,430,383,31,mapinfo.bz24);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(860,370,53,25,mapinfo.yearStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,430,33,25,mapinfo.monthStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,470,33,25,mapinfo.dayStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			}else{//=3
				LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/jcb03.jpg'>");
				LODOP.ADD_PRINT_TEXT(135,216,383,31,mapinfo.qlr3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(175,216,383,31,mapinfo.gyqk3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(215,216,383,45,mapinfo.zl3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(255,216,383,31,mapinfo.qllx3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(295,216,383,31,mapinfo.qlxz3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(335,216,393,35,mapinfo.syqx3);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,90,383,31,mapinfo.bdcdyh31);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,230,383,31,mapinfo.yt31);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,360,383,31,mapinfo.mj31);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(420,430,383,31,mapinfo.bz31);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(460,90,383,31,mapinfo.bdcdyh32);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,230,383,31,mapinfo.yt32);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,360,383,31,mapinfo.mj32);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(460,430,383,31,mapinfo.bz32);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(500,90,383,31,mapinfo.bdcdyh33);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,230,383,31,mapinfo.yt33);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,360,383,31,mapinfo.mj33);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(500,430,383,31,mapinfo.bz33);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(540,90,383,31,mapinfo.bdcdyh34);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,230,383,31,mapinfo.yt34);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,360,383,31,mapinfo.mj34);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.ADD_PRINT_TEXT(540,430,383,31,mapinfo.bz34);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				
				LODOP.ADD_PRINT_TEXT(860,370,53,25,mapinfo.yearStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,430,33,25,mapinfo.monthStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
				LODOP.ADD_PRINT_TEXT(860,470,33,25,mapinfo.dayStr);
				LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
				LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			}
			
		}
		
		function init_zs0() {
			LODOP= getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
			LODOP.PRINT_INIT("打印不动产权证书第一页");
			LODOP.SET_PRINT_PAGESIZE(2, "910px", "1266px", "");
			LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/jcb000.jpg'>");
			
			LODOP.ADD_PRINT_TEXT(53,747,38,25,"陕");
			LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
			LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			LODOP.ADD_PRINT_TEXT(53,805,64,25,mapinfo.zyear);
			LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
			LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			LODOP.ADD_PRINT_TEXT(53,870,90,25,mapinfo.qxdm);
			LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
			LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
			LODOP.ADD_PRINT_TEXT(53,1045,103,25,mapinfo.dh);
			LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
			LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
		}
	</script>
</head>
<body>
	
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reg/bus/regBusSz/list?ywh=${ywh}&sqzsbs=${sqzsbs}">缮证信息列表</a></li>
		<c:if test="${empty LISTVIEWS}">
		<c:if test="${ised ne '1'}">
			<shiro:hasPermission name="reg:bus:regBusSz:edit">  
			<li><a href="${ctx}/reg/bus/regBusSz/jcbform?ywh=${ywh}&YSDM=2002040100&sqzsbs=${sqzsbs}">缮证信息${not empty szid?'修改':'添加'}</a></li>
			</shiro:hasPermission>
		</c:if>
		</c:if>
	</ul>
	<sys:message content="${message}"/>
	<div class="control-group"  style="float:right;height: 25px;padding-top: 5px" >
		<input id="btnClose" class="btn btn-primary"  type="button"  onclick="closeWin();"  value="关闭"/>
		<c:if test="${ised eq '1'}">
		<input id="deletebtn" class="btn btn-primary"  type="button"  onclick="deleteszxx();"  value="删除 "/>
		<input id="btnPrintZs0" class="btn btn-primary"  type="button"  onclick="view_zs('0');"  value="不动产证号页【打印】"/>
		<input id="btnPrintZs1" class="btn btn-primary"  type="button"  onclick="view_zs('1');"  value="不动产权利(一)"/>
		<input id="btnPrintZs2" class="btn btn-primary"  type="button"  onclick="view_zs('2');"  value="不动产权利(二)"/>
		<input id="btnPrintZs3" class="btn btn-primary"  type="button"  onclick="view_zs('3');"  value="不动产权利(三)"/>
		</c:if>
	</div>
	
	<div class="control-group" align="center">
	
	<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>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="regBusSz">
			<tr>
				<td>
					<input type="radio" name="radio_szxx" value="${regBusSz.id}"/>
				</td>
				<td>
					${regBusSz.ywh}
				</td>
				<td>
					${fns:getDictLabel(regBusSz.szmc, 'reg_bus_szmc', '')}
				</td>
				<td>
					${fns:getDictLabel(regBusSz.isdz, 'yes_no', '')}
				</td>
				<td>
					${regBusSz.szzh}
				</td>
				<td>
					${regBusSz.szsl}
				</td>
				<td>
					${regBusSz.szry}
				</td>
				<td>
					${regBusSz.currmaxszbh}
				</td>
				<td>
					${regBusSz.ysxlh}
				</td>
				<td>
					<fmt:formatDate value="${regBusSz.szsj}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					<a href="${ctx}/reg/bus/regBusSz/reviseSzxx?ywh=${ywh}&sqzsbs=${sqzsbs}&ysxlh=${regBusSz.ysxlh}">修改</a>
				</td>
<%-- 				<c:if test="${empty LISTVIEWS}"> --%>
<%-- 				<shiro:hasPermission name="reg:bus:regBusSz:edit"><td> --%>
<!--     				<a href="#">打印</a> -->
<%-- 					<a href="${ctx}/reg/bus/regBusSz/delete?ywh=${ywh}" onclick="return confirmx('确认要删除该缮证信息吗?', this.href)">删除</a> --%>
<%-- 				</td></shiro:hasPermission> --%>
<%-- 				</c:if> --%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	</div>
	
</body>
</html>