Commit 41461844 authored by 徐州's avatar 徐州

新增部分接口

parent b7b5da50
...@@ -23,8 +23,17 @@ ...@@ -23,8 +23,17 @@
success: function(data){ success: function(data){
if(data.result){ if(data.result){
$.messager.confirm("提示", "确认要生成凭证吗?", function(result) { $.messager.confirm("提示", "确认要生成凭证吗?", function(result) {
var dt=new Date(); $.ajax({
url : "${ctx}/jsp/paymentItemHis/scpz.action",
type: 'post',
dataType: 'json',
data:{
id : row_Id
},
async : false
});
$.messager.alert("提示","操作成功")
search_paymentItemHis();
}); });
}else{ }else{
$.messager.alert('错误',data.message); $.messager.alert('错误',data.message);
...@@ -47,7 +56,17 @@ ...@@ -47,7 +56,17 @@
success: function(data){ success: function(data){
if(data.result){ if(data.result){
$.messager.confirm("提示", "确认要财务用章?", function(result) { $.messager.confirm("提示", "确认要财务用章?", function(result) {
var dt=new Date(); $.ajax({
url : "${ctx}/jsp/paymentItemHis/cwyz.action",
type: 'post',
dataType: 'json',
data:{
id : row_Id
},
async : false
});
$.messager.alert("提示","操作成功")
search_paymentItemHis();
}); });
}else{ }else{
...@@ -190,7 +209,8 @@ ...@@ -190,7 +209,8 @@
} }
else else
{ {
if($("#isCwyz").val() =='0') {//财务未用章 console.log('rec.isCwyz=',rec.isCwyz)
if(rec.isCwyz =='0') {//财务未用章
return "<a class='btn_01_mini' onclick=printZslxd('"+rec.id+"','"+rec.zslxdbh+"','"+rec.mjyj+"') >预览凭证<b></b></a>&nbsp;<a class='btn_01_mini' onclick=cwyz('"+rec.id+"')>财务用章<b></b></a>&nbsp;<a class='btn_01_mini' onclick=viewdd('"+rec.xmxxb.xxylb+"')>附件补充<b></b></a>"; return "<a class='btn_01_mini' onclick=printZslxd('"+rec.id+"','"+rec.zslxdbh+"','"+rec.mjyj+"') >预览凭证<b></b></a>&nbsp;<a class='btn_01_mini' onclick=cwyz('"+rec.id+"')>财务用章<b></b></a>&nbsp;<a class='btn_01_mini' onclick=viewdd('"+rec.xmxxb.xxylb+"')>附件补充<b></b></a>";
} else { } else {
return "<a class='btn_01_mini' onclick=printZslxd('"+rec.id+"','"+rec.zslxdbh+"','"+rec.mjyj+"') >预览凭证<b></b></a>&nbsp;<a class='btn_01_mini' onclick=viewdd('"+rec.xmxxb.xxylb+"')>附件补充<b></b></a>"; return "<a class='btn_01_mini' onclick=printZslxd('"+rec.id+"','"+rec.zslxdbh+"','"+rec.mjyj+"') >预览凭证<b></b></a>&nbsp;<a class='btn_01_mini' onclick=viewdd('"+rec.xmxxb.xxylb+"')>附件补充<b></b></a>";
......
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common/header.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/common/jsLib.jsp"%>
<title>南京征收管理系统</title>
<script>
$(function () {
window.top["Refresh_CloudHomePage_Content"] = function () {
window.location.reload();
}
})
function reloadDate() {
$('#pagination').datagrid('clearSelections');
search_zzhxm();
}
function addNew() {
var dt = new Date();
createSimpleWindow("win_zzhxm", "验证项目信息", "${ctx}/jsp/zzhxm/zzhxmCheckProject.action?flag=add&dt=" + dt.getTime(), 550, 250);
}
function addNew4Sfxx(row_id) {
var dt = new Date();
createSimpleWindow("win_zzhxm", "添加收费信息", "${ctx}/jsp/zzhxm/zzhxmSfxxAdd.action?flag=add&zzhxm.id=" + row_id + "&dt=" + dt.getTime(), 1172, 600);
createSimpleWindow("win_zzhxm", "添加收费信息", "${ctx}/jsp/zzhxm/zzhxmSfxxAdd.action?flag=add&zzhxm.id=" + row_id + "&dt=" + dt.getTime(), 900, 600);
createWindow("win_zzhxmsfxx", "添加收费信息", "410px", "210px", 900, 600, "${ctx}/jsp/zzhxm/zzhxmSfxxAdd.action?flag=add&zzhxm.id=" + row_id + "&dt=" + dt.getTime())
}
function addLinkedNew() {
var dt = new Date();
createSimpleWindow("win_zzhxm", "关联添加项目", "${ctx}/jsp/zzhxm/zzhxmConditionList.action?flag=add&dt=" + dt.getTime(), 990, 650);
}
function edit(row_Id) {
var dt = new Date();
createSimpleWindow("win_zzhxm", "修改项目信息", "${ctx}/jsp/zzhxm/zzhxmInitEdit.action?flag=edit&zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 990, 650);
}
function view(row_Id) {
var dt = new Date();
createSimpleWindow("win_zzhxm", "查看详细信息", "一站式查看.html?zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 700);
}
function addTabSfxx(row_Id) {
var dt = new Date();
parent.addTab("sfxxTab", "收费信息", "/jsp/zzhxm/zzhxmSfxxDetail.action?zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 700);
}
function noticeView(row_Id) {
var dt = new Date();
parent.addTab("jktzsTab", "缴款通知书", "/jsp/zzhxm/zzhxmJktzsDetail.action?zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 700);
}
function del() {
var rows = $('#pagination').datagrid('getSelections');
var ids = "";
for (var i = 0; i < rows.length; i++) {
ids += rows[i].id + "|";
}
if (rows.length < 1) {
$.messager.alert('提示', '至少选择一项删除!');
} else {
$.messager.confirm("删除", "确定要删除吗?", function (result) {
if (result) {
$.ajax({
url: "sdjdDel.action",
type: 'post',
dataType: 'json',
async: false,
data: {
ids: ids
},
error: function () {
$.messager.alert('错误', '删除时出错!');
},
success: function (data) {
if (data.result) {
$.messager.alert('提示', '删除成功!');
search_sdjd();
} else {
$.messager.alert('错误', '删除时出错!');
}
}
});
}
});
}
}
function search_zzhxm() {
var queryParams = {
"jfzm.xmdm": $("#xmdm").val(),
"jfzm.ghxkzbh": $("#ghxkzbh").val(),
"jfzm.ghxmbh": $("#ghxmbh").val(),
"jfzm.xxylbbh": $("#xxylbbh").val()
};
console.info(queryParams);
$('#pagination').datagrid('options').queryParams = queryParams;
$('#pagination').datagrid('clearSelections');
$("#pagination").datagrid('load');
}
function addTab4Sfxx(id, text, url) {
$.ajax({
"url": window.checkSessionUrl,
dataType: "json",
"success": function (data) {
if (data.result) {
$(".opened").removeClass("opened");
$("#drawer").hide();
//$(".nav li:first").unbind("mouseenter").unbind("mouseleave");
if (url == "") return;
var width = $(".pageFrame").width() - 4;
var height = $(".pageFrame").height() - 34;
var existname = "";
var existid = ""
$("div[class='panel'] iframe").each(function (i, dom) {
if (text == $(dom).attr("existname")) {
existname = $(dom).attr("existname");
existid = $(dom).attr("id");
}
});
url = "<%=basePath%>/" + url;
console.log(url);
if (url.indexOf("?") == -1)
url += "?";
else
url += "&";
var randomnumber = Math.floor(Math.random() * 100000);
if (existname == "") {
$('#tabdiv').tabs('add', {
id: 'tab_' + id,
title: text,
width: width,
height: height,
closable: true,
tools: [{
iconCls: 'icon-mini-refresh',
handler: function () {
var current_tab = $('#tabdiv').tabs('getSelected'); // get selected panel
curTabWin = current_tab.find('iframe')[0].contentWindow.location.reload(true);
}
}],
content: '<iframe name="iframe_' + id + '" existname="' + text + '" id="iframe_' + id + '" width="100%" height="100%" name="iframe_' + id + '" frameborder="0" src="' + url + "random=" + randomnumber + '&currModuleCode=' + id + '"></iframe>'
});
} else {
$('#tabdiv').tabs('select', existname);
//重载要访问的地址
document.getElementById(existid).src = url + "random=" + randomnumber;
}
} else {
$.messager.alert("提示", "登录超时,请重新登录", "确定", function () {
$("#ajaxLogin").window("open");
});
}
}
});
}
$(function () {
$('#pagination').datagrid($.extend(window.dg_cm_pp_2, {
title: '项目管理列表',
url: 'jflist.action',
queryParams: {
"jfzm.ghxmbh": $("#ghxmbh").val(),
"jfzm.xxylbbh": $("#xxylbbh").val(),
"jfzm.xmdm": $("#xmdm").val(),
"jfzm.ghxkzbh": $("#ghxkzbh").val(),
},
frozenColumns: [[
// {field:'id',checkbox:true}
]],
striped: true,
columns: [[
{
field: 'op1', title: '关联操作', width: 130, align: 'center', formatter: function (value, rec) {
if (rec.statusConstract == 0 && rec.statusComplete == 0 && rec.statusWithinTheDay == 0) {
return "<a class='btn_01_mini' onclick=addTabSfxx('" + rec.id + "') >收费信息<b></b></a>";
}
return "<a class='btn_01_mini' onclick=addTabSfxx('" + rec.id + "') >收费信息<b></b></a>";
}
},
/*
{field:'accountStatus',title:'子账户状态',width:180,formatter:function(value,rec){
if(rec.accountStatus == '0'){
return "未激活";
}
if(rec.accountStatus == '1'){
return "已激活";
}
if(rec.accountStatus == '2'){
return "已作废";
}
if(rec.accountStatus == '3'){
return "已到账";
}
if(rec.accountStatus == '4'){
return "已缴销";
}
}},*/
/*{field:'createTime',title:'创建时间',width:fixWidth(0.16)},*/
{ field: 'dwmc', title: '建设单位名称', width: 186, align: 'center' },
{ field: 'xmmc', title: '工程项目名称', width: 186, align: 'center' },
{ field: 'jsdd', title: '工程项目地址', width: 186, align: 'center' },
{ field: 'xkzh', title: '规划许可证号', width: 186, align: 'center' },
{ field: 'xmdm', title: '缴费环节', width: 150, align: 'center' },
{ field: 'zsfw', title: '二级统计单位', width: 186, align: 'center' },
{ field: 'xmdm', title: '核查状态', width: 150, align: 'center' },
{ field: 'xmdm', title: '缴款通知书编号', width: 186, align: 'center' },
{ field: 'zslxdbh', title: '缴款凭证编号', width: 186, align: 'center' },
]]
}));
});
</script>
</head>
<body>
<div class="page_content">
<div class="box_01 submitdata">
<div class="inner12px">
<div class="cell boxBmargin12">
<table width="100%">
<tr>
<th width="15%">规划许可证编号</th>
<td width="35%"><input name="jfzm.ghxkzbh" id="ghxkzbh" value="" type="text"></td>
<th width="15%">缴费凭证编号</th>
<td width="35%"><input name="jfzm.xmdm" id="xmdm" value="" type="text"></td>
</tr>
<tr>
<th width="15%">信息表编号</th>
<td width="35%"><input name="jfzm.xxylbbh" id="xxylbbh" value="" type="text"></td>
<th width="15%">规划项目编号</th>
<td width="35%"><input name="jfzm.ghxmbh" id="ghxmbh" value="" type="text"></td>
</tr>
<tr>
<th width="15%">建设单位名称</th>
<td width="35%"><input name="jfzm.jsdwmc" id="jsdwmc" value="" type="text"></td>
<th width="15%">工程项目名称</th>
<td width="35%"><input name="jfzm.gcxmmc" id="gcxmmc" value="" type="text"></td>
</tr>
<tr>
<th width="15%">缴费环节</th>
<td width="35%">
<select name="jfzm.accountStatus" id="accountStatus">
<option value="">请选择</option>
<option value="0"></option>
<option value="1">施工许可前</option>
<option value="2">30日</option>
</select>
</td>
<th width="15%">核查状态</th>
<td width="35%">
<select name="jfzm.accountStatus" id="accountStatus">
<option value="">请选择</option>
<option value="0"></option>
<option value="1">已同步</option>
<option value="2">未同步</option>
</select>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<a href="###" class="btn_01" onclick="search_jfzm()">查询<b></b></a>&nbsp;
<!-- <a href="###" class="btn_01" onclick="search_sdjd(1)" >已复核项目<b></b></a>&nbsp; -->
<a href="###" class="btn_01" onclick="clear_form(document.myform);">清空<b></b></a>&nbsp;
</td>
</tr>
</table>
</div>
<a class='btn_01_mini' onclick="asy_tb()">同步施工许可<b></b></a>
<a class='btn_01_mini' onclick="do_pz()">打印缴费凭证<b></b></a>
<a class='btn_01_mini' onclick="one_book()">一般缴款书<b></b></a>
<div id="pagination">
</div>
</div>
</div>
</div>
</body>
<script>
function asy_tb() {
$.messager.confirm("确定", "是否确定同步施工许可?", function (result) {
if (result) {
$.messager.alert('提示', "同步成功");
}
});
}
function one_book(row_Id) {
var dt = new Date();
createSimpleWindow("win_jfzm", "一般缴款书", "一般缴款书.html?jfzm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 300);
}
</script>
</html>
\ No newline at end of file
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@include file="/common/header.jsp" %>
<%@taglib prefix="activiti" uri="/activiti/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/common/jsLib.jsp" %>
<title>Document</title>
<style type="text/css">
a:hover {
color: #F00;
text-decoration: underline;
}
/* 鼠标移动到链接上 */
</style>
<script type="text/javascript">
function reloadDate() {
$('#pagination').datagrid('clearSelections');
search_zzhxmSfxx();
}
// <%-- 页面筛选查询 --%>
function search_zzhxmSfxx() {
var queryParams = {
"ids": $("#ids").val()
};
console.info(queryParams);
$('#pagination').datagrid('options').queryParams = queryParams;
$('#pagination').datagrid('clearSelections');
$("#pagination").datagrid('load');
}
//<%-- 添加收费信息 --%>
function addNew4Sfxx(row_id) {
var dt = new Date();
// <%--createSimpleWindow("win_zzhxm","添加收费信息","${ctx}/jsp/zzhxm/zzhxmSfxxAdd.action?flag=add&zzhxm.id="+row_id+"&dt="+dt.getTime(),1172,600);--%>
createSimpleWindow("win_zzhxmsfxx", "添加收费信息","${ctx}/jsp/rfdz/RfdzEdit.action" , 900, 680);
//<%--createWindow("win_zzhxmsfxx","添加收费信息","410px","210px",900,600,"${ctx}/jsp/zzhxm/zzhxmSfxxAdd.action?flag=add&zzhxm.id="+row_id+"&dt="+dt.getTime())--%>
}
//<%-- 修改收费信息 --%>
function edit(row_id) {
var dt = new Date();
createSimpleWindow("win_zzhxmsfxx", "修改收费信息", "收费信息修改.html?flag=edit&ids=" + row_id + "&dt=" + dt.getTime(), 900, 600);
}
//<%-- 查看收费信息 --%>
function view(row_id) {
var dt = new Date();
createSimpleWindow("win_zzhxmsfxx", "查看收费信息", "收费信息查看.html?ids=" + row_id + "&dt=" + dt.getTime(), 900, 600);
}
//<%-- 下载缴费信息附件 --%>
function opendoc(id) {
console.log(id);
console.log($("#id").val());
window.location.href = "${ctx}/jsp/zzhxm/downloadFile.action?ids=" + id;
}
//<%-- 生成缴费通知书 --%>
function generateNotice(flag) {
$.ajax({
url: "${ctx}/jsp/zzhxm/produceNotice.action",
type: 'post',
dataType: 'json',
async: false,
data: { ids: $("#ids").val(), flag: flag },
error: function () {
$.messager.alert('错误', '提交出错!');
},
success: function (data) {
if (data.result) {
$("#yzjg").html('验证成功!');
$.messager.alert('提示', "生成缴款通知书成功");
abc = "1";
window.location.reload();
} else {
abc = "0";
$("#yzjg").html('信息表编号重复!该项目状态:' + data.message);
$.messager.alert('提示', data.message);
}
}
});
}
function produceNotice(flag, row_id) {
$.ajax({
url: "${ctx}/jsp/zzhxm/produceNotice.action",
type: 'post',
dataType: 'json',
async: false,
data: { ids: $("#ids").val(), flag: flag, "zzhxmsfxx.id": row_id },
error: function () {
$.messager.alert('错误', '提交出错!');
},
success: function (data) {
if (data.result) {
$("#yzjg").html('验证成功!');
$.messager.alert('提示', "生成缴款通知书成功");
abc = "1";
window.location.reload();
} else {
abc = "0";
$("#yzjg").html('信息表编号重复!该项目状态:' + data.message);
$.messager.alert('提示', data.message);
}
}
});
}
$(function () {
var id = "";
var jktzsKey = "";
if ($("#ids").val() != null && $("#ids").val() != undefined && $("#ids").val() != "") {
jktzsKey = "ids";
id = $("#ids").val();
}
if ($("#jfdmwybh").val() != null && $("#jfdmwybh").val() != undefined && $("#jfdmwybh").val() != "") {
jktzsKey = "jfdmwybh";
id = $("#jfdmwybh").val();
}
$('#pagination').datagrid($.extend(window.dg_cm_pp_2, {
title: '收费信息列表',
url: 'zzhxmSfxxQuery.action',
queryParams: {
jfdmwybh: id,
ids: id
},
frozenColumns: [[
// {field:'id',checkbox:true}
]],
columns: [[
{
field: 'op', title: '操作', width: 130, align: 'left', formatter: function (value, rec) {
var btnTag = "";
<%--if (rec.statusCnjfhj == 0) {--%>
<%-- btnTag += "<a class='btn_01_mini' onclick=view('" + rec.id + "') >查看<b></b></a>" +--%>
<%-- "<c:if test='<%=permissions.containsKey('修改收费信息')%>'>" +--%>
<%-- "<a class='btn_01_mini' onclick=edit('" + rec.id + "') >修改<b></b></a>" +--%>
<%-- "</c:if>";--%>
<%--} else {--%>
<%-- btnTag += "<a class='btn_01_mini' onclick=view('" + rec.id + "') >查看<b></b></a>";--%>
<%--}--%>
<%--if (rec.typeCnjfhj == 2 && rec.statusCnjfhj == 0) {--%>
<%-- btnTag += "<a class='btn_01_mini' onclick=produceNotice(3,'" + rec.id + "') >生成通知书<b></b></a>"--%>
<%--}--%>
return btnTag;
}
},
/*{field:'createTime',title:'创建时间',width:fixWidth(0.16)},*/
{ field: 'id', hidden: 'true' },
{ field: 'jfdmwybh', hidden: 'true' },
{ field: 'sfxmmc', title: '收费项目名称', width: 160 },
{ field: 'sfxmlxdbh', title: '收费项目联系单编号', width: 160 },
{ field: 'yjjemx', title: '应缴金额明细', width: 160 },
{ field: 'shbm', title: '审核部门', width: 160 },
{ field: 'cnjfhj', title: '承诺缴费环节', width: 160 },
{
field: 'showName', title: '附件', width: 200, align: 'center', formatter: function (value, rec) {
return "<a class='' title='点击下载附件' style='cursor:pointer' onclick=opendoc('" + rec.id + "') >" + rec.showName + "<b></b></a>&nbsp;";
}
},
{ field: 'sfxxjbr', title: '信息录入人', width: 160 },
{ field: 'createTime', title: '录入时间', width: fixWidth(0.16) },
{
field: 'statusJBFH', title: '是否复核', width: 160, formatter: function (value, rec) {
if (rec.statusJBFH == 0) {
return "待复核";
}
if (rec.statusJBFH == 1) {
return "已退回";
}
if (rec.statusJBFH == 2) {
return "已通过";
}
if (rec.statusJBFH == 3) {
return "已修改";
}
}
},
]],
toolbar: [{
id: 'btnadd',
text: '添加',
iconCls: 'icon-add',
handler: function () {
addNew4Sfxx("${zzhxm.id}");
}
}]
}));
});
</script>
</head>
<body>
<form name="myform" method="post">
<div class="page_content">
<div class="box_01 submitdata">
<div class="inner12px">
<div class="cell">
<table width="100%">
<input id="ids" type="hidden" value="${zzhxm.id}">
<input id="jfdmwybh" type="hidden" value="${zzhxmJktzs.jfdmwybh}">
<tr>
<td>账户信息</td>
</tr>
<tr>
<th width="15%">代收单位名称</th>
<td width="35%">${zzhxm.dsdw}</td>
<th width="15%">代收单位层级</th>
<td width="35%">${zzhxm.dsdwcj}</td>
</tr>
</table>
<table>
<tr>
<td width="15%">项目信息</td>
</tr>
<tr>
<th width="15%">项目代码</th>
<td width="35%">${zzhxm.xmdm}</td>
<th width="15%">信息一览表编号</th>
<td width="35%">${zzhxm.xxylbbh}</td>
</tr>
<tr>
<th width="15%">规划项目编号</th>
<td width="35%">${zzhxm.ghxmbh}</td>
<th width="15%">建设单位名称</th>
<td width="35%">${zzhxm.jsdwmc}</td>
</tr>
<tr>
<th width="15%" id='lianxidan'>规划许可证编号</th>
<td width="35%">${zzhxm.ghxkzbh}</td>
<th width="15%">规划许可证类型</th>
<td width="35%">${zzhxm.ghxkzlx}</td>
</tr>
<tr>
<th width="15%">工程项目名称</th>
<td width="35%">${zzhxm.gcxmmc}</td>
<th width="15%">工程项目地点</th>
<td width="35%">${zzhxm.gcxmdd}</td>
</tr>
<tr>
<th width="15%">地上建筑面积</th>
<td width="35%">${zzhxm.dsjzmj}</td>
<th width="15%">地下建筑面积</th>
<td width="35%">${zzhxm.dxjzmj}</td>
</tr>
<tr>
<th width="15%">建设单位联系人</th>
<td width="35%">${zzhxm.jsdwlxr}</td>
<th width="15%">联系电话</th>
<td width="35%">${zzhxm.lxdh}</td>
</tr>
<tr>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td colspan="4" height="100px" style="text-align:center">
<s:if test="zzhxm.statusConstract == 0">
<a id="noticeBtn0" href="#" class="btn_01"
onclick="generateNotice(0);">人防费用章(市本级)<b></b></a>
</s:if>
<s:else>
<a href="javascript:return false;" class="btn_01"><i class="edit"
style="opacity: 0.5">人防费用章(非市本级)</i><b></b></a>
</s:else>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="pagination"></div>
</div>
</form>
</body>
</html>
\ No newline at end of file
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@include file="/common/header.jsp" %>
<%@taglib prefix="activiti" uri="/activiti/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/common/jsLib.jsp" %>
<title>Document</title>
<style>
.l-btn-icon.icon-add {
margin-top: -7px;
}
</style>
<script>
var index4Sf = 1;
/* $(document).ready(function () {
$("#showTitle").title($("#sfxmmcselect option:selected").val().text());
});*/
$(function () {
getShbmBySfxmmc();
})
function onSelected() {
var option = $("#sfxmmcselect option:selected").val();
var show = option;
// document.getElementById("#showTitle").title("title");
// $("#showTitle").attr('title',show);
document.getElementById("showTitle").setAttribute("title", show)
document.getElementById("showTitle").title = show;
}
//验证收费信息
function verify1(data) {
/*if ($("#sfxmmc").val()=="" || $("#sfxmmc").val()== undefined || $("#sfxmmc").val()==null) {
$.messager.alert('提示', '请填写收费项目名称!');
return
}*/
if ($("#sfxmlxdbh").val() == "" || $("#sfxmlxdbh").val() == undefined || $("#sfxmlxdbh").val() == null) {
$.messager.alert('提示', '请填写收费项目联系单编号!');
return
}
if ($("#yjjemx").val() == "" || $("#yjjemx").val() == undefined || $("#yjjemx").val() == null) {
$.messager.alert('提示', '请填写应缴金额明细!');
return
}
/*if ($("#shbm").val()=="" || $("#shbm").val()== undefined || $("#shbm").val()==null) {
$.messager.alert('提示', '请填写审核部门!');
return
}*/
var value;
var obj = {};
var obj1 = {};
var flag1 = true;
var boolean1 = true;
var message = "";
$("input[name=file1]").each(function () {
if ($(this).val() != "") {
var name = $(this).parent().siblings().find("input").val();
flag1 = $(this).parent().siblings().find("input[type='checkbox']").is(':checked');
if (!flag1) {
boolean1 = false;
// $.messager.alert('提示',"请在"+name+"选中复选框");
message = "请选中复选框";
return;
}
}
});
$("input[name=id]:checked").each(function () {
var name = $(this).val();
value = $(this).parent().siblings().find("input").val();
value = value.substring(value.lastIndexOf("\\") + 1);
var no = $(this).parent().parent().find("input[name=wdno]").val();
if (value == "") {
boolean1 = false;
// $.messager.alert('提示',"请上传"+$(this).val()+"文件");
message = "请上传文件";
return;
}
obj[value] = name;
obj1[value] = no;
});
$("#allFileName").val(JSON.stringify(obj));
$("#originFileName").val(JSON.stringify(obj1));
//1.收费项目数量<=7;
//2.三种状态其中一种改变,则对应的此状态不允许再添加新的缴费信息;
/*} else {*/
var cnjfhj = $('#sfTable input[name="zzhxmsfxx.cnjfhj"]:checked').val();
if (cnjfhj == "" && $('#cnjfhj').val() != undefined && $('#cnjfhj').val() != null) {
var val = $('#cnjfhj').val();
cnjfhj = val;
}
if (cnjfhj == undefined || cnjfhj == "") {
return;
}
if (!boolean1) {
$.messager.alert('提示', message);
return;
}
// 验证是否由当前的非税记录信息
var ids = $("#sfxxid").val();
var yzsqy = $('#yzsqy').val();
var dsdw = $('#dsdw').val();
var sfxmmc = $('#sfxmmcselect option:selected').val();//选中的值
var shbm = $('#shbmselect option:selected').val();//选中的值
$.ajax({
async: false,
url: "${ctx}/jsp/zzhxm/zzhxmSfxxCheck.action",
type: 'post',
dataType: 'json',
async: false,
data: { zzhxmid: "${zzhxm.id}", "zzhxmsfxx.cnjfhj": cnjfhj, "zzhxmsfxx.yzsqy": yzsqy, "zzhxmsfxx.dsdw": dsdw, "zzhxmsfxx.sfxmmc": sfxmmc, "zzhxmsfxx.shbm": shbm },
error: function (data) {
$.messager.alert('错误', data.message);
},
success: function (data) {
if (data.result) {
// $("#yzjg").html('验证成功!');
// alert("验证成功");
$.messager.alert('提示', "验证成功");
abc = "1";
$.messager.confirm("提交", "确定提交吗?", function (result) {
if (result) {
document.myform1.action = "rfadd.action";
document.myform1.submit();
}
});
} else {
abc = "0";
// $("#yzjg").html('添加失败!'+data.message);
$.messager.alert('错误', '验证失败,' + data.message);
return;
}
}
});
/*}*/
}
function getShbmBySfxmmc() {
//监测收费项目名称选择框
/*$("#sfxmmcselect").change(function(){*/
//置空部门选择框
var yzsqy = $('#yzsqy').val();
var dsdw = $('#dsdw').val();
var sfxmmc = $("#sfxmmcselect option:selected").val();
//异步获取
//根据一级select的值,异步获取数据更新二级的选项
$.ajax({
type: 'get',
url: '${ctx}/jsp/zzhxm/getShbmList.action',
data: {
"zzhxmsfxx.sfxmmc": sfxmmc,
"zzhxmsfxx.yzsqy": yzsqy,
"zzhxmsfxx.dsdw": dsdw
},
cache: false,
dataType: 'json',
success: function (secondDatas) {
// var data = eval('('+secondDatas+')');
var data = secondDatas.rows;
if (secondDatas.total != undefined && secondDatas.total != "" && secondDatas.total > 0) {
$("#shbmselect").empty();
}
//遍历回传的数据添加到二级select
$.each(data, function (key, secondData) {
var option = '<option value="' + secondData + '">' + secondData + '</option>'
$("#shbmselect").append(option)
})
/* //二级select展示
$("#box-select-second").fadeIn("slow");
//三级select隐藏
$("#box-select-third").fadeOut("slow");*/
},
error: function () {
alert("请求失败")
}
});
/*});*/
}
function scan(d) {
var text = $(d).parent().parent().find("input[type='checkbox']").val();
console.log(text);
// alert(text);
window.open('${ctx}/scan.jsp?id=' + encodeURIComponent(text));
}
function consoleConfig(data) {
console.log($("#myform1").zzhxm.cnjfhj);
}
function numberCheck(num) {
var cost = num.value;
var reg = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
if (!reg.test(cost)) {
$.messager.alert({
title: '提示信息!',
msg: '金额的输入格式不正确,请确认!'
});
return;
}
}
</script>
</head>
<body validform="true">
<div class="page_dialog">
<div class="inner6px">
<div class="cell" style="width: 100%">
<table width="100%" border="0">
<tr>
<td width="15%">项目信息</td>
</tr>
<tr>
<th width="15%">项目代码</th>
<td width="35%">
<input id="xmdm" name="zzhxm.xmdm" style="width:90%" value="${zzhxm.xmdm}" disabled />
<font style='color:red'>*</font>
</td>
<th width="15">信息一览表编号</th>
<td width="35%">
<input id="xxylbbh" name="zzhxm.xxylbbh" style="width:90%" value="${zzhxm.xxylbbh}"
disabled />
</td>
</tr>
<tr>
<th width="15">规划项目编号</th>
<td width="35%">
<input id="ghxmbh" name="zzhxm.ghxmbh" style="width:90%" value="${zzhxm.ghxmbh}" disabled />
</td>
<th width="15">建设单位名称</th>
<td width="35%">
<input id="jsdwmc" name="zzhxm.jsdwmc" style="width:90%" value="${zzhxm.jsdwmc}" disabled />
</td>
</tr>
<tr>
<th width="15">规划许可证编号</th>
<td width="35%">
<input id="ghxkzbh" name="zzhxm.ghxkzbh" style="width:90%" value="${zzhxm.ghxkzbh}"
disabled />
</td>
<th width="15">二级统计单位</th>
<td width="35%">
<input id="ghxkzlx" name="zzhxm.ghxkzlx" value="${zzhxm.ghxkzlx}" disabled />
</td>
</tr>
<tr>
<th width="15">工程项目名称</th>
<td width="35%">
<input id="gcxmmc" name="zzhxm.gcxmmc" style="width:90%" value="${zzhxm.gcxmmc}" disabled />
<font style='color:red'>*</font>
</td>
<th width="15">工程项目地点</th>
<td width="35%">
<input id="gcxmdd" name="zzhxm.gcxmdd" style="width:90%" value="${zzhxm.gcxmdd}" disabled />
<font style='color:red'>*</font>
</td>
</tr>
<tr>
<th width="15">地上建筑面积</th>
<td width="35%">
<input id="dsjzmj" name="zzhxm.dsjzmj" style="width:90%" value="${zzhxm.dsjzmj}" disabled />
<font style='color:red'>*</font>
</td>
<th width="15">地下建筑面积</th>
<td width="35%">
<input id="dxjzmj" name="zzhxm.dxjzmj" style="width:90%" value="${zzhxm.dxjzmj}" disabled />
<font style='color:red'>*</font>
</td>
</tr>
<tr>
<th width="15">建设单位联系人</th>
<td width="35%">
<input id="jsdwlxr" name="zzhxm.jsdwlxr" style="width:90%" value="${zzhxm.jsdwlxr}"
disabled />
<font style='color:red'>*</font>
</td>
<th width="15">联系电话</th>
<td width="35%">
<input id="lxdh" name="zzhxm.lxdh" style="width:90%" value="${zzhxm.lxdh}" disabled />
</td>
</tr>
</table>
<form name="myform1" method="post" enctype="multipart/form-data">
<s:token />
<input type="hidden" name="flag" value="${flag}">
<input type="hidden" name="zzhxm.id" value="${zzhxm.id}">
<input type="hidden" name="allFileName" id="allFileName" />
<input type="hidden" name="originFileName" id="originFileName" />
<div id="payDiv" class="easyui-accordion" style="">
<div id="showTitle" class="" title="添加收费信息" data-options="iconCls:'icon-ok'"
style="overflow:auto;padding:10px;">
<table width="100%" border="0" id="sfTable">
<tr>
<th width="15">收费项目名称</th>
<td width="35%">
<select id="sfxmmcselect" name="zzhxmsfxx.sfxmmc" style="width: 91%"
onchange="getShbmBySfxmmc()">
<c:forEach items="${yzssxsfxmmcList}" var="obj">
<option value="${obj}">${obj}</option>
</c:forEach>
</select>
</td>
<th width="15">审核部门</th>
<td width="35%">
<select id="shbmselect" name="zzhxmsfxx.shbm" style="width: 91%">
<c:forEach items="${yzssxshbmList}" var="obj">
<option value="${obj}">${obj}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th width="90">收费项目联系单编号</th>
<td width="35%">
<input id="sfxmlxdbh" name="zzhxmsfxx.sfxmlxdbh" style="width:90%"
datatype="*1-50" errormsg='此项为必填' maxlength="50" />
<font style='color:red'>*</font>
</td>
<th width="15">应缴金额</th>
<td width="35%">
<input id="yjjemx" name="zzhxmsfxx.yjjemx" style="width:90%" datatype="*1-50"
errormsg='此项为必填' maxlength="50" onblur="numberCheck(this)" />
<font style='color:red'>*</font>
</td>
</tr>
<tr>
<th width="15">承诺缴费环节</th>
<td width="35%">
<input type="radio" name="zzhxmsfxx.cnjfhj" value="施工许可前" checked="checked" />
施工许可前
<input type="radio" name="zzhxmsfxx.cnjfhj" value="竣工验收前" />
竣工验收前
<input type="radio" name="zzhxmsfxx.cnjfhj" value="" /><input id="cnjfhj"
name="zzhxmsfxx.cnjfhj" style="width:10%" />日内
</td>
<th width="15">提前缴纳配套费</th>
<td width="35%">
<input type="radio" name="zzhxmsfxx.cnjfhj" value="施工许可前" checked="checked" />
<input type="radio" name="zzhxmsfxx.cnjfhj" value="竣工验收前" />
</td>
</tr>
<tr>
<th width="15">缴费情况:</th>
<td colspan="3" style="text-align:left;">
<table width="100%" id="table">
<tr>
<th width="10%" style="text-align: left;"><input name="id"
checked="checked" type="checkbox" value="收费信息表"><span
id='fujianm'>征收联系单:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)" />
</td>
</tr>
<tr>
<th width="10%" style="text-align: left;"><input name="id"
checked="checked" type="checkbox" value="收费信息表"><span
id='fujianm'>税务反馈单:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)" />
</td>
</tr>
<tr>
<th width="10%" style="text-align: left;"><input name="id"
checked="checked" type="checkbox" value="收费信息表"><span
id='fujianm'>先行缴纳配套费的申请:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)" />
</td>
</tr>
<tr>
<th width="10%" style="text-align: left;"><input name="id"
checked="checked" type="checkbox" value="收费信息表"><span
id='fujianm'>完税证明:</span></th>
<td style="text-align: left;" width="20%" colspan="2">
<input type="file" name="file1">
<input type="button" value="扫描" onclick="scan(this)" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<table>
<tr>
<th width="15">备注</th>
<td width="85%">
<textarea id="beizhu" name="zzhxmsfxx.beizhu" style="width: 95%"></textarea>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td colspan="4" height="100px" style="text-align:center">
<s:if test="flag=='add'">
<a href="#" class="btn_01" type="button" onclick="verify1(this)">添加<b></b></a>&nbsp;
</s:if>
<a href="#" class="btn_01" onclick="parent.close_win('win_zzhxmsfxx');">关闭<b></b></a>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@include file="/common/header.jsp" %>
<%@taglib prefix="activiti" uri="/activiti/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<title>南京征收管理系统</title>
<%@include file="/common/jsLib.jsp" %>
<script>
$(function () {
window.top["Refresh_CloudHomePage_Content"] = function () {
window.location.reload();
}
})
function reloadDate() {
$('#pagination').datagrid('clearSelections');
search_xmlb();
}
// 查看
function view(row_Id) {
var dt = new Date();
createSimpleWindow("win_zzhxm", "查看详细信息", "/jsp/rfdz/RfdzView.action?zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 700);
}
function view_detail(row_Id) {
var dt = new Date();
// parent.addTab("sfxxTab", "收费信息", "收费信息.html?zzhxm.id=" + row_Id + "&dt=" + dt.getTime(), 850, 700);
parent.addTab("rfdzTab","收费信息","/jsp/rfdz/RfdzDetail.action?zzhxm.id="+row_Id+"&dt="+dt.getTime(),850,700);
}
function search_xmlb() {
var queryParams = {
"ghxkzbh": $("#ghxkzbh").val(),
"jfpzbh": $("#jfpzbh").val(),
"xxbbh": $("#xxbbh").val(),
"ghxmbh": $("#ghxmbh").val(),
"jsdwmc": $("#jsdwmc").val(),
"gcxmmc": $("#gcxmmc").val(),
"jfhj": $("#jfhj").val(),
"hczt": $("#hczt").val()
};
console.info(queryParams);
$('#pagination').datagrid('options').queryParams = queryParams;
$('#pagination').datagrid('clearSelections');
$("#pagination").datagrid('load');
}
$(function () {
$('#pagination').datagrid($.extend(window.dg_cm_pp_2, {
title: '人防费核查项目列表',
url: 'list.action',
queryParams: {
"ghxkzbh": $("#ghxkzbh").val(),
"jfpzbh": $("#jfpzbh").val(),
"xxbbh": $("#xxbbh").val(),
"ghxmbh": $("#ghxmbh").val(),
"jsdwmc": $("#jsdwmc").val(),
"gcxmmc": $("#gcxmmc").val(),
"jfhj": $("#jfhj").val(),
"hczt": $("#hczt").val()
},
frozenColumns: [[
// {field:'id',checkbox:true}
]],
striped: true,
columns: [[
{
field: 'op', title: '操作', width: 100, align: 'center', formatter: function (value, rec) {
return "<a class='btn_01_mini' onclick=view('"+rec.id+"') >查看<b></b></a>"
}
},
{
field: 'op1', title: '关联操作', width: 130, align: 'center', formatter: function (value, rec) {
return "<a class='btn_01_mini' onclick=view_detail('" + rec.id + "') >收费信息<b></b></a>";
}
},
{ field: 'dwmc', title: '建设单位名称', width: 186, align: 'center' },
{ field: 'xmmc', title: '工程项目名称', width: 186, align: 'center' },
{ field: 'jsdd', title: '工程项目地点', width: 186, align: 'center' },
{ field: 'xkzh', title: '规划许可证号', width: 186, align: 'center' },
{ field: 'xmdm', title: '缴费环节', width: 150, align: 'center' },
{ field: 'zsfw', title: '二级统计单位', width: 186, align: 'center' },
{ field: 'xmdm', title: '核查状态', width: 150, align: 'center' },
{ field: 'xmdm', title: '缴款通知书编号', width: 186, align: 'center' },
{ field: 'zslxdbh', title: '缴款凭证编号', width: 186, align: 'center' },
]],
}));
});
</script>
</head>
<body>
<div class="page_content">
<div class="box_01 submitdata">
<div class="inner12px">
<div class="cell boxBmargin12">
<table width="100%">
<tr>
<th width="15%">规划许可证编号</th>
<td width="35%"><input name="zzhxm.ghxkzbh" id="ghxkzbh" value="" type="text"></td>
<th width="15%">缴费凭证编号</th>
<td width="35%"><input name="zzhxm.jfpzbh" id="jfpzbh" value="" type="text"></td>
</tr>
<tr>
<th width="15%">信息表编号</th>
<td width="35%"><input name="zzhxm.xxbbh" id="xxbbh" value="" type="text"></td>
<th width="15%">规划项目编号</th>
<td width="35%"><input name="zzhxm.ghxmbh" id="ghxmbh" value="" type="text"></td>
</tr>
<tr>
<th width="15%">建设单位名称</th>
<td width="35%"><input name="zzhxm.jsdwmc" id="jsdwmc" value="" type="text"></td>
<th width="15%">工程项目名称</th>
<td width="35%"><input name="zzhxm.gcxmmc" id="gcxmmc" value="" type="text"></td>
</tr>
<tr>
<th width="15%">缴费环节</th>
<td width="35%">
<select name="zzhxm.jfhj" id="jfhj">
<option value="">请选择</option>
<option value="0"></option>
<option value="1">施工许可前</option>
<option value="2">30日</option>
</select>
</td>
<th width="15%">核查状态</th>
<td width="35%">
<select name="zzhxm.hczt" id="hczt">
<option value="">请选择</option>
<option value="0"></option>
<option value="1">已同步</option>
<option value="2">未同步</option>
</select>
</td>
</tr>
<!-- <%-- <tr>
<th width="15%">子账户状态</th>
<td width="35%">
<select name="zzhxm.accountStatus" id="accountStatus">
<option value="">请选择</option>
<option value="0">未激活</option>
<option value="1">已激活</option>
<option value="2">已作废</option>
<option value="3">已到账</option>
<option value="4">已缴销</option>
</select>
</td>
</tr>--%> -->
<tr>
<td colspan="4" align="center">
<a href="###" class="btn_01" onclick="search_xmlb()">查询<b></b></a>&nbsp;
<!-- <a href="###" class="btn_01" onclick="search_sdjd(1)" >已复核项目<b></b></a>&nbsp; -->
<a href="###" class="btn_01" onclick="clear_form(document.myform);">清空<b></b></a>&nbsp;
</td>
</tr>
</table>
</div>
<div id="pagination">
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@include file="/common/header.jsp" %>
<%@taglib prefix="activiti" uri="/activiti/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/common/jsLib.jsp" %>
<title>Document</title>
<script type="text/javascript">
//下缴费信息附件
function opendoc(id) {
console.log(id);
console.log($("#id").val());
window.location.href = "${ctx}/jsp/zzhxm/downloadFile.action?ids=" + id;
}
//生成缴款通知书;
/*function generateNotice(id){
$.ajax({
url: "/jsp/zzhxm/produceNotice.action",
type: 'post',
dataType: 'json',
async: false,
data: {ids : $("#xbxb").val()},
error: function () {
$.messager.alert('错误', '提交出错!');
},
success: function (data) {
if (data.result) {
$("#yzjg").html('验证成功!');
alert("验证成功");
abc="1";
} else {
abc="0";
$("#yzjg").html('信息表编号重复!该项目状态:'+data.message);
}
}
});
console.log(id);
}*/
</script>
</head>
<body>
<form name="myform" method="post">
<div class="page_dialog">
<div class="inner6px">
<div class="cell" style="width: ${tableWidth}">
<table width="100%">
<tr>
<td>账户信息</td>
</tr>
<tr>
<th width="15%">代收单位名称</th>
<td width="35%">${zzhxm.dsdw}</td>
<th width="15%">代收单位层级</th>
<td width="35%">${zzhxm.dsdwcj}</td>
</tr>
</table>
<table>
<tr>
<td width="15%">项目信息</td>
</tr>
<!--<c:if test="${sdjd.mjyj =='005'}">-->
<tr>
<th width="15%">项目代码</th>
<td width="35%">${zzhxm.xmdm}</td>
<th width="15%">信息一览表编号</th>
<td width="35%">${zzhxm.xxylbbh}</td>
</tr>
<!--</c:if>-->
<tr>
<th width="15%">规划项目编号</th>
<td width="35%">${zzhxm.ghxmbh}</td>
<th width="15%">建设单位名称</th>
<td width="35%">${zzhxm.jsdwmc}</td>
</tr>
<tr>
<th width="15%" id='lianxidan'>规划许可证编号</th>
<td width="35%">${zzhxm.ghxkzbh}</td>
<th width="15%">二级统计单位</th>
<td width="35%">${zzhxm.ghxkzlx}</td>
</tr>
<tr>
<th width="15%">工程项目名称</th>
<td width="35%">${zzhxm.gcxmmc}</td>
<th width="15%">工程项目地点</th>
<td width="35%">${zzhxm.gcxmdd}</td>
</tr>
<tr>
<th width="15%">地上建筑面积</th>
<td width="35%">${zzhxm.dsjzmj}</td>
<th width="15%">地下建筑面积</th>
<td width="35%">${zzhxm.dxjzmj}</td>
</tr>
<tr>
<th width="15%">建设单位联系人</th>
<td width="35%">${zzhxm.jsdwlxr}</td>
<th width="15%">联系电话</th>
<td width="35%">${zzhxm.lxdh}</td>
</tr>
<tr>
</tr>
</table>
<!--
<tr>
<td width="15%">收费信息</td>
</tr>-->
<!--<s:iterator value="zzhxmSfxx" id="array">
<tr>
<td><s:property value="id"/></td>
<td><s:property value="name"/></td>
<td><s:property value="pwd"/></td>
<td><s:property value="age"/></td>
</tr>
</s:iterator>
<c:forEach var="s" items="${zzhxmSfxx}">-->
<div class="easyui-accordion">
<s:iterator value="zzhxmSfxx" id="array">
<div class="" title="<s:property value='sfxmmc'/>" data-options="iconCls:'icon-ok'"
style="overflow:auto;padding:10px;">
<table id="sfTable">
<input type="hidden" id="id" name="id" value="<s:property value='id'/>">
<tr>
<th width="15%">收费项目名称</th>
<!--<td width="35%" ><s:property value="#sfxx.sfxmmc"/></td>-->
<!--<td width="35%" ><c:out value="${s}.sfxmmc"></c:out></td>-->
<td width="35%">
<s:property value="sfxmmc" />
</td>
<th width="15%">缴款通知书编号</th>
<td width="35%">
<s:property value="sfxmlxdbh" />
</td>
<!--<td width="35%" >${li.sfxmzslxdbh}</td>-->
<!--<td width="35%" ><s:property value="#sfxx.sfxmzslxdbh"/></td>-->
</tr>
<tr>
<th width="15%">应缴金额明细</th>
<td width="35%">
<s:property value="yjjemx" />
</td>
<!--<td width="35%" >${li.yjjemx}</td>-->
<!--<td width="35%" ><s:property value="#sfxx.yjjemx"/></td>-->
<th width="15%">审核部门</th>
<!--<td width="35%" ><s:property value="#sfxx.shbm"/></td>-->
<td width="35%">
<s:property value="shbm" />
</td>
<!--<td width="35%" >${li.shbm}</td>-->
</tr>
<tr>
<th width="15%">承诺缴费环节</th>
<!--<td width="35%" ><s:property value="#sfxx.cnjfhj"/></td>-->
<td width="35%">
<s:property value="cnjfhj" />
</td>
<!--<td width="35%" >${li.cnjfhj}</td>-->
<!--<th width="15%">审核部门</th>-->
<!--<td width="35%" >${li.shbm}</td>-->
<th width="15%">一般缴款书编号</th>
<td width="35%">
<s:property value="cnjfhj" />
</td>
</tr>
<tr>
<th width="15%">缴费凭证编号</th>
<td width="35%">
<s:property value="cnjfhj" />
</td>
</tr>
</table>
</div>
</s:iterator>
</div>
<div class="easyui-accordion">
<s:iterator value="zzhxmSfxx" id="array">
<div class="" title="<s:property value='sfxmmc'/>" data-options="iconCls:'icon-ok'"
style="overflow:auto;padding:10px;">
<table id="sfTable">
<input type="hidden" id="id" name="id" value="<s:property value='id'/>">
<tr>
<th width="15%">收费项目名称</th>
<!--<td width="35%" ><s:property value="#sfxx.sfxmmc"/></td>-->
<!--<td width="35%" ><c:out value="${s}.sfxmmc"></c:out></td>-->
<td width="35%">
<s:property value="sfxmmc" />
</td>
<th width="15%">收费项目联系单编号</th>
<td width="35%">
<s:property value="sfxmlxdbh" />
</td>
<!--<td width="35%" >${li.sfxmzslxdbh}</td>-->
<!--<td width="35%" ><s:property value="#sfxx.sfxmzslxdbh"/></td>-->
</tr>
<tr>
<th width="15%">应缴金额明细</th>
<td width="35%">
<s:property value="yjjemx" />
</td>
<!--<td width="35%" >${li.yjjemx}</td>-->
<!--<td width="35%" ><s:property value="#sfxx.yjjemx"/></td>-->
<th width="15%">审核部门</th>
<!--<td width="35%" ><s:property value="#sfxx.shbm"/></td>-->
<td width="35%">
<s:property value="shbm" />
</td>
<!--<td width="35%" >${li.shbm}</td>-->
</tr>
<tr>
<th width="15%">承诺缴费环节</th>
<!--<td width="35%" ><s:property value="#sfxx.cnjfhj"/></td>-->
<td width="35%">
<s:property value="cnjfhj" />
</td>
</tr>
</table>
</div>
</s:iterator>
</div>
<table width="100%" border="0">
<tr>
<td colspan="4" height="100px" style="text-align:center">
<!--<a href="#" class="btn_01" onclick="generateNotice(0);">施工前缴款<b></b></a>
<a href="#" class="btn_01" onclick="generateNotice(1);">竣工前缴款<b></b></a>
<a href="#" class="btn_01" onclick="generateNotice(2);">N日内缴款<b></b></a>-->
<a href="#" class="btn_01" onclick="parent.close_win('win_zzhxm');">关闭<b></b></a>
</td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>
\ No newline at end of file
...@@ -1017,7 +1017,7 @@ public class PaymentVoucherAction extends BaseAction ...@@ -1017,7 +1017,7 @@ public class PaymentVoucherAction extends BaseAction
if(!Constant.STATUS_LOCK_2.equals(paymentItemHis.getLockFlag())){ if(!Constant.STATUS_LOCK_2.equals(paymentItemHis.getLockFlag())){
if(hasDelayProject(paymentItemHis.getDwmc())){ if(hasDelayProject(paymentItemHis.getDwmc())){
result = false; result = false;
message = "该单位有逾期未缴清的项目,暂时无法打印!"; message = "该单位有逾期未缴清的项目,暂时无法操作!";
} }
} }
} }
......
...@@ -550,6 +550,7 @@ public class BaseDaoImpl implements BaseDao { ...@@ -550,6 +550,7 @@ public class BaseDaoImpl implements BaseDao {
*/ */
protected void setQueryParameters(Query query, Map paraMap) { protected void setQueryParameters(Query query, Map paraMap) {
if (query != null && paraMap != null && !paraMap.isEmpty()) { if (query != null && paraMap != null && !paraMap.isEmpty()) {
System.out.println("SQL:" + query.getQueryString() + " param=" + paraMap.toString());
List namedParms = Arrays.asList(query.getNamedParameters()); List namedParms = Arrays.asList(query.getNamedParameters());
Iterator iter = paraMap.keySet().iterator(); Iterator iter = paraMap.keySet().iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="JFZM" extends="default" namespace="/jsp/jfzm">
<action name="JfzmList" >
<result name="success">/WEB-INF/pages/jfzm/Jfzm_List.jsp</result>
</action>
<!-- 列表查询,返回Json数据 -->
<action name="jflist" class="com.jshx.jfzm.web.JfzmAction" method="list">
</action>
</package>
</struts>
package com.jshx.jfzm.web;
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.paymentItemHis.service.PaymentItemHisService;
import com.jshx.zsdw.service.ZsdwService;
import com.neusoft.egov.utils.TextUtils;
import net.sf.json.JsonConfig;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.HashMap;
import java.util.Map;
public class JfzmAction extends BaseAction {
/**
* 业务类
*/
@Autowired
private PaymentItemHisService paymentItemHisService;
@Autowired
private ZsdwService zsdwService;
/**
* 分页信息
*/
private Pagination pagination;
String ghxkzbh;
String jfpzbh;
String xxbbh;
String ghxmbh;
String jsdwmc;
String gcxmmc;
String jfhj;
String hczt;
/**
* 缴费证明列表
* @throws Exception
*/
public void list() throws Exception{
Map<String, Object> paraMap = new HashMap<String, Object>();
if(pagination==null)
pagination = new Pagination(this.getRequest());
paraMap.put("isCwyz", "1");// 财务用章
if (!TextUtils.isEmpty(ghxkzbh)){
paraMap.put("xkzh", "%" + ghxkzbh + "%");
}
if(!TextUtils.isEmpty(jfpzbh)) {
paraMap.put("zslxdbh", "%" + jfpzbh + "%");
}
if (!TextUtils.isEmpty(xxbbh)){
paraMap.put("xxbbh", "%" + xxbbh + "%");
}
if (!TextUtils.isEmpty(ghxmbh)){
paraMap.put("xmbh", "%" + ghxmbh + "%");
}
if (!TextUtils.isEmpty(jsdwmc)){
paraMap.put("jsdw", "%" + jsdwmc + "%");
}
if (!TextUtils.isEmpty(gcxmmc)){
paraMap.put("jsdd", "%" + gcxmmc + "%");
}
//TODO 缴费环节、核查状态筛选
if(!this.getLoginUser().getIsSuperAdmin()){
String dwdm=zsdwService.getDwdm(this.getLoginUserDepartmentId());
paraMap.put("dwdm", dwdm);
}
JsonConfig config = new JsonConfig();
config.registerJsonValueProcessor(java.util.Date.class,new DateJsonValueProcessor());
Map<String, String> codeMap = new HashMap<String, String>();
//此处添加需要转换的一维代码,key是一维代码在数据对象中的属性名,value是一维代码的codeId
config.registerJsonValueProcessor(String.class,new CodeJsonValueProcessor(codeMap));
// final String filter = "isCwyz|id|slbh|isfdx|dwmc|xmmc|mjyj|dkxmslh|zsdw|dkmj|csmj|ptyjmj|ptyjje|ptymje|ptymmj|rfyjmj|rfyjje|rfymmj|rfymje|xqyjje|xqymmj|xqymje|xqyjmj|byyjmj|byyjje|byymmj|byymje|zyjje|zymje|warnFlag|accountbankId|lockFlag|xmbzj|zslxdbh|ECN|xmxxb|xmxxb.xxylb|xmxxb.";
// if (filter != null && filter.length() > 1) {
// config.setJsonPropertyFilter(new PropertyFilter() {
// public boolean apply(Object source, String name, Object value) {
// if (filter.indexOf(name + "|") != -1)
// return false;
// else
// return true;
// }
// });
// }
pagination = paymentItemHisService.findByPage(pagination, paraMap);
convObjectToJson(pagination, config);
}
/**
* 同步缴费证明
*/
public void sync() {
}
public Pagination getPagination() {
return pagination;
}
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
public String getGhxkzbh() {
return ghxkzbh;
}
public void setGhxkzbh(String ghxkzbh) {
this.ghxkzbh = ghxkzbh;
}
public String getJfpzbh() {
return jfpzbh;
}
public void setJfpzbh(String jfpzbh) {
this.jfpzbh = jfpzbh;
}
public String getXxbbh() {
return xxbbh;
}
public void setXxbbh(String xxbbh) {
this.xxbbh = xxbbh;
}
public String getGhxmbh() {
return ghxmbh;
}
public void setGhxmbh(String ghxmbh) {
this.ghxmbh = ghxmbh;
}
public String getJsdwmc() {
return jsdwmc;
}
public void setJsdwmc(String jsdwmc) {
this.jsdwmc = jsdwmc;
}
public String getGcxmmc() {
return gcxmmc;
}
public void setGcxmmc(String gcxmmc) {
this.gcxmmc = gcxmmc;
}
public String getJfhj() {
return jfhj;
}
public void setJfhj(String jfhj) {
this.jfhj = jfhj;
}
public String getHczt() {
return hczt;
}
public void setHczt(String hczt) {
this.hczt = hczt;
}
}
...@@ -69,10 +69,6 @@ ...@@ -69,10 +69,6 @@
order by t.createTime desc order by t.createTime desc
</select> </select>
<!-- 根据搜索条件查询 无论能不能打印发票 --> <!-- 根据搜索条件查询 无论能不能打印发票 -->
<select id="findPaymentItemHisByMap1"> <select id="findPaymentItemHisByMap1">
from PaymentItemHis t where t.delFlag = 0 from PaymentItemHis t where t.delFlag = 0
...@@ -124,7 +120,7 @@ ...@@ -124,7 +120,7 @@
<!-- 获取凭证编号:规则:ZSLXDBH 最大值,ZSLXDBH必须是数字,忽略不是数字的数据--> <!-- 获取凭证编号:规则:ZSLXDBH 最大值,ZSLXDBH必须是数字,忽略不是数字的数据-->
<select id="getPzbh"> <select id="getPzbh">
select TO_NUMBER(ZSLXDBH) from PAYMENT_ITEM_HIS where rownum = 1 and ZSLXDBH is not null and trim(TRANSLATE(ZSLXDBH,'0123456789',' ')) is null order by TO_NUMBER(ZSLXDBH) desc from PaymentItemHis t where t.zslxdbh is not null and trim(TRANSLATE(t.zslxdbh,'0123456789',' ')) is null order by TO_NUMBER(t.zslxdbh) desc
</select> </select>
</sqlMap> </sqlMap>
...@@ -30,7 +30,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis ...@@ -30,7 +30,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis
/** /**
* 查询所有记录 * 查询所有记录
* @param page 分页信息
* @param paraMap 查询条件信息 * @param paraMap 查询条件信息
* @return 分页信息 * @return 分页信息
*/ */
...@@ -58,13 +57,19 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis ...@@ -58,13 +57,19 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis
*/ */
public int getPzbh() public int getPzbh()
{ {
List getPzbh = this.findListByHqlId("getPzbh", new HashMap<>()); Pagination pagination = new Pagination(1,1);
return (int)getPzbh.get(0); Pagination page = this.findPageByHqlId("getPzbh", new HashMap<>(), pagination);
try {
List<PaymentItemHis> list = page.list;
return Integer.parseInt(list.get(0).getZslxdbh());
} catch (Exception e) {
}
return 0;
} }
/** /**
* 保存信息 * 保存信息
* @param model 信息
*/ */
public void save(PaymentItemHis paymentItemHis) public void save(PaymentItemHis paymentItemHis)
{ {
...@@ -74,7 +79,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis ...@@ -74,7 +79,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis
/** /**
* 修改信息 * 修改信息
* @param model 信息
*/ */
public void update(PaymentItemHis paymentItemHis) public void update(PaymentItemHis paymentItemHis)
{ {
...@@ -83,7 +87,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis ...@@ -83,7 +87,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis
/** /**
* 物理删除信息 * 物理删除信息
* @param ids 主键ID
*/ */
public void delete(String id) public void delete(String id)
{ {
...@@ -92,7 +95,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis ...@@ -92,7 +95,6 @@ public class PaymentItemHisDaoImpl extends BaseDaoImpl implements PaymentItemHis
/** /**
* 逻辑删除信息 * 逻辑删除信息
* @param ids 主键ID
*/ */
public void deleteWithFlag(String id) public void deleteWithFlag(String id)
{ {
......
...@@ -83,6 +83,11 @@ public class PaymentItemHisServiceImpl extends BaseServiceImpl implements Paymen ...@@ -83,6 +83,11 @@ public class PaymentItemHisServiceImpl extends BaseServiceImpl implements Paymen
return paymentItemHis; return paymentItemHis;
} }
@Override
public String getLastZslxdbh() {
return null;
}
@Override @Override
public int getPzbh() { public int getPzbh() {
return paymentItemHisDao.getPzbh(); return paymentItemHisDao.getPzbh();
......
...@@ -216,7 +216,7 @@ public class PaymentItemHisAction extends BaseAction ...@@ -216,7 +216,7 @@ public class PaymentItemHisAction extends BaseAction
//此处添加需要转换的一维代码,key是一维代码在数据对象中的属性名,value是一维代码的codeId //此处添加需要转换的一维代码,key是一维代码在数据对象中的属性名,value是一维代码的codeId
config.registerJsonValueProcessor(String.class,new CodeJsonValueProcessor(codeMap)); config.registerJsonValueProcessor(String.class,new CodeJsonValueProcessor(codeMap));
final String filter = "id|slbh|isfdx|dwmc|xmmc|mjyj|dkxmslh|zsdw|dkmj|csmj|ptyjmj|ptyjje|ptymje|ptymmj|rfyjmj|rfyjje|rfymmj|rfymje|xqyjje|xqymmj|xqymje|xqyjmj|byyjmj|byyjje|byymmj|byymje|zyjje|zymje|warnFlag|accountbankId|lockFlag|xmbzj|zslxdbh|ECN|xmxxb|xmxxb.xxylb|xmxxb."; final String filter = "isCwyz|id|slbh|isfdx|dwmc|xmmc|mjyj|dkxmslh|zsdw|dkmj|csmj|ptyjmj|ptyjje|ptymje|ptymmj|rfyjmj|rfyjje|rfymmj|rfymje|xqyjje|xqymmj|xqymje|xqyjmj|byyjmj|byyjje|byymmj|byymje|zyjje|zymje|warnFlag|accountbankId|lockFlag|xmbzj|zslxdbh|ECN|xmxxb|xmxxb.xxylb|xmxxb.";
if (filter != null && filter.length() > 1) { if (filter != null && filter.length() > 1) {
config.setJsonPropertyFilter(new PropertyFilter() { config.setJsonPropertyFilter(new PropertyFilter() {
public boolean apply(Object source, String name, Object value) { public boolean apply(Object source, String name, Object value) {
...@@ -237,24 +237,22 @@ public class PaymentItemHisAction extends BaseAction ...@@ -237,24 +237,22 @@ public class PaymentItemHisAction extends BaseAction
*财务用章 *财务用章
* @throws Exception * @throws Exception
*/ */
public String cwyz() throws Exception { public void cwyz() throws Exception {
PaymentItemHis model = paymentItemHisService.getById(paymentItemHis.getId()); PaymentItemHis model = paymentItemHisService.getById(id);
model.setIsCwyz("1"); model.setIsCwyz("1");
paymentItemHisService.update(model); paymentItemHisService.update(model);
//TODO 新增表人防费,把他加入人防费表内 //TODO 新增表人防费,把他加入人防费表内
return RELOAD;
} }
/** /**
* 生成凭证 * 生成凭证
* @throws Exception * @throws Exception
*/ */
public String scpz() throws Exception { public void scpz() throws Exception {
PaymentItemHis model = paymentItemHisService.getById(paymentItemHis.getId()); PaymentItemHis model = paymentItemHisService.getById(id);
model.setIsCreateJfpz("1"); model.setIsCreateJfpz("1");
model.setZslxdbh(paymentItemHisService.getPzbh() + 1 + "");//取出历史最大 + 1 model.setZslxdbh(paymentItemHisService.getPzbh() + 1 + "");//取出历史最大 + 1
paymentItemHisService.update(model); paymentItemHisService.update(model);
return RELOAD;
} }
/** /**
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap>
<!-- 根据搜索条件查询 -->
<select id="findRfdzByMap">
from Rfdz t where t.delFlag = 0 and t.printFlag = 'YES'
<isNotEmpty property="deptCodes">
<![CDATA[and t.deptId in (:deptCodes)]]>
</isNotEmpty>
<isNotEmpty property="ids">
<![CDATA[and t.id in (:ids)]]>
</isNotEmpty>
<isNotEmpty property="slbh">
<![CDATA[and t.slbh like :slbh]]>
</isNotEmpty>
<isNotEmpty property="dwmc">
<![CDATA[and t.dwmc like :dwmc]]>
</isNotEmpty>
<isNotEmpty property="xmmc">
<![CDATA[and t.xmmc like :xmmc]]>
</isNotEmpty>
<isNotEmpty property="zsdw">
<![CDATA[and t.zsdw like :zsdw]]>
</isNotEmpty>
<isNotEmpty property="zslxdbh">
<![CDATA[and t.zslxdbh like :zslxdbh]]>
</isNotEmpty>
<isNotEmpty property="dwdm">
<![CDATA[and t.dwdm like :dwdm]]>
</isNotEmpty>
<isNotEmpty property="lockFlag">
<![CDATA[and t.lockFlag = :lockFlag]]>
</isNotEmpty>
<isNotEmpty property="zyjje">
<![CDATA[and t.zyjje > 0]]>
</isNotEmpty>
<isNotEmpty property="ptyjje">
<![CDATA[and t.ptyjje > 0]]>
</isNotEmpty>
<isNotEmpty property="yjje">
<![CDATA[and t.ptyjje = :yjje]]>
</isNotEmpty>
<isNotEmpty property="ECN">
<![CDATA[and t.ECN > 0]]>
</isNotEmpty>
<isNotEmpty property="ecnn">
<![CDATA[and t.ECN like :ecnn]]>
</isNotEmpty>
<isNotEmpty property="nonTaxStatus">
<![CDATA[and t.nonTaxStatus = :nonTaxStatus]]>
</isNotEmpty>
<isNotEmpty property="isPrintJfpz">
<![CDATA[and t.isPrintJfpz = :isPrintJfpz]]>
</isNotEmpty>
<isNotEmpty property="isfdx">
<![CDATA[and t.isfdx = :isfdx]]>
</isNotEmpty>
<isNotEmpty property="notisfdx">
<![CDATA[and t.isfdx is null]]>
</isNotEmpty>
<isNotEmpty property="yzsFlag">
<![CDATA[and t.yzsFlag = :yzsFlag]]>
</isNotEmpty>
<isNotEmpty property="isCreateJfpz">
<![CDATA[and t.isCreateJfpz = :isCreateJfpz]]>
</isNotEmpty>
order by t.createTime desc
</select>
</sqlMap>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="RFDZ" extends="default" namespace="/jsp/rfdz">
<action name="RfdzList" >
<result name="success">/WEB-INF/pages/rfdz/Rfdz_List.jsp</result>
</action>
<action name="RfdzDetail" >
<result name="success">/WEB-INF/pages/rfdz/Rfdz_Detail.jsp</result>
</action>
<action name="RfdzEdit" >
<result name="success">/WEB-INF/pages/rfdz/Rfdz_Edit.jsp</result>
</action>
<action name="RfdzView" >
<result name="success">/WEB-INF/pages/rfdz/Rfdz_View.jsp</result>
</action>
<!-- 列表查询,返回Json数据 -->
<action name="rflist" class="com.jshx.rfdz.web.RfdzAction" method="list">
</action>
<action name="rfadd" class="com.jshx.rfdz.web.RfdzAction" method="save">
<interceptor-ref name="tokenInterceptor" />
<interceptor-ref name="coreStack" />
<result name="reload" type="redirect">/common/successToSelf.jsp?windowId=win_paymentItemHis</result>
<result name="invalid.token">/invalid.jsp</result>
</action>
<action name="rfupdate" class="com.jshx.rfdz.web.RfdzAction" method="update">
</action>
<action name="rfdetail" class="com.jshx.rfdz.web.RfdzAction" method="update">
</action>
<action name="rflist" class="com.jshx.rfdz.web.RfdzAction" method="update">
</action>
</package>
</struts>
package com.jshx.rfdz.dao;
import com.jshx.core.base.dao.BaseDao;
import com.jshx.core.base.vo.Pagination;
import com.jshx.rfdz.entity.Rfdz;
import java.util.List;
import java.util.Map;
public interface RfdzDao extends BaseDao
{
/**
* 分页查询
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public Pagination findByPage(Pagination page, Map<String, Object> paraMap);
/**
* 查询所有记录
* @param paraMap 查询条件信息
* @return 分页信息
*/
public List findPaymentItemRf(Map<String, Object> paraMap);
/**
* 根据主键ID查询信息
* @param id 主键ID
* @return 主键ID对应的信息
*/
public Rfdz getById(String id);
/**
* 保存信息
* @param model 信息
*/
public void save(Rfdz model);
/**
* 修改信息
* @param model 信息
*/
public void update(Rfdz model);
/**
* 物理删除信息
*/
public void delete(String id);
/**
* 逻辑删除信息
*/
public void deleteWithFlag(String id);
}
package com.jshx.rfdz.dao.impl;
import com.jshx.core.base.dao.impl.BaseDaoImpl;
import com.jshx.core.base.vo.Pagination;
import com.jshx.rfdz.dao.RfdzDao;
import com.jshx.rfdz.entity.Rfdz;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component("paymentItemRfDao")
public class RfdzDaoImpl extends BaseDaoImpl implements RfdzDao
{
/**
* 分页查询
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public Pagination findByPage(Pagination page, Map<String, Object> paraMap)
{
return this.findPageByHqlId("findRfdzByMap", paraMap, page);
}
/**
* 查询所有记录
* @param paraMap 查询条件信息
* @return 分页信息
*/
public List findPaymentItemRf(Map<String, Object> paraMap){
return this.findListByHqlId("findRfdzByMap", paraMap);
}
/**
* 根据主键ID查询信息
* @param id 主键ID
* @return 主键ID对应的信息
*/
public Rfdz getById(String id)
{
return (Rfdz)this.getObjectById(Rfdz.class, id);
}
/**
* 保存信息
*/
public void save(Rfdz paymentItemRf)
{
paymentItemRf.setId(null);
this.saveOrUpdateObject(paymentItemRf);
}
/**
* 修改信息
*/
public void update(Rfdz paymentItemRf)
{
this.saveOrUpdateObject(paymentItemRf);
}
/**
* 物理删除信息
*/
public void delete(String id)
{
this.removeObjectById(Rfdz.class, id);
}
/**
* 逻辑删除信息
*/
public void deleteWithFlag(String id)
{
Rfdz paymentItemRf = (Rfdz)this.getObjectById(Rfdz.class, id);
paymentItemRf.setDelFlag(1);
this.saveObject(paymentItemRf);
}
}
package com.jshx.rfdz.entity;
import com.jshx.core.base.entity.BaseModel;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 实体类模板(目前仅适配MS-SQLServer数据库)
* @author
*
*/
@SuppressWarnings("serial")
@Entity
@Table(name="PAYMENT_ITEM_RF")
public class Rfdz extends BaseModel {
/**
* 部门代码
*/
private String deptId;
/**
* 删除标记
*/
private Integer delFlag;
/**
* 项目表主键
*/
private String xmbzj;
/**
* 收费项目名称
* (防空地下室易地建设费)
*/
private String sfxmmc;
/**
* 审核部门
*/
private String shbm;
/**
* 收费项目联系单编号
*/
private String sfxmlxdbh;
/**
* 应缴金额
*/
private String yjje;
/**
* 缴费承诺
*/
private String jfcn;
/**
* 延后缴纳
*/
private String yhjn;
/**
* 备注
*/
private String beizhu;
@Column
public Integer getDelFlag() {
return delFlag;
}
public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}
@Column(name = "XMBZJ")
public String getXmbzj() {
return xmbzj;
}
public void setXmbzj(String xmbzj) {
this.xmbzj = xmbzj;
}
@Column(name = "SFXMMC")
public String getSfxmmc() {
return sfxmmc;
}
public void setSfxmmc(String sfxmmc) {
this.sfxmmc = sfxmmc;
}
@Column(name = "SHBM")
public String getShbm() {
return shbm;
}
public void setShbm(String shbm) {
this.shbm = shbm;
}
@Column(name = "SFXMLXDBH")
public String getSfxmlxdbh() {
return sfxmlxdbh;
}
public void setSfxmlxdbh(String sfxmlxdbh) {
this.sfxmlxdbh = sfxmlxdbh;
}
@Column(name = "YJJE")
public String getYjje() {
return yjje;
}
public void setYjje(String yjje) {
this.yjje = yjje;
}
@Column(name = "JFCN")
public String getJfcn() {
return jfcn;
}
public void setJfcn(String jfcn) {
this.jfcn = jfcn;
}
@Column(name = "YHJN")
public String getYhjn() {
return yhjn;
}
public void setYhjn(String yhjn) {
this.yhjn = yhjn;
}
@Column(name = "BEIZHU")
public String getBeizhu() {
return beizhu;
}
public void setBeizhu(String beizhu) {
this.beizhu = beizhu;
}
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
}
package com.jshx.rfdz.service;
import com.jshx.core.base.service.BaseService;
import com.jshx.core.base.vo.Pagination;
import com.jshx.rfdz.entity.Rfdz;
import java.util.List;
import java.util.Map;
public interface RfdzService extends BaseService
{
/**
* 分页查询
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public Pagination findByPage(Pagination page, Map<String, Object> paraMap);
public List<Rfdz> findall(Map<String, Object> paraMap);
/**
* 根据主键ID查询信息
* @param id 主键ID
* @return 主键ID对应的信息
*/
public Rfdz getById(String id);
/**根据受理编号查询代缴款项目
* @param orderId
* @return
*/
public Rfdz getByOrderId(String orderId);
/**根据项目表id查询代缴款项目
* @param orderId
* @return
*/
public Rfdz getByXmbId(String xmbzj);
/**
* 保存信息
* @param model 信息
*/
public void save(Rfdz model);
/**
* 修改信息
* @param model 信息
*/
public void update(Rfdz model);
/**
* 物理删除信息
* @param ids 主键ID列表
*/
public void delete(String[] ids);
/**
* 逻辑删除信息
* @param ids 主键ID列表
*/
public void deleteWithFlag(String ids);
/**根据凭证查询代缴款项目
* @param orderId
* @return
*/
public Rfdz getByZslxdbh(String zslxdbh);
}
package com.jshx.rfdz.service.impl;
import com.jshx.core.base.service.impl.BaseServiceImpl;
import com.jshx.core.base.vo.Pagination;
import com.jshx.rfdz.dao.RfdzDao;
import com.jshx.rfdz.entity.Rfdz;
import com.jshx.rfdz.service.RfdzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service("paymentItemRfService")
public class RfdzServiceImpl extends BaseServiceImpl implements RfdzService
{
/**
* Dao类
*/
@Autowired()
@Qualifier("paymentItemRfDao")
private RfdzDao rfdzDao;
/**
* 分页查询
* @param page 分页信息
* @param paraMap 查询条件信息
* @return 分页信息
*/
public Pagination findByPage(Pagination page, Map<String, Object> paraMap)
{
return rfdzDao.findByPage(page, paraMap);
}
/**
* 根据主键ID查询信息
* @param id 主键ID
* @return 主键ID对应的信息
*/
public Rfdz getById(String id)
{
return rfdzDao.getById(id);
}
/**根据受理编号查询代缴款项目
* @param orderId
* @return
*/
public Rfdz getByOrderId(String orderId) {
Map<String,Object> paraMap = new HashMap<String,Object>();
paraMap.put("slbh", orderId);
Rfdz paymentItemRf = (Rfdz) rfdzDao.findObjectByFieldsMap(Rfdz.class, paraMap);
return paymentItemRf;
}
/**根据项目表id查询代缴款项目
* @return
*/
public Rfdz getByXmbId(String xmbzj) {
Map<String,Object> paraMap = new HashMap<String,Object>();
paraMap.put("xmbzj", xmbzj);
Rfdz paymentItemRf = (Rfdz) rfdzDao.findObjectByFieldsMap(Rfdz.class, paraMap);
return paymentItemRf;
}
/**根据凭证查询代缴款项目
* @return
*/
public Rfdz getByZslxdbh(String zslxdbh) {
Map<String,Object> paraMap = new HashMap<String,Object>();
paraMap.put("zslxdbh", zslxdbh);
Rfdz paymentItemRf = (Rfdz) rfdzDao.findObjectByFieldsMap(Rfdz.class, paraMap);
return paymentItemRf;
}
/**
* 保存信息
*/
@Transactional
public void save(Rfdz paymentItemRf)
{
rfdzDao.save(paymentItemRf);
}
/**
* 修改信息
*/
@Transactional
public void update(Rfdz paymentItemRf)
{
rfdzDao.update(paymentItemRf);
}
/**
* 物理删除信息
* @param ids 主键ID列表
*/
@Transactional
public void delete(String[] ids)
{
List list=Arrays.asList(ids);
Map<String, Object> paraMap = new HashMap<String, Object>();
paraMap.put("ids", list);
List objects= rfdzDao.findPaymentItemRf(paraMap);
rfdzDao.removeAll(objects);
}
/**
* 逻辑删除信息
* @param ids 主键ID列表
*/
@Transactional
public void deleteWithFlag(String ids)
{
String[] idArray = ids.split("\\|");
if(null != idArray)
{
for(String id : idArray)
{
if(id!=null && !id.trim().equals(""))
rfdzDao.deleteWithFlag(id);
}
}
}
@Override
public List<Rfdz> findall(Map<String, Object> paraMap) {
// TODO Auto-generated method stub
return rfdzDao.findPaymentItemRf(paraMap);
}
}
package com.jshx.rfdz.web;
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.paymentItemHis.service.PaymentItemHisService;
import com.jshx.rfdz.entity.Rfdz;
import com.jshx.rfdz.service.RfdzService;
import com.jshx.zsdw.service.ZsdwService;
import com.neusoft.egov.utils.TextUtils;
import net.sf.json.JsonConfig;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class RfdzAction extends BaseAction
{
String ghxkzbh;
String jfpzbh;
String xxbbh;
String ghxmbh;
String jsdwmc;
String gcxmmc;
String jfhj;
String hczt;
/**
* 分页信息
*/
private Pagination pagination;
private Rfdz rfdz = new Rfdz();
/**
* 修改新增标记,add为新增、mod为修改
*/
private String flag;
/**
* 项目id
*/
private String ids;
/**
* 业务类
*/
@Autowired
private PaymentItemHisService paymentItemHisService;
@Autowired
private RfdzService rfdzService;
@Autowired
private ZsdwService zsdwService;
public void list() throws Exception{
Map<String, Object> paraMap = new HashMap<String, Object>();
if(pagination==null)
pagination = new Pagination(this.getRequest());
paraMap.put("isCwyz", "1");// 财务用章
if (!TextUtils.isEmpty(ghxkzbh)){
paraMap.put("xkzh", "%" + ghxkzbh + "%");
}
if(!TextUtils.isEmpty(jfpzbh)) {
paraMap.put("zslxdbh", "%" + jfpzbh + "%");
}
if (!TextUtils.isEmpty(xxbbh)){
paraMap.put("xxbbh", "%" + xxbbh + "%");
}
if (!TextUtils.isEmpty(ghxmbh)){
paraMap.put("xmbh", "%" + ghxmbh + "%");
}
if (!TextUtils.isEmpty(jsdwmc)){
paraMap.put("jsdw", "%" + jsdwmc + "%");
}
if (!TextUtils.isEmpty(gcxmmc)){
paraMap.put("jsdd", "%" + gcxmmc + "%");
}
//TODO 缴费环节、核查状态筛选
//1施工许可前 2:30日内
if(!TextUtils.isEmpty(jfhj) && "0".equals(jfhj)) {
}
//1已同步 2未同步
if(!TextUtils.isEmpty(hczt) && "0".equals(hczt)) {
}
if(!this.getLoginUser().getIsSuperAdmin()){
String dwdm=zsdwService.getDwdm(this.getLoginUserDepartmentId());
paraMap.put("dwdm", dwdm);
}
JsonConfig config = new JsonConfig();
config.registerJsonValueProcessor(java.util.Date.class,new DateJsonValueProcessor());
Map<String, String> codeMap = new HashMap<String, String>();
//此处添加需要转换的一维代码,key是一维代码在数据对象中的属性名,value是一维代码的codeId
config.registerJsonValueProcessor(String.class,new CodeJsonValueProcessor(codeMap));
// final String filter = "isCwyz|id|slbh|isfdx|dwmc|xmmc|mjyj|dkxmslh|zsdw|dkmj|csmj|ptyjmj|ptyjje|ptymje|ptymmj|rfyjmj|rfyjje|rfymmj|rfymje|xqyjje|xqymmj|xqymje|xqyjmj|byyjmj|byyjje|byymmj|byymje|zyjje|zymje|warnFlag|accountbankId|lockFlag|xmbzj|zslxdbh|ECN|xmxxb|xmxxb.xxylb|xmxxb.";
// if (filter != null && filter.length() > 1) {
// config.setJsonPropertyFilter(new PropertyFilter() {
// public boolean apply(Object source, String name, Object value) {
// if (filter.indexOf(name + "|") != -1)
// return false;
// else
// return true;
// }
// });
// }
pagination = paymentItemHisService.findByPage(pagination, paraMap);
convObjectToJson(pagination, config);
}
public void rfList() {
Map<String, Object> paraMap = new HashMap<String, Object>();
if(pagination==null) {
pagination = new Pagination(this.getRequest());
}
if(null != ids){
paraMap.put("zzhxmid", ids);
}
JsonConfig config = new JsonConfig();
config.registerJsonValueProcessor(Date.class,new DateJsonValueProcessor());
Map<String, String> codeMap = new HashMap<String, String>();
//此处添加需要转换的一维代码,key是一维代码在数据对象中的属性名,value是一维代码的codeId
config.registerJsonValueProcessor(String.class,new CodeJsonValueProcessor(codeMap));
/*final String filter = "id|accountName|accountDetail|accountStatus|jktzsbh|xmdm|ghxkzbh|ghxmbh|jsdwmc|gcxmmc|gcxmdd|sfxmmc|shbm|yjjemx|jktzyjjehj|cnjfhj|status|";
if (filter != null && filter.length() > 1) {
config.setJsonPropertyFilter(new PropertyFilter() {
public boolean apply(Object source, String name, Object value) {
if (filter.indexOf(name + "|") != -1)
return false;
else
return true;
}
});
}*/
/*Map<String, Object> tempMap = new HashMap<>();
tempMap.put("jfdmwybh", "111SF001南京市城市建设费用征收服务中心第1轮");
List sfxxs = zzhxmSfxxService.findZzhxmSfxx(tempMap);*/
pagination = rfdzService.findByPage(pagination, paraMap);
convObjectToJson(pagination, config);
}
/**
* 保存信息(包括新增和补录)
*/
public String save() throws Exception{
if ("add".equalsIgnoreCase(this.flag)){
rfdz.setDeptId(this.getLoginUserDepartmentId());
rfdz.setDelFlag(0);
rfdzService.save(rfdz);
}else{
//TODO 判断审核人和创建人是否一致
Rfdz model = rfdzService.getById(rfdz.getId());
model.setBeizhu(rfdz.getBeizhu());
model.setJfcn(rfdz.getJfcn());
model.setSfxmlxdbh(rfdz.getSfxmlxdbh());
model.setSfxmmc(rfdz.getSfxmmc());
model.setDeptId(rfdz.getDeptId());
model.setShbm(rfdz.getShbm());
model.setXmbzj(rfdz.getXmbzj());
model.setYhjn(rfdz.getYhjn());
rfdzService.update(model);
}
return RELOAD;
}
/**
* 更新状态
*/
public void update() {
}
/**
* 详情
*/
public void detail() {
}
public String getGhxkzbh() {
return ghxkzbh;
}
public void setGhxkzbh(String ghxkzbh) {
this.ghxkzbh = ghxkzbh;
}
public String getJfpzbh() {
return jfpzbh;
}
public void setJfpzbh(String jfpzbh) {
this.jfpzbh = jfpzbh;
}
public String getXxbbh() {
return xxbbh;
}
public void setXxbbh(String xxbbh) {
this.xxbbh = xxbbh;
}
public String getGhxmbh() {
return ghxmbh;
}
public void setGhxmbh(String ghxmbh) {
this.ghxmbh = ghxmbh;
}
public String getJsdwmc() {
return jsdwmc;
}
public void setJsdwmc(String jsdwmc) {
this.jsdwmc = jsdwmc;
}
public String getGcxmmc() {
return gcxmmc;
}
public void setGcxmmc(String gcxmmc) {
this.gcxmmc = gcxmmc;
}
public String getJfhj() {
return jfhj;
}
public void setJfhj(String jfhj) {
this.jfhj = jfhj;
}
public String getHczt() {
return hczt;
}
public void setHczt(String hczt) {
this.hczt = hczt;
}
public Rfdz getRfdz() {
return rfdz;
}
public void setRfdz(Rfdz rfdz) {
this.rfdz = rfdz;
}
public Pagination getPagination() {
return pagination;
}
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public String getIds() {
return ids;
}
public void setIds(String ids) {
this.ids = ids;
}
}
package com.neusoft.egov.utils;
public class TextUtils {
public static boolean isEmpty(String s) {
return s == null || s.length() == 0;
}
}
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