btQuitList.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <%-- 补贴退出数据 --%>
  2. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  3. <jsp:include page="../../common/include.jsp" />
  4. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  5. <script type="text/javascript"><!--
  6. //人员类别
  7. var personTypeObj = null;
  8. var personType_array = null;
  9. /**用户显示区*/
  10. $(function() {
  11. $('#securityPersonDataGrid').datagrid({
  12. rownumbers:true,
  13. fit:true,
  14. pageSize:20,
  15. pageList : [ 10, 20, 30, 40, 50 ],
  16. fitColumns:false,
  17. border:false,
  18. sortOrder:'desc',
  19. pagination:true,
  20. idField:'id',
  21. url:whzl.basePath + '/subsidiesPayableAction_btQuitList',
  22. toolbar:'#searchtool',
  23. checkOnSelect:true,
  24. selectOnCheck:false,
  25. nowrap:true,
  26. loadFilter:function(result){
  27. if(result.success){
  28. return result.obj;
  29. }else{
  30. $.messager.alert("提示",result.message);
  31. return ;
  32. }
  33. }
  34. });
  35. //申请业务类别
  36. $.ajax({
  37. type: "post",//使用post方法访问后台
  38. dataType: "json",//返回json格式的数据
  39. url: "aa10Action_listAa10All",//要访问的后台地址
  40. data:{"aa10.letter":"applyType" ,"aa10.name":"保障业务类别" },
  41. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  42. success: function(msg){//msg为返回的数据,在这里做数据绑定
  43. if(msg.success){
  44. applyTypeObj = msg.obj.rows;
  45. var select_arr = [];
  46. var data = applyTypeObj;
  47. for(var nItem = 0; nItem < data.length; nItem++ ){
  48. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  49. }
  50. applyType_array = select_arr.join("");
  51. }
  52. }
  53. });
  54. //人员类别
  55. $.ajax({
  56. type: "post",//使用post方法访问后台
  57. dataType: "json",//返回json格式的数据
  58. url: "aa10Action_listAa10All",//要访问的后台地址
  59. data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
  60. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  61. success: function(msg){//msg为返回的数据,在这里做数据绑定
  62. if(msg.success){
  63. personTypeObj = msg.obj.rows;
  64. var select_arr = [];
  65. var data = personTypeObj;
  66. for(var nItem = 0; nItem < data.length; nItem++ ){
  67. if(data[nItem].value!='新就业' && data[nItem].value!='外来务工' ){
  68. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  69. }
  70. }
  71. personType_array = select_arr.join("");
  72. }
  73. }
  74. });
  75. });
  76. /**查询*/
  77. function searchFun(){
  78. $("#securityPersonDataGrid").datagrid("load", {
  79. "securityPerson.name":$("#tblQuery").find("input[id='name']").val(),
  80. "securityPerson.idCard":$("#tblQuery").find("input[id='idCard']").val(),
  81. "securityPerson.bankAccount":$("#tblQuery").find("select[id='bankAccount']").val(),
  82. });
  83. }
  84. /*清除查询条件**/
  85. function ClearQuery() {
  86. $("#tblQuery").find("input").val("");
  87. $("#tblQuery").find("select").val("-1");
  88. }
  89. /**户口所在地*/
  90. var residenceFormatter = function(value , row , index){
  91. return row.applyDepartmentName;
  92. };
  93. /**详细*/
  94. var detailsFormatter = function(value , row , index){
  95. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=securityPersonDetails(" + row.id + ") style='cursor:pointer' />";
  96. };
  97. /**详细页面对话框*/
  98. var securityPersonDetails = function(id){
  99. $("#detailsecurityPersonDialog").dialog({
  100. buttons : [{
  101. text : '确定',
  102. iconCls : 'icon-ok',
  103. handler : function(){
  104. $("#detailsecurityPersonDialog").dialog("close");
  105. }
  106. }],
  107. onLoad : function(){
  108. }
  109. });
  110. };
  111. /**人员类别格式化*/
  112. var personTypeFormatter = function(value , row , index){
  113. var personType = "";
  114. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  115. if(personTypeObj[nItem].code == row.personType){
  116. personType = personTypeObj[nItem].value;
  117. break;
  118. }
  119. }
  120. return personType;
  121. };
  122. /**办理退保*/
  123. var quitFormatter = function(value , row , index){
  124. if(row.subsidiesState==4){
  125. return "<img src='<%=basePath%>/images/pencil.png' title='退保' onclick=addNew(" + row.id + ",3,1) style='cursor:pointer' />";
  126. }
  127. };
  128. function addNew(id,addType,type){
  129. $('#btRemarkDialog').dialog({
  130. buttons:[{
  131. text:"确认",
  132. handler : function(){
  133. $.ajax({
  134. type: "POST",
  135. url:"subsidiesPayableAction_addBtRemark",
  136. data:$('#remarkForm').serialize(),// 你的formid
  137. error: function(data) {
  138. $.messager.alert("提示","提交失败");
  139. },
  140. success: function(result) {
  141. $.messager.alert("提示","提交成功");
  142. $('#btRemarkDialog').dialog("close");
  143. }
  144. })
  145. }
  146. },{
  147. text:"取消",
  148. handler : function(){
  149. $('#btRemarkDialog').dialog("close");
  150. }
  151. }],
  152. onLoad : function(){
  153. btRemark_load(id,addType,type);
  154. }
  155. })
  156. }
  157. /**申请类别格式化*/
  158. var applyTypeFormatter = function(value , row , index){
  159. var applyType = "";
  160. for(var nItem = 0; nItem < applyTypeObj.length; nItem++ ){
  161. if(applyTypeObj[nItem].code == row.applyType){
  162. applyType = applyTypeObj[nItem].value;
  163. break;
  164. }
  165. }
  166. return applyType;
  167. };
  168. function quitExport(){
  169. window.location.href = whzl.basePath+"/subsidiesPayableAction_exportBtQuitList";
  170. }
  171. var dateFormatter = function(value , row , index){
  172. if(value !=undefined){
  173. return value.substring(0,10)
  174. }else{
  175. return ""
  176. }
  177. }
  178. /**继续保障*/
  179. backProtectFormatter = function(value , row , index){
  180. return "<img src='<%=basePath%>/images/up.png' title='确认退房' onclick=uploadBtFile(" + row.id + ") style='cursor:pointer' />"
  181. }
  182. /**上传附件*/
  183. uploadFormatter = function(value , row , index){
  184. return "<img src='<%=basePath%>/images/up.png' title='确认退房' onclick=uploadBtFile(" + row.id + ") style='cursor:pointer' />"
  185. }
  186. function uploadBtFile(id){
  187. $("#uploadBtFileDialog").dialog({
  188. buttons : [{
  189. text : '提交',
  190. iconCls : 'icon-ok',
  191. handler : function(){
  192. uploadBtFile_submit(id);
  193. $("#uploadBtFileDialog").dialog("close");
  194. }
  195. },{
  196. text : '取消',
  197. iconCls : 'icon-cancel',
  198. handler : function(){
  199. $("#uploadBtFileDialog").dialog("close");
  200. }
  201. }],
  202. onLoad : function(){
  203. detail_load(id);
  204. }
  205. });
  206. }
  207. --></script>
  208. <div class="easyui-layout" data-options="fit:true,border:false">
  209. <div data-options="region:'center',border:false">
  210. <div id="searchtool" data-options="region:'north' , border:false">
  211. <div class="clear"></div>
  212. <table id="tblQuery" style="width:100%;">
  213. <tr>
  214. <td align="right" style="width: 10%;"><span>姓名</span></td>
  215. <td style="width: 10%;"><input id="name" name="securityPerson.securityPerson.name" type="text" style="width: 100px;"/></td>
  216. <td align="right" style="width: 8%;"><span>身份证号</span></td>
  217. <td style="width: 10%;"><input id="idCard" name="securityPerson.securityPerson.idCard" type="text" /></td>
  218. <td align="left" style="width: 38%;">
  219. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  220. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  221. <a href="javascript:quitExport();" class="easyui-linkbutton" data-options="iconCls:'icon-export',plain:true">导出</a>
  222. </td>
  223. </tr>
  224. </table>
  225. <div class="clear"></div>
  226. </div>
  227. <table id="securityPersonDataGrid">
  228. <thead frozen="true">
  229. <tr>
  230. <th data-options="field:'id',checkbox:true,width:30">ID</th>
  231. <th data-options="field:'name',sortable:true,width:55 ">姓名</th>
  232. <th data-options="field:'idCard',sortable:true,width:140">身份证号</th>
  233. </tr>
  234. </thead>
  235. <thead>
  236. <tr>
  237. <th data-options="field:'personType',sortable:true,width:150,formatter:personTypeFormatter">人员类别</th>
  238. <th data-options="field:'applyType',sortable:true,width:150,formatter:applyTypeFormatter">申请业务类型</th>
  239. <th data-options="field:'residence',sortable:true,width:150,formatter:residenceFormatter">申请所在地</th>
  240. <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
  241. <th data-options="field:'quitDate',align:'center',width:120,formatter:dateFormatter">退保时间</th>
  242. <th data-options="field:'quitUserName',align:'center',width:120">经办人</th>
  243. <th data-options="field:'quitReason',align:'center',width:120">退出原因</th>
  244. <th data-options="field:'quit',align:'center',width:60,formatter:quitFormatter">办理退保</th>
  245. <th data-options="field:'backProtect',align:'center',width:60,formatter:backProtectFormatter">继续保障</th>
  246. <th data-options="field:'upload',width:60,align:'center',formatter:uploadFormatter">上传附件</th>
  247. </tr>
  248. </thead>
  249. </table>
  250. </div>
  251. </div>
  252. <div id="detailsecurityPersonDialog" data-options="title:'&nbsp;资料详细信息',iconCls:'icon-details',width:800,height:400,modal:true,href:'<%=basePath %>/securityPersonAction_toBankAccountDetail'">
  253. </div>
  254. <div id="lockSecurityPersonDialog" data-options="title:'&nbsp;退出保障',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/securityPersonAction_toLock'">
  255. </div>
  256. <div id="btRemarkDialog" data-options="title:'&nbsp;备注',iconCls:'icon-details',width:800,height:300,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toBtRemark'">
  257. </div>
  258. <div id="uploadBtFileDialog" data-options="title:'&nbsp;上传附件',iconCls:'icon-detail',width:600,height:400,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toUploadBtFile'">
  259. </div>
  260. <script type="text/javascript">
  261. <!--
  262. parent.$.messager.progress('close');
  263. //-->
  264. </script>