📄 pa200808010111200.jsp
字号:
<%--
****************************************************************************
* DESC :发票打印(套打)页面
* Author : 国寿项目组
* CREATEDATE :2007-02-08
* MODIFYLIST : Name Date Reason/Contents
* xuning 20070918 发票打印(套打)页面
****************************************************************************
--%>
<%@page errorPage="/UIErrorPage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<OBJECT ID="DS_Printer" border=0
CLASSID = "CLSID:24DDA709-7162-4CAD-8575-5DB572479D32">
</Object>
<%@page import="com.sinosoft.utility.string.ChgData"%>
<%@page import="com.sinosoft.prpall.pubfun.*"%>
<jsp:directive.page import="com.sinosoft.visa.dto.custom.InvoicePrintDto"/>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="com.sinosoft.visa.dto.custom.RiskNameDto"/>
<jsp:directive.page import="com.sinosoft.visa.dto.custom.CertiNoDto"/>
<script language="Javascript" src="/payment/common/pub/Common.js" ></script>
<script language="Javascript" src="/payment/common/js/Common.js" ></script>
<script language="Javascript" src="/payment/common/pub/Process.js" ></script>
<script language="Javascript" src="/payment/common/pub/VisaDataDefine.js" ></script>
<script language="Javascript" src="/payment/common/pub/Application.js" ></script>
<script language="Javascript" src="/payment/common/pub/MulLine.js" ></script>
<script language="Javascript" src="/payment/common/pub/InputCode.js" ></script>
<script language="Javascript" src="/payment/common/pub/ShowPage.js" ></script>
<script language="Javascript" src="/payment/common/dtable/TableAct.js" ></script>
<script src="/payment/sff/pub/SffCommon.js"></script>
<%-- 初始化 --%>
<%@include file="visaprintini.jsp"%>
<html>
<head>
<title>保费发票打印</title>
</head>
<body leftmargin=0 topmargin=0 "style="font-family:宋体; font-size:9pt;">
<form name=fm>
<%
List iCertiNoList = new ArrayList();
List iRiskNameList = new ArrayList();
List iCertiNoList1 = new ArrayList();
List iRiskNameList2 = new ArrayList();
//int TOP1 = 108;
//int TOP2 = 20;
int TOP1 = 70;
int TOP2 = 0;
//int TOP3 = 44;
int TOP3 = 0;
//int TOP4 = 160;
//int TOP5 = 230;
//int TOP6 = 276;
//int TOP7 = 324;
//int TOP8 = 390;
//int TOP9 = 435;
//int TOP10 = 470;
//int TOP11 = 500;
//int TOP12 = 472;
int TOP4 = 125;
int TOP5 = 180;
int TOP6 = 226;
int TOP7 = 274;
int TOP8 = 340;
int TOP9 = 380;
int TOP10 = 410;
int TOP11 = 450;
int TOP12 = 420;
RiskNameDto riskname = null;
CertiNoDto certiNoDto = null;
int head=0;
for(int i=0;i<visaData.size();i++){
InvoicePrintDto invoicePrintDto =(InvoicePrintDto) visaData.get(i);
iCertiNoList = invoicePrintDto.getCertiNo();
iRiskNameList = invoicePrintDto.getRiskName();
TOP1 = TOP1 +head;
TOP2 = TOP2 +head;
TOP3 = TOP3 +head;
TOP4 = TOP4 +head;
TOP5 = TOP5 +head;
TOP6 = TOP6 +head;
TOP7 = TOP7 +head;
TOP8 = TOP8 +head;
TOP9 = TOP9 +head;
TOP10 = TOP10+head;
TOP11 = TOP11+head;
TOP12 = TOP12+head;
head=552;
%>
<%-- 保险单号 --%>
<span id="PrintDate" style="LEFT: 620px; POSITION: absolute; TOP: <%=TOP1%>px; font-size:11pt;" ><%=invoicePrintDto.getInvoiceDate()%></span>
<span id="PayRefName" style="LEFT: 144px; POSITION: absolute; TOP: <%=TOP4%>px; font-size:11pt;" ><%=strPayRefName%></span>
<span id="RiskName" style="LEFT: 144px; POSITION: absolute; TOP: <%=TOP5%>px; font-size:11pt;" >
<%for(int z=0;z<iRiskNameList.size();z++){
riskname =(RiskNameDto)iRiskNameList.get(z);
out.print(riskname.getRiskName());
}%>
</span>
<span id="CertiNo" style="LEFT: 144px; POSITION: absolute; TOP: <%=TOP6%>px; font-size:11pt;" >
<%for(int z=0;z<iCertiNoList.size();z++){
certiNoDto =(CertiNoDto)iCertiNoList.get(z);
out.print(certiNoDto.getCertiNo());
}%>
</span>
<span id="EndorseNo" style="LEFT: 520px; POSITION: absolute; TOP: <%=TOP6%>px; font-size:11pt;" ></span>
<span id="PayRefFeeC" style="LEFT: 280px; POSITION: absolute; TOP: <%=TOP7%>px; font-size:11pt;" ><%=invoicePrintDto.getCurrencyName()%><%=invoicePrintDto.getAmountName()%></span>
<span id="PayRefFee" style="LEFT: 640px; POSITION: absolute; TOP: <%=TOP7%>px; font-size:11pt;" ><%=invoicePrintDto.getCurrency()%><%=invoicePrintDto.getAmount()%></span>
<span id="ReMark" style="LEFT: 104px; POSITION: absolute; TOP: <%=TOP8%>px; font-size:11pt;" ><%=invoicePrintDto.getRemark()%></span>
<span id="Handler1Name" style="LEFT: 360px; POSITION: absolute; TOP: <%=TOP9%>px; font-size:11pt;" ><%=invoicePrintDto.getVisaHanlerName()%></span>
<span id="UserName" style="LEFT: 360px; POSITION: absolute; TOP: <%=TOP10%>px; font-size:11pt;" ><%=invoicePrintDto.getPayeeName()%></span>
<span id="Address" style="LEFT: 580px; POSITION: absolute; TOP: <%=TOP11%>px; font-size:11pt;" >北京市崇文区广渠门内大街<br>
</span>
<span id="Phone" style="LEFT: 580px; POSITION: absolute; TOP: <%=TOP12%>px; font-size:11pt;" >010-51886688</span>
<% } %>
<table id="Account"></table>
<div align="center" id="divButtonInvoice" style="display:">
<table cellpadding="0" cellspacing="0" width="80%" style="display:">
<tr>
<td class=button style="width:50%" align="center">
<input value="打 印" class="button" type=button name=buttonPrint alt=" 打 印 " src="/prpall/common/images/butPrint.gif" onclick="printPageInvoice()">
</td>
<td class=button style="width:50%" align="center">
<input value="关 闭" class="button" type=button name=buttonClose alt=" 关 闭 " src="/prpall/common/images/butClose.gif" onclick="javascript:window.close()">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<script language="JavaScript">
function printPageInvoice()
{
try{
fm.buttonPrint.style.display = "none";
fm.buttonClose.style.display = "none";
//modified by LanNing begin 20070920 发票打印纸张用A4大小
DS_Printer.SetPaperSize(21000,29700);
DS_Printer.SetTopMargin(0);
DS_Printer.SetBottomMargin(0);
DS_Printer.SetLeftMargin(0);
DS_Printer.SetRightMargin(0);
//modified by LanNing end 20070920 发票打印纸张用A4大小
}catch(e){
}
window.print();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -