btWaitReleaseList.jsp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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 + '/subsidiesPayableWaitAction_btWaitList',
  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. },rowStyler:function(index,row){
  34. if("2" == row.checkPrivateHouse){
  35. return "background-color:#00868B;"
  36. }else if("3" == row.checkPrivateHouse){
  37. return "background-color:#B8E455;"
  38. }else if("4" == row.checkPrivateHouse){
  39. return "background-color:#FFC0CB;";
  40. }
  41. }
  42. });
  43. //人员类别
  44. $.ajax({
  45. type: "post",//使用post方法访问后台
  46. dataType: "json",//返回json格式的数据
  47. url: "aa10Action_listAa10All",//要访问的后台地址
  48. data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
  49. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  50. success: function(msg){//msg为返回的数据,在这里做数据绑定
  51. if(msg.success){
  52. personTypeObj = msg.obj.rows;
  53. var select_arr = [];
  54. var data = personTypeObj;
  55. for(var nItem = 0; nItem < data.length; nItem++ ){
  56. if(data[nItem].value!='新就业' && data[nItem].value!='外来务工' ){
  57. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  58. }
  59. }
  60. personType_array = select_arr.join("");
  61. }
  62. }
  63. });
  64. });
  65. /**查询*/
  66. function searchFun(){
  67. $("#securityPersonDataGrid").datagrid("load", {
  68. "securityPerson.name":$("#tblQuery").find("input[id='name']").val(),
  69. "securityPerson.idCard":$("#tblQuery").find("input[id='idCard']").val(),
  70. "securityPerson.bankAccount":$("#tblQuery").find("select[id='bankAccount']").val(),
  71. });
  72. }
  73. /*清除查询条件**/
  74. function ClearQuery() {
  75. $("#tblQuery").find("input").val("");
  76. $("#tblQuery").find("select").val("-1");
  77. }
  78. /**户口所在地*/
  79. var residenceFormatter = function(value , row , index){
  80. return row.applyDepartmentName;
  81. };
  82. /**详细*/
  83. var detailsFormatter = function(value , row , index){
  84. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=securityPersonDetails(" + row.id + ") style='cursor:pointer' />";
  85. };
  86. /**详细页面对话框*/
  87. var securityPersonDetails = function(id){
  88. $("#detailsecurityPersonDialog").dialog({
  89. buttons : [{
  90. text : '确定',
  91. iconCls : 'icon-ok',
  92. handler : function(){
  93. $("#detailsecurityPersonDialog").dialog("close");
  94. }
  95. }],
  96. onLoad : function(){
  97. }
  98. });
  99. };
  100. /**更新银行账号*/
  101. var bankAccountFormatter = function(value , row , index){
  102. if(row.bankAccount!=undefined){
  103. return "<span onclick=updateBankAccount("+row.id+") style='cursor:pointer'>"+row.bankAccount+"</span>";
  104. }else{
  105. return "<img src='<%=basePath%>/images/pencil.png' title='修改银行账号' onclick=updateBankAccount(" + row.id + ") style='cursor:pointer' />";
  106. }
  107. };
  108. /**银行账号*/
  109. function updateBankAccount(id){
  110. $.messager.prompt('输入', '请输入银行账号:', function(r){
  111. if (r){
  112. $.ajax({
  113. type: "post",//使用post方法访问后台
  114. dataType: "json",//返回json格式的数据
  115. url: "securityPersonAction_updateBankAccount",//要访问的后台地址
  116. data:{"securityPersonId":id ,"bankAccount":r },
  117. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  118. success: function(msg){//msg为返回的数据,在这里做数据绑定
  119. if(msg.success){
  120. $.messager.alert("提示","更新成功");
  121. $('#securityPersonDataGrid').datagrid('reload');
  122. }
  123. }
  124. });
  125. }
  126. });
  127. }
  128. /**新增*/
  129. var addNewFormatter = function(value , row , index){
  130. return "<img src='<%=basePath%>/images/pencil.png' title='新增' onclick=addNew(" + row.id + ",1,2) style='cursor:pointer' />";
  131. };
  132. function addNew(id,addType,type){
  133. $('#btRemarkDialog').dialog({
  134. buttons:[{
  135. text:"确认",
  136. handler : function(){
  137. $.ajax({
  138. type: "POST",
  139. url:"subsidiesPayableWaitAction_addBtRemark",
  140. data:$('#remarkForm').serialize(),// 你的formid
  141. error: function(data) {
  142. $.messager.alert("提示","更新失败");
  143. },
  144. success: function(result) {
  145. $.messager.alert("提示","更新成功");
  146. $('#btRemarkDialog').dialog("close");
  147. $("#securityPersonDataGrid").datagrid("reload");
  148. }
  149. })
  150. }
  151. },{
  152. text:"取消",
  153. handler : function(){
  154. $('#btRemarkDialog').dialog("close");
  155. }
  156. }],
  157. onLoad : function(){
  158. btRemark_load(id,addType,type);
  159. }
  160. })
  161. }
  162. /**扣减*/
  163. var deductionFormatter = function(value , row , index){
  164. return "<img src='<%=basePath%>/images/pencil.png' title='新增' onclick=deduction(" + row.id + ") style='cursor:pointer' />";
  165. };
  166. function deduction(id){
  167. $('#deductionDialog').dialog({
  168. buttons:[{
  169. text:"扣减",
  170. handler : function(){
  171. $.ajax({
  172. type: "POST",
  173. url:"subsidiesPayableAction_addDeduction",
  174. data:$('#deductionForm').serialize(),// 你的formid
  175. error: function(data) {
  176. $.messager.alert("提示","提交失败");
  177. },
  178. success: function(result) {
  179. console.log(result)
  180. $.messager.alert("提示","扣减成功");
  181. }
  182. })
  183. }
  184. },{
  185. text:"续发",
  186. handler : function(){
  187. $.ajax({
  188. type: "post",//使用post方法访问后台
  189. dataType: "json",//返回json格式的数据
  190. url: "securityPersonAction_reissueBt",//要访问的后台地址
  191. data:{"securityPerson.id":id ,"securityPerson.remark":r },
  192. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  193. success: function(msg){//msg为返回的数据,在这里做数据绑定
  194. if(msg.success){
  195. $.messager.alert("提示","更新成功");
  196. $('#securityPersonDataGrid').datagrid('reload');
  197. }
  198. }
  199. });
  200. }
  201. },{
  202. text:"取消",
  203. handler : function(){
  204. $('#deductionDialog').dialog("close");
  205. }
  206. }],
  207. onLoad : function(){
  208. //addBT1_load();
  209. $("#securityPersonId_add").val(id)
  210. }
  211. })
  212. }
  213. /**续发*/
  214. var reissueFormatter = function(value , row , index){
  215. return "<img src='<%=basePath%>/images/pencil.png' title='新增' onclick=addNew(" + row.id + ",2,2) style='cursor:pointer' />";
  216. };
  217. /**退出保障*/
  218. var quitFormatter = function(value , row , index){
  219. return "<img src='<%=basePath%>/images/pencil.png' title='新增' onclick=addNew(" + row.id + ",3,2) style='cursor:pointer' />";
  220. };
  221. /**人员类别格式化*/
  222. var personTypeFormatter = function(value , row , index){
  223. var personType = "";
  224. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  225. if(personTypeObj[nItem].code == row.personType){
  226. personType = personTypeObj[nItem].value;
  227. break;
  228. }
  229. }
  230. return personType;
  231. };
  232. /**房产核查*/
  233. var fcReviewFormatter = function(value , row , index){
  234. return "<img src='<%=basePath%>/images/pencil.png' title='新增' onclick=fcReview(" + row.securityPersonApplyId + ") style='cursor:pointer' />";
  235. }
  236. function fcReview(id){
  237. $.ajax({
  238. type: "post",//使用post方法访问后台
  239. dataType: "json",//返回json格式的数据
  240. url: "subsidiesPayableAction_fcReview",//要访问的后台地址
  241. data:{"securityPerson.securityPersonApplyId":id },
  242. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  243. success: function(msg){//msg为返回的数据,在这里做数据绑定
  244. if(msg.success){
  245. $.messager.alert("提示","更新成功");
  246. $('#securityPersonDataGrid').datagrid('reload');
  247. }
  248. }
  249. });
  250. }
  251. var dateFormatter = function(value , row , index){
  252. if(value!=undefined){
  253. return value.substring(0,10)
  254. }
  255. }
  256. /**上传附件*/
  257. uploadFormatter = function(value , row , index){
  258. return "<img src='<%=basePath%>/images/up.png' title='确认退房' onclick=uploadBtFile(" + row.id + ") style='cursor:pointer' />"
  259. }
  260. function uploadBtFile(id){
  261. $("#uploadBtFileDialog").dialog({
  262. buttons : [{
  263. text : '提交',
  264. iconCls : 'icon-ok',
  265. handler : function(){
  266. uploadBtFile_submit(id);
  267. $("#uploadBtFileDialog").dialog("close");
  268. }
  269. },{
  270. text : '取消',
  271. iconCls : 'icon-cancel',
  272. handler : function(){
  273. $("#uploadBtFileDialog").dialog("close");
  274. }
  275. }],
  276. onLoad : function(){
  277. detail_load(id);
  278. }
  279. });
  280. }
  281. --></script>
  282. <div class="easyui-layout" data-options="fit:true,border:false">
  283. <div data-options="region:'center',border:false">
  284. <div id="searchtool" data-options="region:'north' , border:false">
  285. <div class="clear"></div>
  286. <table id="tblQuery" style="width:100%;">
  287. <tr>
  288. <td align="right" style="width: 10%;"><span>姓名</span></td>
  289. <td style="width: 10%;"><input id="name" name="securityPerson.securityPerson.name" type="text" style="width: 100px;"/></td>
  290. <td align="right" style="width: 8%;"><span>身份证号</span></td>
  291. <td style="width: 10%;"><input id="idCard" name="securityPerson.securityPerson.idCard" type="text" /></td>
  292. <td align="left" style="width: 38%;">
  293. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  294. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  295. <span>再次推送房产核查:</span><span style="background: #00868B;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  296. <span>年审过程中在保家庭发生变化:人口&nbsp;</span><span style="background: #B8E455">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  297. <span>&nbsp;收入&nbsp;</span><span style="background: #FFC0CB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
  298. </td>
  299. </tr>
  300. </table>
  301. <div class="clear"></div>
  302. </div>
  303. <table id="securityPersonDataGrid">
  304. <thead frozen="true">
  305. <tr>
  306. <th data-options="field:'id',checkbox:true,width:30">ID</th>
  307. <th data-options="field:'name',sortable:true,width:60 ">姓名</th>
  308. <th data-options="field:'idCard',sortable:true,width:140">身份证号</th>
  309. </tr>
  310. </thead>
  311. <thead>
  312. <tr>
  313. <th data-options="field:'personType',sortable:true,width:100,formatter:personTypeFormatter">人员类别</th>
  314. <th data-options="field:'residence',sortable:true,width:100,formatter:residenceFormatter">申请所在地</th>
  315. <th data-options="field:'graduationDate',sortable:true,width:100,formatter:dateFormatter">毕业时间</th>
  316. <th data-options="field:'bankAccount',align:'center',width:150,formatter:bankAccountFormatter">银行账号</th>
  317. <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
  318. <th data-options="field:'fcReview',align:'center',width:60,formatter:fcReviewFormatter">再次房产核查</th>
  319. <th data-options="field:'addNew',align:'center',width:60,formatter:addNewFormatter">新增</th>
  320. <th data-options="field:'reissue',align:'center',width:60,formatter:reissueFormatter">续发</th>
  321. <!--<th data-options="field:'deduction',align:'center',width:60,formatter:deductionFormatter">扣减</th>-->
  322. <th data-options="field:'quit',align:'center',width:60,formatter:quitFormatter">退出申请</th>
  323. <th data-options="field:'upload',width:60,align:'center',formatter:uploadFormatter">上传附件</th>
  324. </tr>
  325. </thead>
  326. </table>
  327. </div>
  328. </div>
  329. <div id="detailsecurityPersonDialog" data-options="title:'&nbsp;资料详细信息',iconCls:'icon-details',width:800,height:400,modal:true,href:'<%=basePath %>/securityPersonAction_toBankAccountDetail'">
  330. </div>
  331. <div id="deductionDialog" data-options="title:'&nbsp;扣减',iconCls:'icon-details',width:500,height:200,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toBtDeduction'">
  332. </div>
  333. <div id="lockSecurityPersonDialog" data-options="title:'&nbsp;退出保障',iconCls:'icon-details',width:800,height:420,modal:true,href:'<%=basePath %>/securityPersonAction_toLock'">
  334. </div>
  335. <div id="btRemarkDialog" data-options="title:'&nbsp;备注',iconCls:'icon-details',width:800,height:300,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toBtRemark'">
  336. </div>
  337. <div id="importBankAccountDialog" data-options="title:'&nbsp;银行卡批量导入',iconCls:'icon-details',width:700,height:300,modal:true,href:'<%=basePath %>/securityPersonAction_toImportBankAccount'">
  338. </div>
  339. <div id="uploadBtFileDialog" data-options="title:'&nbsp;上传附件',iconCls:'icon-detail',width:600,height:400,modal:true,href:'<%=basePath %>/subsidiesPayableAction_toUploadBtFile'">
  340. </div>
  341. <script type="text/javascript">
  342. <!--
  343. parent.$.messager.progress('close');
  344. //-->
  345. </script>