addPZ3.jsp 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. <%-- 配租申请表13--特殊家庭(70周岁以上老人)--%>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  3. <style type="text/css">
  4. em {color:red;font-size:13px;font-style:normal}
  5. .changeLine th{
  6. white-space: NOWRAP;
  7. }
  8. </style>
  9. <script type="text/javascript">
  10. function addPZ3_load(){
  11. //婚姻
  12. $("#maritalStatus_add").append(maritalStatus_array);
  13. $("#maritalStatus1").append(maritalStatus_array);
  14. $("#nationality1").append(nationality_array);
  15. $("#education1").append(education_array);
  16. //街办
  17. getStreetList("1",0,"street_add");
  18. $("#street_add").children('option').remove();
  19. $("#street_add").change(function(){
  20. $("#neighborhood_add").children('option').remove();
  21. getNeighborhoodList($("#street_add").val(),0,"neighborhood_add");
  22. $("#communityId_add").children('option').remove();
  23. $("#communityId_add").append("<option value=''>请选择</option>");
  24. });
  25. $("#neighborhood_add").change(function(){
  26. $("#communityId_add").children('option').remove();
  27. getCommunityList($("#neighborhood_add").val(),0,"communityId_add");
  28. $("#community_add").val("");
  29. });
  30. $("#communityId_add").change(function(){
  31. var community = $("#communityId_add").find("option:selected").text();
  32. $("#community_add").val(community);
  33. });
  34. }
  35. function addPZ3_submit(){
  36. var flag= true;
  37. var flag1 = verifyCurrentHouseSituation();
  38. var flag2 = checkData();
  39. if($("#avgIncome_add").val()==""||$("#avgIncome_add").val()==null){
  40. countAvgIncome();
  41. flag = false;
  42. }
  43. if(flag1&&flag2&&flag){
  44. $.ajax({
  45. type: "POST",
  46. url:"securityPersonApply2Action_addSecurityPersonApply",
  47. data:$('#pz3Form').serialize(),// 你的formid
  48. async: false,
  49. error: function(data) {
  50. $.messager.alert("提示","提交失败");
  51. },
  52. success: function(result) {
  53. var parseResult = $.parseJSON(result);
  54. if(parseResult.success){
  55. $('#addPZ3Dialog').dialog("close");
  56. var securityPersonApplyId = parseResult.obj.id;
  57. var fileNum = parseResult.obj.fileNum;
  58. for(var i=1;i<=index;i++){
  59. if($("#mbtb_" + i).length > 0 ){
  60. var url = whzl.basePath+'/securityPersonApply2Action_addSecurityPersonApplyRelative';
  61. $.ajax({
  62. type: "post",//使用post方法访问后台
  63. dataType: "json",//返回json格式的数据
  64. url: url,//要访问的后台地址
  65. async: false,
  66. data:{"securityPersonApplyRelative.securityPersonApplyId":securityPersonApplyId ,
  67. "securityPersonApplyRelative.fileNum":fileNum ,
  68. "securityPersonApplyRelative.name":$("#name" + i ).val() ,
  69. "securityPersonApplyRelative.relative":$("#relative" + i ).val() ,
  70. "securityPersonApplyRelative.idCard":$("#idCard" + i ).val() ,
  71. "securityPersonApplyRelative.maritalStatus":$("#maritalStatus" + i ).val() ,
  72. "securityPersonApplyRelative.maritalDate":$("#maritalDate" + i ).datebox('getValue') ,
  73. "securityPersonApplyRelative.company":$("#company" + i ).val() ,
  74. "securityPersonApplyRelative.residenceNo":$("#residenceNo" + i ).val() ,
  75. "securityPersonApplyRelative.wageIncome":$("#wageIncome" + i ).val() ,
  76. "securityPersonApplyRelative.operatingNetIncome":$("#operatingNetIncome" + i ).val() ,
  77. "securityPersonApplyRelative.propertyIncome":$("#propertyIncome" + i ).val() ,
  78. "securityPersonApplyRelative.otherIncome":$("#otherIncome" + i ).val() ,
  79. "securityPersonApplyRelative.otherIncomeRemark":$("#otherIncomeRemark" + i ).val() ,
  80. "securityPersonApplyRelative.securitiesTotal":$("#securitiesInfo_input" + i ).val() ,
  81. "securityPersonApplyRelative.bankTotal":$("#bankInfo_input" + i ).val() ,
  82. "securityPersonApplyRelative.certificateInfo":$("#certificateInfo" + i ).val(),
  83. "securityPersonApplyRelative.isSubsistenceAllowances":$("#isSubsistenceAllowances" + i ).val(),
  84. "securityPersonApplyRelative.commercialInsurance":$("#commercialInsuranceInfo_input" + i ).val(),
  85. "securityPersonApplyRelative.phone":$("#phone" + i ).val(),
  86. "securityPersonApplyRelative.nationality":$("#nationality" + i ).val() ,
  87. "securityPersonApplyRelative.education":$("#education" + i ).val() ,
  88. "securityPersonApplyRelative.deathDate":$("#deathDate" + i ).datebox('getValue') ,
  89. "securityPersonApplyRelative.moveIn":$("#moveIn" + i ).val() ,
  90. },
  91. success : function(result){
  92. $.ajax({
  93. type: "post",//使用post方法访问后台
  94. dataType: "json",//返回json格式的数据
  95. url: whzl.basePath+'/securityPersonApply2Action_addAssets',//要访问的后台地址
  96. async: false,
  97. data:{"securityPersonApplyRelative.id":result.obj.id ,
  98. "cars":$("#carInfo_input"+i).val() ,
  99. "businesses": $("#businessInfo_input"+i).val() ,
  100. },
  101. });
  102. $("#securityPersonApplyDataGrid").datagrid("reload");
  103. }
  104. });
  105. }
  106. }
  107. }
  108. }
  109. })
  110. }
  111. }
  112. function checkData(){
  113. var flag= true;
  114. //验证家庭成员信息
  115. var isCar=2;
  116. var isBusiness=2;
  117. for(var i=1;i<=index;i++){
  118. var mbtb = $("#mbtb_"+i);
  119. //如果被删除,直接跳过
  120. if(mbtb.length > 0){
  121. var residenceNo=$("#residenceNo"+i).val()
  122. var idCard=$("#idCard"+i).val();
  123. var name=$("#name"+i).val();
  124. var relative=$("#relative"+i).val();
  125. var maritalStatus=$("#maritalStatus"+i).val();
  126. var wageIncome=$("#wageIncome"+i).val();
  127. var maritalDate = $("#maritalDate"+i).datebox('getValue');
  128. var phone=$("#phone"+i).val();
  129. var nationality=$("#nationality"+i).val();
  130. var education=$("#education"+i).val();
  131. var carInfo =$("#carInfo_input"+i).val();
  132. var businessesInfo =$("#businessInfo_input"+i).val();
  133. $("#certificateInfo"+i).val("");
  134. $("#isSubsistenceAllowances"+i).val("");
  135. //户号
  136. if(residenceNo==''){
  137. $.messager.alert('提醒','请填户号');
  138. flag = false;
  139. }
  140. //验证姓名
  141. if(name==''){
  142. $.messager.alert('提醒','请填写姓名');
  143. flag = false;
  144. }
  145. //验证身份证号
  146. /*if(idCard!=''){
  147. if(!idCard1(idCard)){
  148. $.messager.alert('提醒','请填正确身份证号');
  149. flag = false;
  150. }
  151. }else{
  152. $.messager.alert('提醒','请填身份证号');
  153. flag = false;
  154. }*/
  155. //验证户籍关系
  156. if(relative==''){
  157. $.messager.alert('提醒','请填与申请人关系');
  158. flag = false;
  159. }
  160. //验证婚姻关系
  161. if(maritalStatus==''){
  162. $.messager.alert('提醒','请填婚姻状况');
  163. flag = false;
  164. }
  165. //除未成年、未婚都要填写登记时间
  166. if(maritalStatus !="6"&&maritalStatus !="5"){
  167. if(maritalDate ==''){
  168. $.messager.alert('提醒','请填婚姻登记日期');
  169. flag = false;
  170. }
  171. }
  172. //验证联系电话
  173. if(phone==''){
  174. $.messager.alert('提醒','请填联系电话');
  175. flag = false;
  176. }
  177. //验证民族
  178. if(nationality==''){
  179. $.messager.alert('提醒','请选择民族');
  180. flag = false;
  181. }
  182. //验证文化
  183. if(education==''){
  184. $.messager.alert('提醒','请选择文化程度');
  185. flag = false;
  186. }
  187. //验证是否有车与工商信息
  188. if(carInfo!=''){
  189. isCar = 1;
  190. }
  191. if(businessesInfo!=''){
  192. isBusiness = 1;
  193. }
  194. }
  195. }
  196. $("#isCar_add").val(isCar);
  197. $("#isBusiness_add").val(isBusiness);
  198. //家庭人口数量
  199. var mbtbNum = $(".mbtb > table").size();
  200. $("#familyNum_add").val(mbtbNum);
  201. return flag;
  202. }
  203. //计算人均收入
  204. function countAvgIncome(){
  205. var wageIncomeTotal = 0;
  206. var operatingNetIncomeTotal = 0;
  207. var propertyIncomeTotal = 0;
  208. var otherIncomeTotal = 0
  209. var avgIncome = 0;
  210. var avgArea = 0;
  211. var areaTotal = 0;
  212. var mbtbNum = $(".mbtb > table").size();
  213. for(var i=1;i<=index;i++){
  214. if($("#wageIncome"+i).val()==''||$("#wageIncome"+i).val()==undefined){
  215. $("#wageIncome"+i).val(0);
  216. }else{
  217. wageIncomeTotal+=parseInt($("#wageIncome"+i).val());
  218. }
  219. if($("#operatingNetIncome"+i).val()==''||$("#operatingNetIncome"+i).val()==undefined){
  220. $("#operatingNetIncome"+i).val(0);
  221. }else{
  222. operatingNetIncomeTotal+=parseInt($("#operatingNetIncome"+i).val());
  223. }
  224. if($("#propertyIncome"+i).val()==''||$("#propertyIncome"+i).val()==undefined){
  225. $("#propertyIncome"+i).val(0);
  226. }else{
  227. propertyIncomeTotal+=parseInt($("#propertyIncome"+i).val());
  228. }
  229. if($("#otherIncome"+i).val()==''||$("#otherIncome"+i).val()==undefined){
  230. $("#otherIncome"+i).val(0);
  231. }else{
  232. otherIncomeTotal+=parseInt($("#otherIncome"+i).val());
  233. }
  234. }
  235. avgIncome = Number((wageIncomeTotal+operatingNetIncomeTotal+propertyIncomeTotal+otherIncomeTotal)/mbtbNum).toFixed(2);
  236. $("#avgIncome_add").val(avgIncome);
  237. $("#avgIncome_span").text("家庭平均月收入=( "+wageIncomeTotal+"【工资收入】+"+operatingNetIncomeTotal+"【经营净收入】+"+propertyIncomeTotal+"【财产性收入】+"+otherIncomeTotal+"【其他收入】"+")/"+mbtbNum+"【人数】 = " + avgIncome + "元");
  238. }
  239. //验证家庭住房情况
  240. function verifyCurrentHouseSituation(){
  241. var flag = true;
  242. var currentHouseSituation=$('input:radio[name="securityPersonApply.currentHouseSituation"]:checked').val();
  243. var propertyCompany=$('#propertyCompany_add').val();
  244. if(typeof(propertyCompany)=="undefined" || propertyCompany == ''){
  245. $.messager.alert('提醒','请输入产权单位');
  246. flag = false;
  247. }
  248. var existArea=$('#existArea_add').val();
  249. if(typeof(existArea)=="undefined" || existArea == ''){
  250. $.messager.alert('提醒','请输房屋面积');
  251. flag = false;
  252. }
  253. var existReal=$('#existReal_add').val();
  254. if(typeof(existReal)=="undefined" || existReal == ''){
  255. $.messager.alert('提醒','请输房屋地址');
  256. flag = false;
  257. }
  258. return flag;
  259. }
  260. var index = 1;
  261. function addSecurityPersonApplyRelative(){
  262. index++;
  263. var $table = $("<table id='mbtb_"+index+"' class='mytable changeLine'></table>");
  264. var $tr1 = $("<tr style='border-top: 2px solid blue;'></tr>");
  265. var $th1_1 = $("<th width='11%'>户号</th>");
  266. var $td1_2 = $("<td width='20%'><input id='residenceNo"+index+"' type='text' style='width: 100px;'></td>");
  267. var $th1_3 = $("<th width='11%'>姓名</th>");
  268. var $td1_4 = $("<td width='24%'><input id='name"+index+"' type='text' style='width: 100px;'></td>");
  269. var $th1_5 = $("<th width='11%'>身份证号</th>");
  270. var $td1_6 = $("<td><input id='idCard"+index+"' type='text' style='width: 172px;'></td>");
  271. $tr1.append($th1_1);
  272. $tr1.append($td1_2);
  273. $tr1.append($th1_3);
  274. $tr1.append($td1_4);
  275. $tr1.append($th1_5);
  276. $tr1.append($td1_6);
  277. var $tr2 = $("<tr></tr>");
  278. var $th2_1 = $("<th>与申请人关系</th>");
  279. var $td2_2 = $("<td></td>");
  280. var $select_relative=$("<select id='relative" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  281. $select_relative.append(relative_array);
  282. $td2_2.append($select_relative);
  283. var $th2_3 = $("<th>婚姻状况</th>");
  284. var $td2_4 = $("<td></td>");
  285. var $select_maritalStatus=$("<select id='maritalStatus" + index + "' style='width: 120px;height: 20px;vertical-align: middle;'><option value=''>选择</option></select>")
  286. $select_maritalStatus.append(maritalStatus_array);
  287. var $maritalDate = $("<input type='text' style='width: 100px;' id='maritalDate" + index + "' class='easyui-datebox' editable='fasle'/>");
  288. $td2_4.append($select_maritalStatus);
  289. $td2_4.append($maritalDate);
  290. $.parser.parse($td2_4);
  291. var $th2_5 = $("<th>民族</th>");
  292. var $td2_6 = $("<td></td>");
  293. var $select_nationality=$("<select id='nationality" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  294. $select_nationality.append(nationality_array);
  295. $td2_6.append($select_nationality);
  296. $tr2.append($th2_1);
  297. $tr2.append($td2_2);
  298. $tr2.append($th2_3);
  299. $tr2.append($td2_4);
  300. $tr2.append($th2_5);
  301. $tr2.append($td2_6);
  302. var $tr3 = $("<tr></tr>");
  303. var $th3_1 = $("<th>联系电话</th>");
  304. var $td3_2 = $("<td><input id='phone"+index+"' type='text'/></td>");
  305. var $th3_3 = $("<th>工作单位</th>");
  306. var $td3_4 = $("<td><input id='company"+index+"' type='text'></td>");
  307. var $th3_5 = $("<th>文化程度</th>");
  308. var $td3_6 = $("<td></td>");
  309. var $select_education=$("<select id='education" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
  310. $select_education.append(education_array);
  311. $td3_6.append($select_education);
  312. $tr3.append($th3_1);
  313. $tr3.append($td3_2);
  314. $tr3.append($th3_3);
  315. $tr3.append($td3_4);
  316. $tr3.append($th3_5);
  317. $tr3.append($td3_6);
  318. var $tr4 = $("<tr></tr>");
  319. var $th4_1 = $("<th>工薪收入(元/月)</th>");
  320. var $td4_2 = $("<td><input id='wageIncome"+index+"' type='text'></td>");
  321. var $th4_3 = $("<th>经营净收入(元/月)</th>");
  322. var $td4_4 = $("<td><input id='operatingNetIncome"+index+"' type='text'></td>");
  323. var $th4_5 = $("<th>财产性收入(元/月)</th>");
  324. var $td4_6 = $("<td><input id='propertyIncome"+index+"' type='text'></td>");
  325. $tr4.append($th4_1);
  326. $tr4.append($td4_2);
  327. $tr4.append($th4_3);
  328. $tr4.append($td4_4);
  329. $tr4.append($th4_5);
  330. $tr4.append($td4_6);
  331. var $tr5 = $("<tr></tr>");
  332. var $th5_1 = $("<th>其他收入(元/月)</th>");
  333. var $td5_2 = $("<td><input id='otherIncome"+index+"' type='text'></td>");
  334. var $th5_3 = $("<th>其他收入备注</th>");
  335. var $td5_4 = $("<td><input id='otherIncomeRemark"+index+"' type='text'></td>");
  336. var $th5_5 = $("<th>死亡注销日期</th>");
  337. var $td5_6 = $("<td></td>");
  338. var $deathDate = $("<input type='text' style='width: 100px;' id='deathDate" + index + "' class='easyui-datebox' editable='fasle'/>");
  339. $td5_6.append($deathDate);
  340. $.parser.parse($td5_6);
  341. $tr5.append($th5_1);
  342. $tr5.append($td5_2);
  343. $tr5.append($th5_3);
  344. $tr5.append($td5_4);
  345. $tr5.append($th5_5);
  346. $tr5.append($td5_6);
  347. var $tr6 = $("<tr></tr>");
  348. var $th6_1 = $("<th>何时何地迁入本市区户籍</th>" );
  349. var $td6_2 = $("<td colspan='5'><input id='moveIn"+index+"' type='text' style='width:700px'></td>");
  350. $tr6.append($th6_1);
  351. $tr6.append($td6_2);
  352. var $tr8 = $("<tr></tr>");
  353. var $th8_1 = $("<th>资产信息</th>");
  354. var $td8_2 = $("<td colspan='5'></td>");
  355. var $button1 =$("<input id='carInfo"+index+"' type='button' value='车辆信息' onclick='carInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  356. var $button2 =$("<input id='businessInfo"+index+"' type='button' value='工商信息' onclick='businessInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  357. var $button3 =$("<input id='securitiesInfo"+index+"' type='button' value='证券信息' onclick='securitiesInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  358. var $button4 =$("<input id='bankInfo"+index+"' type='button' value='银行信息' onclick='bankInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  359. var $button5 =$("<input id='commercialInsuranceInfo"+index+"' type='button' value='商业保险信息' onclick='commercialInsuranceInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
  360. var $img = $("<img align='right' src='images/remove.png' onclick=remove('mbtb_" + index + "')>");
  361. $td8_2.append($button1);
  362. $td8_2.append($button2);
  363. $td8_2.append($button3);
  364. $td8_2.append($button4);
  365. $td8_2.append($button5);
  366. $td8_2.append($img);
  367. $tr8.append($th8_1);
  368. $tr8.append($td8_2);
  369. var $tr9 = $("<tr id='tr"+index+"_9' style='display: none;'></tr>");
  370. var $th9_1 = $("<th>资产信息</th>");
  371. var $td9_2 = $("<td id='all_td"+index+"' colspan='5'></td>");
  372. var $carInfo_div = $("<div id='carInfo_span"+index+"'></div>");
  373. var $carInfo_input = $("<input id='carInfo_input"+index+"' type='hidden'/>");
  374. var $businessInfo_div = $("<div id='businessInfo_span"+index+"'></div>");
  375. var $businessInfo_input = $("<input id='businessInfo_input"+index+"' type='hidden'/>");
  376. var $securitiesInfo_span = $("<span id='securitiesInfo_span"+index+"'></span>");
  377. var $securitiesInfo_input = $("<input id='securitiesInfo_input"+index+"' type='hidden' value='0'/>");
  378. var $bankInfo_span = $("<span id='bankInfo_span"+index+"'></span>");
  379. var $bankInfo_input = $("<input id='bankInfo_input"+index+"' type='hidden' value='0'/>");
  380. var $commercialInsuranceInfo_span = $("<span id='commercialInsuranceInfo_span"+index+"'></span>");
  381. var $commercialInsuranceInfo_input = $("<input id='commercialInsuranceInfo_input"+index+"' type='hidden' value='0'/>");
  382. $td9_2.append($carInfo_div);
  383. $td9_2.append($businessInfo_div);
  384. $td9_2.append($carInfo_input);
  385. $td9_2.append($businessInfo_input);
  386. $td9_2.append($securitiesInfo_span);
  387. $td9_2.append($securitiesInfo_input);
  388. $td9_2.append($bankInfo_span);
  389. $td9_2.append($bankInfo_input);
  390. $td9_2.append($commercialInsuranceInfo_span);
  391. $td9_2.append($commercialInsuranceInfo_input);
  392. $tr9.append($th9_1);
  393. $tr9.append($td9_2);
  394. $table.append($tr1);
  395. $table.append($tr2);
  396. $table.append($tr3);
  397. $table.append($tr4);
  398. $table.append($tr5);
  399. $table.append($tr6);
  400. $table.append($tr8);
  401. $table.append($tr9);
  402. $("#mbtb_1").after($table);
  403. }
  404. //删除家庭成员表格
  405. function remove(id){
  406. $("#" + id).remove();
  407. }
  408. function carInfo_add(index){
  409. $("#addAssetsInfoDialog").dialog({
  410. buttons:[{
  411. text:"确认",
  412. iconCls : 'icon-ok',
  413. handler : function(){
  414. $("#car_id").val(index)
  415. var id = "car_index_" + (new Date()).valueOf();
  416. var indexCar = $("#car_id").val();
  417. var vehicleBrand = "车辆品牌:" + $("#vehicleBrand1").val();
  418. var vehicleModel = "车辆型号:" + $("#vehicleModel1").val();
  419. var buyFirstTime = "初次购买日期:" + $("#buyFirstTime1").datebox("getValue");
  420. var estimatePrice = "车辆价值(元):" + $("#estimatePrice1").val();
  421. if($("#estimatePrice1").val()==''){
  422. $.messager.alert('提醒','请输入车辆价值');
  423. return ;
  424. }
  425. var spanText = vehicleBrand + "," + vehicleModel + "," + buyFirstTime + "," + estimatePrice;
  426. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delCar('"+id+"','"+spanText+"','"+indexCar+"')>";
  427. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
  428. var pText = $('#carInfo_span'+indexCar).html();
  429. $("#carInfo_span"+indexCar).html(pText + html);
  430. var cars_hidden_text_id = '#carInfo_input' + indexCar;
  431. $(cars_hidden_text_id).val($(cars_hidden_text_id).val() + "###" + spanText);
  432. $("#tr"+index+"_9").show();
  433. $("#addAssetsInfoDialog").dialog("close");
  434. }
  435. },{
  436. text:"取消",
  437. iconCls : 'icon-cancel',
  438. handler : function(){
  439. $("#addAssetsInfoDialog").dialog("close");
  440. }
  441. }],
  442. onLoad : function(){
  443. $("#carInfo_tb").show();
  444. }
  445. })
  446. }
  447. function delCar(id,spanText,indexCar){
  448. //删除该车辆
  449. $("#"+id).remove();
  450. //删除车辆信息
  451. $("#carInfo_input"+indexCar).val($("#carInfo_input"+indexCar).val().replace('###'+spanText,''));
  452. }
  453. function businessInfo_add(index){
  454. $("#addAssetsInfoDialog").dialog({
  455. buttons:[{
  456. text:"确认",
  457. iconCls : 'icon-ok',
  458. handler : function(){
  459. $("#business_id").val(index)
  460. var id = "business_index_" + (new Date()).valueOf();
  461. var indexbusiness = $("#business_id").val();
  462. var businessName = "企业名称:" + $("#businessName1").val();
  463. var businessAddress = "地址:" + $("#businessAddress1").val();
  464. var shareholderName = "股东名称:" + $("#shareholderName1").val();;
  465. var investmentAmount = "出资金额:" + $("#investmentAmount1").val();
  466. var spanText = businessName + "," + businessAddress + "," + shareholderName + "," + investmentAmount;
  467. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delBusiness('"+id+"','"+spanText+"','"+indexbusiness+"')>";
  468. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
  469. var pText = $('#businessInfo_span'+indexbusiness).html();
  470. $("#businessInfo_span"+indexbusiness).html(pText + html);
  471. var businesss_hidden_text_id = '#businessInfo_input' + indexbusiness;
  472. $(businesss_hidden_text_id).val($(businesss_hidden_text_id).val() + "###" + spanText);
  473. $("#tr"+index+"_9").show();
  474. $("#addAssetsInfoDialog").dialog("close");
  475. }
  476. },{
  477. text:"取消",
  478. iconCls : 'icon-cancel',
  479. handler : function(){
  480. $("#addAssetsInfoDialog").dialog("close");
  481. }
  482. }],
  483. onLoad : function(){
  484. $("#businessInfo_tb").show();
  485. }
  486. })
  487. }
  488. function delBusiness(id,spanText,indexBusiness){
  489. //删除该车辆
  490. $("#"+id).remove();
  491. //删除车辆信息
  492. $("#businessInfo_input"+indexBusiness).val($("#businessInfo_input"+indexBusiness).val().replace('###'+spanText,''));
  493. }
  494. //股票信息添加
  495. function securitiesInfo_add(index){
  496. $("#addAssetsInfoDialog").dialog({
  497. buttons:[{
  498. text:"确认",
  499. iconCls : 'icon-ok',
  500. handler : function(){
  501. $("#addAssetsInfoDialog").dialog("close");
  502. var securitiesTotal=$("#securitiesTotal1").val()
  503. $("#securitiesInfo_span"+index).html("证券总额为:"+securitiesTotal+"</br>");
  504. $("#securitiesInfo_input"+index).val(securitiesTotal);
  505. $("#tr"+index+"_9").show();
  506. }
  507. },{
  508. text:"取消",
  509. iconCls : 'icon-cancel',
  510. handler : function(){
  511. $("#addAssetsInfoDialog").dialog("close");
  512. }
  513. }],
  514. onLoad : function(){
  515. $("#securitiesInfo_tb").show();
  516. }
  517. })
  518. }
  519. //银行存款信息添加
  520. function bankInfo_add(index){
  521. $("#addAssetsInfoDialog").dialog({
  522. buttons:[{
  523. text:"确认",
  524. iconCls : 'icon-ok',
  525. handler : function(){
  526. $("#addAssetsInfoDialog").dialog("close");
  527. var bankTotal=$("#bankTotal1").val()
  528. $("#bankInfo_span"+index).html("银行存款总额为:"+bankTotal+"</br>");
  529. $("#bankInfo_input"+index).val(bankTotal);
  530. $("#tr"+index+"_9").show();
  531. }
  532. },{
  533. text:"取消",
  534. iconCls : 'icon-cancel',
  535. handler : function(){
  536. $("#addAssetsInfoDialog").dialog("close");
  537. }
  538. }],
  539. onLoad : function(){
  540. $("#bankInfo_tb").show();
  541. }
  542. })
  543. }
  544. //商业保险添加
  545. function commercialInsuranceInfo_add(index){
  546. $("#addAssetsInfoDialog").dialog({
  547. buttons:[{
  548. text:"确认",
  549. iconCls : 'icon-ok',
  550. handler : function(){
  551. $("#addAssetsInfoDialog").dialog("close");
  552. var commercialInsuranceInfo=$("#commercialInsuranceTotal1").val();
  553. $("#commercialInsuranceInfo_span"+index).html("商业保险总额为:"+commercialInsuranceInfo+"</br>");
  554. $("#commercialInsuranceInfo_input"+index).val(commercialInsuranceInfo);
  555. $("#tr"+index+"_9").show();
  556. }
  557. },{
  558. text:"取消",
  559. iconCls : 'icon-cancel',
  560. handler : function(){
  561. $("#addAssetsInfoDialog").dialog("close");
  562. }
  563. }],
  564. onLoad : function(){
  565. $("#commercialInsuranceInfo_tb").show();
  566. }
  567. })
  568. }
  569. </script>
  570. <form id="pz3Form" action="securityPersonApplyAction_addSecurityPersonApply" method="post" >
  571. <input type="hidden" id="familyNum_add" name="securityPersonApply.familyNum"/>
  572. <input type="hidden" id="addType_add" name="securityPersonApply.addType" value="1"/>
  573. <input type="hidden" id="type_add" name="securityPersonApply.type" value="13"/>
  574. <input type="hidden" id="flow_add" name="securityPersonApply.flow" value="1"/>
  575. <input type="hidden" name="securityPersonApply.isCar" id="isCar_add" value="2"/>
  576. <input type="hidden" name="securityPersonApply.isBusiness" id="isBusiness_add" value="2"/>
  577. <table id="securityPersonInfo" class="mytable">
  578. <tr>
  579. <th colspan="4"><span style="font-weight: bolder;">淮安市市区公租房实物配租--特殊家庭(70周岁以上老人)</span></th>
  580. </tr>
  581. <tr>
  582. <th colspan="4">申请人基本信息</th>
  583. </tr>
  584. <tr>
  585. <th width="11%"><em>*</em>申请人姓名</th>
  586. <td width="38%"><input type="text" name="securityPersonApply.securityPersonName" id="name_add"/></td>
  587. <th width="11%"><em>*</em>身份证号码</th>
  588. <td><input type="text" name="securityPersonApply.securityPersonIdCard" id="idCard_add" onchange="check(this.value)"/></td>
  589. </tr>
  590. <tr>
  591. <th><em>*</em>现婚姻状况</th>
  592. <td>
  593. <select name="securityPersonApply.maritalStatus" id="maritalStatus_add" style="width:172px">
  594. <option value="">请选择</option>
  595. </select>
  596. </td>
  597. <th><em>*</em>手机号码</th>
  598. <td><input type="text" name="securityPersonApply.phone" id="phone_add"/></td>
  599. </tr>
  600. <tr>
  601. <th id="houseRegister_span"><em>*</em>户口所在地:</th>
  602. <td>
  603. <select id="street_add" style="width: 80px">
  604. <option value="">请选择</option>
  605. </select>
  606. <select id="neighborhood_add" name="securityPersonApply.houseRegister.id" style="width: 130px">
  607. <option value="">请选择</option>
  608. </select>
  609. <select id="communityId_add" name="securityPersonApply.communityId" style="width: 100px">
  610. <option value="">请选择</option>
  611. </select>
  612. <input type="hidden" id="community_add" name="securityPersonApply.community"/>
  613. </td>
  614. </tr>
  615. </table>
  616. <div id="mbtb_div" class="mbtb">
  617. <table class="mytable changeLine" id="mbtb_1">
  618. <tr>
  619. <th colspan="8">家庭成员基本信息
  620. <input id="" type="button" value="新增家庭成员" onclick="addSecurityPersonApplyRelative();" style="margin-left: 30px"/>
  621. <input type="button" value="计算家庭平均收入" onclick="countAvgIncome()"/>
  622. <span id="avgIncome_span"></span>
  623. <input id="avgIncome_add" name="securityPersonApply.avgIncome" type="hidden"/>
  624. </th>
  625. </tr>
  626. <tr style="border-top: 2px solid blue;">
  627. <th width="11%">户号</th>
  628. <td width="20%"><input id='residenceNo1' type='text' style="width: 100px;"></td>
  629. <th width="11%">姓名</th>
  630. <td width="24%"><input id='name1' type='text' style="width: 100px;"></td>
  631. <th width="11%">身份证号码</th>
  632. <td width="23%"><input id='idCard1' type='text' style="width: 172px;"></td>
  633. </tr>
  634. <tr>
  635. <th>与申请人关系</th>
  636. <td>
  637. <select id='relative1' style='width: 120px;'>
  638. <option value='0'>申请人</option>
  639. </select>
  640. </td>
  641. <th>婚姻状况</th>
  642. <td>
  643. <select id='maritalStatus1' style='width: 120px;height: 20px;vertical-align: middle;'>
  644. <option value=''>选择</option>
  645. </select>
  646. <input type="text" style="width: 100px;" id='maritalDate1' class="easyui-datebox" editable="fasle"/>
  647. </td>
  648. <th>民族</th>
  649. <td>
  650. <select id='nationality1' style='width: 120px;'>
  651. <option value=''>选择</option>
  652. </select>
  653. </td>
  654. </tr>
  655. <tr>
  656. <th>联系电话</th>
  657. <td><input id="phone1"/></td>
  658. <th>工作单位</th>
  659. <td><input id='company1' type='text' style="width: 172px;"></td>
  660. <th>文化程度</th>
  661. <td>
  662. <select id='education1' style='width: 120px;'>
  663. <option value=''>选择</option>
  664. </select>
  665. </td>
  666. </tr>
  667. <tr>
  668. <th>工薪收入(元/月)</th>
  669. <td><input id="wageIncome1" /></td>
  670. <th>经营净收入(元/月)</th>
  671. <td><input id="operatingNetIncome1" /></td>
  672. <th>财产性收入(元/月)</th>
  673. <td><input id="propertyIncome1" /></td>
  674. </tr>
  675. <tr>
  676. <th>其他收入(元/月)</th>
  677. <td><input id="otherIncome1" /></td>
  678. <th>其他收入备注</th>
  679. <td><input id="otherIncomeRemark1" /></td>
  680. <th>死亡注销日期</th>
  681. <td><input id='deathDate1' class="easyui-datebox" editable="fasle"/></td>
  682. </tr>
  683. <tr>
  684. <th>何时何地迁入本市区户籍</th>
  685. <td colspan="5">
  686. <input id="moveIn1" style="width: 700px"/>
  687. </td>
  688. </tr>
  689. <tr>
  690. <th>资产信息</th>
  691. <td colspan="5">
  692. <input id="carInfo1" type="button" value="车辆信息" onclick="carInfo_add(1)"/>
  693. <input id="businessInfo1" type="button" value="工商信息" onclick="businessInfo_add(1)"/>
  694. <input id="securitiesInfo1" type="button" value="证券信息" onclick="securitiesInfo_add(1)"/>
  695. <input id="bankInfo1" type="button" value="银行信息" onclick="bankInfo_add(1)"/>
  696. <input id="commercialInsuranceInfo1" type="button" value="商业保险信息" onclick="commercialInsuranceInfo_add(1)"/>
  697. </td>
  698. </tr>
  699. <tr id="tr1_9" style="display: none;">
  700. <th>资产信息</th>
  701. <td id="all_td1" colspan="5">
  702. <!-- 车辆 -->
  703. <div id="carInfo_span1"></div>
  704. <input id="carInfo_input1" type="hidden"/>
  705. <!-- 工商 -->
  706. <div id="businessInfo_span1"></div>
  707. <input id="businessInfo_input1" type="hidden"/>
  708. <!-- 证券 -->
  709. <span id="securitiesInfo_span1"></span>
  710. <input id="securitiesInfo_input1" name="securityPersonApplyRelative.securitiesTotal" type="hidden" value="0"/>
  711. <!-- 银行 -->
  712. <span id="bankInfo_span1"></span>
  713. <input id="bankInfo_input1" name="securityPersonApplyRelative.bankTotal" type="hidden" value="0"/>
  714. <!-- 商业保险 -->
  715. <span id="commercialInsuranceInfo_span1"></span>
  716. <input id="commercialInsuranceInfo_input1" name="securityPersonApplyRelative.commercialInsurance" type="hidden" value="0"/>
  717. </td>
  718. </tr>
  719. </table>
  720. </div>
  721. <table class="mytable">
  722. <tr>
  723. <th colspan="2">现住房信息</th>
  724. </tr>
  725. <tr>
  726. <th width="20%"><em>*</em>家庭住房困难类型:</th>
  727. <td>
  728. <input value="1" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-1">
  729. <label for="currentHouseSituation-1" style="cursor: pointer;">自有房产&nbsp;</label>
  730. <input value="2" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-2">
  731. <label for="currentHouseSituation-2" style="cursor: pointer;">租住私房&nbsp;</label>
  732. <input value="3" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-3">
  733. <label for="currentHouseSituation-3" style="cursor: pointer;">借住私房&nbsp;</label>
  734. <input value="4" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-4">
  735. <label for="currentHouseSituation-4" style="cursor: pointer;">租住公房&nbsp;</label></br>
  736. <span style="color:#000;">房屋坐落:</span><input id="existReal_add" name="securityPersonApply.existReal" type="text" class="form-control" style="width: 300px;display: inline;"/>
  737. <span style="color:#000;">,面积:</span><input id="existArea_add" name="securityPersonApply.existArea" type="text" class="form-control" style="width: 100px;display: inline;"/>
  738. <span style="color:#000;">平方米,产权人:</span><input type="text" id="propertyCompany_add" name="securityPersonApply.propertyCompany" style="width: 100px;display: inline;">
  739. </td>
  740. </tr>
  741. <tr>
  742. <th>是否存在转让房产、取得拆迁安置补偿不满两年的情况:</th>
  743. <td>
  744. <input value="1" type="radio" name="securityPersonApply.isAssignmentHouse" id="isAssignmentHouse-1" />
  745. <label for="isAssignmentHouse-1" style="cursor: pointer;">是&nbsp;</label>
  746. <input value="2" type="radio"name="securityPersonApply.isAssignmentHouse" checked="checked" id="isAssignmentHouse-2" />
  747. <label for="isAssignmentHouse-2" style="cursor: pointer;">否&nbsp;</label>
  748. </td>
  749. </tr>
  750. <tr>
  751. <th>申请之日前两年是否享受过房改房、政策性商品房或其他住房保障政策:</th>
  752. <td>
  753. <input value="1" type="radio" name="securityPersonApply.hasUsed" id="hasUsed-1" />
  754. <label for="hasUsed-1" style="cursor: pointer;">是&nbsp;</label>
  755. <input value="2" type="radio"name="securityPersonApply.hasUsed" id="hasUsed-2" />
  756. <label for="hasUsed-2" style="cursor: pointer;">否&nbsp;</label>
  757. </td>
  758. </tr>
  759. </table>
  760. </form>