printViewFssrsk.jsp 14.7 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>
<style type="text/css">
.tableid {
	height: 250;
	width: 565;
}
</style>
<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 sqhs = '${sqhs}';
		var gbhs = '${gyrsl}';
		var zzsl = '${zzsl}';
		var fzzsl = '${fzzsl}';
		var jbzzsl = '${jbzzsl}';
		var jbfzzsl = '${jbfzzsl}';
		var gyrsl = '${gyrsl}';
		
		LODOP = getLodop(document.getElementById('LODOP_OB'), document
				.getElementById('LODOP_EM'));
		LODOP.PRINT_INIT("非税收入收款");
		LODOP.PRINT_INITA(0, 0, '182mm', '105mm', "陕西省政府非税收入收款票据");
		LODOP.SET_PRINT_PAGESIZE(1, '182mm', '120mm', 1);
		
		LODOP.ADD_PRINT_TEXT('102mm', '110mm', 160, 20, "${sfry}");
		LODOP.SET_PRINT_STYLEA("ItemType", 1);
		LODOP.SET_PRINT_STYLEA(1, "FontSize", 11);

		LODOP.ADD_PRINT_TEXT('27mm', '14mm', 200, 20, "${QLRMC}");//权利人名称
		LODOP.SET_PRINT_STYLEA("ItemType", 2);
		LODOP.SET_PRINT_STYLEA(2, "FontSize", 11);
		
		LODOP.ADD_PRINT_TEXT('48mm', '14mm', 120, 20, "${zsxm0}");	
		LODOP.SET_PRINT_STYLEA("ItemType", 3);
		LODOP.SET_PRINT_STYLEA(3, "FontSize", 11);
		
		LODOP.ADD_PRINT_TEXT('48mm', '64mm', 30, 20, "${shuliang0}");	//登记费(住宅)数量
		LODOP.SET_PRINT_STYLEA("ItemType", 4);
		LODOP.SET_PRINT_STYLEA(4, "FontSize", 11);
		
		LODOP.ADD_PRINT_TEXT('48mm', '81mm', 30, 20, "${danwei0}");	//登记费(住宅)单位
		LODOP.SET_PRINT_STYLEA("ItemType", 5);
		LODOP.SET_PRINT_STYLEA(5, "FontSize", 11);
			
		LODOP.ADD_PRINT_TEXT('48mm', '97mm', 30, 20,"${danjia0}"); //登记费(住宅)单价
		LODOP.SET_PRINT_STYLEA("ItemType", 6);
		LODOP.SET_PRINT_STYLEA(6, "FontSize", 11);
			
		LODOP.ADD_PRINT_TEXT('48mm', '103mm', 166, 20,"${jine0}"); //登记费(住宅)金额
		LODOP.SET_PRINT_STYLEA("ItemType", 7);
		LODOP.SET_PRINT_STYLEA(7, "FontSize", 11);
		LODOP.SET_PRINT_STYLEA(7, "LetterSpacing", 9.5);  //文字间距
		LODOP.SET_PRINT_STYLEA(7, "Alignment", 3);			//右对齐
		
		
			LODOP.ADD_PRINT_TEXT('58mm', '14mm', 120, 20, "${zsxm1}");	//
			LODOP.SET_PRINT_STYLEA("ItemType", 8);
			LODOP.SET_PRINT_STYLEA(8, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('58mm', '64mm', 30, 20, "${shuliang1}");	//登记费(住宅)数量   
			LODOP.SET_PRINT_STYLEA("ItemType", 9);
			LODOP.SET_PRINT_STYLEA(9, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('58mm', '81mm', 30, 20, "${danwei1}");	//登记费(住宅)单位 
			LODOP.SET_PRINT_STYLEA("ItemType",10);
			LODOP.SET_PRINT_STYLEA(10, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('58mm', '97mm', 30, 20,"${danjia1}"); //登记费(住宅)单价	
			LODOP.SET_PRINT_STYLEA("ItemType", 11);
			LODOP.SET_PRINT_STYLEA(11, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('58mm', '103mm', 166, 20,"${jine1}"); //登记费(住宅)金额	
			LODOP.SET_PRINT_STYLEA("ItemType", 12);
			LODOP.SET_PRINT_STYLEA(12, "FontSize", 11);
			LODOP.SET_PRINT_STYLEA(12, "LetterSpacing", 9.5);  //文字间距
			LODOP.SET_PRINT_STYLEA(12, "Alignment", 3);			//右对齐
			
			//3
			LODOP.ADD_PRINT_TEXT('67mm', '14mm', 120, 20, "${zsxm2}");		//
			LODOP.SET_PRINT_STYLEA("ItemType", 13);
			LODOP.SET_PRINT_STYLEA(13, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('67mm', '64mm', 30, 20, "${shuliang2}");	//登记费(住宅)数量 
			LODOP.SET_PRINT_STYLEA("ItemType", 14);
			LODOP.SET_PRINT_STYLEA(14, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('67mm', '81mm', 30, 20, "${danwei2}");	//登记费(住宅)单位 
			LODOP.SET_PRINT_STYLEA("ItemType", 15);
			LODOP.SET_PRINT_STYLEA(15, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('67mm', '97mm', 30, 20," ${danjia2}"); //登记费(住宅)单价
			LODOP.SET_PRINT_STYLEA("ItemType", 16);
			LODOP.SET_PRINT_STYLEA(16, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('67mm', '103mm', 166, 20,"${jine2}"); //登记费(住宅)金额 
			LODOP.SET_PRINT_STYLEA("ItemType", 17);
			LODOP.SET_PRINT_STYLEA(17, "FontSize", 11);
			LODOP.SET_PRINT_STYLEA(17, "LetterSpacing", 9.5);  //文字间距
			LODOP.SET_PRINT_STYLEA(17, "Alignment", 3);			//右对齐
		
			//4
			LODOP.ADD_PRINT_TEXT('75mm', '14mm', 120, 20, "${zsxm3}");	//
			LODOP.SET_PRINT_STYLEA("ItemType", 18);
			LODOP.SET_PRINT_STYLEA(18, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('75mm', '64mm', 30, 20, "${shuliang3}");	//登记费(住宅)数量  
			LODOP.SET_PRINT_STYLEA("ItemType", 19);
			LODOP.SET_PRINT_STYLEA(19, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('75mm', '81mm', 30, 20, "${danwei3}");	//登记费(住宅)单位  
			LODOP.SET_PRINT_STYLEA("ItemType", 20);
			LODOP.SET_PRINT_STYLEA(20, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('75mm', '97mm', 30, 20," ${danjia3}"); //登记费(住宅)单价 
			LODOP.SET_PRINT_STYLEA("ItemType", 21);
			LODOP.SET_PRINT_STYLEA(21, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('75mm', '103mm', 166, 20," ${jine3}"); //登记费(住宅)金额 
			LODOP.SET_PRINT_STYLEA("ItemType", 22);
			LODOP.SET_PRINT_STYLEA(22, "FontSize", 11);
			LODOP.SET_PRINT_STYLEA(22, "LetterSpacing", 9.5);  //文字间距
			LODOP.SET_PRINT_STYLEA(22, "Alignment", 3);			//右对齐
			
			//5
			LODOP.ADD_PRINT_TEXT('83mm', '14mm', 120, 20, "${zsxm4}");	//  
			LODOP.SET_PRINT_STYLEA("ItemType", 23);
			LODOP.SET_PRINT_STYLEA(23, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('83mm', '64mm', 30, 20, "${shuliang4}");	//登记费(住宅)数量 
			LODOP.SET_PRINT_STYLEA("ItemType", 24);
			LODOP.SET_PRINT_STYLEA(24, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('83mm', '81mm', 30, 20, " ${danwei4}");	//登记费(住宅)单位
			LODOP.SET_PRINT_STYLEA("ItemType", 25);
			LODOP.SET_PRINT_STYLEA(25, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('83mm', '97mm', 30, 20,"${danjia4}"); //登记费(住宅)单价  
			LODOP.SET_PRINT_STYLEA("ItemType", 26); 
			LODOP.SET_PRINT_STYLEA(26, "FontSize", 11);
				
			LODOP.ADD_PRINT_TEXT('83mm', '103mm', 166, 20,"${jine4}"); //登记费(住宅)金额  
			LODOP.SET_PRINT_STYLEA("ItemType", 27);
			LODOP.SET_PRINT_STYLEA(27, "FontSize", 11);
			LODOP.SET_PRINT_STYLEA(27, "LetterSpacing", 9.5);  //文字间距
			LODOP.SET_PRINT_STYLEA(27, "Alignment", 3);			//右对齐
			
			LODOP.ADD_PRINT_TEXT('93mm', '30mm', 418, 20,"${DXhjje}"); //大写合计金额  
			LODOP.SET_PRINT_STYLEA("ItemType", 28);
			LODOP.SET_PRINT_STYLEA(28, "FontSize", 11);
			LODOP.SET_PRINT_STYLEA(28, "LetterSpacing", 32);  //文字间距
			LODOP.SET_PRINT_STYLEA(28, "Alignment", 3);			//右对齐
			
			LODOP.ADD_PRINT_TEXT('27mm', '58mm', 70, 20, "${year}");
			LODOP.SET_PRINT_STYLEA("ItemType", 29);
			LODOP.SET_PRINT_STYLEA(29, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('27mm', '74mm', 70, 20, "${month}");
			LODOP.SET_PRINT_STYLEA("ItemType", 30);
			LODOP.SET_PRINT_STYLEA(30, "FontSize", 11);
			
			LODOP.ADD_PRINT_TEXT('27mm', '85mm', 70, 20, "${day}");
			LODOP.SET_PRINT_STYLEA("ItemType", 31);
			LODOP.SET_PRINT_STYLEA(31, "FontSize", 11);
			
		LODOP.ADD_PRINT_TABLE('26mm', '16.5mm', 900, 800, $("#fssrsk").html());
	}

	function closeWin() {
		window.close();
	}
</script>
</head>
<body>

	<div class="control-group" align="center">
		<fieldset>
			<div class="underline" align="center"
				style="font-size: 30px; font-weight: bold" style="font-family:宋体";>
				陕西省政府非税收入收款票据</div>
			</br> </br> </br>
			<div
				style="font-family: 宋体; left: 110px; position: absolute; top: 80px; font-size: 18px;">付款单位:</div>
			<div
				style="font-family: 宋体; left: 200px; position: absolute; top: 80px; font-size: 18px;"><!-- 付款单位: -->${QLRMC}</div>
			<div
				style="font-family: 宋体; left: 550px; position: absolute; top: 80px; font-size: 18px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
			<div
				style="font-family: 宋体; left: 500px; position: absolute; top: 80px; font-size: 18px;">${year }</div>
				<div
				style="font-family: 宋体; left: 590px; position: absolute; top: 80px; font-size: 18px;">${month }</div>
				<div
				style="font-family: 宋体; left: 660px; position: absolute; top: 80px; font-size: 18px;">${day}</div>
			<table width="800" border="1" cellpadding="3" cellspacing="0"
				style="font-family: 宋体">

				<tr>
					<td rowspan="2"><div style="font-size: 18px;" align="center">征收项目</div></td>
					<td rowspan="2"><div style="font-size: 18px;" align="center">数量</div></td>
					<td rowspan="2"><div style="font-size: 18px;" align="center">单位</div></td>
					<td rowspan="2"><div style="font-size: 18px;" align="center">单价</div></td>
					<td colspan="8"><div style="font-size: 18px;" align="center">金额</div></td>
				</tr>
				<tr>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
					<td><div style="font-size: 18px;" align="center"></div></td>
				</tr>
				<%-- <c:if test="${not empty zzsl or not empty jbzzsl or not empty fzzsl or not empty jbfzzsl or not empty gyrsl}"> --%>
					<tr>
						<td width="233" height="25"><div style="font-size: 18px;"
								align="center">${zsxm0}</div></td>
						<td width="116" height="25"><div style="font-size: 18px;"
								align="center">${shuliang0}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danwei0 }</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danjia0 }</div></td>
						<td colspan="8"><div style="font-size: 18px; letter-spacing: 14px"
								align="right" >${jine0 }</div></td>
					</tr>
					
				<%-- </c:if>
				<c:if test="${ not empty jbzzsl or not empty fzzsl or not empty jbfzzsl or not empty gyrsl}"> --%>
					<tr>
						<td width="233" height="25"><div style="font-size: 18px;"
								align="center">${zsxm1}</div></td>
						<td width="116" height="25"><div style="font-size: 18px;"
								align="center">${shuliang1}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danwei1}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danjia1}</div></td>
						<td colspan="8"><div style="font-size: 18px; letter-spacing: 14px"
								align="right" >${jine1}</div></td>
					</tr>
				<%-- </c:if>
				<c:if test="${ not empty fzzsl or not empty jbfzzsl or not empty gyrsl}"> --%>
					<tr>
						<td width="233" height="25"><div style="font-size: 18px;"
								align="center">${zsxm2}</div></td>
						<td width="116" height="25"><div style="font-size: 18px;"
								align="center">${shuliang2}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danwei2}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danjia2}</div></td>
						<td colspan="8"><div style="font-size: 18px; letter-spacing: 14px"
								align="right" >${jine2}</div></td>
					</tr>
			<%-- 	</c:if>
				<c:if test="${ not empty jbfzzsl or not empty gyrsl}"> --%>
					<tr>
						<td width="233" height="25"><div style="font-size: 18px;"
								align="center">${zsxm3}</div></td>
						<td width="116" height="25"><div style="font-size: 18px;"
								align="center">${shuliang3}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danwei3}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danjia3}</div></td>
						<td colspan="8"><div style="font-size: 18px; letter-spacing: 14px"
								align="right" >${jine3}</div></td>
					</tr>
		<%-- 		</c:if>
				<c:if test="${not empty gyrsl}"> --%>
					<tr>
						<td width="233" height="25"><div style="font-size: 18px;"
								align="center">${zsxm4}</div></td>
						<td width="116" height="25"><div style="font-size: 18px;"
								align="center">${shuliang4}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danwei4}</div></td>
						<td width="106" height="25"><div style="font-size: 18px;"
								align="center">${danjia4}</div></td>
						<td colspan="8"><div style="font-size: 18px; letter-spacing: 14px"
								align="right" >${jine4}</div></td>
						
					</tr>
				
				<tr>
					<td height="40"><div style="font-size: 18px;" align="center">总计金额(大写)</div></td>
					<td colspan="11" width="255" height="40" ><div
							style="font-size: 18px;letter-spacing: 30px" align="right">${dxhjje }</div></td>
				</tr>
			</table>
			<div
				style="font-family: 宋体; left: 115px; position: absolute; top: 370px; font-size: 18px;">执收单位(盖章):</div>
			<div
				style="font-family: 宋体; left: 600px; position: absolute; top: 370px; font-size: 18px;">收款人:</div>
				<div
				style="font-family: 宋体; left: 680px; position: absolute; top: 370px; font-size: 18px;">${sfry}</div>
		</fieldset>
	</div>

	</br>
	</br>

	<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="design();" value="打印设计" />
		<input id="btnPrint" class="btn btn-primary" type="button" onclick="print();" value="打印" />
		
	</div>

</body>
</html>