lodopindex.jsp 3.66 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
	<head>
		<title>index.html</title>
		<meta name="decorator" content="default"/>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<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>
		<link rel="stylesheet" style="text/css" href="${ctxStatic}/modules/reg/css/regcss.css"></script>
	</head>

	<body>
		<div class="control-group">
			<label class="control-label">选择要素代码:</label>
			<div class="controls">
				<sys:treeselect id="parent" checked="true" name="parent.id" value="${regBaseElementCode.parent.id}" labelName="parent.name" labelValue="${regBaseElementCode.parent.name}"
					title="父级编号" url="/reg/base/regBaseElementCode/treeData" extId="${regBaseElementCode.id}"
					cssClass="input-small" allowClear="true" notAllowSelectParent="true" />
			</div>
		</div>
		<script language="javascript">
			var LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
		</script>
		<br>
		<button type="button" onclick="design()">
			设计模板
		</button>
		    
		<button type="button" onclick="view()">
			打印预览
		</button>
		<br>
		<textarea id="templateCode" cols="100" rows="30" style="background-color: #fff;"></textarea>
	</body>
	<script type="text/javascript">
	function view() {
		init();
		LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",1);
		LODOP.PREVIEW();
	}
	function design() {
		init();
		document.getElementById('templateCode').value=LODOP.PRINT_DESIGN();
	}

	function init() {
		LODOP.PRINT_INIT("打印不动产登记证书");
		LODOP.PRINT_INITA(14,11,980,696,"套打EMS的模板");
		LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/bdcdjzs.jpg'>");
		LODOP.SET_PRINT_STYLE("FontSize",11);
		LODOP.ADD_PRINT_TEXT(580,252,140,25,"00123456789");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
		LODOP.ADD_PRINT_TEXT(94,801,75,20,"00000213");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.ADD_PRINT_TEXT(95,552,52,24,"汉中");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
		LODOP.ADD_PRINT_TEXT(93,612,84,28,"土地房屋");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
		LODOP.ADD_PRINT_TEXT(139,658,217,28,"国有建设用地");
		LODOP.ADD_PRINT_TEXT(179,659,217,28,"刘德华");
		LODOP.ADD_PRINT_TEXT(219,659,217,28,"胡歌");
		LODOP.ADD_PRINT_TEXT(262,660,217,28,"汉中市阳光小区2栋13楼1002室");
		LODOP.ADD_PRINT_TEXT(302,660,217,28,"WHZ_0000000002121");
		LODOP.ADD_PRINT_TEXT(341,660,217,121,"汉中市不动产登记信息平台即将上线");
		LODOP.ADD_PRINT_TEXT(488,661,219,99,"汉中市不动产登记信息平台即将上线;汉中市不动产登记信息平台即将上线;尽情关注!");
		LODOP.ADD_PRINT_TEXT(471,273,45,25,"2015");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(471,336,25,25,"10");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(471,381,20,25,"1");
		LODOP.SET_PRINT_STYLEA(0,"FontName","楷体");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	}
</script>
</html>