reviewGuaranteeList.jsp 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <jsp:include page="../../common/include.jsp" />
  3. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  4. <script type="text/javascript"><!--
  5. //婚姻状况
  6. var maritalStatusObj = null;
  7. var maritalStatus_array = null;
  8. //性别
  9. var sexObj = null;
  10. var sex_array = null;
  11. //申请保障类型
  12. var applyTypeObj = null;
  13. var applyType_array = null;
  14. //家庭住房困难类型
  15. var diffcultTypeObj = null;
  16. var diffcultType_array = null;
  17. //私有或公有
  18. var privateOrPublicObj = null;
  19. var privateOrPublic_array = null;
  20. //产权性质
  21. var propertyTypeObj = null;
  22. var propertyType_array = null;
  23. //是否
  24. var yesOrNoObj = null;
  25. var yesOrNo_array = null;
  26. //审核状态
  27. var stateObj = null;
  28. var state_array = null;
  29. //家庭关系
  30. var relativeObj = null;
  31. var relative_array = null;
  32. //人员类别
  33. var personTypeObj = null;
  34. var personType_array = null;
  35. //审核意见
  36. var opinionObj = null;
  37. var opinion_array = null;
  38. //区
  39. var areaObj = null;
  40. var area_array = null;
  41. //街道
  42. var streetObj = null;
  43. var street_array = null;
  44. //居委会
  45. var neighborhoodObj = null;
  46. var neighborhood_array = null;
  47. //学历
  48. var educationObj = null;
  49. var education_array = null;
  50. //收入线标准
  51. var personTypeRuleObj = null;
  52. var personTypeRule_array = null;
  53. var avgHouseAreaObj = null;
  54. var moneyObj = null;
  55. var carObj = null;
  56. //婚姻情况
  57. $.ajax({
  58. type: "post",//使用post方法访问后台
  59. dataType: "json",//返回json格式的数据
  60. url: "aa10Action_listAa10All",//要访问的后台地址
  61. data:{"aa10.letter":"maritalStatus" ,"aa10.name":"婚姻情况" },
  62. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  63. success: function(msg){//msg为返回的数据,在这里做数据绑定
  64. if(msg.success){
  65. maritalStatusObj = msg.obj.rows;
  66. var select_arr = [];
  67. var data = maritalStatusObj;
  68. for(var nItem = 0; nItem < data.length; nItem++ ){
  69. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  70. }
  71. maritalStatus_array = select_arr.join("");
  72. }
  73. }
  74. });
  75. //性别
  76. $.ajax({
  77. type: "post",//使用post方法访问后台
  78. dataType: "json",//返回json格式的数据
  79. url: "aa10Action_listAa10All",//要访问的后台地址
  80. data:{"aa10.letter":"sex" ,"aa10.name":"性别" },
  81. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  82. success: function(msg){//msg为返回的数据,在这里做数据绑定
  83. if(msg.success){
  84. sexObj = msg.obj.rows;
  85. var select_arr = [];
  86. var data = sexObj;
  87. for(var nItem = 0; nItem < data.length; nItem++ ){
  88. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  89. }
  90. sex_array = select_arr.join("");
  91. }
  92. }
  93. });
  94. //保障类别
  95. $.ajax({
  96. type: "post",//使用post方法访问后台
  97. dataType: "json",//返回json格式的数据
  98. url: "aa10Action_listAa10All",//要访问的后台地址
  99. data:{"aa10.letter":"applyType" ,"aa10.name":"保障业务类别" },
  100. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  101. success: function(msg){//msg为返回的数据,在这里做数据绑定
  102. if(msg.success){
  103. applyTypeObj = msg.obj.rows;
  104. var select_arr = [];
  105. var data = applyTypeObj;
  106. for(var nItem = 0; nItem < data.length; nItem++ ){
  107. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  108. }
  109. applyType_array = select_arr.join("");
  110. $("#applyType").append(applyType_array);
  111. }
  112. }
  113. });
  114. //家庭住房困难类型
  115. $.ajax({
  116. type: "post",//使用post方法访问后台
  117. dataType: "json",//返回json格式的数据
  118. url: "aa10Action_listAa10All",//要访问的后台地址
  119. data:{"aa10.letter":"diffcultType" ,"aa10.name":"家庭住房困难类型" },
  120. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  121. success: function(msg){//msg为返回的数据,在这里做数据绑定
  122. if(msg.success){
  123. diffcultTypeObj = msg.obj.rows;
  124. var select_arr = [];
  125. var data = diffcultTypeObj;
  126. for(var nItem = 0; nItem < data.length; nItem++ ){
  127. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  128. }
  129. diffcultType_array = select_arr.join("");
  130. }
  131. }
  132. });
  133. //私有或公有
  134. $.ajax({
  135. type: "post",//使用post方法访问后台
  136. dataType: "json",//返回json格式的数据
  137. url: "aa10Action_listAa10All",//要访问的后台地址
  138. data:{"aa10.letter":"privateOrPublic" ,"aa10.name":"私有或公有" },
  139. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  140. success: function(msg){//msg为返回的数据,在这里做数据绑定
  141. if(msg.success){
  142. privateOrPublicObj = msg.obj.rows;
  143. var select_arr = [];
  144. var data = privateOrPublicObj;
  145. for(var nItem = 0; nItem < data.length; nItem++ ){
  146. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  147. }
  148. privateOrPublic_array = select_arr.join("");
  149. }
  150. }
  151. });
  152. //房屋产权性质
  153. $.ajax({
  154. type: "post",//使用post方法访问后台
  155. dataType: "json",//返回json格式的数据
  156. url: "aa10Action_listAa10All",//要访问的后台地址
  157. data:{"aa10.letter":"propertyType" ,"aa10.name":"产权性质" },
  158. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  159. success: function(msg){//msg为返回的数据,在这里做数据绑定
  160. if(msg.success){
  161. propertyTypeObj = msg.obj.rows;
  162. var select_arr = [];
  163. var data = propertyTypeObj;
  164. for(var nItem = 0; nItem < data.length; nItem++ ){
  165. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  166. }
  167. propertyType_array = select_arr.join("");
  168. }
  169. }
  170. });
  171. //是否
  172. $.ajax({
  173. type: "post",//使用post方法访问后台
  174. dataType: "json",//返回json格式的数据
  175. url: "aa10Action_listAa10All",//要访问的后台地址
  176. data:{"aa10.letter":"yesOrNo" ,"aa10.name":"是否" },
  177. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  178. success: function(msg){//msg为返回的数据,在这里做数据绑定
  179. if(msg.success){
  180. yesOrNoObj = msg.obj.rows;
  181. var select_arr = [];
  182. var data = yesOrNoObj;
  183. for(var nItem = 0; nItem < data.length; nItem++ ){
  184. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  185. }
  186. yesOrNo_array = select_arr.join("");
  187. }
  188. }
  189. });
  190. //人员类别
  191. $.ajax({
  192. type: "post",//使用post方法访问后台
  193. dataType: "json",//返回json格式的数据
  194. url: "aa10Action_listAa10All",//要访问的后台地址
  195. data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
  196. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  197. success: function(msg){//msg为返回的数据,在这里做数据绑定
  198. if(msg.success){
  199. personTypeObj = msg.obj.rows;
  200. var select_arr = [];
  201. var data = personTypeObj;
  202. for(var nItem = 0; nItem < data.length; nItem++ ){
  203. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  204. }
  205. personType_array = select_arr.join("");
  206. $("#personType").append(personType_array);
  207. }
  208. }
  209. });
  210. //审批状态
  211. $.ajax({
  212. type: "post",//使用post方法访问后台
  213. dataType: "json",//返回json格式的数据
  214. url: "aa10Action_listAa10All",//要访问的后台地址
  215. data:{"aa10.letter":"reviewStatus" ,"aa10.name":"审核状态" },
  216. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  217. success: function(msg){//msg为返回的数据,在这里做数据绑定
  218. if(msg.success){
  219. stateObj = msg.obj.rows;
  220. var select_arr = [];
  221. var data = stateObj;
  222. for(var nItem = 0; nItem < data.length; nItem++ ){
  223. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  224. }
  225. state_array = select_arr.join("");
  226. $("#state").append(state_array);
  227. }
  228. }
  229. });
  230. //家庭关系
  231. $.ajax({
  232. type: "post",//使用post方法访问后台
  233. dataType: "json",//返回json格式的数据
  234. url: "aa10Action_listAa10All",//要访问的后台地址
  235. data:{"aa10.letter":"homeRelative" ,"aa10.name":"家庭关系" },
  236. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  237. success: function(msg){//msg为返回的数据,在这里做数据绑定
  238. if(msg.success){
  239. relativeObj = msg.obj.rows;
  240. var select_arr = [];
  241. var data = relativeObj;
  242. for(var nItem = 0; nItem < data.length; nItem++ ){
  243. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  244. }
  245. relative_array = select_arr.join("");
  246. }
  247. }
  248. });
  249. //审批意见
  250. $.ajax({
  251. type: "post",//使用post方法访问后台
  252. dataType: "json",//返回json格式的数据
  253. url: "aa10Action_listAa10All",//要访问的后台地址
  254. data:{"aa10.letter":"auditOpinion" ,"aa10.name":"申请意见" },
  255. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  256. success: function(msg){//msg为返回的数据,在这里做数据绑定
  257. if(msg.success){
  258. opinionObj = msg.obj.rows;
  259. var select_arr = [];
  260. var data = opinionObj;
  261. for(var nItem = 0; nItem < data.length; nItem++ ){
  262. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  263. }
  264. opinion_array = select_arr.join("");
  265. }
  266. }
  267. });
  268. //获取区
  269. $.ajax({
  270. type: "post",//使用post方法访问后台
  271. dataType: "json",//返回json格式的数据
  272. url: "houseRegisterAction_listChildren",//要访问的后台地址
  273. //data:{"id":id},
  274. success: function(msg){//msg为返回的数据,在这里做数据绑定
  275. if(msg.success){
  276. areaObj = msg.obj.rows;
  277. var select_arr = [];
  278. var data = areaObj;
  279. for(var nItem = 0; nItem < data.length; nItem++ ){
  280. select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
  281. }
  282. area_array = select_arr.join("");
  283. }
  284. }
  285. });
  286. //学历
  287. $.ajax({
  288. type: "post",//使用post方法访问后台
  289. dataType: "json",//返回json格式的数据
  290. url: "aa10Action_listAa10All",//要访问的后台地址
  291. data:{"aa10.letter":"education" ,"aa10.name":"学历" },
  292. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  293. success: function(msg){//msg为返回的数据,在这里做数据绑定
  294. if(msg.success){
  295. educationObj = msg.obj.rows;
  296. var select_arr = [];
  297. var data = educationObj;
  298. for(var nItem = 0; nItem < data.length; nItem++ ){
  299. select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
  300. }
  301. education_array = select_arr.join("");
  302. }
  303. }
  304. });
  305. //人均住房面积
  306. $.ajax({
  307. type: "post",//使用post方法访问后台
  308. dataType: "json",//返回json格式的数据
  309. url: "aa10Action_listAa10All",//要访问的后台地址
  310. data:{"aa10.letter":"avgHouseArea" ,"aa10.name":"人均住房面积" },
  311. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  312. success: function(msg){//msg为返回的数据,在这里做数据绑定
  313. if(msg.success){
  314. avgHouseAreaObj = msg.obj.rows;
  315. }
  316. }
  317. });
  318. //家庭金融资产
  319. $.ajax({
  320. type: "post",//使用post方法访问后台
  321. dataType: "json",//返回json格式的数据
  322. url: "aa10Action_listAa10All",//要访问的后台地址
  323. data:{"aa10.letter":"money" ,"aa10.name":"家庭金融资产" },
  324. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  325. success: function(msg){//msg为返回的数据,在这里做数据绑定
  326. if(msg.success){
  327. moneyObj = msg.obj.rows;
  328. }
  329. }
  330. });
  331. //家庭车辆资产
  332. $.ajax({
  333. type: "post",//使用post方法访问后台
  334. dataType: "json",//返回json格式的数据
  335. url: "aa10Action_listAa10All",//要访问的后台地址
  336. data:{"aa10.letter":"car" ,"aa10.name":"家庭车辆资产" },
  337. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  338. success: function(msg){//msg为返回的数据,在这里做数据绑定
  339. if(msg.success){
  340. carObj = msg.obj.rows;
  341. }
  342. }
  343. });
  344. /**用户显示区*/
  345. $(function() {
  346. $('#compareSecurityPersonApplyDataGrid').datagrid({
  347. rownumbers:true,
  348. fit:true,
  349. pageSize:20,
  350. pageList : [ 10, 20, 30, 40, 50 ],
  351. fitColumns:false,
  352. border:false,
  353. sortOrder:'desc',
  354. pagination:true,
  355. idField:'id',
  356. url:whzl.basePath + '/securityPersonApplyAction_reviewGuaranteeList',
  357. toolbar:'#searchtool',
  358. loadFilter:function(result){
  359. if(result.success){
  360. return result.obj;
  361. }else{
  362. $.messager.alert("提示",result.message);
  363. return ;
  364. }
  365. }
  366. });
  367. });
  368. /**获取街道列表*/
  369. function getStreetList(id,streetId,objId){
  370. $.ajax({
  371. type: "post",//使用post方法访问后台
  372. dataType: "json",//返回json格式的数据
  373. url: "houseRegisterAction_listChildren",//要访问的后台地址
  374. data:{"id":id},
  375. success: function(msg){//msg为返回的数据,在这里做数据绑定
  376. if(msg.success){
  377. streetObj = msg.obj.rows;
  378. var select_arr = [];
  379. var data = streetObj;
  380. select_arr.push("<option value=''>请选择</option>");
  381. if(id != null && id != ""){
  382. for(var nItem = 0; nItem < data.length; nItem++ ){
  383. select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
  384. }
  385. }
  386. street_array = select_arr.join("");
  387. $("#" + objId).append(street_array);
  388. $("#" + objId).val(streetId);
  389. }
  390. }
  391. });
  392. }
  393. /**获取街道列表*/
  394. function getWorkAreaList(id,streetId,objId){
  395. $.ajax({
  396. type: "post",//使用post方法访问后台
  397. dataType: "json",//返回json格式的数据
  398. url: "houseRegisterAction_listChildren",//要访问的后台地址
  399. data:{"id":id},
  400. success: function(msg){//msg为返回的数据,在这里做数据绑定
  401. if(msg.success){
  402. streetObj = msg.obj.rows;
  403. var select_arr = [];
  404. var data = streetObj;
  405. select_arr.push("<option value=''>请选择</option>");
  406. if(id != null && id != ""){
  407. for(var nItem = 0; nItem < data.length; nItem++ ){
  408. select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
  409. }
  410. }
  411. street_array = select_arr.join("");
  412. $("#" + objId).append(street_array);
  413. $("#" + objId).val(streetId);
  414. }
  415. }
  416. });
  417. }
  418. /**获取居委会列表*/
  419. function getNeighborhoodList(id,neighborhoodId,objId){
  420. $.ajax({
  421. type: "post",//使用post方法访问后台
  422. dataType: "json",//返回json格式的数据
  423. url: "houseRegisterAction_listChildren",//要访问的后台地址
  424. data:{"id":id},
  425. success: function(msg){//msg为返回的数据,在这里做数据绑定
  426. if(msg.success){
  427. neighborhoodObj = msg.obj.rows;
  428. var select_arr = [];
  429. var data = neighborhoodObj;
  430. select_arr.push("<option value=''>请选择</option>");
  431. if(id != null && id != ""){
  432. for(var nItem = 0; nItem < data.length; nItem++ ){
  433. select_arr.push("<option value="+data[nItem].id+">"+data[nItem].name+"</option>");
  434. }
  435. }
  436. neighborhood_array = select_arr.join("");
  437. $("#" + objId).append(neighborhood_array);
  438. $("#" + objId).val(neighborhoodId);
  439. }
  440. }
  441. });
  442. }
  443. /**查询*/
  444. function searchFun(){
  445. $("#compareSecurityPersonApplyDataGrid").datagrid("load", {
  446. "securityPersonApply.securityPersonName":$("#tblQuery").find("input[id='name']").val(),
  447. "securityPersonApply.securityPersonIdCard":$("#tblQuery").find("input[id='idCard']").val(),
  448. "securityPersonApply.personType":$("#tblQuery").find("select[id='personType']").val(),
  449. "securityPersonApply.applyType":$("#tblQuery").find("select[id='applyType']").val(),
  450. "securityPersonApply.state":$("#tblQuery").find("select[id='state']").val(),
  451. "securityPersonApply.addType":$("#tblQuery").find("select[id='addType']").val()
  452. });
  453. }
  454. /*清除查询条件**/
  455. function ClearQuery() {
  456. $("#tblQuery").find("input").val("");
  457. $("#tblQuery").find("select").val("-1");
  458. }
  459. //姓名
  460. var nameFormatter = function(value , row , index){
  461. return row.securityPersonName;
  462. }
  463. //身份证号
  464. var idCardFormatter = function(value , row , index){
  465. return row.securityPersonIdCard;
  466. }
  467. /**性别*/
  468. var sexFormatter = function(value , row , index){
  469. return "";
  470. };
  471. /**审核状态*/
  472. var stateFormatter = function(value , row , index){
  473. var state = "";
  474. for(var nItem = 0; nItem < stateObj.length; nItem++ ){
  475. if(stateObj[nItem].code == row.state){
  476. state = stateObj[nItem].value;
  477. break;
  478. }
  479. }
  480. return state;
  481. };
  482. /**经办人*/
  483. var pickUpUserNameFormatter = function(value , row , index){
  484. return row.pickUpUserName;
  485. };
  486. /**户口所在地*/
  487. var residenceFormatter = function(value , row , index){
  488. if(row.houseRegister != null && row.houseRegister.parent != null && row.houseRegister.parent.parent != null){
  489. return row.houseRegister.parent.parent.name + "-" + row.houseRegister.parent.name + "-" + row.houseRegister.name;
  490. }
  491. };
  492. /**详细*/
  493. var detailsFormatter = function(value , row , index){
  494. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/detail.png' title='查看详情' onclick=securityPersonApplyDetails(" + row.id + ") style='cursor:pointer' />";
  495. };
  496. /**详细页面对话框*/
  497. var securityPersonApplyDetails = function(id){
  498. $("#detailsecurityPersonApplyDialog").dialog(
  499. {
  500. buttons : [
  501. {
  502. text : '确定',
  503. iconCls : 'icon-ok',
  504. handler : function(){
  505. $("#detailsecurityPersonApplyDialog").dialog("close");
  506. }
  507. }
  508. ],
  509. onLoad : function(){
  510. detail_load(id);
  511. }
  512. }
  513. );
  514. };
  515. /**详细*/
  516. var updateFormatter = function(value , row , index){
  517. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/update.png' title='修改' onclick=securityPersonApplyUpdate(" + row.id + ") style='cursor:pointer' />";
  518. };
  519. /**详细页面对话框*/
  520. var securityPersonApplyUpdate= function(id){
  521. $("#detailsecurityPersonApplyDialog").dialog(
  522. {
  523. buttons : [
  524. {
  525. text : '确定',
  526. iconCls : 'icon-ok',
  527. handler : function(){
  528. $("#detailsecurityPersonApplyDialog").dialog("close");
  529. }
  530. }
  531. ],
  532. onLoad : function(){
  533. detail_load(id);
  534. }
  535. }
  536. );
  537. };
  538. /**人员类别格式化*/
  539. var personTypeFormatter = function(value , row , index){
  540. var personType = "";
  541. for(var nItem = 0; nItem < personTypeObj.length; nItem++ ){
  542. if(personTypeObj[nItem].code == row.personType){
  543. personType = personTypeObj[nItem].value;
  544. break;
  545. }
  546. }
  547. return personType;
  548. };
  549. /**申请类别格式化*/
  550. var applyTypeFormatter = function(value , row , index){
  551. var applyType = "";
  552. for(var nItem = 0; nItem < applyTypeObj.length; nItem++ ){
  553. if(applyTypeObj[nItem].code == row.applyType){
  554. applyType = applyTypeObj[nItem].value;
  555. break;
  556. }
  557. }
  558. return applyType;
  559. };
  560. /**家庭关系格式*/
  561. var relativeFormatter = function(value , row , index){
  562. var relative = "";
  563. for(var nItem = 0; nItem < relativeObj.length; nItem++ ){
  564. if(relativeObj[nItem].code == row.relative){
  565. relative = relativeObj[nItem].value;
  566. break;
  567. }
  568. }
  569. return relative;
  570. };
  571. /**婚姻状况格式*/
  572. var maritalStatusFormatter = function(value , row , index){
  573. var maritalStatus = "";
  574. for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
  575. if(maritalStatusObj[nItem].code == row.maritalStatus){
  576. maritalStatus = maritalStatusObj[nItem].value;
  577. break;
  578. }
  579. }
  580. return maritalStatus;
  581. };
  582. /**是否在保障范围内格式*/
  583. var isInRangeFormatter = function(value , row , index){
  584. var yesOrNo = "";
  585. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  586. if(yesOrNoObj[nItem].code == row.isInRange){
  587. yesOrNo = yesOrNoObj[nItem].value;
  588. break;
  589. }
  590. }
  591. return yesOrNo;
  592. };
  593. //开始处理时间
  594. var startRemainTimeFormatter = function(value , row , index){
  595. if(row.type==1||row.type==2||row.type==10){
  596. if(row.state==2){
  597. return dealDate(row.pickUpDate);
  598. }
  599. if(row.state==5){
  600. return dealDate(row.publicity1ResultDate);
  601. }
  602. if(row.state==6){
  603. return dealDate(row.streetDate);
  604. }
  605. if(row.state==7){
  606. return dealDate(row.housesOwnershipDate);
  607. }
  608. }
  609. }
  610. //剩余处理时间
  611. var remainTimeFormatter = function(value , row , index){
  612. var currentDate = new Date();
  613. var reviewDate = null;
  614. var time = null;
  615. var date = null;
  616. if(row.type==1||row.type==2||row.type==10){
  617. //街道办审核
  618. if(row.state==2){
  619. reviewDate = new Date(row.pickUpDate.replace(/-/gm ,"/"));
  620. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 3;
  621. }
  622. //区保障中心审核
  623. if(row.state==5){
  624. reviewDate = new Date(row.publicity1ResultDate.replace(/-/gm ,"/"));
  625. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 5;
  626. }
  627. //房屋审核
  628. if(row.state==6){
  629. reviewDate = new Date(row.streetDate.replace(/-/gm ,"/"));
  630. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
  631. }
  632. //民政审核
  633. if(row.state==7){
  634. reviewDate = new Date(row.streetDate.replace(/-/gm ,"/"));
  635. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 15;
  636. }
  637. //保障处审核
  638. if(row.state==8){
  639. if(row.civilDate>row.housesOwnershipDate){
  640. reviewDate = new Date(row.civilDate.replace(/-/gm ,"/"));
  641. }else{
  642. reviewDate = new Date(row.housesOwnershipDate.replace(/-/gm ,"/"));
  643. }
  644. //reviewDate = new Date(row.civilDate);
  645. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
  646. }
  647. }else{
  648. if(row.state==2){
  649. reviewDate = new Date(row.pickUpDate.replace(/-/gm ,"/"));
  650. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 10;
  651. }
  652. if(row.state==7){
  653. reviewDate = new Date(row.housesOwnershipDate.replace(/-/gm ,"/"));
  654. reviewDate = reviewDate.getTime()+1000 * 60 * 60 * 24 * 5;
  655. }
  656. }
  657. time =reviewDate -currentDate;
  658. date = parseInt(time / (1000 * 60 * 60 * 24))
  659. if(date>=0){
  660. return "<span style='color:green;'>剩余"+date+"天</span>";
  661. }else{
  662. return "<span style='color:red;'>已超时"+date*-1+"天</span>";
  663. }
  664. }
  665. var addTypeFormatter = function(value , row , index){
  666. if(value=="1"){
  667. return "新申请";
  668. }else if(value=="2"){
  669. return "年审";
  670. }
  671. }
  672. var dateFormatter = function(value , row , index){
  673. return dealDate(value);
  674. }
  675. function compare(){
  676. var rows = $('#compareSecurityPersonApplyDataGrid').datagrid('getSelections');
  677. if(rows.length>1||rows.length<1){
  678. $.messager.alert("提示","请选择一条要对比的人员信息!");
  679. return;
  680. }
  681. var id = rows[0].id
  682. $("#compareInfoDialog").dialog({
  683. buttons:[{
  684. text : '确定',
  685. iconCls : 'icon-ok',
  686. handler : function(){
  687. compare_submit(id);
  688. $("#compareSecurityPersonApplyDataGrid").datagrid("clearSelections");
  689. }
  690. },{
  691. text : '取消',
  692. iconCls : 'icon-cancel',
  693. handler : function(){
  694. $("#compareInfoDialog").dialog("close");
  695. $("#compareSecurityPersonApplyDataGrid").datagrid("clearSelections");
  696. }
  697. }],
  698. onLoad : function(){
  699. compare_load(id);
  700. }
  701. })
  702. }
  703. //提供佐证
  704. var evidenceFormatter = function(value , row , index){
  705. return "<img src='<%=basePath%>/js/easyui/themes/itemicon/add.png' onclick=evidence(" + row.id +") style='cursor:pointer'>";;
  706. }
  707. function evidence(id){
  708. $("#evidenceDialog").dialog({
  709. buttons:[{
  710. text:"关闭",
  711. iconCls : 'icon-cancel',
  712. handler : function(){
  713. $("#evidenceDialog").dialog("close");
  714. }
  715. }],
  716. onLoad:function(){
  717. evidence_load(id);
  718. }
  719. })
  720. }
  721. --></script>
  722. <div class="easyui-layout" data-options="fit:true,border:false">
  723. <div data-options="region:'center',border:false">
  724. <div id="searchtool" data-options="region:'north' , border:false">
  725. <div class="clear"></div>
  726. <table id="tblQuery" style="width:100%;">
  727. <tr>
  728. <td align="right" style="width: 10%;"><span>姓名</span></td><td style="width: 10%;"><input id="name" name="securityPersonApply.securityPerson.name" type="text" style="width: 100px;"/></td>
  729. <td align="right" style="width: 8%;"><span>身份证号</span></td><td style="width: 10%;"><input id="idCard" name="securityPersonApply.securityPerson.idCard" type="text" style="width: 140px;"/></td>
  730. <td style="width: 8%;"></td>
  731. <td style="width: 10%;"></td>
  732. <td align="left" style="width: 40%;">
  733. <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  734. <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  735. </td>
  736. </tr>
  737. <tr>
  738. <td align="right" style="width: 10%;"><span>人员类别</span></td>
  739. <td style="width: 10%;">
  740. <select id="personType" name="securityPersonApply.personType" style="width:100px" onchange="searchFun();">
  741. <option value="">全部</option>
  742. </select>
  743. </td>
  744. <td align="right" style="width: 8%;"><span>保障类别</span></td>
  745. <td style="width: 10%;">
  746. <select id="applyType" name="securityPersonApply.applyType" style="width:140px" onchange="searchFun();">
  747. <option value="">全部</option>
  748. </select>
  749. </td>
  750. <td align="right" style="width: 8%;"><span>新增类型</span></td>
  751. <td><select id="addType" name="securityPersonApply.addType" style="width:100px" >
  752. <option value="">全部</option>
  753. <option value="1">新申请</option>
  754. <option value="2">年审</option>
  755. </select>
  756. </td>
  757. <td>
  758. <a href="javascript:compare();" id="compare" class="easyui-linkbutton" data-options="iconCls:'icon-review',plain:true">对比</a>
  759. </td>
  760. </tr>
  761. </table>
  762. <div class="clear"></div>
  763. </div>
  764. <table id="compareSecurityPersonApplyDataGrid">
  765. <thead frozen="true">
  766. <tr>
  767. <th data-options="field:'id',checkbox:true,width:30">ID</th>
  768. </tr>
  769. </thead>
  770. <thead>
  771. <tr>
  772. <th data-options="field:'name',width:60">姓名</th>
  773. <th data-options="field:'idCard',width:150">身份证号</th>
  774. <th data-options="field:'personType',width:80,formatter:personTypeFormatter">人员类别</th>
  775. <th data-options="field:'applyType',width:150,formatter:applyTypeFormatter">保障类别</th>
  776. <th data-options="field:'applyDepartmentName',width:200">户口所在地</th>
  777. <th data-options="field:'addType',width:100,formatter:addTypeFormatter">新增类型</th>
  778. <th data-options="field:'pickUpDate',width:100,formatter:dateFormatter">收件时间</th>
  779. <th data-options="field:'mzPushDate',width:100,formatter:dateFormatter">推送民政时间</th>
  780. <th data-options="field:'pickUpUser',width:100,formatter:pickUpUserNameFormatter">经办人</th>
  781. <th data-options="field:'state',width:100,formatter:stateFormatter">当前状态</th>
  782. <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详细</th>
  783. <th data-options="field:'evidence',align:'center',width:60,formatter:evidenceFormatter">佐证</th>
  784. </tr>
  785. </thead>
  786. </table>
  787. </div>
  788. </div>
  789. <div id="detailsecurityPersonApplyDialog" data-options="title:'&nbsp;资料详细信息',iconCls:'icon-details',width:800,height:400,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toSearchDetail'">
  790. </div>
  791. <div id="taskDialog"></div>
  792. <div id="compareInfoDialog" data-options="title:'&nbsp;对比',iconCls:'icon-cog',width:1200,height:500,modal:true,href:'<%=basePath %>/securityPersonApplyAction_toReviewGuarantee'">
  793. </div>
  794. <div id="setFailReasonDialog" data-options="title:'&nbsp;不通过原因',iconCls:'icon-cog',width:300,height:200,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toFailReason'">
  795. </div>
  796. <div id="evidenceDialog" data-options="title:'&nbsp;佐证信息',iconCls:'icon-edit',width:500,height:320,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toEvidence'">
  797. </div>
  798. <div id="evidenceAddDialog" data-options="title:'&nbsp;佐证信息',iconCls:'icon-edit',width:500,height:300,modal:true,href:'<%=basePath %>/securityPersonApply2Action_toEvidenceAdd'">
  799. </div>
  800. <script type="text/javascript">
  801. <!--
  802. parent.$.messager.progress('close');
  803. //-->
  804. </script>