123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454 |
- <%-- 补贴申请表8--淮安市户籍的农民--%>
- <%@ 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 addGY3_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 addGY3_submit(){
- var flag1 = verifyCurrentHouseSituation();
- var flag2 = checkData();
- if(flag1&&flag2){
- $.ajax({
- type: "POST",
- url:"securityPersonApply2Action_addSecurityPersonApply",
- data:$('#gy3Form').serialize(),// 你的formid
- async: false,
- error: function(data) {
- $.messager.alert("提示","提交失败");
- },
- success: function(result) {
- var parseResult = $.parseJSON(result);
- if(parseResult.success){
- $('#addGY3Dialog').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.residenceNo":$("#residenceNo" + i ).val() ,
- "securityPersonApplyRelative.company":$("#company" + i ).val() ,
- "securityPersonApplyRelative.phone":$("#phone" + i ).val(),
- "securityPersonApplyRelative.nationality":$("#nationality" + i ).val() ,
- "securityPersonApplyRelative.education":$("#education" + i ).val() ,
- "securityPersonApplyRelative.deathDate":$("#deathDate" + i ).datebox('getValue') ,
- },
- success : function(result){
- $("#securityPersonApplyDataGrid").datagrid("reload");
- }
- });
- }
- }
- }
- }
- })
- }
- }
-
-
- function checkData(){
- var flag= true;
-
- //姓名验证
- if($("#name_add").val()==''){
- $.messager.alert('提醒','请输入姓名');
- flag = false;
- }
- //身份证验证
- if($("#idCard_add").val()==''){
- $.messager.alert('提醒','请输入身份证号');
- flag = false;
- }else{
- if(!idCard1($("#idCard_add").val())){
- $.messager.alert('提醒','请检查输入的身份证号是否正确');
- flag = false;
- }
- }
- //婚姻状况验证
- if($("#maritalStatus_add").val()==''){
- $.messager.alert('提醒','请选择现婚姻状况');
- flag = false;
- }
- //手机号码验证
- if($("#phone_add").val()==''){
- $.messager.alert('提醒','请输入手机号码');
- flag = false;
- }
- if($("#accountLocation_add").val()==''){
- $.messager.alert('提醒','请输入户口所在地');
- flag = false;
- }
- //单位名称
- if($("#company_add").val()==''){
- $.messager.alert('提醒','请输入单位名称');
- flag = false;
- }
-
- //验证家庭成员信息
- 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();
-
- //户号
- 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(nationality==''){
- $.messager.alert('提醒','请选择民族');
- flag = false;
- }
- //验证文化
- if(education==''){
- $.messager.alert('提醒','请选择文化程度');
- flag = false;
- }
- //验证电话
- if(phone==''){
- $.messager.alert('提醒','请填联系电话');
- flag = false;
- }
- }
- }
-
- //家庭人口数量
- var mbtbNum = $(".mbtb > table").size();
- $("#familyNum_add").val(mbtbNum);
-
- return flag;
- }
-
-
- //验证家庭住房情况
- 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></td>");
- var $deathDate = $("<input type='text' style='width: 100px;' id='deathDate" + index + "' class='easyui-datebox' editable='fasle'/>");
- $td4_2.append($deathDate);
- $.parser.parse($td4_2);
-
- $tr4.append($th4_1);
- $tr4.append($td4_2);
-
-
- $table.append($tr1);
- $table.append($tr2);
- $table.append($tr3);
- $table.append($tr4);
-
- $("#mbtb_1").after($table);
- }
-
- //删除家庭成员表格
- function remove(id){
- $("#" + id).remove();
- }
-
- </script>
- <form id="gy3Form" 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="8"/>
- <input type="hidden" id="flow_add" name="securityPersonApply.flow" value="2"/>
- <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;">淮安市市区共有产权房--淮安市户籍的农民</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><em>*</em>户口所在地:</th>
- <td>
- <input type="text" id="accountLocation_add" style="width: 350px;" name="securityPersonApply.accountLocation"/>
- </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"/>
- </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='deathDate1' class="easyui-datebox" editable="fasle"/></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>
|