reviewCommunity.jsp 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <!-- 街办审核页面 -->
  2. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  3. <script type="text/javascript">
  4. var securityPersonApplyId = null;
  5. var familyNum = 0;
  6. var securityNum = 0;
  7. var isLive;//初审入户调查
  8. var type;
  9. var addType;
  10. var state;
  11. /**家庭关系格式*/
  12. var relativeFormatter = function(value , row , index){
  13. var relative = "";
  14. for(var nItem = 0; nItem < relativeObj.length; nItem++ ){
  15. if(relativeObj[nItem].code == row.relative){
  16. relative = relativeObj[nItem].value;
  17. break;
  18. }
  19. }
  20. return relative;
  21. };
  22. /**婚姻状况格式*/
  23. var maritalStatusFormatter = function(value , row , index){
  24. var maritalStatus = "";
  25. for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
  26. if(maritalStatusObj[nItem].code == row.maritalStatus){
  27. maritalStatus = maritalStatusObj[nItem].value;
  28. break;
  29. }
  30. }
  31. return maritalStatus;
  32. };
  33. /**是否在保障范围内格式*/
  34. var yesOrNoFormatter = function(value , row , index){
  35. var yesOrNo = "";
  36. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  37. if(yesOrNoObj[nItem].code == value){
  38. yesOrNo = yesOrNoObj[nItem].value;
  39. break;
  40. }
  41. }
  42. return yesOrNo;
  43. };
  44. var task_submit = function(id){
  45. if($("#opinion_update").val()==2){
  46. $.messager.confirm('提示', '确定审核不符合吗?', function(r){
  47. if(r){
  48. if($("#remark_update").val()!=''){
  49. submit1();
  50. }else{
  51. $.messager.alert("提醒","请填写不符合备注");
  52. return false;
  53. }
  54. }
  55. });
  56. }else{
  57. submit1();
  58. }
  59. }
  60. function submit1(){
  61. parent.$.messager.progress({
  62. title : '提示',
  63. text : '数据处理中,请稍候....'
  64. });
  65. var rows = $("#dg_detail_1").datagrid("getRows");
  66. familyNum = rows.length;
  67. $("#familyNum_update").val(familyNum);
  68. var ids = new Array();
  69. for(var i=0,l=rows.length;i<l;i++){
  70. if(rows[i].isInRange==1){
  71. securityNum++;
  72. }
  73. if(typeof(rows[i].isInRange)=="undefined"){
  74. var edIsUrban = $('#dg_detail_1').datagrid('getEditor', {index:i,field:'isUrban'});
  75. var edIsInRange = $('#dg_detail_1').datagrid('getEditor', {index:i,field:'isInRange'});
  76. if(edIsUrban!=null&&edIsInRange!=null){
  77. var isUrban = $(edIsUrban.target).combobox('getValue');
  78. var isInRange = $(edIsInRange.target).combobox('getValue');
  79. if(isInRange==1){
  80. securityNum++;
  81. }
  82. data = {"securityPersonApplyRelative.securityPersonApply.id":securityPersonApplyId ,
  83. "securityPersonApplyRelative.isUrban":isUrban ,
  84. "securityPersonApplyRelative.isInRange":isInRange ,
  85. "securityPersonApplyRelative.id":rows[i].id
  86. };
  87. $.ajax({
  88. type: "post",//使用post方法访问后台
  89. dataType: "json",//返回json格式的数据
  90. async: false,
  91. url: whzl.basePath+"/securityPersonApply2Action_mergeSecurityPersonApplyRelative",//要访问的后台地址
  92. data:data,
  93. error: function(msg){//msg为返回的数据,在这里做数据绑定
  94. $.messager.alert("提示","更新失败!");
  95. },
  96. success:function(msg){
  97. var parseResult = $.parseJSON(msg);
  98. if(msg.success){
  99. $("#securityPersonApplyDataGrid").datagrid("reload");
  100. }
  101. }
  102. });
  103. }else{
  104. parent.$.messager.progress('close');
  105. $.messager.alert("提醒","请审核家庭成员信息");
  106. return false;
  107. }
  108. }
  109. }
  110. $("#securityNum_update").val(securityNum);
  111. var str="2,4,";
  112. if(isLive==undefined && addType==2 && str.indexOf(type)!=-1 && state==2){
  113. parent.$.messager.progress('close');
  114. $.messager.alert("提醒","请上传入户调查信息");
  115. return false;
  116. }else{
  117. $('#securityPersonApplyForm').form('submit',{
  118. url : whzl.basePath+'/securityPersonApplyAction_reviewCommunity',
  119. success : function(result){
  120. var parseResult = $.parseJSON(result);
  121. if(parseResult.success){
  122. $("#reviewDialog").dialog("close");
  123. if($('#securityPersonApplyDataGrid') != null){
  124. $('#securityPersonApplyDataGrid').datagrid('reload');
  125. }
  126. if($('#taskDataGrid') != null){
  127. $('#taskDataGrid').datagrid('reload');
  128. }
  129. parent.$.messager.progress('close');
  130. }else{
  131. parent.$.messager.progress('close');
  132. $.messager.alert("提示",parseResult.message);
  133. }
  134. }
  135. });
  136. }
  137. securityNum = 0;
  138. }
  139. var task_load = function(id){
  140. $("#tabs_detail_1").tabs("select",1);
  141. securityPersonApplyId = id;
  142. $("#securityPersonApplyId_update").val(id)
  143. $.ajax({
  144. type: "post",//使用get方法访问后台
  145. dataType: "json",//返回json格式的数据
  146. url: "securityPersonApply2Action_findById",//要访问的后台地址
  147. data: "securityPersonApply.id="+id,//要发送的数据
  148. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  149. success: function(msg){//msg为返回的数据,在这里做数据绑定
  150. isLive = msg.obj.isLive;
  151. type = msg.obj.type;
  152. addType = msg.obj.addType;
  153. state = msg.obj.state;
  154. //基本信息
  155. $("#name_review").text(msg.obj.securityPersonName);
  156. $("#idCard_review").text(msg.obj.securityPersonIdCard);
  157. var maritalStatus = "";
  158. for(var nItem = 0; nItem < maritalStatusObj.length; nItem++ ){
  159. if(maritalStatusObj[nItem].code == msg.obj.maritalStatus){
  160. maritalStatus = maritalStatusObj[nItem].value;
  161. }
  162. }
  163. $("#maritalStatus_review").text(maritalStatus);
  164. $("#phone_review").text(msg.obj.phone);
  165. $("#company_review").text(msg.obj.company);
  166. $("#workPlace_review").text(msg.obj.workPlace)
  167. $("#residence_review").text(msg.obj.applyDepartmentName+"-"+msg.obj.community);
  168. $("#temporaryDate_review").text(dealDate(msg.obj.temporaryDate));
  169. $("#securityNum_review").text(msg.obj.securityNum);
  170. $("#familyNum_review").text(msg.obj.familyNum);
  171. $("#avgIncome_review_th").show();
  172. $("#avgIncome_review_td").show();
  173. $("#avgIncome_review").text(msg.obj.avgIncome);
  174. var applyType = "";
  175. for(var nItem = 0; nItem < applyTypeObj.length; nItem++ ){
  176. if(applyTypeObj[nItem].code == msg.obj.applyType){
  177. applyType = applyTypeObj[nItem].value;
  178. }
  179. }
  180. $("#applyType_review").text(applyType);
  181. //家庭住房情况
  182. $("#existArea_detail_1").text(msg.obj.existArea);
  183. $("#avgArea_detail_1").text(msg.obj.avgArea);
  184. if(msg.obj.diffcultType=="2"){
  185. $("#area_review_tr").show();
  186. }
  187. var education;
  188. for(var nItem = 0; nItem < educationObj.length; nItem++ ){
  189. if(educationObj[nItem].code == msg.obj.education){
  190. education = educationObj[nItem].value;
  191. }
  192. }
  193. $("#education_detail_1").text(education);
  194. $("#graduationDate_detail_1").text(dealDate(msg.obj.graduationDate));
  195. //是否残疾人
  196. var isDisability;
  197. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  198. if(yesOrNoObj[nItem].code == msg.obj.isDisability){
  199. isDisability = yesOrNoObj[nItem].value;
  200. }
  201. }
  202. $("#isDisability_review").text(isDisability);
  203. //是否退伍军人
  204. var isExServicemen;
  205. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  206. if(yesOrNoObj[nItem].code == msg.obj.isExServicemen){
  207. isExServicemen = yesOrNoObj[nItem].value;
  208. }
  209. }
  210. $("#isExServicemen_review").text(isExServicemen);
  211. //社保
  212. var pension;
  213. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  214. if(yesOrNoObj[nItem].code == msg.obj.pension){
  215. pension = yesOrNoObj[nItem].value;
  216. }
  217. }
  218. $("#pension_review").text(pension);
  219. $("#pensionDate_review").text(msg.obj.pensionDate);
  220. var isAssignmentHouse = "";
  221. var hasUsed = "";
  222. for(var nItem = 0; nItem < yesOrNoObj.length; nItem++ ){
  223. if(yesOrNoObj[nItem].code == msg.obj.isAssignmentHouse){
  224. isAssignmentHouse = yesOrNoObj[nItem].value;
  225. }
  226. if(yesOrNoObj[nItem].code == msg.obj.hasUsed){
  227. hasUsed = yesOrNoObj[nItem].value;
  228. }
  229. }
  230. $("#isAssignmentHouse_detail_1").text(isAssignmentHouse);
  231. $("#hasUsed_detail_1").text(hasUsed);
  232. for(var nItem = 0; nItem < propertyTypeObj.length; nItem++ ){
  233. if(propertyTypeObj[nItem].code == msg.obj.currentHouseSituation){
  234. currentHouseSituation = propertyTypeObj[nItem].value;
  235. }
  236. }
  237. $("#currentHouseSituation_detail_1").text(currentHouseSituation);
  238. currentHouseSituationInfo ="房屋坐落:"+ msg.obj.existReal+",面积:"+ msg.obj.existArea+",产权人:"+ msg.obj.propertyPerson;
  239. $("#propertyCompany_detail_1").text(msg.obj.propertyCompany)
  240. $("#existReal_detail_1").text(msg.obj.existReal)
  241. $("#existArea_detail_1").text(msg.obj.existArea)
  242. //上传图片材料
  243. for(var i=0;i< msg.obj.applyMaterialsFile.length;i++){
  244. var $image = $("<img src='../" + msg.obj.applyMaterialsFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.applyMaterialsFile[i].sprId+",\""+msg.obj.applyMaterialsFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  245. $("#applyMaterialsFile_detail_1").append ($image);
  246. }
  247. for(var i=0;i< msg.obj.idCardFile.length;i++){
  248. var $image = $("<img src='../" + msg.obj.idCardFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.idCardFile[i].sprId+",\""+msg.obj.idCardFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  249. $("#idCardFile_detail_1").append ($image);
  250. }
  251. for(var i=0;i< msg.obj.residenceFile.length;i++){
  252. var $image = $("<img src='../" + msg.obj.residenceFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.residenceFile[i].sprId+",\""+msg.obj.residenceFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  253. $("#residenceFile_detail_1").append ($image);
  254. }
  255. for(var i=0;i< msg.obj.incomeFile.length;i++){
  256. var $image = $("<img src='../" + msg.obj.incomeFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.incomeFile[i].sprId+",\""+msg.obj.incomeFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  257. $("#incomeFile_detail_1").append ($image);
  258. }
  259. for(var i=0;i< msg.obj.propertyCommissionFile.length;i++){
  260. var $image = $("<img src='../" + msg.obj.propertyCommissionFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.propertyCommissionFile[i].sprId+",\""+msg.obj.propertyCommissionFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  261. $("#propertyCommissionFile_detail_1").append ($image);
  262. }
  263. for(var i=0;i< msg.obj.proofOfMarriageFile.length;i++){
  264. var $image = $("<img src='../" + msg.obj.proofOfMarriageFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.proofOfMarriageFile[i].sprId+",\""+msg.obj.proofOfMarriageFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  265. $("#proofOfMarriageFile_detail_1").append ($image);
  266. }
  267. for(var i=0;i< msg.obj.rentalAgreementFile.length;i++){
  268. var $image = $("<img src='../" + msg.obj.rentalAgreementFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.rentalAgreementFile[i].sprId+",\""+msg.obj.rentalAgreementFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  269. $("#rentalAgreementFile_detail_1").append ($image);
  270. }
  271. for(var i=0;i< msg.obj.otherFile.length;i++){
  272. var $image = $("<img src='../" + msg.obj.otherFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.otherFile[i].sprId+",\""+msg.obj.otherFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  273. $("#otherFile_detail_1").append ($image);
  274. }
  275. for(var i=0;i< msg.obj.temporaryPermitFile.length;i++){
  276. var $image = $("<img src='../" + msg.obj.temporaryPermitFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.temporaryPermitFile[i].sprId+",\""+msg.obj.temporaryPermitFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  277. $("#temporaryPermitFile_detail_1").append ($image);
  278. }
  279. for(var i=0;i< msg.obj.laborContractFile.length;i++){
  280. var $image = $("<img src='../" + msg.obj.laborContractFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.laborContractFile[i].sprId+",\""+msg.obj.laborContractFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  281. $("#laborContractFile_detail_1").append ($image);
  282. }
  283. for(var i=0;i< msg.obj.diplomaFile.length;i++){
  284. var $image = $("<img src='../" + msg.obj.diplomaFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.diplomaFile[i].sprId+",\""+msg.obj.diplomaFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  285. $("#diplomaFile_detail_1").append ($image);
  286. }
  287. for(var i=0;i< msg.obj.companyProofFile.length;i++){
  288. var $image = $("<img src='../" + msg.obj.companyProofFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.companyProofFile[i].sprId+",\""+msg.obj.companyProofFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  289. $("#companyProofFile_detail_1").append ($image);
  290. }
  291. for(var i=0;i< msg.obj.relationshipProofFile.length;i++){
  292. var $image = $("<img src='../" + msg.obj.relationshipProofFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.relationshipProofFile[i].sprId+",\""+msg.obj.relationshipProofFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  293. $("#relationshipProofFile_detail_1").append ($image);
  294. }
  295. if(msg.obj.carFile.length>0){
  296. $("#carFile_tr").show();
  297. for(var i=0;i< msg.obj.carFile.length;i++){
  298. var $image = $("<img src='../" + msg.obj.carFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.carFile[i].sprId+",\""+msg.obj.carFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  299. $("#carFile_detail_1").append ($image);
  300. }
  301. }
  302. if(msg.obj.businessFile.length>0){
  303. $("#businessFile_tr").show();
  304. for(var i=0;i< msg.obj.businessFile.length;i++){
  305. var $image = $("<img src='../" + msg.obj.businessFile[i].filePath + "' width='100' height='40' onclick = 'openImg("+msg.obj.businessFile[i].sprId+",\""+msg.obj.businessFile[i].propertyName+"\",\""+msg.obj.securityPersonName+"\")'/>");
  306. $("#businessFile_detail_1").append ($image);
  307. }
  308. }
  309. if(msg.obj.applyType==1){//补贴
  310. $("#applyMaterialsFile_review_th").text("公租房租赁补贴申请表");
  311. $("#propertyCommissionFile_tr_1").show();
  312. $("#rentalAgreementFile_tr_1").show();
  313. $("#relationshipProofFile_tr_1").show();
  314. $("#otherInfo_review_tr").show();
  315. $("#isDisability_review_th").show();
  316. $("#isDisability_review_td").show();
  317. if(msg.obj.type==11||msg.obj.type==17){//大中专
  318. $("#laborContractFile_tr_1").show();
  319. $("#diplomaFile_tr_1").show();
  320. }
  321. }
  322. if(msg.obj.applyType==2){//公租房
  323. $("#applyMaterialsFile_review_th").text("公租房实物配租申请表");
  324. if(msg.obj.type==2){//中等偏下
  325. $("#temporaryPermitFile_tr_1").show();
  326. $("#propertyCommissionFile_tr_1").show();
  327. $("#otherInfo_review_tr").show();
  328. $("#isExServicemen_review_th").show();
  329. $("#isExServicemen_review_td").show();
  330. }
  331. if(msg.obj.type==4){//外来务工
  332. $("#incomeFile_tr_1").show();
  333. $("#laborContractFile_tr_1").show();
  334. }
  335. if(msg.obj.type==5){//清江浦
  336. $("#laborContractFile_tr_1").show();
  337. $("#companyProofFile_tr_1").show();
  338. }
  339. }
  340. if(msg.obj.applyType==3){//共有产权房
  341. $("#applyMaterialsFile_review_th").text("共有产权住房申请表");
  342. if(msg.obj.type==7){//外来务工
  343. $("#incomeFile_tr_1").show();
  344. $("#laborContractFile_tr_1").show();
  345. }
  346. if(msg.obj.type==8){//农民
  347. $("#relationshipProofFile_tr_1").show();
  348. }
  349. if(msg.obj.type==10){//中等偏下
  350. $("#temporaryPermitFile_tr_1").show();
  351. $("#propertyCommissionFile_tr_1").show();
  352. }
  353. }
  354. if(typeof(msg.obj.communityUserId) != "undefined"){
  355. var communityOpinion = "";
  356. for(var nItem = 0; nItem < opinionObj.length; nItem++ ){
  357. if(opinionObj[nItem].code == msg.obj.communityOpinion){
  358. communityOpinion = opinionObj[nItem].value;
  359. }
  360. }
  361. $("#shyj_table").append("<tr><th width = '20%'>街道办</th><td width = '80%'>"+
  362. "<span style='width:115px;display:inline-block;'>"+msg.obj.communityUserName+"</span>"+
  363. "<span>"+dealDate(msg.obj.communityDate)+" 审核意见:"+communityOpinion+" 备注:"+msg.obj.communityRemark+"</span></td></tr>");
  364. }
  365. if(typeof(msg.obj.streetUserId) != "undefined"){
  366. var streetOpinion = "";
  367. for(var nItem = 0; nItem < opinionObj.length; nItem++ ){
  368. if(opinionObj[nItem].code == msg.obj.streetOpinion){
  369. streetOpinion = opinionObj[nItem].value;
  370. }
  371. }
  372. $("#shyj_table").append("<tr><th width = '20%'>区住建局</th><td width = '80%'>"+
  373. "<span style='width:115px;display:inline-block;'>"+msg.obj.streetUserName+"</span>"+
  374. "<span>"+dealDate(msg.obj.streetDate)+" 审核意见:"+streetOpinion+" 备注:"+msg.obj.streetRemark+"</span></td></tr>");
  375. }
  376. if(typeof(msg.obj.housesOwnershipUserId) != "undefined"){
  377. var housesOwnershipOpinion = "";
  378. for(var nItem = 0; nItem < opinionObj.length; nItem++ ){
  379. if(opinionObj[nItem].code == msg.obj.housesOwnershipOpinion){
  380. housesOwnershipOpinion = opinionObj[nItem].value;
  381. }
  382. }
  383. $("#shyj_table").append("<tr><th width = '20%'>市房屋登记机构</th><td width = '80%'>"+
  384. "<span style='width:115px;display:inline-block;'>"+msg.obj.housesOwnershipUserName+"</span>"+
  385. "<span>"+dealDate(msg.obj.housesOwnershipDate)+"</span></td></tr>");
  386. }
  387. if(typeof(msg.obj.civilUserId) != "undefined"){
  388. var civilOpinion = "";
  389. for(var nItem = 0; nItem < opinionObj.length; nItem++ ){
  390. if(opinionObj[nItem].code == msg.obj.civilOpinion){
  391. civilOpinion = opinionObj[nItem].value;
  392. }
  393. }
  394. $("#shyj_table").append("<tr><th width = '20%'>市民政</th><td width = '80%'>"+
  395. "<span style='width:115px;display:inline-block;'>"+msg.obj.civilUserName+"</span>"+
  396. "<span>"+dealDate(msg.obj.civilDate)+"</span></td></tr>");
  397. }
  398. if(typeof(msg.obj.guaranteeUserId) != "undefined"){
  399. var guaranteeOpinion = "";
  400. for(var nItem = 0; nItem < opinionObj.length; nItem++ ){
  401. if(opinionObj[nItem].code == msg.obj.guaranteeOpinion){
  402. guaranteeOpinion = opinionObj[nItem].value;
  403. }
  404. }
  405. $("#shyj_table").append("<tr><th width = '20%'>区住建局</th><td width = '80%'>"+
  406. "<span style='width:115px;display:inline-block;'>"+msg.obj.guaranteeUserName+"</span>"+
  407. "<span>"+dealDate(msg.obj.guaranteeDate)+" 审核意见:"+guaranteeOpinion+" 备注:"+msg.obj.guaranteeRemark+"</span></td></tr>");
  408. }
  409. }
  410. });
  411. //家庭关系列表
  412. $('#dg_detail_1').datagrid({
  413. rownumbers:true,
  414. border:false,
  415. sortOrder:'desc',
  416. url:whzl.basePath + '/securityPersonApplyAction_listSecurityPersonApplyRelative?securityPersonApplyId='+id,
  417. checkOnSelect:true,
  418. selectOnCheck:false,
  419. loadFilter:function(result){
  420. if(result.success){
  421. return result.obj;
  422. }else{
  423. $.messager.alert("提示",result.message);
  424. return ;
  425. }
  426. }
  427. });
  428. }
  429. function updateTask(){
  430. $("#taskDataGrid").datagrid("reload");
  431. }
  432. var updateFormatter = function(value , row , index){
  433. return "<a onclick='updateRow("+index+")' style='cursor:pointer'>更新</a>&nbsp;"
  434. }
  435. function openImg(id,name,personName){
  436. window.open ('securityPersonApply2Action_viewImg?id='+id+"&name="+name+"&personName="+personName,'newwindow_'+new Date().getTime(),'height=400,width=500,top=0,left=800,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,titlebar=no');
  437. }
  438. var viewImgsFormatter = function(value , row , index){
  439. return value + "&nbsp;<a onclick='openImg("+row.id+",\"\",\""+row.name+"\")' style='cursor:pointer'>【查看附件】</a>"
  440. }
  441. function updateRow(index){
  442. $('#dg_detail_1').datagrid('selectRow', index)
  443. .datagrid('beginEdit', index);
  444. }
  445. function deleteRow(id,index){
  446. $.messager.confirm('提醒','是否删除该家庭成员?',function(r){
  447. $('#dg_detail_1').datagrid('deleteRow',index);
  448. if(id!=null){
  449. $.ajax({
  450. type: "post",//使用get方法访问后台
  451. dataType: "json",//返回json格式的数据
  452. url: "securityPersonApply2Action_deleteSecurityPersonApplyRelative",//要访问的后台地址
  453. data: "securityPersonApplyRelative.id="+id,//要发送的数据
  454. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  455. success: function(msg){
  456. }
  457. })
  458. }
  459. })
  460. }
  461. var editIndex = undefined;
  462. function addRelative(){
  463. $('#dg_detail_1').datagrid('appendRow',{residenceNo:'',name:'',relative:'',idCard:'',maritalStatus:'',isUrban:'',company:''});
  464. editIndex = $('#dg_detail_1').datagrid('getRows').length-1;
  465. $('#dg_detail_1').datagrid('selectRow', editIndex).datagrid('beginEdit', editIndex);
  466. }
  467. </script>
  468. <div style="width: 100%;">
  469. <div class="easyui-tabs" id="tabs_detail_1" style="height:350px;" >
  470. <div title="个人信息" id="grxx_detail_1">
  471. <table class="mytable" style="width: 100%;">
  472. <tr>
  473. <th width="20%">身份证号</th>
  474. <td width="30%">
  475. <span id="idCard_review"></span>
  476. </td>
  477. <th width="20%">申请人姓名</th>
  478. <td width="30%">
  479. <span id="name_review"></span>
  480. </td>
  481. </tr>
  482. <tr>
  483. <th>婚姻状况</th>
  484. <td>
  485. <span id="maritalStatus_review"></span>
  486. </td>
  487. <th>联系电话</th>
  488. <td >
  489. <span id="phone_review"></span>
  490. </td>
  491. </tr>
  492. <tr>
  493. <th>家庭人均收入</th>
  494. <td>
  495. <span id="avgIncome_review"></span>
  496. </td>
  497. <th>申请类型</th>
  498. <td>
  499. <span id="applyType_review"></span>
  500. </td>
  501. </tr>
  502. <tr>
  503. <th>户口所在地</th>
  504. <td>
  505. <span id="residence_review"></span>
  506. </td>
  507. <th id="temporaryDate_review_th" style="display: none;">
  508. 取得市区户口时间
  509. </th>
  510. <td id="temporaryDate_review_td" style="display: none;">
  511. <span id="temporaryDate_review"></span>
  512. </td>
  513. </tr>
  514. <tr>
  515. <th>家庭总人口数</th>
  516. <td>
  517. <span id="familyNum_review"></span>
  518. </td>
  519. <th>保障人员数量</th>
  520. <td>
  521. <span id="securityNum_review"></span>
  522. </td>
  523. </tr>
  524. <tr>
  525. <th>工作单位名称</th>
  526. <td >
  527. <span id="company_review"></span>
  528. </td>
  529. <th>工作单位地址</th>
  530. <td>
  531. <span id="workPlace_review"></span>
  532. </td>
  533. </tr>
  534. <tr id="otherInfo_review_tr" style="display: none;">
  535. <th id="isDisability_review_th" style="display: none;">
  536. 是否残疾人员
  537. </th>
  538. <td id="isDisability_review_td" style="display: none;">
  539. <span id="isDisability_review"></span>
  540. </td>
  541. <th id="isExServicemen_review_th" style="display: none;">
  542. 是否是退役军人
  543. </th>
  544. <td id="isExServicemen_review_td" style="display: none;">
  545. <span id="isExServicemen_review"></span>
  546. </td>
  547. </tr>
  548. </table>
  549. </div>
  550. <div title="同户籍家庭其他成员" id="qtcy_detail_1">
  551. <table id="dg_detail_1" title="同户籍家庭其他成员&nbsp;" style="width: 100%;">
  552. <thead frozen="true">
  553. <tr>
  554. <th data-options="field:'residenceNo',sortable:true,width:100,align:'center'">户号</th>
  555. <th data-options="field:'name',sortable:true,width:80,align:'center'">姓名</th>
  556. </tr>
  557. </thead>
  558. <thead>
  559. <tr>
  560. <th data-options="field:'relative',sortable:true,width:100,align:'center',formatter:relativeFormatter">与户主关系</th>
  561. <th data-options="field:'idCard',sortable:true,width:200,align:'center'">身份证号</th>
  562. <th data-options="field:'maritalStatus',sortable:true,width:130,align:'center',formatter:maritalStatusFormatter">婚姻状况</th>
  563. <th data-options="field:'isUrban',sortable:true,width:130,align:'center',editor:yesOrNoEditor,formatter:yesOrNoFormatter">是否市区户口</th>
  564. <th data-options="field:'isInRange',width:130,align:'center',formatter:yesOrNoFormatter,editor:yesOrNoEditor">是否在保障范围</th>
  565. <th data-options="field:'update',width:130,align:'center',formatter:updateFormatter">操作</th>
  566. </tr>
  567. </thead>
  568. </table>
  569. </div>
  570. <div title="家庭现住房情况" ireviewdetail_1">
  571. <table class="mytable" style="width: 100%;" id="zfqk_table_detail_1">
  572. <tr>
  573. <th>
  574. 家庭现住房情况
  575. </th>
  576. <td>
  577. <span id="currentHouseSituation_detail_1"></span>
  578. </td>
  579. <th>产权人、产权公司</th>
  580. <td>
  581. <span id="propertyCompany_detail_1"></span>
  582. </td>
  583. </tr>
  584. <tr>
  585. <th>现住房地址</th>
  586. <td>
  587. <span id="existReal_detail_1"></span>
  588. </td>
  589. <th>现住房面积</th>
  590. <td>
  591. <span id="existArea_detail_1"></span>
  592. </td>
  593. </tr>
  594. <tr>
  595. <th width="30%">申请之日前两年在市区是否转让房产(含拆迁货币安置)</th>
  596. <td width="20%">
  597. <span id="isAssignmentHouse_detail_1"></span>
  598. </td>
  599. <th width="30%">申请之日前两年是否享受过房改房、政策性商品房或其他住房保障政策:</th>
  600. <td width="20%">
  601. <span id="hasUsed_detail_1"></span>
  602. </td>
  603. </tr>
  604. </table>
  605. </div>
  606. <div title="材料文件上传" id="wjsc_detail_1">
  607. <table class="mytable" style="width: 100%;" >
  608. <tr >
  609. <th width = "30%" id="applyMaterialsFile_review_th">
  610. 申请家庭提出的书面申请
  611. </th>
  612. <td width = "70%">
  613. <span id="applyMaterialsFile_detail_1"></span>
  614. </td>
  615. </tr>
  616. <tr>
  617. <th width = "30%">
  618. 身份证正反面
  619. </th>
  620. <td width = "70%">
  621. <span id="idCardFile_detail_1"></span>
  622. </td>
  623. </tr>
  624. <tr >
  625. <th width = "30%">
  626. 户口簿
  627. </th>
  628. <td width = "70%">
  629. <span id="residenceFile_detail_1"></span>
  630. </td>
  631. </tr>
  632. <tr >
  633. <th width = "30%">
  634. 婚姻状况证明(单身证明)
  635. </th>
  636. <td width = "70%">
  637. <span id="proofOfMarriageFile_detail_1"></span>
  638. </td>
  639. </tr>
  640. <tr id="incomeFile_tr_1" style="display: none;">
  641. <th width = "30%" >
  642. 家庭收入书面声明
  643. </th>
  644. <td width = "70%">
  645. <span id="incomeFile_detail_1"></span>
  646. </td>
  647. </tr>
  648. <tr id="temporaryPermitFile_tr_1" style="display: none;">
  649. <th>暂住证</th>
  650. <td>
  651. <span id="temporaryPermitFile_detail_1"></span>
  652. </td>
  653. </tr>
  654. <tr id="diplomaFile_tr_1" style="display: none;">
  655. <th>大中专院校毕业证书,公务员应提供所在单位证明</th>
  656. <td>
  657. <span id="diplomaFile_detail_1"></span>
  658. </td>
  659. </tr>
  660. <tr id="companyProofFile_tr_1" style="display: none;">
  661. <th>国家工作人员提供所在单位证明</th>
  662. <td>
  663. <span id="companyProofFile_detail_1"></span>
  664. </td>
  665. </tr>
  666. <tr id="relationshipProofFile_tr_1" style="display: none;">
  667. <th>申请人与共同申请人关系证明</th>
  668. <td>
  669. <span id="relationshipProofFile_detail_1"></span>
  670. </td>
  671. </tr>
  672. <tr id="propertyCommissionFile_tr_1" style="display: none;">
  673. <th width = "30%">
  674. 代为查询、核对家庭收入、财产状况的委托书
  675. </th>
  676. <td width = "70%">
  677. <span id="propertyCommissionFile_detail_1"></span>
  678. </td>
  679. </tr>
  680. <tr id="rentalAgreementFile_tr_1" style="display: none;">
  681. <th width = "30%">
  682. 租赁住房协议或拆迁补偿协议
  683. </th>
  684. <td width = "70%">
  685. <span id="rentalAgreementFile_detail_1"></span>
  686. </td>
  687. </tr>
  688. <tr id="carFile_tr" style="display: none;">
  689. <th>车辆保险单</th>
  690. <td>
  691. <span id="carFile_detail_1"></span>
  692. </td>
  693. </tr>
  694. <tr id="businessFile_tr" style="display: none;">
  695. <th>工商材料</th>
  696. <td>
  697. <span id="businessFile_detail_1"></span>
  698. </td>
  699. </tr>
  700. <tr>
  701. <th width = "30%">
  702. 其他信息上传
  703. </th>
  704. <td width = "70%">
  705. <span id="otherFile_detail_1"></span>
  706. </td>
  707. </tr>
  708. </table>
  709. </div>
  710. </div>
  711. <form id="securityPersonApplyForm" method="post">
  712. <input type="hidden" id="securityPersonApplyId_update" name="securityPersonApply.id">
  713. <input type="hidden" id="department" value="${session.user.department.id}">
  714. <input type="hidden" id="familyNum_update" name="securityPersonApply.familyNum"/>
  715. <input type="hidden" id="securityNum_update" name="securityPersonApply.securityNum"/>
  716. <table class="mytable" style="width:100%;">
  717. <tr>
  718. <th>审核人</th>
  719. <td>
  720. ${session.user.fullName}
  721. </td>
  722. <th id="opinion_th">审核意见</th>
  723. <td>
  724. <select id="opinion_update" name="opinion" class="easyui-validatebox" required="true">
  725. <option value="">请选择</option>
  726. <option value="1">符合</option>
  727. <option value="2">不符合</option>
  728. </select>
  729. </td>
  730. </tr>
  731. <tr>
  732. <th>审核意见说明</th>
  733. <td colspan="3" >
  734. <textarea rows="2" cols="50" id="remark_update" name="remark"></textarea>
  735. </td>
  736. </tr>
  737. </table>
  738. </form>
  739. </div>