123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797 |
- <%-- 配租申请表13--特殊家庭(70周岁以上老人)--%>
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <style type="text/css">
- em {color:red;font-size:13px;font-style:normal}
- .changeLine th{
- white-space: NOWRAP;
- }
- </style>
- <script type="text/javascript">
- function addPZ3_load(){
- //婚姻
- $("#maritalStatus_add").append(maritalStatus_array);
- $("#maritalStatus1").append(maritalStatus_array);
- $("#nationality1").append(nationality_array);
- $("#education1").append(education_array);
- //街办
- getStreetList("1",0,"street_add");
- $("#street_add").children('option').remove();
- $("#street_add").change(function(){
- $("#neighborhood_add").children('option').remove();
- getNeighborhoodList($("#street_add").val(),0,"neighborhood_add");
- $("#communityId_add").children('option').remove();
- $("#communityId_add").append("<option value=''>请选择</option>");
- });
-
- $("#neighborhood_add").change(function(){
- $("#communityId_add").children('option').remove();
- getCommunityList($("#neighborhood_add").val(),0,"communityId_add");
- $("#community_add").val("");
- });
- $("#communityId_add").change(function(){
- var community = $("#communityId_add").find("option:selected").text();
- $("#community_add").val(community);
- });
- }
- function addPZ3_submit(){
- var flag= true;
- var flag1 = verifyCurrentHouseSituation();
- var flag2 = checkData();
- if($("#avgIncome_add").val()==""||$("#avgIncome_add").val()==null){
- countAvgIncome();
- flag = false;
- }
- if(flag1&&flag2&&flag){
- $.ajax({
- type: "POST",
- url:"securityPersonApply2Action_addSecurityPersonApply",
- data:$('#pz3Form').serialize(),// 你的formid
- async: false,
- error: function(data) {
- $.messager.alert("提示","提交失败");
- },
- success: function(result) {
- var parseResult = $.parseJSON(result);
- if(parseResult.success){
- $('#addPZ3Dialog').dialog("close");
- var securityPersonApplyId = parseResult.obj.id;
- var fileNum = parseResult.obj.fileNum;
- for(var i=1;i<=index;i++){
- if($("#mbtb_" + i).length > 0 ){
- var url = whzl.basePath+'/securityPersonApply2Action_addSecurityPersonApplyRelative';
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: url,//要访问的后台地址
- async: false,
- data:{"securityPersonApplyRelative.securityPersonApplyId":securityPersonApplyId ,
- "securityPersonApplyRelative.fileNum":fileNum ,
- "securityPersonApplyRelative.name":$("#name" + i ).val() ,
- "securityPersonApplyRelative.relative":$("#relative" + i ).val() ,
- "securityPersonApplyRelative.idCard":$("#idCard" + i ).val() ,
- "securityPersonApplyRelative.maritalStatus":$("#maritalStatus" + i ).val() ,
- "securityPersonApplyRelative.maritalDate":$("#maritalDate" + i ).datebox('getValue') ,
- "securityPersonApplyRelative.company":$("#company" + i ).val() ,
- "securityPersonApplyRelative.residenceNo":$("#residenceNo" + i ).val() ,
- "securityPersonApplyRelative.wageIncome":$("#wageIncome" + i ).val() ,
- "securityPersonApplyRelative.operatingNetIncome":$("#operatingNetIncome" + i ).val() ,
- "securityPersonApplyRelative.propertyIncome":$("#propertyIncome" + i ).val() ,
- "securityPersonApplyRelative.otherIncome":$("#otherIncome" + i ).val() ,
- "securityPersonApplyRelative.otherIncomeRemark":$("#otherIncomeRemark" + i ).val() ,
- "securityPersonApplyRelative.securitiesTotal":$("#securitiesInfo_input" + i ).val() ,
- "securityPersonApplyRelative.bankTotal":$("#bankInfo_input" + i ).val() ,
- "securityPersonApplyRelative.certificateInfo":$("#certificateInfo" + i ).val(),
- "securityPersonApplyRelative.isSubsistenceAllowances":$("#isSubsistenceAllowances" + i ).val(),
- "securityPersonApplyRelative.commercialInsurance":$("#commercialInsuranceInfo_input" + i ).val(),
- "securityPersonApplyRelative.phone":$("#phone" + i ).val(),
- "securityPersonApplyRelative.nationality":$("#nationality" + i ).val() ,
- "securityPersonApplyRelative.education":$("#education" + i ).val() ,
- "securityPersonApplyRelative.deathDate":$("#deathDate" + i ).datebox('getValue') ,
- "securityPersonApplyRelative.moveIn":$("#moveIn" + i ).val() ,
- },
- success : function(result){
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: whzl.basePath+'/securityPersonApply2Action_addAssets',//要访问的后台地址
- async: false,
- data:{"securityPersonApplyRelative.id":result.obj.id ,
- "cars":$("#carInfo_input"+i).val() ,
- "businesses": $("#businessInfo_input"+i).val() ,
- },
- });
- $("#securityPersonApplyDataGrid").datagrid("reload");
- }
- });
- }
- }
- }
- }
- })
- }
- }
-
-
- function checkData(){
- var flag= true;
- //验证家庭成员信息
- var isCar=2;
- var isBusiness=2;
- for(var i=1;i<=index;i++){
- var mbtb = $("#mbtb_"+i);
- //如果被删除,直接跳过
- if(mbtb.length > 0){
- var residenceNo=$("#residenceNo"+i).val()
- var idCard=$("#idCard"+i).val();
- var name=$("#name"+i).val();
- var relative=$("#relative"+i).val();
- var maritalStatus=$("#maritalStatus"+i).val();
- var wageIncome=$("#wageIncome"+i).val();
- var maritalDate = $("#maritalDate"+i).datebox('getValue');
- var phone=$("#phone"+i).val();
- var nationality=$("#nationality"+i).val();
- var education=$("#education"+i).val();
-
- var carInfo =$("#carInfo_input"+i).val();
- var businessesInfo =$("#businessInfo_input"+i).val();
-
- $("#certificateInfo"+i).val("");
- $("#isSubsistenceAllowances"+i).val("");
-
- //户号
- if(residenceNo==''){
- $.messager.alert('提醒','请填户号');
- flag = false;
- }
- //验证姓名
- if(name==''){
- $.messager.alert('提醒','请填写姓名');
- flag = false;
- }
- //验证身份证号
- /*if(idCard!=''){
- if(!idCard1(idCard)){
- $.messager.alert('提醒','请填正确身份证号');
- flag = false;
- }
- }else{
- $.messager.alert('提醒','请填身份证号');
- flag = false;
- }*/
- //验证户籍关系
- if(relative==''){
- $.messager.alert('提醒','请填与申请人关系');
- flag = false;
- }
- //验证婚姻关系
- if(maritalStatus==''){
- $.messager.alert('提醒','请填婚姻状况');
- flag = false;
- }
- //除未成年、未婚都要填写登记时间
- if(maritalStatus !="6"&&maritalStatus !="5"){
- if(maritalDate ==''){
- $.messager.alert('提醒','请填婚姻登记日期');
- flag = false;
- }
- }
-
- //验证联系电话
- if(phone==''){
- $.messager.alert('提醒','请填联系电话');
- flag = false;
- }
- //验证民族
- if(nationality==''){
- $.messager.alert('提醒','请选择民族');
- flag = false;
- }
- //验证文化
- if(education==''){
- $.messager.alert('提醒','请选择文化程度');
- flag = false;
- }
-
- //验证是否有车与工商信息
- if(carInfo!=''){
- isCar = 1;
- }
- if(businessesInfo!=''){
- isBusiness = 1;
- }
- }
- }
- $("#isCar_add").val(isCar);
- $("#isBusiness_add").val(isBusiness);
-
- //家庭人口数量
- var mbtbNum = $(".mbtb > table").size();
- $("#familyNum_add").val(mbtbNum);
-
- return flag;
- }
-
- //计算人均收入
- function countAvgIncome(){
- var wageIncomeTotal = 0;
- var operatingNetIncomeTotal = 0;
- var propertyIncomeTotal = 0;
- var otherIncomeTotal = 0
- var avgIncome = 0;
- var avgArea = 0;
- var areaTotal = 0;
- var mbtbNum = $(".mbtb > table").size();
- for(var i=1;i<=index;i++){
- if($("#wageIncome"+i).val()==''||$("#wageIncome"+i).val()==undefined){
- $("#wageIncome"+i).val(0);
- }else{
- wageIncomeTotal+=parseInt($("#wageIncome"+i).val());
- }
- if($("#operatingNetIncome"+i).val()==''||$("#operatingNetIncome"+i).val()==undefined){
- $("#operatingNetIncome"+i).val(0);
- }else{
- operatingNetIncomeTotal+=parseInt($("#operatingNetIncome"+i).val());
- }
- if($("#propertyIncome"+i).val()==''||$("#propertyIncome"+i).val()==undefined){
- $("#propertyIncome"+i).val(0);
- }else{
- propertyIncomeTotal+=parseInt($("#propertyIncome"+i).val());
- }
- if($("#otherIncome"+i).val()==''||$("#otherIncome"+i).val()==undefined){
- $("#otherIncome"+i).val(0);
- }else{
- otherIncomeTotal+=parseInt($("#otherIncome"+i).val());
- }
- }
-
- avgIncome = Number((wageIncomeTotal+operatingNetIncomeTotal+propertyIncomeTotal+otherIncomeTotal)/mbtbNum).toFixed(2);
- $("#avgIncome_add").val(avgIncome);
- $("#avgIncome_span").text("家庭平均月收入=( "+wageIncomeTotal+"【工资收入】+"+operatingNetIncomeTotal+"【经营净收入】+"+propertyIncomeTotal+"【财产性收入】+"+otherIncomeTotal+"【其他收入】"+")/"+mbtbNum+"【人数】 = " + avgIncome + "元");
- }
-
- //验证家庭住房情况
- function verifyCurrentHouseSituation(){
- var flag = true;
- var currentHouseSituation=$('input:radio[name="securityPersonApply.currentHouseSituation"]:checked').val();
- var propertyCompany=$('#propertyCompany_add').val();
- if(typeof(propertyCompany)=="undefined" || propertyCompany == ''){
- $.messager.alert('提醒','请输入产权单位');
- flag = false;
- }
- var existArea=$('#existArea_add').val();
- if(typeof(existArea)=="undefined" || existArea == ''){
- $.messager.alert('提醒','请输房屋面积');
- flag = false;
- }
- var existReal=$('#existReal_add').val();
- if(typeof(existReal)=="undefined" || existReal == ''){
- $.messager.alert('提醒','请输房屋地址');
- flag = false;
- }
-
- return flag;
- }
-
- var index = 1;
- function addSecurityPersonApplyRelative(){
- index++;
- var $table = $("<table id='mbtb_"+index+"' class='mytable changeLine'></table>");
- var $tr1 = $("<tr style='border-top: 2px solid blue;'></tr>");
- var $th1_1 = $("<th width='11%'>户号</th>");
- var $td1_2 = $("<td width='20%'><input id='residenceNo"+index+"' type='text' style='width: 100px;'></td>");
- var $th1_3 = $("<th width='11%'>姓名</th>");
- var $td1_4 = $("<td width='24%'><input id='name"+index+"' type='text' style='width: 100px;'></td>");
- var $th1_5 = $("<th width='11%'>身份证号</th>");
- var $td1_6 = $("<td><input id='idCard"+index+"' type='text' style='width: 172px;'></td>");
-
- $tr1.append($th1_1);
- $tr1.append($td1_2);
- $tr1.append($th1_3);
- $tr1.append($td1_4);
- $tr1.append($th1_5);
- $tr1.append($td1_6);
-
- var $tr2 = $("<tr></tr>");
- var $th2_1 = $("<th>与申请人关系</th>");
- var $td2_2 = $("<td></td>");
- var $select_relative=$("<select id='relative" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
- $select_relative.append(relative_array);
- $td2_2.append($select_relative);
- var $th2_3 = $("<th>婚姻状况</th>");
- var $td2_4 = $("<td></td>");
- var $select_maritalStatus=$("<select id='maritalStatus" + index + "' style='width: 120px;height: 20px;vertical-align: middle;'><option value=''>选择</option></select>")
- $select_maritalStatus.append(maritalStatus_array);
- var $maritalDate = $("<input type='text' style='width: 100px;' id='maritalDate" + index + "' class='easyui-datebox' editable='fasle'/>");
- $td2_4.append($select_maritalStatus);
- $td2_4.append($maritalDate);
- $.parser.parse($td2_4);
-
- var $th2_5 = $("<th>民族</th>");
- var $td2_6 = $("<td></td>");
- var $select_nationality=$("<select id='nationality" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
- $select_nationality.append(nationality_array);
- $td2_6.append($select_nationality);
-
- $tr2.append($th2_1);
- $tr2.append($td2_2);
- $tr2.append($th2_3);
- $tr2.append($td2_4);
- $tr2.append($th2_5);
- $tr2.append($td2_6);
-
- var $tr3 = $("<tr></tr>");
- var $th3_1 = $("<th>联系电话</th>");
- var $td3_2 = $("<td><input id='phone"+index+"' type='text'/></td>");
- var $th3_3 = $("<th>工作单位</th>");
- var $td3_4 = $("<td><input id='company"+index+"' type='text'></td>");
- var $th3_5 = $("<th>文化程度</th>");
- var $td3_6 = $("<td></td>");
- var $select_education=$("<select id='education" + index + "' style='width: 120px;'><option value=''>选择</option></select>")
- $select_education.append(education_array);
- $td3_6.append($select_education);
-
- $tr3.append($th3_1);
- $tr3.append($td3_2);
- $tr3.append($th3_3);
- $tr3.append($td3_4);
- $tr3.append($th3_5);
- $tr3.append($td3_6);
-
- var $tr4 = $("<tr></tr>");
- var $th4_1 = $("<th>工薪收入(元/月)</th>");
- var $td4_2 = $("<td><input id='wageIncome"+index+"' type='text'></td>");
- var $th4_3 = $("<th>经营净收入(元/月)</th>");
- var $td4_4 = $("<td><input id='operatingNetIncome"+index+"' type='text'></td>");
- var $th4_5 = $("<th>财产性收入(元/月)</th>");
- var $td4_6 = $("<td><input id='propertyIncome"+index+"' type='text'></td>");
- $tr4.append($th4_1);
- $tr4.append($td4_2);
- $tr4.append($th4_3);
- $tr4.append($td4_4);
- $tr4.append($th4_5);
- $tr4.append($td4_6);
-
- var $tr5 = $("<tr></tr>");
- var $th5_1 = $("<th>其他收入(元/月)</th>");
- var $td5_2 = $("<td><input id='otherIncome"+index+"' type='text'></td>");
- var $th5_3 = $("<th>其他收入备注</th>");
- var $td5_4 = $("<td><input id='otherIncomeRemark"+index+"' type='text'></td>");
- var $th5_5 = $("<th>死亡注销日期</th>");
- var $td5_6 = $("<td></td>");
- var $deathDate = $("<input type='text' style='width: 100px;' id='deathDate" + index + "' class='easyui-datebox' editable='fasle'/>");
- $td5_6.append($deathDate);
- $.parser.parse($td5_6);
-
- $tr5.append($th5_1);
- $tr5.append($td5_2);
- $tr5.append($th5_3);
- $tr5.append($td5_4);
- $tr5.append($th5_5);
- $tr5.append($td5_6);
-
- var $tr6 = $("<tr></tr>");
- var $th6_1 = $("<th>何时何地迁入本市区户籍</th>" );
- var $td6_2 = $("<td colspan='5'><input id='moveIn"+index+"' type='text' style='width:700px'></td>");
- $tr6.append($th6_1);
- $tr6.append($td6_2);
-
- var $tr8 = $("<tr></tr>");
- var $th8_1 = $("<th>资产信息</th>");
- var $td8_2 = $("<td colspan='5'></td>");
- var $button1 =$("<input id='carInfo"+index+"' type='button' value='车辆信息' onclick='carInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
- var $button2 =$("<input id='businessInfo"+index+"' type='button' value='工商信息' onclick='businessInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
- var $button3 =$("<input id='securitiesInfo"+index+"' type='button' value='证券信息' onclick='securitiesInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
- var $button4 =$("<input id='bankInfo"+index+"' type='button' value='银行信息' onclick='bankInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
- var $button5 =$("<input id='commercialInsuranceInfo"+index+"' type='button' value='商业保险信息' onclick='commercialInsuranceInfo_add("+index+")' style='margin: 0 0 0 6px;'/>");
- var $img = $("<img align='right' src='images/remove.png' onclick=remove('mbtb_" + index + "')>");
- $td8_2.append($button1);
- $td8_2.append($button2);
- $td8_2.append($button3);
- $td8_2.append($button4);
- $td8_2.append($button5);
- $td8_2.append($img);
- $tr8.append($th8_1);
- $tr8.append($td8_2);
-
- var $tr9 = $("<tr id='tr"+index+"_9' style='display: none;'></tr>");
- var $th9_1 = $("<th>资产信息</th>");
- var $td9_2 = $("<td id='all_td"+index+"' colspan='5'></td>");
- var $carInfo_div = $("<div id='carInfo_span"+index+"'></div>");
- var $carInfo_input = $("<input id='carInfo_input"+index+"' type='hidden'/>");
- var $businessInfo_div = $("<div id='businessInfo_span"+index+"'></div>");
- var $businessInfo_input = $("<input id='businessInfo_input"+index+"' type='hidden'/>");
- var $securitiesInfo_span = $("<span id='securitiesInfo_span"+index+"'></span>");
- var $securitiesInfo_input = $("<input id='securitiesInfo_input"+index+"' type='hidden' value='0'/>");
- var $bankInfo_span = $("<span id='bankInfo_span"+index+"'></span>");
- var $bankInfo_input = $("<input id='bankInfo_input"+index+"' type='hidden' value='0'/>");
- var $commercialInsuranceInfo_span = $("<span id='commercialInsuranceInfo_span"+index+"'></span>");
- var $commercialInsuranceInfo_input = $("<input id='commercialInsuranceInfo_input"+index+"' type='hidden' value='0'/>");
- $td9_2.append($carInfo_div);
- $td9_2.append($businessInfo_div);
- $td9_2.append($carInfo_input);
- $td9_2.append($businessInfo_input);
- $td9_2.append($securitiesInfo_span);
- $td9_2.append($securitiesInfo_input);
- $td9_2.append($bankInfo_span);
- $td9_2.append($bankInfo_input);
- $td9_2.append($commercialInsuranceInfo_span);
- $td9_2.append($commercialInsuranceInfo_input);
- $tr9.append($th9_1);
- $tr9.append($td9_2);
-
-
-
-
- $table.append($tr1);
- $table.append($tr2);
- $table.append($tr3);
- $table.append($tr4);
- $table.append($tr5);
- $table.append($tr6);
- $table.append($tr8);
- $table.append($tr9);
-
- $("#mbtb_1").after($table);
- }
-
- //删除家庭成员表格
- function remove(id){
- $("#" + id).remove();
- }
-
- function carInfo_add(index){
- $("#addAssetsInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- $("#car_id").val(index)
- var id = "car_index_" + (new Date()).valueOf();
- var indexCar = $("#car_id").val();
- var vehicleBrand = "车辆品牌:" + $("#vehicleBrand1").val();
- var vehicleModel = "车辆型号:" + $("#vehicleModel1").val();
- var buyFirstTime = "初次购买日期:" + $("#buyFirstTime1").datebox("getValue");
- var estimatePrice = "车辆价值(元):" + $("#estimatePrice1").val();
- if($("#estimatePrice1").val()==''){
- $.messager.alert('提醒','请输入车辆价值');
- return ;
- }
- var spanText = vehicleBrand + "," + vehicleModel + "," + buyFirstTime + "," + estimatePrice;
- var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delCar('"+id+"','"+spanText+"','"+indexCar+"')>";
- var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
- var pText = $('#carInfo_span'+indexCar).html();
- $("#carInfo_span"+indexCar).html(pText + html);
- var cars_hidden_text_id = '#carInfo_input' + indexCar;
- $(cars_hidden_text_id).val($(cars_hidden_text_id).val() + "###" + spanText);
- $("#tr"+index+"_9").show();
- $("#addAssetsInfoDialog").dialog("close");
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- }
- }],
- onLoad : function(){
- $("#carInfo_tb").show();
- }
- })
- }
-
- function delCar(id,spanText,indexCar){
- //删除该车辆
- $("#"+id).remove();
- //删除车辆信息
- $("#carInfo_input"+indexCar).val($("#carInfo_input"+indexCar).val().replace('###'+spanText,''));
- }
-
- function businessInfo_add(index){
- $("#addAssetsInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- $("#business_id").val(index)
- var id = "business_index_" + (new Date()).valueOf();
- var indexbusiness = $("#business_id").val();
- var businessName = "企业名称:" + $("#businessName1").val();
- var businessAddress = "地址:" + $("#businessAddress1").val();
- var shareholderName = "股东名称:" + $("#shareholderName1").val();;
- var investmentAmount = "出资金额:" + $("#investmentAmount1").val();
- var spanText = businessName + "," + businessAddress + "," + shareholderName + "," + investmentAmount;
- var delBtn = "<img src='images/i_de.png' style='float:left; margin-left:10px;cursor:pointer' onclick=delBusiness('"+id+"','"+spanText+"','"+indexbusiness+"')>";
- var html = "<div id='"+id+"' style='height:20px;'><span style='float:left;'>"+spanText+"</span>"+ delBtn + "</div>";
- var pText = $('#businessInfo_span'+indexbusiness).html();
- $("#businessInfo_span"+indexbusiness).html(pText + html);
- var businesss_hidden_text_id = '#businessInfo_input' + indexbusiness;
- $(businesss_hidden_text_id).val($(businesss_hidden_text_id).val() + "###" + spanText);
- $("#tr"+index+"_9").show();
- $("#addAssetsInfoDialog").dialog("close");
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- }
- }],
- onLoad : function(){
- $("#businessInfo_tb").show();
- }
- })
- }
-
- function delBusiness(id,spanText,indexBusiness){
- //删除该车辆
- $("#"+id).remove();
- //删除车辆信息
- $("#businessInfo_input"+indexBusiness).val($("#businessInfo_input"+indexBusiness).val().replace('###'+spanText,''));
- }
- //股票信息添加
- function securitiesInfo_add(index){
- $("#addAssetsInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- var securitiesTotal=$("#securitiesTotal1").val()
- $("#securitiesInfo_span"+index).html("证券总额为:"+securitiesTotal+"</br>");
- $("#securitiesInfo_input"+index).val(securitiesTotal);
- $("#tr"+index+"_9").show();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- }
- }],
- onLoad : function(){
- $("#securitiesInfo_tb").show();
- }
- })
- }
- //银行存款信息添加
- function bankInfo_add(index){
- $("#addAssetsInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- var bankTotal=$("#bankTotal1").val()
- $("#bankInfo_span"+index).html("银行存款总额为:"+bankTotal+"</br>");
- $("#bankInfo_input"+index).val(bankTotal);
- $("#tr"+index+"_9").show();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- }
- }],
- onLoad : function(){
- $("#bankInfo_tb").show();
- }
- })
- }
- //商业保险添加
- function commercialInsuranceInfo_add(index){
- $("#addAssetsInfoDialog").dialog({
- buttons:[{
- text:"确认",
- iconCls : 'icon-ok',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- var commercialInsuranceInfo=$("#commercialInsuranceTotal1").val();
- $("#commercialInsuranceInfo_span"+index).html("商业保险总额为:"+commercialInsuranceInfo+"</br>");
- $("#commercialInsuranceInfo_input"+index).val(commercialInsuranceInfo);
- $("#tr"+index+"_9").show();
- }
- },{
- text:"取消",
- iconCls : 'icon-cancel',
- handler : function(){
- $("#addAssetsInfoDialog").dialog("close");
- }
- }],
- onLoad : function(){
- $("#commercialInsuranceInfo_tb").show();
- }
- })
- }
- </script>
- <form id="pz3Form" action="securityPersonApplyAction_addSecurityPersonApply" method="post" >
- <input type="hidden" id="familyNum_add" name="securityPersonApply.familyNum"/>
- <input type="hidden" id="addType_add" name="securityPersonApply.addType" value="1"/>
- <input type="hidden" id="type_add" name="securityPersonApply.type" value="13"/>
- <input type="hidden" id="flow_add" name="securityPersonApply.flow" value="1"/>
- <input type="hidden" name="securityPersonApply.isCar" id="isCar_add" value="2"/>
- <input type="hidden" name="securityPersonApply.isBusiness" id="isBusiness_add" value="2"/>
- <table id="securityPersonInfo" class="mytable">
- <tr>
- <th colspan="4"><span style="font-weight: bolder;">淮安市市区公租房实物配租--特殊家庭(70周岁以上老人)</span></th>
- </tr>
- <tr>
- <th colspan="4">申请人基本信息</th>
- </tr>
- <tr>
- <th width="11%"><em>*</em>申请人姓名</th>
- <td width="38%"><input type="text" name="securityPersonApply.securityPersonName" id="name_add"/></td>
- <th width="11%"><em>*</em>身份证号码</th>
- <td><input type="text" name="securityPersonApply.securityPersonIdCard" id="idCard_add" onchange="check(this.value)"/></td>
- </tr>
- <tr>
- <th><em>*</em>现婚姻状况</th>
- <td>
- <select name="securityPersonApply.maritalStatus" id="maritalStatus_add" style="width:172px">
- <option value="">请选择</option>
- </select>
- </td>
- <th><em>*</em>手机号码</th>
- <td><input type="text" name="securityPersonApply.phone" id="phone_add"/></td>
- </tr>
- <tr>
- <th id="houseRegister_span"><em>*</em>户口所在地:</th>
- <td>
- <select id="street_add" style="width: 80px">
- <option value="">请选择</option>
- </select>
- <select id="neighborhood_add" name="securityPersonApply.houseRegister.id" style="width: 130px">
- <option value="">请选择</option>
- </select>
- <select id="communityId_add" name="securityPersonApply.communityId" style="width: 100px">
- <option value="">请选择</option>
- </select>
- <input type="hidden" id="community_add" name="securityPersonApply.community"/>
- </td>
- </tr>
- </table>
- <div id="mbtb_div" class="mbtb">
- <table class="mytable changeLine" id="mbtb_1">
- <tr>
- <th colspan="8">家庭成员基本信息
- <input id="" type="button" value="新增家庭成员" onclick="addSecurityPersonApplyRelative();" style="margin-left: 30px"/>
- <input type="button" value="计算家庭平均收入" onclick="countAvgIncome()"/>
- <span id="avgIncome_span"></span>
- <input id="avgIncome_add" name="securityPersonApply.avgIncome" type="hidden"/>
- </th>
- </tr>
- <tr style="border-top: 2px solid blue;">
- <th width="11%">户号</th>
- <td width="20%"><input id='residenceNo1' type='text' style="width: 100px;"></td>
- <th width="11%">姓名</th>
- <td width="24%"><input id='name1' type='text' style="width: 100px;"></td>
- <th width="11%">身份证号码</th>
- <td width="23%"><input id='idCard1' type='text' style="width: 172px;"></td>
- </tr>
- <tr>
- <th>与申请人关系</th>
- <td>
- <select id='relative1' style='width: 120px;'>
- <option value='0'>申请人</option>
- </select>
- </td>
- <th>婚姻状况</th>
- <td>
- <select id='maritalStatus1' style='width: 120px;height: 20px;vertical-align: middle;'>
- <option value=''>选择</option>
- </select>
- <input type="text" style="width: 100px;" id='maritalDate1' class="easyui-datebox" editable="fasle"/>
- </td>
- <th>民族</th>
- <td>
- <select id='nationality1' style='width: 120px;'>
- <option value=''>选择</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>联系电话</th>
- <td><input id="phone1"/></td>
- <th>工作单位</th>
- <td><input id='company1' type='text' style="width: 172px;"></td>
- <th>文化程度</th>
- <td>
- <select id='education1' style='width: 120px;'>
- <option value=''>选择</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>工薪收入(元/月)</th>
- <td><input id="wageIncome1" /></td>
- <th>经营净收入(元/月)</th>
- <td><input id="operatingNetIncome1" /></td>
- <th>财产性收入(元/月)</th>
- <td><input id="propertyIncome1" /></td>
- </tr>
- <tr>
- <th>其他收入(元/月)</th>
- <td><input id="otherIncome1" /></td>
- <th>其他收入备注</th>
- <td><input id="otherIncomeRemark1" /></td>
- <th>死亡注销日期</th>
- <td><input id='deathDate1' class="easyui-datebox" editable="fasle"/></td>
- </tr>
- <tr>
- <th>何时何地迁入本市区户籍</th>
- <td colspan="5">
- <input id="moveIn1" style="width: 700px"/>
- </td>
- </tr>
- <tr>
- <th>资产信息</th>
- <td colspan="5">
- <input id="carInfo1" type="button" value="车辆信息" onclick="carInfo_add(1)"/>
- <input id="businessInfo1" type="button" value="工商信息" onclick="businessInfo_add(1)"/>
- <input id="securitiesInfo1" type="button" value="证券信息" onclick="securitiesInfo_add(1)"/>
- <input id="bankInfo1" type="button" value="银行信息" onclick="bankInfo_add(1)"/>
- <input id="commercialInsuranceInfo1" type="button" value="商业保险信息" onclick="commercialInsuranceInfo_add(1)"/>
- </td>
- </tr>
- <tr id="tr1_9" style="display: none;">
- <th>资产信息</th>
- <td id="all_td1" colspan="5">
- <!-- 车辆 -->
- <div id="carInfo_span1"></div>
- <input id="carInfo_input1" type="hidden"/>
- <!-- 工商 -->
- <div id="businessInfo_span1"></div>
- <input id="businessInfo_input1" type="hidden"/>
- <!-- 证券 -->
- <span id="securitiesInfo_span1"></span>
- <input id="securitiesInfo_input1" name="securityPersonApplyRelative.securitiesTotal" type="hidden" value="0"/>
- <!-- 银行 -->
- <span id="bankInfo_span1"></span>
- <input id="bankInfo_input1" name="securityPersonApplyRelative.bankTotal" type="hidden" value="0"/>
- <!-- 商业保险 -->
- <span id="commercialInsuranceInfo_span1"></span>
- <input id="commercialInsuranceInfo_input1" name="securityPersonApplyRelative.commercialInsurance" type="hidden" value="0"/>
- </td>
- </tr>
- </table>
- </div>
- <table class="mytable">
- <tr>
- <th colspan="2">现住房信息</th>
- </tr>
- <tr>
- <th width="20%"><em>*</em>家庭住房困难类型:</th>
- <td>
- <input value="1" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-1">
- <label for="currentHouseSituation-1" style="cursor: pointer;">自有房产 </label>
- <input value="2" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-2">
- <label for="currentHouseSituation-2" style="cursor: pointer;">租住私房 </label>
- <input value="3" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-3">
- <label for="currentHouseSituation-3" style="cursor: pointer;">借住私房 </label>
- <input value="4" type="radio" name="securityPersonApply.currentHouseSituation" id="currentHouseSituation-4">
- <label for="currentHouseSituation-4" style="cursor: pointer;">租住公房 </label></br>
- <span style="color:#000;">房屋坐落:</span><input id="existReal_add" name="securityPersonApply.existReal" type="text" class="form-control" style="width: 300px;display: inline;"/>
- <span style="color:#000;">,面积:</span><input id="existArea_add" name="securityPersonApply.existArea" type="text" class="form-control" style="width: 100px;display: inline;"/>
- <span style="color:#000;">平方米,产权人:</span><input type="text" id="propertyCompany_add" name="securityPersonApply.propertyCompany" style="width: 100px;display: inline;">
- </td>
- </tr>
- <tr>
- <th>是否存在转让房产、取得拆迁安置补偿不满两年的情况:</th>
- <td>
- <input value="1" type="radio" name="securityPersonApply.isAssignmentHouse" id="isAssignmentHouse-1" />
- <label for="isAssignmentHouse-1" style="cursor: pointer;">是 </label>
- <input value="2" type="radio"name="securityPersonApply.isAssignmentHouse" checked="checked" id="isAssignmentHouse-2" />
- <label for="isAssignmentHouse-2" style="cursor: pointer;">否 </label>
- </td>
- </tr>
- <tr>
- <th>申请之日前两年是否享受过房改房、政策性商品房或其他住房保障政策:</th>
- <td>
- <input value="1" type="radio" name="securityPersonApply.hasUsed" id="hasUsed-1" />
- <label for="hasUsed-1" style="cursor: pointer;">是 </label>
- <input value="2" type="radio"name="securityPersonApply.hasUsed" id="hasUsed-2" />
- <label for="hasUsed-2" style="cursor: pointer;">否 </label>
- </td>
- </tr>
- </table>
- </form>
|