123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!-- 补贴年月备注意见 -->
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script><!--
- var btRemark_load = function(id,addType,type){
- $("#securityPersonId_add").val(id);
- $("#addType_add").val(addType);
- $("#type_add").val(type);
-
- var remarkQuit = "";
-
- if(addType==3){//退出申请
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "subsidiesPayableAction_btRemarkFindById",//要访问的后台地址
- data:{"btRemark.securityPersonId":id},
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- remarkQuit = msg.obj.remarkQuit
- $("#btRemark_add").val(msg.obj.remarkQuit);
- $("#year_add").val(msg.obj.yearQuit);
- $("#month_add").val(msg.obj.monthQuit);
- }
- }
- });
-
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "subsidiesPayableAction_securityPersonApplyFindById",//要访问的后台地址
- data:{"securityPerson.id":id},
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- if(msg.obj.guaranteeOpinion=="4"){
- var remarkQuitText = remarkQuit==undefined?"":remarkQuit
- $("#btRemark_add").val(remarkQuitText+" "+msg.obj.guaranteeRemark);
- $("#year_add").val(msg.obj.guaranteeDate.substring(0,4));
- $("#month_add").val(msg.obj.guaranteeDate.substring(5,7));
- }
- }
- }
- });
- }else if(addType==1){//新增
- $("#addMoney_add").show()
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "subsidiesPayableAction_securityPersonApplyFindById",//要访问的后台地址
- data:{"securityPerson.id":id},
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- var addmonth = Number(msg.obj.publicity2ResultDate.substring(5,7))+1;
- $("#btRemark_add").val("从"+msg.obj.publicity2StartDate.substring(0,10)+"公示,"+msg.obj.publicity2EndDate.substring(0,10)+"公示结束无异议,从"+msg.obj.publicity2ResultDate.substring(0,4)+"年"+addmonth+"月进行补贴保障");
- $("#year_add").val(msg.obj.publicity2ResultDate.substring(0,4));
- $("#month_add").val(Number(msg.obj.publicity2ResultDate.substring(5,7))+1);
- $("#addMoney_add").val(msg.obj.addMoney);
- }
- }
- });
- }
- }
- --></script>
- <form id="remarkForm" action="securityPersonApplyAction_addSecurityPersonApply" method="post" >
- <table class="mytable" style="width: 100%;" id="table_add">
- <tr>
- <th>年月</th>
- <td>
- <input type="hidden" id="securityPersonId_add" name="btRemark.securityPersonId"/>
- <input type="hidden" id="addType_add" name="addType"/>
- <input type="hidden" id="type_add" name="type"/>
- <input required="true" type="text" id="year_add" name="btRemark.yearAdd"/>年
- <input required="true" type="text" id="month_add" name="btRemark.monthAdd"/>月
- </td>
- </tr>
- <tr>
- <th>补发金额(元)</th>
- <td>
- <input style="display:none" id="addMoney_add" name="addMoney"/>
- </td>
- </tr>
- <tr>
- <th>备注</th>
- <td>
- <textarea cols="50" rows="8" required="true" type="text" id="btRemark_add" name="btRemark.remarkAdd"></textarea>
- </td>
- </tr>
- </table>
- </form>
-
|