Commit 369bc32d authored by 徐州's avatar 徐州

非税通知书-自动缴销需求提交

parent 4bea66da
......@@ -9,6 +9,10 @@
{
window.location.href="${ctx}/jsp/accountBank/downloadFile.action?attachId="+id;
}
function viewFs(fsId) {
createSimpleWindow("win_fstzs","打印非税通知书","${ctx}/jsp/fstzs/winPrintFstzs.action?id=" + fsId,900,700);
}
</script>
</head>
<body>
......@@ -30,14 +34,29 @@
<td width="35%" >${accountBank.remark}</td>
</tr>
<c:if test="${accountBank.hasInvoice == 0}">
<c:forEach var="c" items="${attach}" varStatus="status">
<tr>
<th width="15%">附件${status.count}</th>
<td colspan="4" style="text-align: left;">
<a href="javascript:opendoc('${c.id}')"><font style="color:blue">${c.attachname}</font></a> </br>
</td>
</tr>
</c:forEach>
<c:choose>
<c:when test="${not empty accountBank.fsId}">
<tr>
<th width="15%">附件</th>
<td colspan="4" style="text-align: left;">
<a href="#" class="btn_01" onclick=viewFs('${accountBank.fsId}');>查看<b></b></a>
</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="c" items="${attach}" varStatus="status">
<tr>
<th width="15%">附件${status.count}</th>
<td colspan="4" style="text-align: left;">
<a href="javascript:opendoc('${c.id}')"><font style="color:blue">${c.attachname}</font></a> </br>
</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</c:if>
<tr>
</tr>
......
......@@ -123,7 +123,7 @@
<tr>
<th width="15">应缴总面积(平方米)</th>
<td width="35%">
<input id="csmj" name="fstzsXm.paymentItemPending.csmj" style="width:90%" value="${fstzsXm.paymentItemPending.csmj}" disabled/>
<input id="csmj" name="fstzsXm.xmxxb.csmj" style="width:90%" value="${fstzsXm.xmxxb.csmj}" disabled/>
</td>
<th width="15">收费标准(元)</th>
......@@ -396,12 +396,11 @@
}else if (typeof(num) === 'number' && isNaN(num)) {
$.messager.alert('提示', '请输入正确的数字!');
} else {
//计算应缴面积
var yjmjNums = numb / 150
var x = String(yjmjNums).indexOf(".")+1;//得到小数点的位置
var y = String(yjmjNums).length - x;//小数点的位数
if(y > 2) {
if(x != 0 && y > 2) {
$.messager.alert('提示', '请输入正确的应缴金额!');
$(this).parent().prev().text('');
return false;
......
......@@ -53,10 +53,10 @@
}
}},
{field:'zyjje',title:'项目总应缴金额',width:150,formatter: function (value, row, index){
return (parseFloat(row.paymentItemPending.zyjje).toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,');
return (parseFloat(row.xmxxb.yjje).toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,');
}},
{field:'jzmj',title:'总建筑面积',width:150,formatter: function (value, row, index){
return row.paymentItemPending.csmj;
return row.xmxxb.csmj;
}}
]]
}));
......
......@@ -121,7 +121,7 @@
<tr>
<th width="15">应缴总面积(平方米)</th>
<td width="35%">
<input id="csmj" name="fstzsXm.paymentItemPending.csmj" style="width:90%" value="${fstzsXm.paymentItemPending.csmj}" disabled/>
<input id="csmj" name="fstzsXm.xmxxb.csmj" style="width:90%" value="${fstzsXm.xmxxb.csmj}" disabled/>
</td>
<th width="15">收费标准(元)</th>
......
......@@ -46,7 +46,6 @@
function dayin(id){
var dt=new Date();
createSimpleWindow("win_fstzs","打印非税通知书","${ctx}/jsp/fstzs/winPrintFstzs.action?id=" + id,900,700);
}
function reloadDate(){
......
......@@ -120,10 +120,10 @@
}
}},
{field:'zyjje',title:'项目总应缴金额',width:150,formatter: function (value, row, index){
return (parseFloat(row.paymentItemPending.zyjje).toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,');
return (parseFloat(row.xmxxb.yjje).toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,');
}},
{field:'jzmj',title:'总建筑面积',width:100,formatter: function (value, row, index){
return row.paymentItemPending.csmj;
return row.xmxxb.csmj;
}},
{field:'status',title:'是否复核',width:80,formatter: function (value, row, index){
if (value == 1) return "待复核";
......
......@@ -92,6 +92,11 @@ public class AccountBank extends BaseModel
* 子系统类型
*/
private String sysType;
/**
* 如果是由非税查询状态时,自动插入的数据,则存一下fs记录的id
*/
private String fsId;
public AccountBank(){
}
......@@ -235,4 +240,12 @@ public class AccountBank extends BaseModel
public void setSysType(String sysType) {
this.sysType = sysType;
}
public String getFsId() {
return fsId;
}
public void setFsId(String fsId) {
this.fsId = fsId;
}
}
......@@ -276,7 +276,7 @@ public class AccountBankServiceImpl extends BaseServiceImpl implements AccountBa
String ECN = "PZ"+xmxxb.getBllb()+xmxxb.getDwdm().toUpperCase()+genericManager.getSN("dzpz");
paymentItemHis.setECN(ECN);
//转入已缴款项目
paymentItemHisDao.save(paymentItemHis);
paymentItemHisDao.save(paymentItemHis);//???
//清除待缴款项目
paymentItemPendingDao.delete(paymentItemPending.getId());
//若是催缴项目,则需要清除催缴记录
......
......@@ -136,6 +136,12 @@ public class Fstzs extends BaseModel {
*/
private String jkqd;
/**
* 缴款渠道
* 11柜面缴款和13网上缴款
*/
private String jkqdCode;
/**
* 操作激活的时间
*/
......@@ -416,4 +422,12 @@ public class Fstzs extends BaseModel {
public void setYjjeQfw(String yjjeQfw) {
this.yjjeQfw = yjjeQfw;
}
public String getJkqdCode() {
return jkqdCode;
}
public void setJkqdCode(String jkqdCode) {
this.jkqdCode = jkqdCode;
}
}
......@@ -101,10 +101,8 @@ public class FstzsXm extends BaseModel
*/
private String fhyj;
/**
* 对应项目信息主键
*/
private PaymentItemPending paymentItemPending;
private Xmxxb xmxxb;
/**
* 对应的收款人
......@@ -118,6 +116,11 @@ public class FstzsXm extends BaseModel
*/
private String jhjd;
/**
* 项目是否缴销
*/
private Integer isJx;
public Integer getStatus() {
return status;
......@@ -215,14 +218,14 @@ public class FstzsXm extends BaseModel
this.yjjedx = yjjedx;
}
@ManyToOne(fetch = FetchType.EAGER, targetEntity=PaymentItemPending.class)
@JoinColumn(name = "PENDING_ZJ",updatable=false,insertable=true)
public PaymentItemPending getPaymentItemPending() {
return paymentItemPending;
@ManyToOne(fetch = FetchType.EAGER, targetEntity=Xmxxb.class)
@JoinColumn(name = "XMXXB_ZJ",updatable=false,insertable=true)
public Xmxxb getXmxxb() {
return xmxxb;
}
public void setPaymentItemPending(PaymentItemPending paymentItemPending) {
this.paymentItemPending = paymentItemPending;
public void setXmxxb(Xmxxb xmxxb) {
this.xmxxb = xmxxb;
}
@ManyToOne(fetch = FetchType.EAGER, targetEntity=Kpsjgl.class)
......@@ -261,4 +264,11 @@ public class FstzsXm extends BaseModel
this.jkrlx = jkrlx;
}
public Integer getIsJx() {
return isJx;
}
public void setIsJx(Integer isJx) {
this.isJx = isJx;
}
}
......@@ -14,11 +14,17 @@ public class JkztResp {
public String confirmDate;
/**
* 缴款渠道(代码)
* 缴款渠道
*/
@SerializedName("payment_channel")
public String paymentChannel;
/**
* 缴款渠道(代码)
*/
@SerializedName("payment_channel_code")
public String paymentChannelCode;
/**
* 缴款银行
*/
......
This diff is collapsed.
......@@ -254,7 +254,7 @@ public class PaymentItemPendingServiceImpl extends BaseServiceImpl implements Pa
this.save(dj);
//保存项目到非税通知书表
FstzsXm xm = new FstzsXm();
xm.setPaymentItemPending(dj);
xm.setXmxxb(xmb);
//获取收款人信息保存到项目中
HashMap<String, Object> param = new HashMap<>();
param.put("gllb","001");
......
......@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletResponse;
import com.jshx.fstzs.entity.FstzsXm;
import com.jshx.fstzs.service.FstzsXmService;
import com.jshx.xmxxb.service.XmxxbService;
import org.apache.struts2.ServletActionContext;
import org.hibernate.LobHelper;
import org.hibernate.SessionFactory;
......@@ -54,6 +55,9 @@ public class PaymentItemPendingAction extends BaseAction
*/
private PaymentItemPending paymentItemPending = new PaymentItemPending();
@Autowired
private XmxxbService xmxxbService;
/**
* 业务类
*/
......@@ -190,7 +194,7 @@ public class PaymentItemPendingAction extends BaseAction
* 入paymentItemPending表同时,入FstzsXm表
*/
FstzsXm xm = new FstzsXm();
xm.setPaymentItemPending(paymentItemPending);
xm.setXmxxb(xmxxbService.getById(paymentItemPending.getXmbzj()));
xm.setDelFlag(0);
xm.setStatus(0);
......@@ -208,7 +212,7 @@ public class PaymentItemPendingAction extends BaseAction
FstzsXm xm = fstzsXmService.getBySlbh(paymentItemPending.getSlbh());
if(xm == null) {
xm = new FstzsXm();
xm.setPaymentItemPending(paymentItemPending);
xm.setXmxxb(xmxxbService.getById(paymentItemPending.getXmbzj()));
xm.setDelFlag(0);
xm.setStatus(0);
xm.setJsdwmc(paymentItemPending.getDwmc());
......
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