Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
njzsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐州
njzsb
Commits
6efdb900
Commit
6efdb900
authored
Aug 31, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增print接口
parent
42fea1e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
26 deletions
+23
-26
PaymentVoucherPrint_GuiHua.jsp
...ges/account/paymentVoucher/PaymentVoucherPrint_GuiHua.jsp
+16
-15
struts-jfzm.xml
src/com/jshx/jfzm/conf/struts-jfzm.xml
+5
-0
JfzmAction.java
src/com/jshx/jfzm/web/JfzmAction.java
+2
-11
No files found.
WebRoot/WEB-INF/pages/account/paymentVoucher/PaymentVoucherPrint_GuiHua.jsp
View file @
6efdb900
...
@@ -242,25 +242,26 @@
...
@@ -242,25 +242,26 @@
</style>
</style>
<script>
<script>
function
doPrint
(
type
)
{
function
doPrint
(
type
)
{
myDoc
=
{
//
myDoc = {
settings
:
{
//
settings: {
pageWidth
:
2100
,
//
pageWidth: 2100,
pageHeight
:
1400
,
//
pageHeight: 1400,
orientation
:
2
},
//
orientation: 2},
documents
:
document
,
//
documents: document,
marginIgnored
:
true
,
//
marginIgnored:true,
dragDesigner
:
{
viewSource
:
true
},
//
dragDesigner: {viewSource:true},
settingsID
:
'mydoc3'
,
//
settingsID: 'mydoc3',
classesReplacedWhenPrint
:
new
Array
(
'.only_for_print{display:block}'
),
//
classesReplacedWhenPrint: new Array('.only_for_print{display:block}'),
copyrights
:
"杰创软件拥有版权 www.jatools.com"
//
copyrights: "杰创软件拥有版权 www.jatools.com"
}
//
}
var
jatoolsPrinter
=
document
.
getElementById
(
"jatoolsPrinter"
);
//
var jatoolsPrinter = document.getElementById("jatoolsPrinter");
if
(
"pre"
==
type
){
if
(
"pre"
==
type
){
updateZslxdbh
();
updateZslxdbh
();
jatoolsPrinter
.
printPreview
(
myDoc
);
// jatoolsPrinter.printPreview(myDoc);
alert
(
$
{
paymentItemHis
.
zslxdbh
})
}
else
if
(
"print"
==
type
){
}
else
if
(
"print"
==
type
){
updateZslxdbh
();
updateZslxdbh
();
jatoolsPrinter
.
print
(
myDoc
,
true
);
//
jatoolsPrinter.print(myDoc,true);
}
}
}
}
...
...
src/com/jshx/jfzm/conf/struts-jfzm.xml
View file @
6efdb900
...
@@ -18,5 +18,10 @@
...
@@ -18,5 +18,10 @@
</action>
</action>
<!-- 跳转收费信息列表页面 -->
<action
name=
"print"
class=
"com.jshx.jfzm.web.JfzmAction"
method=
"print"
>
<result
name=
"view"
>
/WEB-INF/pages/jfzm/jfzm_print.jsp
</result>
</action>
</package>
</package>
</struts>
</struts>
src/com/jshx/jfzm/web/JfzmAction.java
View file @
6efdb900
...
@@ -130,20 +130,11 @@ public class JfzmAction extends BaseAction {
...
@@ -130,20 +130,11 @@ public class JfzmAction extends BaseAction {
/**
/**
* 打印缴费证明时,查询所需要的数据
* 打印缴费证明时,查询所需要的数据
*/
*/
public
void
queryDetail
()
{
public
String
print
()
{
rfxm
=
rfxmService
.
getById
(
id
);
rfxm
=
rfxmService
.
getById
(
id
);
xmxxb
=
xmxxbService
.
getById
(
rfxm
.
getXmxxbId
());
xmxxb
=
xmxxbService
.
getById
(
rfxm
.
getXmxxbId
());
paymentItemHis
=
paymentItemHisService
.
getById
(
rfxm
.
getPaymentHisId
());
paymentItemHis
=
paymentItemHisService
.
getById
(
rfxm
.
getPaymentHisId
());
JSONObject
jo
=
new
JSONObject
();
return
VIEW
;
jo
.
put
(
"rfxm"
,
rfxm
);
jo
.
put
(
"xmxxb"
,
xmxxb
);
jo
.
put
(
"paymentItemHis"
,
paymentItemHis
);
try
{
this
.
getResponse
().
getWriter
().
write
(
jo
.
toString
());
this
.
getResponse
().
getWriter
().
flush
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
}
public
Pagination
getPagination
()
{
public
Pagination
getPagination
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment