Commit d630e9c1 authored by houyu's avatar houyu

Merge branch 'master' of http://gitlab.house365.com/xuzhou/njzsb

parents 58ff043d 42fea1e5
...@@ -642,7 +642,7 @@ ...@@ -642,7 +642,7 @@
</script> </script>
<script> <script>
function doPrint(id) { function doPrint(id) {
var jatoolsPrinter = document.getElementById("jatoolsPrinter"); // var jatoolsPrinter = document.getElementById("jatoolsPrinter");
$.ajax({ $.ajax({
url : "${ctx}/jsp/jfzm/queryDetail.action", url : "${ctx}/jsp/jfzm/queryDetail.action",
type: 'post', type: 'post',
...@@ -650,22 +650,24 @@ ...@@ -650,22 +650,24 @@
data:{ data:{
id : id id : id
}, },
async : false, success: function (data) {
alert(JSON.stringify(data))
}
}); });
var tp = '${rfxm.mjyj}' == '002' || '${rfxm.mjyj}' == '004' ? 1 : 2; <%--var tp = '${rfxm.mjyj}' == '002' || '${rfxm.mjyj}' == '004' ? 1 : 2;--%>
myDoc = { <%--myDoc = {--%>
settings: { <%-- settings: {--%>
pageWidth: 2100, <%-- pageWidth: 2100,--%>
pageHeight: 1400, <%-- pageHeight: 1400,--%>
orientation: tp}, <%-- orientation: tp},--%>
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"--%>
} <%--}--%>
jatoolsPrinter.printPreview(myDoc); <%--jatoolsPrinter.printPreview(myDoc);--%>
} }
</script> </script>
...@@ -730,7 +732,7 @@ ...@@ -730,7 +732,7 @@
</div> </div>
</div> </div>
<%-- 横联 --%> <%-- 横联 --%>
<div>132</div> <div></div>
<c:if test="${rfxm.mjyj != '002' && rfxm.mjyj != '004'}"> <c:if test="${rfxm.mjyj != '002' && rfxm.mjyj != '004'}">
<div id="page1" class='only_for_print pagestyle' style='width:210mm;height:140mm;position:relative;'> <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%"/> <img class='screen-only' src="${ctx}/webResources/images/guihuaju.jpg" style="position:absolute;width:100%;height:100%"/>
......
package com.jshx.jfzm.web; package com.jshx.jfzm.web;
import com.google.gson.Gson;
import com.jshx.core.base.action.BaseAction; import com.jshx.core.base.action.BaseAction;
import com.jshx.core.base.vo.Pagination; import com.jshx.core.base.vo.Pagination;
import com.jshx.core.json.CodeJsonValueProcessor; import com.jshx.core.json.CodeJsonValueProcessor;
import com.jshx.core.json.DateJsonValueProcessor; import com.jshx.core.json.DateJsonValueProcessor;
import com.jshx.core.utils.Struts2Util;
import com.jshx.paymentItemHis.entity.PaymentItemHis; import com.jshx.paymentItemHis.entity.PaymentItemHis;
import com.jshx.paymentItemHis.service.PaymentItemHisService; import com.jshx.paymentItemHis.service.PaymentItemHisService;
import com.jshx.rfxm.entity.Rfxm; import com.jshx.rfxm.entity.Rfxm;
...@@ -12,9 +14,11 @@ import com.jshx.xmxxb.entity.Xmxxb; ...@@ -12,9 +14,11 @@ import com.jshx.xmxxb.entity.Xmxxb;
import com.jshx.xmxxb.service.XmxxbService; import com.jshx.xmxxb.service.XmxxbService;
import com.jshx.zsdw.service.ZsdwService; import com.jshx.zsdw.service.ZsdwService;
import com.neusoft.egov.utils.TextUtils; import com.neusoft.egov.utils.TextUtils;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig; import net.sf.json.JsonConfig;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -130,6 +134,16 @@ public class JfzmAction extends BaseAction { ...@@ -130,6 +134,16 @@ public class JfzmAction extends BaseAction {
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();
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() {
...@@ -211,4 +225,28 @@ public class JfzmAction extends BaseAction { ...@@ -211,4 +225,28 @@ public class JfzmAction extends BaseAction {
public void setId(String id) { public void setId(String id) {
this.id = 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;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment