Commit c0aeeb81 authored by 徐州's avatar 徐州

新增人防用章

parent c773dd84
...@@ -56,45 +56,23 @@ ...@@ -56,45 +56,23 @@
<%-- 下载缴费信息附件 --%> <%-- 下载缴费信息附件 --%>
function opendoc(id) function opendoc(id)
{ {
console.log(id);
console.log($("#id").val());
window.location.href="${ctx}/jsp/rfxm/downloadFile.action?ids="+id; window.location.href="${ctx}/jsp/rfxm/downloadFile.action?ids="+id;
} }
<%-- 生成缴费通知书 --%> <%-- 人防用章 --%>
function generateNotice(flag){ function generateNotice(id){
$.ajax({ $.messager.confirm("提示", "确认要人防用章?", function(result) {
url: "${ctx}/jsp/rfxm/produceNotice.action", $.ajax({
type: 'post', url : "${ctx}/jsp/rfxm/rfyz.action",
dataType: 'json', type: 'post',
async: false, dataType: 'json',
data: {ids : $("#ids").val(), flag : flag}, data:{
error: function () { ids : id
$.messager.alert('错误', '提交出错!'); },
}, async : false
success: function (data) { });
if (data.result) { $.messager.alert("提示","操作成功")
$("#yzjg").html('验证成功!'); reloadDate()
$.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 produceNotice(flag, row_id){ function produceNotice(flag, row_id){
...@@ -273,7 +251,7 @@ ...@@ -273,7 +251,7 @@
</c:if> </c:if>
<c:if test="${rfxm.isSbj==1}"> <c:if test="${rfxm.isSbj==1}">
<a id="noticeBtn0" href="#" class="btn_01" <a id="noticeBtn0" href="#" class="btn_01"
onclick="generateNotice(0);">人防费用章(市本级)<b></b></a> onclick="generateNotice('${rfxm.id}');">人防费用章(市本级)<b></b></a>
</c:if> </c:if>
......
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
<%-- 下载缴费信息附件 --%> <%-- 下载缴费信息附件 --%>
function opendoc(index,id) 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; window.location.href="${ctx}/jsp/rfxm/downloadFile.action?ids="+id + "&downloadIndex=" + index;
} }
var index4Sf = 1; var index4Sf = 1;
...@@ -400,9 +397,9 @@ ...@@ -400,9 +397,9 @@
<th width="15">附件:</th> <th width="15">附件:</th>
<td width="35%"> <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(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(1,'${rfxmsfxx.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(2,'${rfxmsfxx.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(3,'${rfxmsfxx.id}') >${rfxmsfxx.showNameZm}<b></b></a>&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -233,5 +233,9 @@ ...@@ -233,5 +233,9 @@
<result name="fail" >/invalid.jsp</result> <result name="fail" >/invalid.jsp</result>
</action> </action>
<!-- 人防用章 -->
<action name="rfyz" class="com.jshx.rfxm.web.RfxmAction" method="rfyz">
</action>
</package> </package>
</struts> </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