Commit c0aeeb81 authored by 徐州's avatar 徐州

新增人防用章

parent c773dd84
......@@ -56,45 +56,23 @@
<%-- 下载缴费信息附件 --%>
function opendoc(id)
{
console.log(id);
console.log($("#id").val());
window.location.href="${ctx}/jsp/rfxm/downloadFile.action?ids="+id;
}
<%-- 生成缴费通知书 --%>
function generateNotice(flag){
$.ajax({
url: "${ctx}/jsp/rfxm/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();
// var noticeBtn = "#noticeBtn";
// noticeBtn += flag;
// /*var noticeB = document.getElementById(noticeBtn);
// noticeB.href = "";
// noticeB.innerHTML("<i class=\"edit\" style=\"opacity: 0.5\">已生成施工前缴款通知书</i>");*/
// $(noticeBtn).attr('href','');
// $(noticeBtn).html("<i class=\"edit\" style=\"opacity: 0.5\">已生成施工前缴款通知书</i>");
/*var tab = $('#center').tabs('getSelected');
//获得当前选中的tab 的href
var url = $(tab.panel('options')).attr('href');
tab.panel('refresh', url);*/
} else {
abc="0";
$("#yzjg").html('信息表编号重复!该项目状态:'+data.message);
$.messager.alert('提示',data.message);
}
}
});
<%-- 人防用章 --%>
function generateNotice(id){
$.messager.confirm("提示", "确认要人防用章?", function(result) {
$.ajax({
url : "${ctx}/jsp/rfxm/rfyz.action",
type: 'post',
dataType: 'json',
data:{
ids : id
},
async : false
});
$.messager.alert("提示","操作成功")
reloadDate()
});
}
function produceNotice(flag, row_id){
......@@ -273,7 +251,7 @@
</c:if>
<c:if test="${rfxm.isSbj==1}">
<a id="noticeBtn0" href="#" class="btn_01"
onclick="generateNotice(0);">人防费用章(市本级)<b></b></a>
onclick="generateNotice('${rfxm.id}');">人防费用章(市本级)<b></b></a>
</c:if>
......
......@@ -25,9 +25,6 @@
<%-- 下载缴费信息附件 --%>
function opendoc(index,id)
{
console.log(id);
console.log("hello");
console.log($("#id").val());
window.location.href="${ctx}/jsp/rfxm/downloadFile.action?ids="+id + "&downloadIndex=" + index;
}
var index4Sf = 1;
......@@ -400,9 +397,9 @@
<th width="15">附件:</th>
<td width="35%">
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(0,'${rfxmsfxx.id}') >${rfxmsfxx.showName}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(1,'"+rec.id+"') >${rfxmsfxx.showNameFk}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(2,'"+rec.id+"') >${rfxmsfxx.showNameSq}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(3,'"+rec.id+"') >${rfxmsfxx.showNameZm}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(1,'${rfxmsfxx.id}') >${rfxmsfxx.showNameFk}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(2,'${rfxmsfxx.id}') >${rfxmsfxx.showNameSq}<b></b></a>&nbsp;
<a class='dow-fj' title='点击下载附件' style='cursor:pointer' onclick=opendoc(3,'${rfxmsfxx.id}') >${rfxmsfxx.showNameZm}<b></b></a>&nbsp;
</td>
</tr>
</table>
......
......@@ -233,5 +233,9 @@
<result name="fail" >/invalid.jsp</result>
</action>
<!-- 人防用章 -->
<action name="rfyz" class="com.jshx.rfxm.web.RfxmAction" method="rfyz">
</action>
</package>
</struts>
This diff is collapsed.
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