btWaitQuitList.jsp 12 KB

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