feesPrint.jsp
4.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<%@ 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() {
//收费缴费单凭证获取数据
$.ajax({
type:"POST",
url:"${ctx}/reg/bus/regBusSf/getFeePrintData",
cache: false,
data:"ywh=${ywh}",
async:false,
success:function(modelmap){
mapinfo = modelmap.data;
}
});
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
<script type="text/javascript">
var LODOP; //声明为全局变量
var LODOP1;
//缴费凭证打印
function view_jfpz() {
init_jfpz();
LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",1);
LODOP.PREVIEW();
}
function design_jfpz() {
init_jfpz();
LODOP.PRINT_DESIGN();
}
function init_jfpz() {
var iWidth=700;
//弹出窗口的高度;
var iHeight=400;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var sfsl = parseInt(mapinfo.sfsl1)+parseInt(mapinfo.sfsl2)+parseInt(mapinfo.sfsl3);
var url = "http://172.16.56.5/fp/fp.asp?ren="+mapinfo.jfry+"&zz="+sfsl+"&fz="+sfsl;
window.close();
window.open(url, "", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
// LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
// LODOP.PRINT_INIT("缴费凭证打印");
// LODOP.SET_PRINT_PAGESIZE(1, "752px", "388px", "");
// LODOP.ADD_PRINT_SETUP_BKIMG("<img border='0' src='${ctxStatic}/images/sfpj.png'>");
// LODOP.SET_PRINT_STYLE("FontSize",11);
// LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
// LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
// LODOP.ADD_PRINT_TEXT(95,134,130,26, mapinfo.jfry);
// LODOP.ADD_PRINT_TEXT(95,260,50,28, mapinfo.yearStr);
// LODOP.ADD_PRINT_TEXT(95,320,30,28, mapinfo.monthStr);
// LODOP.ADD_PRINT_TEXT(95,365,35,28, mapinfo.dayStr);
// LODOP.ADD_PRINT_TEXT(180,76,206,26, mapinfo.sfxm1);
// LODOP.ADD_PRINT_TEXT(215,77,206,26, mapinfo.sfxm2);
// LODOP.ADD_PRINT_TEXT(250,78,206,26, mapinfo.sfxm3);
// LODOP.ADD_PRINT_TEXT(180,297,65,26, mapinfo.sfsl1);
// LODOP.ADD_PRINT_TEXT(215,298,65,26, mapinfo.sfsl2);
// LODOP.ADD_PRINT_TEXT(240,296,65,26, mapinfo.sfsl3);
// LODOP.ADD_PRINT_TEXT(180,345,75,26, "本(套)");
// LODOP.ADD_PRINT_TEXT(215,345,75,26, "本(套)");
// LODOP.ADD_PRINT_TEXT(250,345,75,26, "");
// LODOP.ADD_PRINT_TEXT(180,450,65,26, "");
// LODOP.ADD_PRINT_TEXT(215,450,65,26, "");
// LODOP.ADD_PRINT_TEXT(240,451,65,26, "");
// LODOP.ADD_PRINT_TEXT(185,545,101,26, mapinfo.sfje1);
// LODOP.ADD_PRINT_TEXT(220,545,102,26, mapinfo.sfje2);
// LODOP.ADD_PRINT_TEXT(255,545,100,26, mapinfo.sfje3);
// LODOP.ADD_PRINT_TEXT(280,545,136,26, mapinfo.sfzje);
// LODOP.ADD_PRINT_TEXT(328,145,144,26, mapinfo.skdw);
// LODOP.ADD_PRINT_TEXT(330,500,136,26, mapinfo.sfry);
}
function closeWin(){
window.close();
}
</script>
</head>
<body>
<div class="control-group" align="center">
<input id="btnClose" class="btn btn-primary" type="button" onclick="closeWin();" value="关闭"/>
<!--
<input id="btnPrintZs1" class="btn btn-primary" type="button" onclick="design_jfd();" value="缴费单打印设计"/>
<input id="btnPrintZs1" class="btn btn-primary" type="button" onclick="view_jfd();" value="缴费单打印"/>
<input id="btnPrintZs2" class="btn btn-primary" type="button" onclick="design_jfpz();" value="缴费凭证打印设计"/>
-->
<input id="btnPrintZs2" class="btn btn-primary" type="button" onclick="view_jfpz();" value="缴费凭证打印"/>
<br><br>
<div id="printsfggdiv" class="printsfggdiv">
<table class="table table-striped table-bordered table-condensed" style="width:60%">
<tr><td>付费方:</td><td>${ffry}</td></tr>
<tr><td>付费总金额:</td><td>${sfzje}</td></tr>
</table>
</div>
</div>
</body>
</html>