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
d630e9c1
Commit
d630e9c1
authored
Aug 30, 2022
by
houyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.house365.com/xuzhou/njzsb
parents
58ff043d
42fea1e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
17 deletions
+57
-17
Jfzm_List.jsp
WebRoot/WEB-INF/pages/jfzm/Jfzm_List.jsp
+19
-17
JfzmAction.java
src/com/jshx/jfzm/web/JfzmAction.java
+38
-0
No files found.
WebRoot/WEB-INF/pages/jfzm/Jfzm_List.jsp
View file @
d630e9c1
...
...
@@ -642,7 +642,7 @@
</script>
<script>
function
doPrint
(
id
)
{
var
jatoolsPrinter
=
document
.
getElementById
(
"jatoolsPrinter"
);
//
var jatoolsPrinter = document.getElementById("jatoolsPrinter");
$
.
ajax
({
url
:
"${ctx}/jsp/jfzm/queryDetail.action"
,
type
:
'post'
,
...
...
@@ -650,22 +650,24 @@
data
:{
id
:
id
},
async
:
false
,
success
:
function
(
data
)
{
alert
(
JSON
.
stringify
(
data
))
}
});
var
tp
=
'${rfxm.mjyj}'
==
'002'
||
'${rfxm.mjyj}'
==
'004'
?
1
:
2
;
myDoc
=
{
settings
:
{
pageWidth
:
2100
,
pageHeight
:
1400
,
orientation
:
tp
},
documents
:
document
,
marginIgnored
:
true
,
dragDesigner
:
{
viewSource
:
true
},
settingsID
:
'mydoc3'
,
classesReplacedWhenPrint
:
new
Array
(
'.only_for_print{display:block}'
),
copyrights
:
"杰创软件拥有版权 www.jatools.com"
}
jatoolsPrinter
.
printPreview
(
myDoc
);
<%--
var
tp
=
'${rfxm.mjyj}'
==
'002'
||
'${rfxm.mjyj}'
==
'004'
?
1
:
2
;
--%>
<%--
myDoc
=
{
--%>
<%--
settings
:
{
--%>
<%--
pageWidth
:
2100
,
--%>
<%--
pageHeight
:
1400
,
--%>
<%--
orientation
:
tp
},
--%>
<%--
documents
:
document
,
--%>
<%--
marginIgnored
:
true
,
--%>
<%--
dragDesigner
:
{
viewSource
:
true
},
--%>
<%--
settingsID
:
'mydoc3'
,
--%>
<%--
classesReplacedWhenPrint
:
new
Array
(
'.only_for_print{display:block}'
),
--%>
<%--
copyrights
:
"杰创软件拥有版权 www.jatools.com"
--%>
<%--
}
--%>
<%--
jatoolsPrinter
.
printPreview
(
myDoc
);
--%>
}
</script>
...
...
@@ -730,7 +732,7 @@
</div>
</div>
<
%
--
横联
--
%
>
<div>
132
</div>
<div></div>
<c:if
test=
"${rfxm.mjyj != '002' && rfxm.mjyj != '004'}"
>
<div
id=
"page1"
class=
'only_for_print pagestyle'
style=
'width:210mm;height:140mm;position:relative;'
>
<img
class=
'screen-only'
src=
"${ctx}/webResources/images/guihuaju.jpg"
style=
"position:absolute;width:100%;height:100%"
/>
...
...
src/com/jshx/jfzm/web/JfzmAction.java
View file @
d630e9c1
package
com
.
jshx
.
jfzm
.
web
;
import
com.google.gson.Gson
;
import
com.jshx.core.base.action.BaseAction
;
import
com.jshx.core.base.vo.Pagination
;
import
com.jshx.core.json.CodeJsonValueProcessor
;
import
com.jshx.core.json.DateJsonValueProcessor
;
import
com.jshx.core.utils.Struts2Util
;
import
com.jshx.paymentItemHis.entity.PaymentItemHis
;
import
com.jshx.paymentItemHis.service.PaymentItemHisService
;
import
com.jshx.rfxm.entity.Rfxm
;
...
...
@@ -12,9 +14,11 @@ import com.jshx.xmxxb.entity.Xmxxb;
import
com.jshx.xmxxb.service.XmxxbService
;
import
com.jshx.zsdw.service.ZsdwService
;
import
com.neusoft.egov.utils.TextUtils
;
import
net.sf.json.JSONObject
;
import
net.sf.json.JsonConfig
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -130,6 +134,16 @@ public class JfzmAction extends BaseAction {
rfxm
=
rfxmService
.
getById
(
id
);
xmxxb
=
xmxxbService
.
getById
(
rfxm
.
getXmxxbId
());
paymentItemHis
=
paymentItemHisService
.
getById
(
rfxm
.
getPaymentHisId
());
JSONObject
jo
=
new
JSONObject
();
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
()
{
...
...
@@ -211,4 +225,28 @@ public class JfzmAction extends BaseAction {
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Rfxm
getRfxm
()
{
return
rfxm
;
}
public
void
setRfxm
(
Rfxm
rfxm
)
{
this
.
rfxm
=
rfxm
;
}
public
Xmxxb
getXmxxb
()
{
return
xmxxb
;
}
public
void
setXmxxb
(
Xmxxb
xmxxb
)
{
this
.
xmxxb
=
xmxxb
;
}
public
PaymentItemHis
getPaymentItemHis
()
{
return
paymentItemHis
;
}
public
void
setPaymentItemHis
(
PaymentItemHis
paymentItemHis
)
{
this
.
paymentItemHis
=
paymentItemHis
;
}
}
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