bt2Add.jsp 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. <%-- 年审补贴申请表新就业--%>
  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. </style>
  6. <script type="text/javascript">
  7. var isDivorceAgreement = "";
  8. var divorceType = ""
  9. var btAnnualReview_load = function(id,name,idCard){
  10. $("#securityPersonId_btAnnualReview").val(id);
  11. $.ajax({
  12. type: "post",//使用get方法访问后台
  13. dataType: "json",//返回json格式的数据
  14. url: "securityPersonAction_findById",//要访问的后台地址
  15. data: "securityPerson.id="+id,//要发送的数据
  16. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  17. success: function(msg){
  18. $("#name_btAnnualReview").val(msg.obj.name);
  19. $("#idCard_btAnnualReview").val(msg.obj.idCard);
  20. $("#nsRegisterUserId_btAnnualReview").val(msg.obj.nsRegisterUserId);
  21. $("#nsRegisterUserName_btAnnualReview").val(msg.obj.nsRegisterUserName);
  22. $("#nsRegisterTime_btAnnualReview").val(msg.obj.nsRegisterTime);
  23. $("#nsRegisterRemark_btAnnualReview").val(msg.obj.nsRegisterRemark);
  24. }
  25. })
  26. $('input:radio[name="securityPersonApply.hk_flag"]').change(function(){
  27. var hk_flag=$('input:radio[name="securityPersonApply.hk_flag"]:checked').val();
  28. if(hk_flag==1){
  29. $("#houseRegister_span").text("户口所在地")
  30. $("#houseRegisterId_select").show();
  31. $("#accountLocation_Input").hide();
  32. $("#area_btAnnualReview").attr("disabled","disabled");
  33. $("#area_btAnnualReview").val("1");
  34. getStreetList("1",0,"street_btAnnualReview");
  35. $("#street_btAnnualReview").children('option').remove();
  36. $("#temporaryDateInfo_tr").hide();
  37. }else{
  38. $("#houseRegister_span").text("暂住证所在地街道办");
  39. $("#area_btAnnualReview").attr("disabled","disabled");
  40. $("#area_btAnnualReview").val("1");
  41. getStreetList("1",0,"street_btAnnualReview");
  42. $("#temporaryDateInfo_tr").show();
  43. }
  44. })
  45. }
  46. var index = 1;
  47. function addSecurityPersonApplyRelative(){
  48. index++;
  49. var $table = $("<table id='mbtb_"+index+"' class='mytable changeLine'></table>");
  50. var $tr1 = $("<tr style='border-top: 2px solid blue;'></tr>");
  51. var $th1_1 = $("<th width='10%'>户号</th>");
  52. var $td1_2 = $("<td width='20%'><input id='residenceNo"+index+"' type='text' style='width: 100px;'></td>");
  53. var $th1_3 = $("<th width='10%'>姓名</th>");
  54. var $td1_4 = $("<td width='25%'><input id='name"+index+"' type='text' style='width: 100px;'></td>");
  55. var $th1_5 = $("<th width='10%'>身份证号</th>");
  56. var $td1_6 = $("<td width='25%'><input id='idCard"+index+"' type='text' style='width: 172px;'></td>");
  57. $tr1.append($th1_1);
  58. $tr1.append($td1_2);
  59. $tr1.append($th1_3);
  60. $tr1.append($td1_4);
  61. $tr1.append($th1_5);
  62. $tr1.append($td1_6);
  63. var $tr2 = $("<tr></tr>");
  64. var $th2_1 = $("<th>与户主关系</th>");
  65. var $td2_2 = $("<td></td>");
  66. var $select_relative=$("<select id='relative" + index + "' style='width: 100px;'><option value=''>选择</option></select>")
  67. $select_relative.append(relative_array);
  68. $td2_2.append($select_relative);
  69. var $th2_3 = $("<th>婚姻状况</th>");
  70. var $td2_4 = $("<td></td>");
  71. var $select_maritalStatus=$("<select id='maritalStatus" + index + "' style='width: 120px;height: 20px;vertical-align: middle;'><option value=''>选择</option></select>")
  72. $select_maritalStatus.append(maritalStatus_array);
  73. var $maritalDate = $("<input type='text' style='width: 100px;' id='maritalDate" + index + "' class='easyui-datebox' editable='fasle'/>");
  74. $td2_4.append($select_maritalStatus);
  75. $td2_4.append($maritalDate);
  76. $.parser.parse($td2_4);
  77. var $th2_5 = $("<th>联系电话</th>");
  78. var $td2_6 = $("<td><input id='phone"+index+"' type='text'/></td>");
  79. $tr2.append($th2_1);
  80. $tr2.append($td2_2);
  81. $tr2.append($th2_3);
  82. $tr2.append($td2_4);
  83. $tr2.append($th2_5);
  84. $tr2.append($td2_6);
  85. var $tr3 = $("<tr></tr>");
  86. var $th3_1 = $("<th>工作单位</th>");
  87. var $td3_2 = $("<td><input id='company"+index+"' type='text' style='width: 172px;'></td>");
  88. var $th3_3 = $("<th>资产信息</th>");
  89. var $td3_4 = $("<td></td>");
  90. var $button1 =$("<input id='carInfo"+index+"' type='button' value='车辆信息' onclick='carInfo_btAnnualReview("+index+")' style='margin: 0 0 0 6px;'/>");
  91. var $button2 =$("<input id='businessInfo"+index+"' type='button' value='工商信息' onclick='businessInfo_btAnnualReview("+index+")' style='margin: 0 0 0 6px;'/>");
  92. var $button3 =$("<input id='securitiesInfo"+index+"' type='button' value='证券信息' onclick='securitiesInfo_btAnnualReview("+index+")' style='margin: 0 0 0 6px;'/>");
  93. var $button4 =$("<input id='bankInfo"+index+"' type='button' value='银行信息' onclick='bankInfo_btAnnualReview("+index+")' style='margin: 0 0 0 6px;'/>");
  94. var $button5 =$("<input id='commercialInsuranceInfo"+index+"' type='button' value='商业保险信息' onclick='commercialInsuranceInfo_btAnnualReview("+index+")' style='margin: 0 0 0 6px;'/>");
  95. var $img = $("<img align='right' src='images/remove.png' onclick=remove('mbtb_" + index + "')>");
  96. $td3_4.append($button1);
  97. $td3_4.append($button2);
  98. $td3_4.append($button3);
  99. $td3_4.append($button4);
  100. $td3_4.append($button5);
  101. $td3_4.append($img);
  102. var $th3_5 = $("<th>是否低保</th>");
  103. var $td3_6 = $("<td>"+
  104. "<input value='1' type='radio' name='isSubsistenceAllowances_"+index+"' id='isSubsistenceAllowances_"+index+"-1'>"+
  105. "<label for='isSubsistenceAllowances_"+index+"-1' style='cursor: pointer;'>是&nbsp;</label>"+
  106. "<input value='2' type='radio' name='isSubsistenceAllowances_"+index+"' id='isSubsistenceAllowances_"+index+"-2' checked='checked'>"+
  107. "<label for='isSubsistenceAllowances_"+index+"-2' style='cursor: pointer;'>否&nbsp;</label>"+
  108. "</td>"
  109. );
  110. $tr3.append($th3_1);
  111. $tr3.append($td3_2);
  112. $tr3.append($th3_5);
  113. $tr3.append($td3_6);
  114. $tr3.append($th3_3);
  115. $tr3.append($td3_4);
  116. var $tr4 = $("<tr id='tr"+index+"_4' style='display: none;'></tr>");
  117. var $th4_1 = $("<th>资产信息</th>");
  118. var $td4_2 = $("<td id='all_td"+index+"' colspan='5'></td>");
  119. var $carInfo_div = $("<div id='carInfo_span"+index+"'></div>");
  120. var $carInfo_input = $("<input id='carInfo_input"+index+"' type='hidden'/>");
  121. var $businessInfo_div = $("<div id='businessInfo_span"+index+"'></div>");
  122. var $businessInfo_input = $("<input id='businessInfo_input"+index+"' type='hidden'/>");
  123. var $securitiesInfo_span = $("<span id='securitiesInfo_span"+index+"'></span>");
  124. var $securitiesInfo_input = $("<input id='securitiesInfo_input"+index+"' type='hidden' value='0'/>");
  125. var $bankInfo_span = $("<span id='bankInfo_span"+index+"'></span>");
  126. var $bankInfo_input = $("<input id='bankInfo_input"+index+"' type='hidden' value='0'/>");
  127. var $commercialInsuranceInfo_span = $("<span id='commercialInsuranceInfo_span"+index+"'></span>");
  128. var $commercialInsuranceInfo_input = $("<input id='commercialInsuranceInfo_input"+index+"' type='hidden' value='0'/>");
  129. $td4_2.append($carInfo_div);
  130. $td4_2.append($businessInfo_div);
  131. $td4_2.append($carInfo_input);
  132. $td4_2.append($businessInfo_input);
  133. $td4_2.append($securitiesInfo_span);
  134. $td4_2.append($securitiesInfo_input);
  135. $td4_2.append($bankInfo_span);
  136. $td4_2.append($bankInfo_input);
  137. $td4_2.append($commercialInsuranceInfo_span);
  138. $td4_2.append($commercialInsuranceInfo_input);
  139. $tr4.append($th4_1);
  140. $tr4.append($td4_2);
  141. $table.append($tr1);
  142. $table.append($tr2);
  143. $table.append($tr3);
  144. $table.append($tr4);
  145. $("#mbtb_1").after($table);
  146. }
  147. var issubmit=false;
  148. var btAnnualReview_submit = function(){
  149. var type=$("#type_btAnnualReview").val();
  150. //申请类别验证
  151. if($("#type_btAnnualReview").val()==''){
  152. $.messager.alert('提醒','请选择申请类别');
  153. return false;
  154. }
  155. //姓名验证
  156. if($("#name_btAnnualReview").val()==''){
  157. $.messager.alert('提醒','请输入姓名');
  158. return false;
  159. }
  160. //身份证验证
  161. if($("#idCard_btAnnualReview").val()==''){
  162. $.messager.alert('提醒','请输入身份证号');
  163. return false;
  164. }else{
  165. if(!idCard1($("#idCard_btAnnualReview").val())){
  166. $.messager.alert('提醒','请检查输入的身份证号是否正确');
  167. return false;
  168. }
  169. }
  170. //婚姻状况验证
  171. if($("#maritalStatus_btAnnualReview").val()==''){
  172. $.messager.alert('提醒','请选择现婚姻状况');
  173. return false;
  174. }
  175. //手机号码验证
  176. if($("#phone_btAnnualReview").val()==''){
  177. $.messager.alert('提醒','请输入手机号码');
  178. return false;
  179. }
  180. //离婚协议验证
  181. isDivorceAgreement=$('input:radio[name="securityPersonApply.isDivorceAgreement"]:checked').val();
  182. divorceType = $('input:radio[name="securityPersonApply.divorceType"]:checked').val();
  183. if(typeof(isDivorceAgreement)=="undefined"){
  184. $.messager.alert('提醒','请选择是否有离婚协议');
  185. return false;
  186. }else{
  187. if(isDivorceAgreement=="2"){
  188. if(typeof(divorceType)=="undefined"){
  189. $.messager.alert('提醒','请选择离婚方式');
  190. return false;
  191. }
  192. }
  193. }
  194. if(type=="1"){
  195. //默认是本地户口
  196. $("#hk_flag-1").attr("checked","checked");
  197. //户口所在地
  198. if($("#neighborhood_add").val()==''){
  199. $.messager.alert('提醒','请选择户口所在地');
  200. return false;
  201. }
  202. if($("#community_add").val()==''){
  203. $.messager.alert('提醒','请选择户口所在地社区');
  204. return false;
  205. }
  206. //现住房情况
  207. if(verifyCurrentHouseSituation()==false){
  208. return false;
  209. };
  210. }
  211. //验证家庭成员信息
  212. var isCar=2;
  213. var isBusiness=2;
  214. for(var i=1;i<=index;i++){
  215. var mbtb = $("#mbtb_"+i);
  216. //如果被删除,直接跳过
  217. if(mbtb.length > 0){
  218. var residenceNo=$("#residenceNo"+i).val()
  219. var idCard=$("#idCard"+i).val();
  220. var name=$("#name"+i).val();
  221. var relative=$("#relative"+i).val();
  222. var maritalStatus=$("#maritalStatus"+i).val();
  223. var wageIncome=$("#wageIncome"+i).val();
  224. var maritalDate = $("#maritalDate"+i).datebox('getValue');
  225. var phone=$("#phone"+i).val();
  226. var carInfo =$("#carInfo_input"+i).val();
  227. var businessesInfo =$("#businessInfo_input"+i).val();
  228. //户号
  229. if(residenceNo==''){
  230. $.messager.alert('提醒','请填户号');
  231. return false;
  232. }
  233. //验证姓名
  234. if(name==''){
  235. $.messager.alert('提醒','请填写姓名');
  236. return false;
  237. }
  238. //验证身份证号
  239. if(idCard!=''){
  240. if(!idCard1(idCard)){
  241. $.messager.alert('提醒','请填正确身份证号');
  242. return false;
  243. }
  244. }else{
  245. $.messager.alert('提醒','请填身份证号');
  246. return false;
  247. }
  248. //验证户籍关系
  249. if(relative==''){
  250. $.messager.alert('提醒','请填与户主关系');
  251. return false;
  252. }
  253. //验证婚姻关系
  254. if(maritalStatus==''){
  255. $.messager.alert('提醒','请填婚姻状况');
  256. return false;
  257. }
  258. //除未成年、未婚都要填写登记时间
  259. if(maritalStatus !="6"&&maritalStatus !="5"){
  260. if(maritalDate ==''){
  261. $.messager.alert('提醒','请填婚姻登记日期');
  262. }
  263. }
  264. if(phone==''){
  265. $.messager.alert('提醒','请填联系电话');
  266. return false;
  267. }
  268. //验证是否有车与工商信息
  269. if(carInfo!=''){
  270. isCar = 1;
  271. }
  272. if(businessesInfo!=''){
  273. isBusiness = 1;
  274. }
  275. }
  276. }
  277. $("#isCar_btAnnualReview").val(isCar);
  278. $("#isBusiness_btAnnualReview").val(isBusiness);
  279. //计算家庭人均收入
  280. if($("#avgIncome_btAnnualReview").val()==""||$("#avgIncome_btAnnualReview").val()==null){
  281. countAvgIncome();
  282. }
  283. //家庭人口数量
  284. var mbtbNum = $(".mbtb > table").size();
  285. $("#familyNum_btAnnualReview").val(mbtbNum);
  286. if(issubmit==false){
  287. issubmit=true;
  288. $.ajax({
  289. type: "POST",
  290. url:"securityPersonApply2Action_addSecurityPersonApply",
  291. data:$('#addSecurityPersonApplyForm').serialize(),// 你的formid
  292. async: false,
  293. error: function(data) {
  294. $.messager.alert("提示","提交失败");
  295. },
  296. success: function(result) {
  297. var parseResult = $.parseJSON(result);
  298. if(parseResult.success){
  299. $('#bt2AnnualReviewDialog').dialog("close");
  300. var securityPersonApplyId = parseResult.obj.id;
  301. var fileNum = parseResult.obj.fileNum;
  302. for(var i=1;i<=index;i++){
  303. if($("#mbtb_" + i).length > 0 ){
  304. var url = whzl.basePath+'/securityPersonApply2Action_addSecurityPersonApplyRelative';
  305. $.ajax({
  306. type: "post",//使用post方法访问后台
  307. dataType: "json",//返回json格式的数据
  308. url: url,//要访问的后台地址
  309. async: false,
  310. data:{"securityPersonApplyRelative.securityPersonApplyId":securityPersonApplyId ,
  311. "securityPersonApplyRelative.fileNum":fileNum ,
  312. "securityPersonApplyRelative.name":$("#name" + i ).val() ,
  313. "securityPersonApplyRelative.relative":$("#relative" + i ).val() ,
  314. "securityPersonApplyRelative.idCard":$("#idCard" + i ).val() ,
  315. "securityPersonApplyRelative.maritalStatus":$("#maritalStatus" + i ).val() ,
  316. "securityPersonApplyRelative.maritalDate":$("#maritalDate" + i ).datebox('getValue') ,
  317. "securityPersonApplyRelative.company":$("#company" + i ).val() ,
  318. "securityPersonApplyRelative.residenceNo":$("#residenceNo" + i ).val() ,
  319. "securityPersonApplyRelative.securitiesTotal":$("#securitiesInfo_input" + i ).val() ,
  320. "securityPersonApplyRelative.bankTotal":$("#bankInfo_input" + i ).val() ,
  321. "securityPersonApplyRelative.isSubsistenceAllowances":$("input:radio[name='isSubsistenceAllowances_"+i+"']:checked").val(),
  322. "securityPersonApplyRelative.commercialInsurance":$("#commercialInsuranceInfo_input" + i ).val(),
  323. "securityPersonApplyRelative.phone":$("#phone" + i ).val(),
  324. "securityPersonApplyRelative.isDivorceAgreement":isDivorceAgreement,
  325. "securityPersonApplyRelative.divorceType":divorceType
  326. },
  327. success : function(result){
  328. $.ajax({
  329. type: "post",//使用post方法访问后台
  330. dataType: "json",//返回json格式的数据
  331. url: whzl.basePath+'/securityPersonApply2Action_addAssets',//要访问的后台地址
  332. async: false,
  333. data:{"securityPersonApplyRelative.id":result.obj.id ,
  334. "cars":$("#carInfo_input"+i).val() ,
  335. "businesses": $("#businessInfo_input"+i).val() ,
  336. },
  337. });
  338. $("#securityPersonInfoDataGrid").datagrid("reload");
  339. $("#securityPersonInfoDataGrid").datagrid('clearSelections');
  340. }
  341. });
  342. }
  343. }
  344. }
  345. }
  346. })
  347. }
  348. }
  349. //验证家庭住房情况
  350. function verifyCurrentHouseSituation(){
  351. var flag = true;
  352. var currentHouseSituation=$('input:radio[name="securityPersonApply.currentHouseSituation"]:checked').val();
  353. if(typeof(currentHouseSituation)=="undefined"){
  354. /*$.messager.alert('提醒','请选择家庭住房情况');
  355. flag = false;*/
  356. }else{
  357. if("1" == currentHouseSituation){
  358. var propertyPerson=$('#propertyPerson_btAnnualReview').val();
  359. if(typeof(propertyPerson)=="undefined" || propertyPerson == ''){
  360. $.messager.alert('提醒','请输入产权人');
  361. flag = false;
  362. }
  363. var existArea=$('#existArea_btAnnualReview').val();
  364. if(typeof(existArea)=="undefined" || existArea == ''){
  365. $.messager.alert('提醒','请输房屋面积');
  366. flag = false;
  367. }
  368. var existReal=$('#existReal_btAnnualReview').val();
  369. if(typeof(existReal)=="undefined" || existReal == ''){
  370. $.messager.alert('提醒','请输房屋地址');
  371. flag = false;
  372. }
  373. }
  374. }
  375. return flag;
  376. }
  377. function countAvgIncome(){
  378. var wageIncomeTotal = 0;
  379. var operatingNetIncomeTotal = 0;
  380. var propertyIncomeTotal = 0;
  381. var otherIncomeTotal = 0
  382. var avgIncome = 0;
  383. var avgArea = 0;
  384. var areaTotal = 0;
  385. var mbtbNum = $(".mbtb > table").size();
  386. for(var i=1;i<=index;i++){
  387. if($("#wageIncome"+i).val()==''||$("#wageIncome"+i).val()==undefined){
  388. $("#wageIncome"+i).val(0);
  389. }else{
  390. wageIncomeTotal+=parseInt($("#wageIncome"+i).val());
  391. }
  392. if($("#operatingNetIncome"+i).val()==''||$("#operatingNetIncome"+i).val()==undefined){
  393. $("#operatingNetIncome"+i).val(0);
  394. }else{
  395. operatingNetIncomeTotal+=parseInt($("#operatingNetIncome"+i).val());
  396. }
  397. if($("#propertyIncome"+i).val()==''||$("#propertyIncome"+i).val()==undefined){
  398. $("#propertyIncome"+i).val(0);
  399. }else{
  400. propertyIncomeTotal+=parseInt($("#propertyIncome"+i).val());
  401. }
  402. if($("#otherIncome"+i).val()==''||$("#otherIncome"+i).val()==undefined){
  403. $("#otherIncome"+i).val(0);
  404. }else{
  405. otherIncomeTotal+=parseInt($("#otherIncome"+i).val());
  406. }
  407. }
  408. avgIncome = Number((wageIncomeTotal+operatingNetIncomeTotal+propertyIncomeTotal+otherIncomeTotal)/mbtbNum).toFixed(2);
  409. $("#avgIncome_btAnnualReview").val(avgIncome);
  410. $("#avgIncome_span").text("家庭平均月收入=( "+wageIncomeTotal+"【工资收入】+"+operatingNetIncomeTotal+"【经营净收入】+"+propertyIncomeTotal+"【财产性收入】+"+otherIncomeTotal+"【其他收入】"+")/"+mbtbNum+"【人数】 = " + avgIncome + "元");
  411. //平均面积
  412. if($("#existArea_btAnnualReview").val()!=''||$("#existArea_btAnnualReview").val()!=undefined){
  413. areaTotal = $("#existArea_btAnnualReview").val();
  414. avgArea = Number(areaTotal/mbtbNum).toFixed(2);
  415. $("#avgArea_add").val(avgArea);
  416. }
  417. }
  418. function carInfo_btAnnualReview(index){
  419. $("#addAssetsInfoDialog").dialog({
  420. buttons:[{
  421. text:"确认",
  422. iconCls : 'icon-ok',
  423. handler : function(){
  424. $("#car_id").val(index);
  425. var id = "car_index_" + (new Date()).valueOf();
  426. var indexCar = $("#car_id").val();
  427. var vehicleBrand = "车辆品牌:" + $("#vehicleBrand1").val();
  428. var vehicleModel = "车辆型号:" + $("#vehicleModel1").val();
  429. var buyFirstTime = "初次购买日期:" + $("#buyFirstTime1").datebox("getValue");
  430. var estimatePrice = "车辆价值(元):" + $("#estimatePrice1").val();
  431. if($("#estimatePrice1").val()==''){
  432. $.messager.alert('提醒','请输入车辆价值');
  433. return ;
  434. }
  435. var spanText = vehicleBrand + "," + vehicleModel + "," + buyFirstTime + "," + estimatePrice;
  436. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delCar('"+id+"','"+spanText+"','"+indexCar+"')>";
  437. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;margin-left:10px;'>"+spanText+"</span>"+ delBtn + "</div>";
  438. var pText = $('#carInfo_span'+indexCar).html();
  439. $("#carInfo_span"+indexCar).html(pText + html);
  440. var cars_hidden_text_id = '#carInfo_input' + indexCar;
  441. $(cars_hidden_text_id).val($(cars_hidden_text_id).val() + "###" + spanText);
  442. $("#tr"+index+"_4").show();
  443. $("#addAssetsInfoDialog").dialog("close");
  444. }
  445. },{
  446. text:"取消",
  447. iconCls : 'icon-cancel',
  448. handler : function(){
  449. $("#addAssetsInfoDialog").dialog("close");
  450. }
  451. }],
  452. onLoad : function(){
  453. $("#carInfo_tb").show();
  454. }
  455. })
  456. }
  457. function delCar(id,spanText,indexCar){
  458. //删除该车辆
  459. $("#"+id).remove();
  460. //删除车辆信息
  461. $("#carInfo_input"+indexCar).val($("#carInfo_input"+indexCar).val().replace('###'+spanText,''));
  462. }
  463. function businessInfo_btAnnualReview(index){
  464. $("#addAssetsInfoDialog").dialog({
  465. buttons:[{
  466. text:"确认",
  467. iconCls : 'icon-ok',
  468. handler : function(){
  469. $("#business_id").val(index)
  470. var id = "business_index_" + (new Date()).valueOf();
  471. var indexbusiness = $("#business_id").val();
  472. var businessName = "企业名称:" + $("#businessName1").val();
  473. var businessAddress = "地址:" + $("#businessAddress1").val();
  474. var shareholderName = "股东名称:" + $("#shareholderName1").val();
  475. var investmentAmount = "出资金额:" + $("#investmentAmount1").val();
  476. var spanText = businessName + "," + businessAddress + "," + shareholderName + "," + investmentAmount;
  477. var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delBusiness('"+id+"','"+spanText+"','"+indexbusiness+"')>";
  478. var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;margin-left:10px;'>"+spanText+"</span>"+ delBtn + "</div>";
  479. var pText = $('#businessInfo_span'+indexbusiness).html();
  480. $("#businessInfo_span"+indexbusiness).html(pText + html);
  481. var businesss_hidden_text_id = '#businessInfo_input' + indexbusiness;
  482. $(businesss_hidden_text_id).val($(businesss_hidden_text_id).val() + "###" + spanText);
  483. $("#tr"+index+"_4").show();
  484. $("#addAssetsInfoDialog").dialog("close");
  485. }
  486. },{
  487. text:"取消",
  488. iconCls : 'icon-cancel',
  489. handler : function(){
  490. $("#addAssetsInfoDialog").dialog("close");
  491. }
  492. }],
  493. onLoad : function(){
  494. $("#businessInfo_tb").show();
  495. }
  496. })
  497. }
  498. function delBusiness(id,spanText,indexBusiness){
  499. //删除该车辆
  500. $("#"+id).remove();
  501. //删除车辆信息
  502. $("#businessInfo_input"+indexBusiness).val($("#businessInfo_input"+indexBusiness).val().replace('###'+spanText,''));
  503. }
  504. //股票信息添加
  505. function securitiesInfo_btAnnualReview(index){
  506. $("#addAssetsInfoDialog").dialog({
  507. buttons:[{
  508. text:"确认",
  509. iconCls : 'icon-ok',
  510. handler : function(){
  511. $("#addAssetsInfoDialog").dialog("close");
  512. var securitiesTotal=$("#securitiesTotal1").val()
  513. $("#securitiesInfo_span"+index).html("证券总额为:"+securitiesTotal+"</br>");
  514. $("#securitiesInfo_input"+index).val(securitiesTotal);
  515. $("#tr"+index+"_4").show();
  516. }
  517. },{
  518. text:"取消",
  519. iconCls : 'icon-cancel',
  520. handler : function(){
  521. $("#addAssetsInfoDialog").dialog("close");
  522. }
  523. }],
  524. onLoad : function(){
  525. $("#securitiesInfo_tb").show();
  526. }
  527. })
  528. }
  529. //银行存款信息添加
  530. function bankInfo_btAnnualReview(index){
  531. $("#addAssetsInfoDialog").dialog({
  532. buttons:[{
  533. text:"确认",
  534. iconCls : 'icon-ok',
  535. handler : function(){
  536. $("#addAssetsInfoDialog").dialog("close");
  537. var bankTotal=$("#bankTotal1").val()
  538. $("#bankInfo_span"+index).html("银行存款总额为:"+bankTotal+"</br>");
  539. $("#bankInfo_input"+index).val(bankTotal);
  540. $("#tr"+index+"_4").show();
  541. }
  542. },{
  543. text:"取消",
  544. iconCls : 'icon-cancel',
  545. handler : function(){
  546. $("#addAssetsInfoDialog").dialog("close");
  547. }
  548. }],
  549. onLoad : function(){
  550. $("#bankInfo_tb").show();
  551. }
  552. })
  553. }
  554. //商业保险添加
  555. function commercialInsuranceInfo_btAnnualReview(index){
  556. $("#addAssetsInfoDialog").dialog({
  557. buttons:[{
  558. text:"确认",
  559. iconCls : 'icon-ok',
  560. handler : function(){
  561. $("#addAssetsInfoDialog").dialog("close");
  562. var commercialInsuranceInfo=$("#commercialInsuranceTotal1").val();
  563. $("#commercialInsuranceInfo_span"+index).html("商业保险总额为:"+commercialInsuranceInfo+"</br>");
  564. $("#commercialInsuranceInfo_input"+index).val(commercialInsuranceInfo);
  565. $("#tr"+index+"_4").show();
  566. }
  567. },{
  568. text:"取消",
  569. iconCls : 'icon-cancel',
  570. handler : function(){
  571. $("#addAssetsInfoDialog").dialog("close");
  572. }
  573. }],
  574. onLoad : function(){
  575. $("#commercialInsuranceInfo_tb").show();
  576. }
  577. })
  578. }
  579. //删除家庭成员表格
  580. function remove(id){
  581. $("#" + id).remove();
  582. //index--;
  583. }
  584. function addCar(){
  585. carCount++;
  586. $tr1 = $("<tr></tr>");
  587. $th1_1 = $("<th>车辆品牌</th>");
  588. $td1_2 = $("<td><input id='vehicleBrand"+carCount+"' type='text'/></td>");
  589. $th1_3 = $("<th>车辆型号</th>");
  590. $td1_4 = $("<td><input id='vehicleModel"+carCount+"' type='text'/></td>");
  591. $tr1.append($th1_1);
  592. $tr1.append($td1_2);
  593. $tr1.append($th1_3);
  594. $tr1.append($td1_4);
  595. $tr2 = $("<tr></tr>");
  596. $th2_1 = $("<th>是否是一手车</th>");
  597. $td2_2 = $("<td></td>")
  598. $input1 = $("<input value='1' type='radio' id='usedCar-1_"+carCount+"' name='usedCar"+carCount+"'>")
  599. $label1 =$("<label for='usedCar-1_"+carCount+"'>是&nbsp;</label>");
  600. $input2 = $("<input value='2' type='radio' id='usedCar-2_"+carCount+"' name='usedCar"+carCount+"'>")
  601. $label2 =$("<label for='usedCar-2_"+carCount+"'>否&nbsp;</label>");
  602. $td2_2.append($input1);
  603. $td2_2.append($label1);
  604. $td2_2.append($input2);
  605. $td2_2.append($label2);
  606. $th2_3 = $("<th>初始购买日期</th>");
  607. $td2_4 = $("<td><input id='buyFirstTime"+carCount+"' type='text' class='easyui-datebox'/></td>")
  608. $.parser.parse($td2_4);
  609. $tr2.append($th2_1);
  610. $tr2.append($td2_2);
  611. $tr2.append($th2_3);
  612. $tr2.append($td2_4);
  613. $("#carInfo_tb").append($tr1);
  614. $("#carInfo_tb").append($tr2);
  615. }
  616. function addBusiness(){
  617. businessCount++;
  618. $tr1 = $("<tr></tr>");
  619. $th1_1 = $("<th>单位名称</th>");
  620. $td1_2 = $("<td><input id='businseeName"+businessCount+"' type='text'/></td>");
  621. $th1_3 = $("<th>地址</th>");
  622. $td1_4 = $("<td><input id='businessAddress"+businessCount+"' type='text'/></td>");
  623. $tr1.append($th1_1);
  624. $tr1.append($td1_2);
  625. $tr1.append($th1_3);
  626. $tr1.append($td1_4);
  627. $tr2 = $("<tr></tr>");
  628. $th2_1 = $("<th>股东名称</th>");
  629. $td2_2 = $("<td><input id='shareholderName"+businessCount+"' type='text'/></td>");
  630. $th2_3 = $("<th>出资金额</th>");
  631. $td2_4 = $("<td><input id='investmentAmount"+businessCount+"' type='text'/></td>");
  632. $tr2.append($th2_1);
  633. $tr2.append($td2_2);
  634. $tr2.append($th2_3);
  635. $tr2.append($td2_4);
  636. $("#businessInfo_tb").append($tr1);
  637. $("#businessInfo_tb").append($tr2);
  638. }
  639. </script>
  640. <form id="addSecurityPersonApplyForm" action="securityPersonApplyAction_addSecurityPersonApply" method="post" >
  641. <input type="hidden" id="familyNum_btAnnualReview" name="securityPersonApply.familyNum"/>
  642. <input type="hidden" id="securityNum_btAnnualReview" name="securityPersonApply.securityNum"/>
  643. <table id="securityPersonInfo" class="mytable">
  644. <tr>
  645. <th colspan="4">户主基本信息</th>
  646. </tr>
  647. <tr>
  648. <th width="13%"><em>*</em>户主姓名</th>
  649. <td width="33%">
  650. <input type="text" name="securityPersonApply.securityPersonName" id="name_btAnnualReview"/>
  651. <input type="hidden" name="securityPersonApply.securityPersonId" id="securityPersonId_btAnnualReview"/>
  652. <input type="hidden" name="securityPersonApply.type" id="type_btAnnualReview" value="11"/>
  653. <input type="hidden" name="securityPersonApply.flow" id="flow_swpzAnnualReview" value="4"/>
  654. <input type="hidden" name="securityPersonApply.addType" id="addType_btAnnualReview" value="2"/>
  655. <input type="hidden" name="securityPersonApply.applyType" id="applyType_btAnnualReview" value="1"/>
  656. <input type="hidden" name="securityPersonApply.isCar" id="isCar_btAnnualReview" value="2"/>
  657. <input type="hidden" name="securityPersonApply.isBusiness" id="isBusiness_btAnnualReview" value="2"/>
  658. <input type="hidden" name="securityPersonApply.nsRegisterUserId" id="nsRegisterUserId_btAnnualReview"/>
  659. <input type="hidden" name="securityPersonApply.nsRegisterUserName" id="nsRegisterUserName_btAnnualReview"/>
  660. <input type="hidden" name="securityPersonApply.nsRegisterTime" id="nsRegisterTime_btAnnualReview"/>
  661. <input type="hidden" name="securityPersonApply.nsRegisterRemark" id="nsRegisterRemark_btAnnualReview"/>
  662. </td>
  663. <th width="13%"><em>*</em>身份证号码</th>
  664. <td><input type="text" name="securityPersonApply.securityPersonIdCard" id="idCard_btAnnualReview"/></td>
  665. </tr>
  666. <tr>
  667. <th><em>*</em>现婚姻状况</th>
  668. <td>
  669. <select name="securityPersonApply.maritalStatus" id="maritalStatus_btAnnualReview" style="width:172px">
  670. <option value="">请选择</option>
  671. </select>
  672. </td>
  673. <th><em>*</em>手机号码</th>
  674. <td><input type="text" name="securityPersonApply.phone" id="phone_btAnnualReview"/></td>
  675. </tr>
  676. <tr>
  677. <th><em>*</em>申请地地址</th>
  678. <td>
  679. <span>区住建局</span>
  680. </td>
  681. <th><em>*</em>户口本地址</th>
  682. <td>
  683. <input type="text" id="accountAddress_btAnnualReview" name="securityPersonApply.accountAddress" style="width:80%"/>
  684. </td>
  685. </tr>
  686. <tr>
  687. <th><em>*</em>离婚协议</th>
  688. <td colspan="">
  689. <input value="1" type="radio" name="securityPersonApply.isDivorceAgreement" id="isDivorceAgreement-1">
  690. <label for="isDivorceAgreement-1" style="cursor: pointer;">无&nbsp;</label>
  691. <input value="2" type="radio" name="securityPersonApply.isDivorceAgreement" id="isDivorceAgreement-2">
  692. <label for="isDivorceAgreement-2" style="cursor: pointer;">有&nbsp;</label>
  693. <span>(</span><input value="1" type="radio" name="securityPersonApply.divorceType" id="divorceType-1">
  694. <label for="divorceType-1" style="cursor: pointer;">法院判决&nbsp;</label>
  695. <input value="2" type="radio" name="securityPersonApply.divorceType" id="divorceType-2">
  696. <label for="divorceType-2" style="cursor: pointer;">民政&nbsp;</label><span>)</span>
  697. </td>
  698. <th><em>*</em>大专以上院校毕业生毕业时间</th>
  699. <td>
  700. <input class="easyui-datebox" type="text" id="graduationDate_btAnnualReview" name="securityPersonApply.graduationDate" />
  701. </td>
  702. </tr>
  703. <tr id="companyInfo_tr">
  704. <th><em>*</em>工作单位名称</th>
  705. <td><input type="text" id="company_btAnnualReview" name="securityPersonApply.company"/></td>
  706. <th><em>*</em>工作单位地址</th>
  707. <td><input type="text" id="workPlace_btAnnualReview" name="securityPersonApply.workPlace"/></td>
  708. </tr>
  709. <tr>
  710. <th><em>*</em><span>是否参加市区城镇职工基本社会保险</span></th>
  711. <td>
  712. <input value="1" type="radio" name="securityPersonApply.pension" id="pension-1" />
  713. <label for="pension-1" style="cursor: pointer;">是&nbsp;</label>
  714. <input value="2" type="radio" name="securityPersonApply.pension" id="pension-2" />
  715. <label for="pension-2" style="cursor: pointer;">否&nbsp;</label>
  716. </td>
  717. <th><em>*</em><span>是否签订劳动合同(聘用合同)</span></th>
  718. <td>
  719. <input value="1" type="radio" name="securityPersonApply.laborContract" id="laborContract-1" />
  720. <label for="laborContract-1" style="cursor: pointer;">是&nbsp;</label>
  721. <input value="2" type="radio" name="securityPersonApply.laborContract" id="laborContract-2" />
  722. <label for="laborContract-2" style="cursor: pointer;">否&nbsp;</label>
  723. </td>
  724. </tr>
  725. </table>
  726. <div id="mbtb_div" class="mbtb">
  727. <table class="mytable" id="mbtb_1">
  728. <tr>
  729. <th colspan="8">家庭成员基本信息
  730. <input id="" type="button" value="新增家庭成员" onclick="addSecurityPersonApplyRelative();" style="margin-left: 30px"/>
  731. <input type="button" value="计算家庭平均收入" onclick="countAvgIncome()"/>
  732. <span id="avgIncome_span"></span>
  733. <input id="avgIncome_btAnnualReview" name="securityPersonApply.avgIncome" type="hidden"/>
  734. </th>
  735. </tr>
  736. <tr id="tr1_1" style="border-top: 2px solid blue;">
  737. <th width="10%">户号</th>
  738. <td width="20%"><input id='residenceNo1' type='text' style="width: 100px;"></td>
  739. <th width="10%">姓名</th>
  740. <td width="25%"><input id='name1' type='text' style="width: 100px;"></td>
  741. <th width="10%">身份证号码</th>
  742. <td width="25%"><input id='idCard1' type='text' style="width: 172px;"></td>
  743. </tr>
  744. <tr id="tr1_2">
  745. <th>与户主关系</th>
  746. <td>
  747. <select id='relative1' style='width: 100px;'>
  748. <option value='0'>户主</option>
  749. </select>
  750. </td>
  751. <th>婚姻状况</th>
  752. <td>
  753. <select name='#' id='maritalStatus1' style='width: 120px;height: 20px;vertical-align: middle;'>
  754. <option value=''>选择</option>
  755. </select>
  756. <input type="text" style="width: 100px;" id="maritalDate1" class="easyui-datebox" name="securityPersonApplyRelative.maritalDate" editable="fasle"/>
  757. </td>
  758. <th>联系电话</th>
  759. <td><input id="phone1"/></td>
  760. </tr>
  761. <tr id="tr1_3">
  762. <th>工作单位</th>
  763. <td><input id='company1' type='text' style="width: 172px;"></td>
  764. <th>是否低保</th>
  765. <td>
  766. <input value="1" type="radio" name="isSubsistenceAllowances_1" id="isSubsistenceAllowances_1-1">
  767. <label for="isSubsistenceAllowances_1-1" style="cursor: pointer;">是&nbsp;</label>
  768. <input value="2" type="radio" name="isSubsistenceAllowances_1" id="isSubsistenceAllowances_1-2" checked="checked">
  769. <label for="isSubsistenceAllowances_1-2" style="cursor: pointer;">否&nbsp;</label>
  770. </td>
  771. <th>资产信息</th>
  772. <td>
  773. <input id="carInfo1" type="button" value="车辆信息" onclick="carInfo_btAnnualReview(1)"/>
  774. <input id="businessInfo1" type="button" value="工商信息" onclick="businessInfo_btAnnualReview(1)"/>
  775. <input id="securitiesInfo1" type="button" value="证券信息" onclick="securitiesInfo_btAnnualReview(1)"/>
  776. <input id="bankInfo1" type="button" value="银行信息" onclick="bankInfo_btAnnualReview(1)"/>
  777. <input id="commercialInsuranceInfo1" type="button" value="商业保险信息" onclick="commercialInsuranceInfo_btAnnualReview(1)"/>
  778. </td>
  779. </tr>
  780. <tr id="tr1_4" style="display: none;">
  781. <th>资产信息</th>
  782. <td id="all_td1" colspan="5">
  783. <!-- 车辆 -->
  784. <div id="carInfo_span1"></div>
  785. <input id="carInfo_input1" type="hidden"/>
  786. <!-- 工商 -->
  787. <div id="businessInfo_span1"></div>
  788. <input id="businessInfo_input1" type="hidden"/>
  789. <!-- 证券 -->
  790. <span id="securitiesInfo_span1"></span>
  791. <input id="securitiesInfo_input1" name="securityPersonApplyRelative.securitiesTotal" type="hidden" value="0"/>
  792. <!-- 银行 -->
  793. <span id="bankInfo_span1"></span>
  794. <input id="bankInfo_input1" name="securityPersonApplyRelative.bankTotal" type="hidden" value="0"/>
  795. <!-- 商业保险 -->
  796. <span id="commercialInsuranceInfo_span1"></span>
  797. <input id="commercialInsuranceInfo_input1" name="securityPersonApplyRelative.commercialInsurance" type="hidden" value="0"/>
  798. </td>
  799. </tr>
  800. </table></div>
  801. <table class="mytable">
  802. <tr>
  803. <th colspan="4">现住房信息</th>
  804. </tr>
  805. <tr>
  806. <th width="20%">现住房信息情况:</th>
  807. <td colspan="3">自有房产:
  808. <input value="1" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-1">
  809. <label for="currentHouseSituation-1" style="cursor: pointer;">是&nbsp;</label>
  810. <input value="5" type="radio"name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-2">
  811. <label for="currentHouseSituation-2" style="cursor: pointer;">否&nbsp;</label></br>
  812. <span style="color:#000">房屋坐落:</span><input id="existReal_btAnnualReview" name="securityPersonApply.existReal" type="text" class="form-control" style="width: 300px;display: inline"/>
  813. <span style="color:#000">,面积:</span><input id="existArea_btAnnualReview" name="securityPersonApply.existArea" type="text" class="form-control" style="width: 100px;display: inline"/>
  814. <span style="color:#000">平方米,产权人:</span><input id="propertyPerson_btAnnualReview" name="securityPersonApply.propertyPerson" type="text" class="form-control" style="width: 100px;display: inline"/>
  815. <!-- 平均面积 -->
  816. <input type="hidden" id="avgArea_btAnnualReview" name="securityPersonApply.avgArea">
  817. </td>
  818. </tr>
  819. <tr>
  820. <th>是否存在转让房产、取得拆迁安置补偿不满两年的情况:</th>
  821. <td colspan="3">
  822. <input value="1" type="radio" name="securityPersonApply.isAssignmentHouse" id="isAssignmentHouse-1" />
  823. <label for="isAssignmentHouse-1" style="cursor: pointer;">是&nbsp;</label>
  824. <input value="2" type="radio"name="securityPersonApply.isAssignmentHouse" id="isAssignmentHouse-2" checked="checked"/>
  825. <label for="isAssignmentHouse-2" style="cursor: pointer;">否&nbsp;</label>
  826. </td>
  827. </tr>
  828. <tr>
  829. <th>申请之日前两年是否享受过房改房、政策性商品房或其他住房保障政策:</th>
  830. <td colspan="3">
  831. <input value="1" type="radio" name="securityPersonApply.hasUsed" id="hasUsed-1" />
  832. <label for="hasUsed-1" style="cursor: pointer;">是&nbsp;</label>
  833. <input value="2" type="radio"name="securityPersonApply.hasUsed" id="hasUsed-2" />
  834. <label for="hasUsed-2" style="cursor: pointer;">否&nbsp;</label>
  835. </td>
  836. </tr>
  837. </table>
  838. </form>