//该文件中包含客户端需要处理的函数和事件 var showInfo; var arrResult; var mDebug="0"; var mOperate = ""; var fmAction = ""; var mSwitch = parent.VD.gVSwitch; var turnPage = new turnPageClass(); //使用翻页功能时,必须建立为全局变量 var tSQLInfo = new SqlClass(); /** * 初始化 */ function showAskPrtInit(){ //理赔进来的时候,将确认按钮隐藏 if(standflag==2){ fm.all('ConfimBtn').style.display="none"; } //新增审核标记AuditFlag=1,表示团体审核 (需要将按钮置灰,并且查询出最近的反洗钱信息) if(AuditFlag == 1 ){ fm.all('QueryBtn').disabled=true;//将[查询]按钮置灰 fm.all('SaveBtn').disabled=true;//将[保存]按钮置灰 } /** * 第一次进来的时候,带出询价时录入的信息(LDGrp),再进来的时候,如果第一次录入过了,直接带出本次的信息(查询条件OtherNo) * 点击【查询】按钮,如果,该投保单位(查询条件GrpName)以前录过反洗钱信息,则将页面上为空的字段赋值,如果没有,则不赋值 * 当AuditFlag=1,跳进去只查询 */ var tExistsldgrp; var tExistsAntiMoney; //判断LDGrp是否存在记录 // tExistsldgrp = easyExecSql("select 1 from ldgrp b where b.grpname = '"+GrpName1+"' and rownum = 1"); //判断反洗钱录入是否有记录 // tExistsAntiMoney = easyExecSql("select 1 from LDAntiMoneyLauICustInfo where OtherNo = '"+OtherNo+"' and GrpName = '"+GrpName1+"'"); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti1"); tSQLInfo.addSubPara(GrpName1); var tPropEntry = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tPropEntry!=null&&tPropEntry !="") { tExistsldgrp=tPropEntry[0][0]; } tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti2"); tSQLInfo.addSubPara(OtherNo); tSQLInfo.addSubPara(GrpName1); var tPropEntry = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (tPropEntry!=null&&tPropEntry !="") { tExistsAntiMoney=tPropEntry[0][0]; } if(standflag==2){//理赔 if(tExistsAntiMoney == 1 ){//(1)如果本次存在反洗钱记录 AnTiMoneyExistsQuery(); }else if(tExistsAntiMoney != 1 && tExistsldgrp == 1 ){//(2)不存在反洗钱记录,存在询价记录 AskPrtExistsQuery1(); }else{//(3)理赔时既不存在反洗钱记录也没有询价时录入的信息,则将投保单位名称带入 fm.GrpName.value = GrpName1; if(fm.all('GrpName').value!=null && fm.all('GrpName').value!=""){//将投保单位名称只读 fm.all('GrpName').readOnly=true; }else{ fm.all('GrpName').readOnly=false; } } }else if(standflag==1){//承保和保全 if(tExistsAntiMoney == 1){//(1)如果本次存在反洗钱记录 AnTiMoneyExistsQuery(); }else if(tExistsAntiMoney != 1){//(2)不存在反洗钱记录,存在询价记录 AskPrtExistsQuery(); } if(bqFlag=='true'){ fm.all('GrpName').value = GrpName1; fm.all('GrpName').readOnly=true; } } } //查询反洗钱记录表中的信息(查询条件业务号OtherNo)(1) function AnTiMoneyExistsQuery(){ // var strSQL1= // "select GrpName," + // " GrpType ," + // " RgtAddress ," + // " RgtMoney ," + // " GrpNature ," + // " GrpNatureClass ," + // " BusinessRan ," + // " CorpLicence ," + // " CorpLicenceSD ," + // " CorpLicenceED ," + // " TaxRegNo ," + // " TaxRegNoSD ," + // " TaxRegNoED ," + // " OrganCode ," + // " OrganCodeSD ," + // " OrganCodeED ," + // " Corporation ," + // " IDType ," + // " IDNo ," + // " CorporationIDTypeSD ," + // " CorporationIDTypeED ," + // " CorporationBirthday ," + // " CorporationSex ," + // " CorporationNativePlace ," + // " Satrap ," + // " SatrapIDType ," + // " SatrapIDNo ," + // " SatrapIDTypeSD ," + // " SatrapIDTypeED ," + // " SatrapBirthday ," + // " SatrapSex ," + // " SatrapNativePlace ," + // " AuthHandler ," + // " AuthHandlerIDType ," + // " AuthHandlerIDNo ," + // " AuthHandlerIDTypeSD ," + // " AuthHandlerIDTypeED ," + // " AuthHandlerBirthday ," + // " AuthHandlerSex ," + // " AuthHandlerNativePlace ," + // " PartnerName ," + // " PartnerIDType ," + // " PartnerIDNo ," + // " PartnerIDTypeSD ," + // " PartnerIDTypeED ," + // " PartnerBirthday ," + // " PartnerSex ," + // " PartnerNativePlace ," + // " BnfAllName1 ," + // " BnfAllIDType1 ," + // " BnfAllIDNo1 ," + // " BnfAllIDTypeSD1 ," + // " BnfAllIDTypeED1 ," + // " BnfAllBirthday1 ," + // " BnfAllSex1 ," + // " BnfAllNativePlace1 ," + // " Remark1 ," + // " BnfAllName2 ," + // " BnfAllIDType2 ," + // " BnfAllIDNo2 ," + // " BnfAllIDTypeSD2 ," + // " BnfAllIDTypeED2 ," + // " BnfAllBirthday2 ," + // " BnfAllSex2 ," + // " BnfAllNativePlace2 ," + // " Remark2 ," + // " BnfAllName3 ," + // " BnfAllIDType3 ," + // " BnfAllIDNo3 ," + // " BnfAllIDTypeSD3 ," + // " BnfAllIDTypeED3 ," + // " BnfAllBirthday3 ," + // " BnfAllSex3 ," + // " BnfAllNativePlace3 ," + // " Remark3" + // " from LDAntiMoneyLauICustInfo where OtherNo = '"+OtherNo+"' and GrpName = '"+GrpName1+"' "; // // arrResult = easyExecSql(strSQL1); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti3"); tSQLInfo.addSubPara(OtherNo); tSQLInfo.addSubPara(GrpName1); arrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if ( arrResult != null && arrResult != "" ){ if(arrResult[0][0] != null && arrResult[0][0] != ""){ fm.all('GrpName').value = arrResult[0][0]; } if(arrResult[0][1] != null && arrResult[0][1] != ""){ fm.all('GrpType').value = arrResult[0][1];//投保人类型 if (arrResult[0][1] == 1){ fm.all('GrpTypeName').value = '法人组织'; } if (arrResult[0][1] == 2){ fm.all('GrpTypeName').value = '非法人组织'; } if (arrResult[0][1] == 3){ fm.all('GrpTypeName').value = '自然人'; } // showOneCodeName("grptype","GrpType","GrpTypeName"); } if(arrResult[0][2] != null && arrResult[0][2] != ""){ fm.all('RgtAddress').value = arrResult[0][2]; } if(arrResult[0][3] != null && arrResult[0][3] != ""){ fm.all('RgtMoney').value = arrResult[0][3]; } if(arrResult[0][4] != null && arrResult[0][4] != ""){ fm.all('GrpNature').value = arrResult[0][4];//单位性质分类 showOneCodeName("GrpNature","GrpNature","GrpNatureName"); } if(arrResult[0][5] != null && arrResult[0][5] != ""){ fm.all('GrpNatureClass').value = arrResult[0][5];//单位性质细分 showOneCodeName("antimoney","GrpNatureClass","GrpNatureClassName"); } if(arrResult[0][6] != null && arrResult[0][6] != ""){ fm.all('BusinessRan').value = arrResult[0][6]; } if(arrResult[0][7] != null && arrResult[0][7] != ""){ fm.all('CorpLicence').value = arrResult[0][7]; } if(arrResult[0][8] != null && arrResult[0][8] != ""){ fm.all('CorpLicenceSD').value = arrResult[0][8]; } if(arrResult[0][9] != null && arrResult[0][9] != ""){ fm.all('CorpLicenceED').value = arrResult[0][9]; } if(arrResult[0][10] != null && arrResult[0][10] != ""){ fm.all('TaxRegNo').value = arrResult[0][10]; } if(arrResult[0][11] != null && arrResult[0][11] != ""){ fm.all('TaxRegNoSD').value = arrResult[0][11]; } if(arrResult[0][12] != null && arrResult[0][12] != ""){ fm.all('TaxRegNoED').value = arrResult[0][12]; } if(arrResult[0][13] != null && arrResult[0][13] != ""){ fm.all('OrganCode').value = arrResult[0][13]; } if(arrResult[0][14] != null && arrResult[0][14] != ""){ fm.all('OrganCodeSD').value = arrResult[0][14]; } if(arrResult[0][15] != null && arrResult[0][15] != ""){ fm.all('OrganCodeED').value = arrResult[0][15]; } if(arrResult[0][16] != null && arrResult[0][16] != ""){ fm.all('Corporation').value = arrResult[0][16]; } if(arrResult[0][17] != null && arrResult[0][17] != ""){ fm.all('IDNoType').value = arrResult[0][17];//法定代表人证件类型 showOneCodeName("idtype","IDNoType","IDNoTypeName"); } if(arrResult[0][18] != null && arrResult[0][18] != ""){ fm.all('IDNo').value = arrResult[0][18]; } if(arrResult[0][19] != null && arrResult[0][19] != ""){ fm.all('CorporationIDTypeSD').value = arrResult[0][19]; } if(arrResult[0][20] != null && arrResult[0][20] != ""){ fm.all('CorporationIDTypeED').value = arrResult[0][20]; } if(arrResult[0][21] != null && arrResult[0][21] != ""){ fm.all('CorporationBirthday').value = arrResult[0][21]; } if(arrResult[0][22] != null && arrResult[0][22] != ""){ fm.all('CorporationSex').value = arrResult[0][22]; showOneCodeName("Sex","CorporationSex","CorporationSexName"); } if(arrResult[0][23] != null && arrResult[0][23] != ""){ fm.all('CorporationNativePlace').value = arrResult[0][23]; showOneCodeName("NativePlace","CorporationNativePlace","CorporationNativePlaceName"); } if(arrResult[0][24] != null && arrResult[0][24] != ""){ fm.all('Satrap').value = arrResult[0][24]; } if(arrResult[0][25] != null && arrResult[0][25] != ""){ fm.all('SatrapIDType').value = arrResult[0][25];//负责人证件类型 showOneCodeName("idtype","SatrapIDType","SatrapIDTypeName"); } if(arrResult[0][26] != null && arrResult[0][26] != ""){ fm.all('SatrapIDNo').value = arrResult[0][26]; } if(arrResult[0][27] != null && arrResult[0][27] != ""){ fm.all('SatrapIDTypeSD').value = arrResult[0][27]; } if(arrResult[0][28] != null && arrResult[0][28] != ""){ fm.all('SatrapIDTypeED').value = arrResult[0][28]; } if(arrResult[0][29] != null && arrResult[0][29] != ""){ fm.all('SatrapBirthday').value = arrResult[0][29]; } if(arrResult[0][30] != null && arrResult[0][30] != ""){ fm.all('SatrapSex').value = arrResult[0][30]; showOneCodeName("Sex","SatrapSex","SatrapSexName"); } if(arrResult[0][31] != null && arrResult[0][31] != ""){ fm.all('SatrapNativePlace').value = arrResult[0][31]; showOneCodeName("NativePlace","SatrapNativePlace","SatrapNativePlaceName"); } if(arrResult[0][32] != null && arrResult[0][32] != ""){ fm.all('AuthHandler').value = arrResult[0][32]; } if(arrResult[0][33] != null && arrResult[0][33] != ""){ fm.all('AuthHandlerIDType').value = arrResult[0][33];//授权经办人证件类型 showOneCodeName("idtype","AuthHandlerIDType","AuthHandlerIDTypeName"); } if(arrResult[0][34] != null && arrResult[0][34] != ""){ fm.all('AuthHandlerIDNo').value = arrResult[0][34]; } if(arrResult[0][35] != null && arrResult[0][35] != ""){ fm.all('AuthHandlerIDTypeSD').value = arrResult[0][35]; } if(arrResult[0][36] != null && arrResult[0][36] != ""){ fm.all('AuthHandlerIDTypeED').value = arrResult[0][36]; } if(arrResult[0][37] != null && arrResult[0][37] != ""){ fm.all('AuthHandlerBirthday').value = arrResult[0][37]; } if(arrResult[0][38] != null && arrResult[0][38] != ""){ fm.all('AuthHandlerSex').value = arrResult[0][38]; showOneCodeName("Sex","AuthHandlerSex","AuthHandlerSexName"); } if(arrResult[0][39] != null && arrResult[0][39] != ""){ fm.all('AuthHandlerNativePlace').value = arrResult[0][39]; showOneCodeName("NativePlace","AuthHandlerNativePlace","AuthHandlerNativePlaceName"); } if(arrResult[0][40] != null && arrResult[0][40] != ""){ fm.all('PartnerName').value = arrResult[0][40]; } if(arrResult[0][41] != null && arrResult[0][41] != ""){ fm.all('PartnerIDType').value = arrResult[0][41];//控股股东/实际控制人信息证件类型 showOneCodeName("idtype","PartnerIDType","PartnerIDTypeName"); } if(arrResult[0][42] != null && arrResult[0][42] != ""){ fm.all('PartnerIDNo').value = arrResult[0][42]; } if(arrResult[0][43] != null && arrResult[0][43] != ""){ fm.all('PartnerIDTypeSD').value = arrResult[0][43]; } if(arrResult[0][44] != null && arrResult[0][44] != ""){ fm.all('PartnerIDTypeED').value = arrResult[0][44]; } if(arrResult[0][45] != null && arrResult[0][45] != ""){ fm.all('PartnerBirthday').value = arrResult[0][45]; } if(arrResult[0][46] != null && arrResult[0][46] != ""){ fm.all('PartnerSex').value = arrResult[0][46]; showOneCodeName("Sex","PartnerSex","PartnerSexName"); } if(arrResult[0][47] != null && arrResult[0][47] != ""){ fm.all('PartnerNativePlace').value = arrResult[0][47]; showOneCodeName("NativePlace","PartnerNativePlace","PartnerNativePlaceName"); } if(arrResult[0][48] != null && arrResult[0][48] != ""){ fm.all('BnfAllName1').value = arrResult[0][48]; } if(arrResult[0][49] != null && arrResult[0][49] != ""){ fm.all('BnfAllIDType1').value = arrResult[0][49];//受益所有人1证件类型 showOneCodeName("idtype","BnfAllIDType1","BnfAllIDType1Name"); } if(arrResult[0][50] != null && arrResult[0][50] != ""){ fm.all('BnfAllIDNo1').value = arrResult[0][50]; } if(arrResult[0][51] != null && arrResult[0][51] != ""){ fm.all('BnfAllIDTypeSD1').value = arrResult[0][51]; } if(arrResult[0][52] != null && arrResult[0][52] != ""){ fm.all('BnfAllIDTypeED1').value = arrResult[0][52]; } if(arrResult[0][53] != null && arrResult[0][53] != ""){ fm.all('BnfAllBirthday1').value = arrResult[0][53]; } if(arrResult[0][54] != null && arrResult[0][54] != ""){ fm.all('BnfAllSex1').value = arrResult[0][54]; showOneCodeName("Sex","BnfAllSex1","BnfAllSex1Name"); } if(arrResult[0][55] != null && arrResult[0][55] != ""){ fm.all('BnfAllNativePlace1').value = arrResult[0][55]; showOneCodeName("NativePlace","BnfAllNativePlace1","BnfAllNativePlace1Name"); } if(arrResult[0][56] != null && arrResult[0][56] != ""){ fm.all('Remark1').value = arrResult[0][56]; } if(arrResult[0][57] != null && arrResult[0][57] != ""){ fm.all('BnfAllName2').value = arrResult[0][57]; } if(arrResult[0][58] != null && arrResult[0][58] != ""){ fm.all('BnfAllIDType2').value = arrResult[0][58];//受益所有人2证件类型 showOneCodeName("idtype","BnfAllIDType2","BnfAllIDType2Name"); } if(arrResult[0][59] != null && arrResult[0][59] != ""){ fm.all('BnfAllIDNo2').value = arrResult[0][59]; } if(arrResult[0][60] != null && arrResult[0][60] != ""){ fm.all('BnfAllIDTypeSD2').value = arrResult[0][60]; } if(arrResult[0][61] != null && arrResult[0][61] != ""){ fm.all('BnfAllIDTypeED2').value = arrResult[0][61]; } if(arrResult[0][62] != null && arrResult[0][62] != ""){ fm.all('BnfAllBirthday2').value = arrResult[0][62]; } if(arrResult[0][63] != null && arrResult[0][63] != ""){ fm.all('BnfAllSex2').value = arrResult[0][63]; showOneCodeName("Sex","BnfAllSex2","BnfAllSex2Name"); } if(arrResult[0][64] != null && arrResult[0][64] != ""){ fm.all('BnfAllNativePlace2').value = arrResult[0][64]; showOneCodeName("NativePlace","BnfAllNativePlace2","BnfAllNativePlace2Name"); } if(arrResult[0][65] != null && arrResult[0][65] != ""){ fm.all('Remark2').value = arrResult[0][65]; } if(arrResult[0][66] != null && arrResult[0][66] != ""){ fm.all('BnfAllName3').value = arrResult[0][66]; } if(arrResult[0][67] != null && arrResult[0][67] != ""){ fm.all('BnfAllIDType3').value = arrResult[0][67];//受益所有人3证件类型 showOneCodeName("idtype","BnfAllIDType3","BnfAllIDType3Name"); } if(arrResult[0][68] != null && arrResult[0][68] != ""){ fm.all('BnfAllIDNo3').value = arrResult[0][68]; } if(arrResult[0][69] != null && arrResult[0][69] != ""){ fm.all('BnfAllIDTypeSD3').value = arrResult[0][69]; } if(arrResult[0][70] != null && arrResult[0][70] != ""){ fm.all('BnfAllIDTypeED3').value = arrResult[0][70]; } if(arrResult[0][71] != null && arrResult[0][71] != ""){ fm.all('BnfAllBirthday3').value = arrResult[0][71]; } if(arrResult[0][72] != null && arrResult[0][72] != ""){ fm.all('BnfAllSex3').value = arrResult[0][72]; showOneCodeName("Sex","BnfAllSex3","BnfAllSex3Name"); } if(arrResult[0][73] != null && arrResult[0][73] != ""){ fm.all('BnfAllNativePlace3').value = arrResult[0][73]; showOneCodeName("NativePlace","BnfAllNativePlace3","BnfAllNativePlace3Name"); } if(arrResult[0][74] != null && arrResult[0][74] != ""){ fm.all('Remark3').value = arrResult[0][74]; } } } //查询询价时录入的信息(2) function AskPrtExistsQuery(){ // if((standflag != null || standflag != "") && standflag == 1 ){ // var tStrSql = "a.customerno = (select c.AppntNo from LcGrpCont c where c.grpcontno='"+rGrpContNo+"')"; // var sStrSql = "(select b.GrpType from lcgrpcont b where b.grpcontno='"+rGrpContNo+"')";//当有投保单号的时候可以查询出投保人类型 // }else if((standflag != null || standflag != "") && standflag == 2){ // var tStrSql = "a.customerno = ( select customerno from ( select * from ldgrp b where b.grpname = '"+GrpName1+"' order by b.modifydate desc , b.modifytime desc )where rownum=1 ) "; // var sStrSql = "''"; // } // // var strSQL2 = // "select a.GrpName 投保单位名称," + // " "+sStrSql+" 投保人类型," + // " a.GrpNature 单位性质分类," + // " a.RgtMoney 注册资本," + // " a.MainBussiness 经营范围," + // " a.CorpLicence 企业法人营业执照," + // " a.CorpLicenceSD 企业法人营业执照起期," + // " a.CorpLicenceED 企业法人营业执照止期," + // " a.TaxRegNo 税务登记证号统一社会信用代码," + // " a.TaxRegNoSD 统一社会信用代码起期 ," + // " a.TaxRegNoED 统一社会信用代码起期," + // " a.OrganCode 组织机构代码," + // " a.OrganCodeSD 组织机构代码起期," + // " a.OrganCodeED 组织机构代码止期," + // " a.Corporation 法定代表人," + // " a.IDType 证件类型," + // " a.IDNo 证件号码," + // " a.CorporationIDTypeSD 法人证件起期," + // " a.CorporationIDTypeED 法人证件止期," + // " a.Satrap 负责人," + // " a.SatrapIDType 证件类型," + // " a.SatrapIDNo 负责人证件号码," + // " a.SatrapIDTypeSD 负责人证件起期," + // " a.SatrapIDTypeED 负责人证件止期" + // " from LDGrp a" + // " where "+tStrSql+" "; // AskPrtQuery = easyExecSql(strSQL2); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti7"); tSQLInfo.addSubPara(rGrpContNo); AskPrtQuery = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if ( AskPrtQuery != null && AskPrtQuery != "" ){ if(AskPrtQuery[0][0] != null && AskPrtQuery[0][0] != ""){ fm.all('GrpName').value = AskPrtQuery[0][0];//投保单位名称 } if(AskPrtQuery[0][1] != null && AskPrtQuery[0][1] != ""){ fm.all('GrpType').value = AskPrtQuery[0][1];//投保人类型 if (AskPrtQuery[0][1] == 1){ fm.all('GrpTypeName').value = '法人组织'; } if (AskPrtQuery[0][1] == 2){ fm.all('GrpTypeName').value = '非法人组织'; } if (AskPrtQuery[0][1] == 3){ fm.all('GrpTypeName').value = '自然人'; } // showOneCodeName("grptype","GrpType","GrpTypeName"); } if(AskPrtQuery[0][2] != null && AskPrtQuery[0][2] != ""){ fm.all('GrpNature').value = AskPrtQuery[0][2];//单位性质分类 showOneCodeName("GrpNature","GrpNature","GrpNatureName"); } if(AskPrtQuery[0][3] != null && AskPrtQuery[0][3] != ""){ fm.all('RgtMoney').value = AskPrtQuery[0][3];//注册资本 } if(AskPrtQuery[0][4] != null && AskPrtQuery[0][4] != ""){ fm.all('BusinessRan').value = AskPrtQuery[0][4];//经营范围 } if(AskPrtQuery[0][5] != null && AskPrtQuery[0][5] != ""){ fm.all('CorpLicence').value = AskPrtQuery[0][5];//企业法人营业执照 } if(AskPrtQuery[0][6] != null && AskPrtQuery[0][6] != ""){ fm.all('CorpLicenceSD').value = AskPrtQuery[0][6];//企业法人营业执照起期 } if(AskPrtQuery[0][7] != null && AskPrtQuery[0][7] != ""){ fm.all('CorpLicenceED').value = AskPrtQuery[0][7];//企业法人营业执照止期 } if(AskPrtQuery[0][8] != null && AskPrtQuery[0][8] != ""){ fm.all('TaxRegNo').value = AskPrtQuery[0][8];//税务登记证税号(国税)/统一社会信用代码 } if(AskPrtQuery[0][9] != null && AskPrtQuery[0][9] != ""){ fm.all('TaxRegNoSD').value = AskPrtQuery[0][9];//税务登记证税号(国税)/统一社会信用代码起期 } if(AskPrtQuery[0][10] != null && AskPrtQuery[0][10] != ""){ fm.all('TaxRegNoED').value = AskPrtQuery[0][10];//税务登记证税号(国税)/统一社会信用代码止期 } if(AskPrtQuery[0][11] != null && AskPrtQuery[0][11] != ""){ fm.all('OrganCode').value = AskPrtQuery[0][11];//组织机构代码 } if(AskPrtQuery[0][12] != null && AskPrtQuery[0][12] != ""){ fm.all('OrganCodeSD').value = AskPrtQuery[0][12];//组织机构代码起期 } if(AskPrtQuery[0][13] != null && AskPrtQuery[0][13] != ""){ fm.all('OrganCodeED').value = AskPrtQuery[0][13];//组织机构代码止期 } if(AskPrtQuery[0][14] != null && AskPrtQuery[0][14] != ""){ fm.all('Corporation').value = AskPrtQuery[0][14];//法定代表人 } if(AskPrtQuery[0][15] != null && AskPrtQuery[0][15] != ""){ fm.all('IDNoType').value = AskPrtQuery[0][15];//法定代表人证件类型 showOneCodeName("idtype","IDNoType","IDNoTypeName"); } if(AskPrtQuery[0][16] != null && AskPrtQuery[0][16] != ""){ fm.all('IDNo').value = AskPrtQuery[0][16];//法定代表人证件号码 checkidtype(fm.IDNo,fm.IDNoType,fm.CorporationBirthday,fm.CorporationSex,fm.CorporationSexName); } if(AskPrtQuery[0][17] != null && AskPrtQuery[0][17] != ""){ fm.all('CorporationIDTypeSD').value = AskPrtQuery[0][17];//法人证件起期 } if(AskPrtQuery[0][18] != null && AskPrtQuery[0][18] != ""){ fm.all('CorporationIDTypeED').value = AskPrtQuery[0][18];//法人证件止期 } if(AskPrtQuery[0][19] != null && AskPrtQuery[0][19] != ""){ fm.all('Satrap').value = AskPrtQuery[0][19];//负责人 } if(AskPrtQuery[0][20] != null && AskPrtQuery[0][20] != ""){ fm.all('SatrapIDType').value = AskPrtQuery[0][20];//负责人证件类型 showOneCodeName("idtype","SatrapIDType","SatrapIDTypeName"); } if(AskPrtQuery[0][21] != null && AskPrtQuery[0][21] != ""){ fm.all('SatrapIDNo').value = AskPrtQuery[0][21];//负责人证件类型 checkidtype(fm.SatrapIDNo,fm.SatrapIDType,fm.SatrapBirthday,fm.SatrapSex,fm.SatrapSexName); } if(AskPrtQuery[0][22] != null && AskPrtQuery[0][22] != ""){ fm.all('SatrapIDTypeSD').value = AskPrtQuery[0][22];//负责人证件起期 } if (AskPrtQuery[0][23] != null && AskPrtQuery[0][23] != "") { fm.all('SatrapIDTypeED').value = AskPrtQuery[0][23];//负责人证件止期 } if (AskPrtQuery[0][24] != null && AskPrtQuery[0][24] != "") { fm.all('AuthHandler').value = AskPrtQuery[0][24];//授权经办人 } if (AskPrtQuery[0][25] != null && AskPrtQuery[0][25] != "") { fm.all('AuthHandlerIDType').value = AskPrtQuery[0][25];//授权经办人证件类型 showOneCodeName("idtype","AuthHandlerIDType","AuthHandlerIDTypeName"); } if (AskPrtQuery[0][26] != null && AskPrtQuery[0][26] != "") { fm.all('AuthHandlerIDNo').value = AskPrtQuery[0][26];//授权经办人证件号码 checkidtype(fm.AuthHandlerIDNo,fm.AuthHandlerIDType,fm.AuthHandlerBirthday,fm.AuthHandlerSex,fm.AuthHandlerSexName); } if (AskPrtQuery[0][27] != null && AskPrtQuery[0][27] != "") { fm.all('AuthHandlerIDTypeSD').value = AskPrtQuery[0][27];//授权经办人证件起期 } if (AskPrtQuery[0][28] != null && AskPrtQuery[0][28] != "") { fm.all('AuthHandlerIDTypeED').value = AskPrtQuery[0][28];//授权经办人证件止期 } if(fm.all('GrpName').value!=null && fm.all('GrpName').value!=""){//将投保单位名称只读 fm.all('GrpName').readOnly=true; }else{ fm.all('GrpName').readOnly=false; } } } function AskPrtExistsQuery1(){ tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti8"); tSQLInfo.addSubPara(GrpName1); AskPrtQuery = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if ( AskPrtQuery != null && AskPrtQuery != "" ){ if(AskPrtQuery[0][0] != null && AskPrtQuery[0][0] != ""){ fm.all('GrpName').value = AskPrtQuery[0][0];//投保单位名称 } if(AskPrtQuery[0][1] != null && AskPrtQuery[0][1] != ""){ fm.all('GrpType').value = AskPrtQuery[0][1];//投保人类型 if (AskPrtQuery[0][1] == 1){ fm.all('GrpTypeName').value = '法人组织'; } if (AskPrtQuery[0][1] == 2){ fm.all('GrpTypeName').value = '非法人组织'; } if (AskPrtQuery[0][1] == 3){ fm.all('GrpTypeName').value = '自然人'; } // showOneCodeName("grptype","GrpType","GrpTypeName"); } if(AskPrtQuery[0][2] != null && AskPrtQuery[0][2] != ""){ fm.all('GrpNature').value = AskPrtQuery[0][2];//单位性质分类 showOneCodeName("GrpNature","GrpNature","GrpNatureName"); } if(AskPrtQuery[0][3] != null && AskPrtQuery[0][3] != ""){ fm.all('RgtMoney').value = AskPrtQuery[0][3];//注册资本 } if(AskPrtQuery[0][4] != null && AskPrtQuery[0][4] != ""){ fm.all('BusinessRan').value = AskPrtQuery[0][4];//经营范围 } if(AskPrtQuery[0][5] != null && AskPrtQuery[0][5] != ""){ fm.all('CorpLicence').value = AskPrtQuery[0][5];//企业法人营业执照 } if(AskPrtQuery[0][6] != null && AskPrtQuery[0][6] != ""){ fm.all('CorpLicenceSD').value = AskPrtQuery[0][6];//企业法人营业执照起期 } if(AskPrtQuery[0][7] != null && AskPrtQuery[0][7] != ""){ fm.all('CorpLicenceED').value = AskPrtQuery[0][7];//企业法人营业执照止期 } if(AskPrtQuery[0][8] != null && AskPrtQuery[0][8] != ""){ fm.all('TaxRegNo').value = AskPrtQuery[0][8];//税务登记证税号(国税)/统一社会信用代码 } if(AskPrtQuery[0][9] != null && AskPrtQuery[0][9] != ""){ fm.all('TaxRegNoSD').value = AskPrtQuery[0][9];//税务登记证税号(国税)/统一社会信用代码起期 } if(AskPrtQuery[0][10] != null && AskPrtQuery[0][10] != ""){ fm.all('TaxRegNoED').value = AskPrtQuery[0][10];//税务登记证税号(国税)/统一社会信用代码止期 } if(AskPrtQuery[0][11] != null && AskPrtQuery[0][11] != ""){ fm.all('OrganCode').value = AskPrtQuery[0][11];//组织机构代码 } if(AskPrtQuery[0][12] != null && AskPrtQuery[0][12] != ""){ fm.all('OrganCodeSD').value = AskPrtQuery[0][12];//组织机构代码起期 } if(AskPrtQuery[0][13] != null && AskPrtQuery[0][13] != ""){ fm.all('OrganCodeED').value = AskPrtQuery[0][13];//组织机构代码止期 } if(AskPrtQuery[0][14] != null && AskPrtQuery[0][14] != ""){ fm.all('Corporation').value = AskPrtQuery[0][14];//法定代表人 } if(AskPrtQuery[0][15] != null && AskPrtQuery[0][15] != ""){ fm.all('IDNoType').value = AskPrtQuery[0][15];//法定代表人证件类型 showOneCodeName("idtype","IDNoType","IDNoTypeName"); } if(AskPrtQuery[0][16] != null && AskPrtQuery[0][16] != ""){ fm.all('IDNo').value = AskPrtQuery[0][16];//法定代表人证件号码 checkidtype(fm.IDNo,fm.IDNoType,fm.CorporationBirthday,fm.CorporationSex,fm.CorporationSexName); } if(AskPrtQuery[0][17] != null && AskPrtQuery[0][17] != ""){ fm.all('CorporationIDTypeSD').value = AskPrtQuery[0][17];//法人证件起期 } if(AskPrtQuery[0][18] != null && AskPrtQuery[0][18] != ""){ fm.all('CorporationIDTypeED').value = AskPrtQuery[0][18];//法人证件止期 } if(AskPrtQuery[0][19] != null && AskPrtQuery[0][19] != ""){ fm.all('Satrap').value = AskPrtQuery[0][19];//负责人 } if(AskPrtQuery[0][20] != null && AskPrtQuery[0][20] != ""){ fm.all('SatrapIDType').value = AskPrtQuery[0][20];//负责人证件类型 showOneCodeName("idtype","SatrapIDType","SatrapIDTypeName"); } if(AskPrtQuery[0][21] != null && AskPrtQuery[0][21] != ""){ fm.all('SatrapIDNo').value = AskPrtQuery[0][21];//负责人证件类型 checkidtype(fm.SatrapIDNo,fm.SatrapIDType,fm.SatrapBirthday,fm.SatrapSex,fm.SatrapSexName); } if(AskPrtQuery[0][22] != null && AskPrtQuery[0][22] != ""){ fm.all('SatrapIDTypeSD').value = AskPrtQuery[0][22];//负责人证件起期 } if (AskPrtQuery[0][23] != null && AskPrtQuery[0][23] != "") { fm.all('SatrapIDTypeED').value = AskPrtQuery[0][23];//负责人证件止期 } if (AskPrtQuery[0][24] != null && AskPrtQuery[0][24] != "") { fm.all('AuthHandler').value = AskPrtQuery[0][24];//授权经办人 } if (AskPrtQuery[0][25] != null && AskPrtQuery[0][25] != "") { fm.all('AuthHandlerIDType').value = AskPrtQuery[0][25];//授权经办人证件类型 showOneCodeName("idtype","AuthHandlerIDType","AuthHandlerIDTypeName"); } if (AskPrtQuery[0][26] != null && AskPrtQuery[0][26] != "") { fm.all('AuthHandlerIDNo').value = AskPrtQuery[0][26];//授权经办人证件号码 checkidtype(fm.AuthHandlerIDNo,fm.AuthHandlerIDType,fm.AuthHandlerBirthday,fm.AuthHandlerSex,fm.AuthHandlerSexName); } if (AskPrtQuery[0][27] != null && AskPrtQuery[0][27] != "") { fm.all('AuthHandlerIDTypeSD').value = AskPrtQuery[0][27];//授权经办人证件起期 } if (AskPrtQuery[0][28] != null && AskPrtQuery[0][28] != "") { fm.all('AuthHandlerIDTypeED').value = AskPrtQuery[0][28];//授权经办人证件止期 } if(fm.all('GrpName').value!=null && fm.all('GrpName').value!=""){//将投保单位名称只读 fm.all('GrpName').readOnly=true; }else{ fm.all('GrpName').readOnly=false; } } } /** * “投保单位名称”字段录入后,点击【查询】按钮, * 如该投保单位存在反洗钱信息录入记录,自动带 * 出此界面为空的其他字段上次反洗钱身份识别所录入的信息 */ function AntiMoneyQuery(){ // var strSQL1= // "select GrpName," + // " GrpType ," + // " RgtAddress ," + // " RgtMoney ," + // " GrpNature ," + // " GrpNatureClass ," + // " BusinessRan ," + // " CorpLicence ," + // " CorpLicenceSD ," + // " CorpLicenceED ," + // " TaxRegNo ," + // " TaxRegNoSD ," + // " TaxRegNoED ," + // " OrganCode ," + // " OrganCodeSD ," + // " OrganCodeED ," + // " Corporation ," + // " IDType ," + // " IDNo ," + // " CorporationIDTypeSD ," + // " CorporationIDTypeED ," + // " CorporationBirthday ," + // " CorporationSex ," + // " CorporationNativePlace ," + // " Satrap ," + // " SatrapIDType ," + // " SatrapIDNo ," + // " SatrapIDTypeSD ," + // " SatrapIDTypeED ," + // " SatrapBirthday ," + // " SatrapSex ," + // " SatrapNativePlace ," + // " AuthHandler ," + // " AuthHandlerIDType ," + // " AuthHandlerIDNo ," + // " AuthHandlerIDTypeSD ," + // " AuthHandlerIDTypeED ," + // " AuthHandlerBirthday ," + // " AuthHandlerSex ," + // " AuthHandlerNativePlace ," + // " PartnerName ," + // " PartnerIDType ," + // " PartnerIDNo ," + // " PartnerIDTypeSD ," + // " PartnerIDTypeED ," + // " PartnerBirthday ," + // " PartnerSex ," + // " PartnerNativePlace ," + // " BnfAllName1 ," + // " BnfAllIDType1 ," + // " BnfAllIDNo1 ," + // " BnfAllIDTypeSD1 ," + // " BnfAllIDTypeED1 ," + // " BnfAllBirthday1 ," + // " BnfAllSex1 ," + // " BnfAllNativePlace1 ," + // " Remark1 ," + // " BnfAllName2 ," + // " BnfAllIDType2 ," + // " BnfAllIDNo2 ," + // " BnfAllIDTypeSD2 ," + // " BnfAllIDTypeED2 ," + // " BnfAllBirthday2 ," + // " BnfAllSex2 ," + // " BnfAllNativePlace2 ," + // " Remark2 ," + // " BnfAllName3 ," + // " BnfAllIDType3 ," + // " BnfAllIDNo3 ," + // " BnfAllIDTypeSD3 ," + // " BnfAllIDTypeED3 ," + // " BnfAllBirthday3 ," + // " BnfAllSex3 ," + // " BnfAllNativePlace3 ," + // " Remark3" + // " from ( select * from LDAntiMoneyLauICustInfo a where a.grpname = '"+GrpName1+"' order by a.modifydate desc , a.modifytime desc )where rownum=1"; // aResult = easyExecSql(strSQL1); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti6"); tSQLInfo.addSubPara(GrpName1); aResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if ( aResult != null && aResult != "" ){ if(fm.all('GrpName').value == null || fm.all('GrpName').value == ""){ fm.all('GrpName').value = aResult[0][0]; } if(fm.all('GrpType').value == null || fm.all('GrpType').value == ""){ fm.all('GrpType').value = aResult[0][1];//投保人类型 if (aResult[0][1] == 1){ fm.all('GrpTypeName').value = '法人组织'; } if (aResult[0][1] == 2){ fm.all('GrpTypeName').value = '非法人组织'; } if (aResult[0][1] == 3){ fm.all('GrpTypeName').value = '自然人'; } // showOneCodeName("grptype","GrpType","GrpTypeName"); } if(fm.all('RgtAddress').value == null || fm.all('RgtAddress').value == ""){ fm.all('RgtAddress').value = aResult[0][2]; } if(fm.all('RgtMoney').value == null || fm.all('RgtMoney').value == ""){ fm.all('RgtMoney').value = aResult[0][3]; } if(fm.all('GrpNature').value == null || fm.all('GrpNature').value == ""){ fm.all('GrpNature').value = aResult[0][4];//单位性质分类 showOneCodeName("GrpNature","GrpNature","GrpNatureName"); } if(fm.all('GrpNatureClass').value == null || fm.all('GrpNatureClass').value == ""){ fm.all('GrpNatureClass').value = aResult[0][5];//单位性质细分 showOneCodeName("antimoney","GrpNatureClass","GrpNatureClassName"); } if(fm.all('BusinessRan').value == null || fm.all('BusinessRan').value == ""){ fm.all('BusinessRan').value = aResult[0][6]; } if(fm.all('CorpLicence').value == null || fm.all('CorpLicence').value == ""){ fm.all('CorpLicence').value = aResult[0][7]; } if(fm.all('CorpLicenceSD').value == null || fm.all('CorpLicenceSD').value == ""){ fm.all('CorpLicenceSD').value = aResult[0][8]; } if(fm.all('CorpLicenceED').value == null || fm.all('CorpLicenceED').value == ""){ fm.all('CorpLicenceED').value = aResult[0][9]; } if(fm.all('TaxRegNo').value == null || fm.all('TaxRegNo').value == ""){ fm.all('TaxRegNo').value = aResult[0][10]; } if(fm.all('TaxRegNoSD').value == null || fm.all('TaxRegNoSD').value == ""){ fm.all('TaxRegNoSD').value = aResult[0][11]; } if(fm.all('TaxRegNoED').value == null || fm.all('TaxRegNoED').value == ""){ fm.all('TaxRegNoED').value = aResult[0][12]; } if(fm.all('OrganCode').value == null || fm.all('OrganCode').value == ""){ fm.all('OrganCode').value = aResult[0][13]; } if(fm.all('OrganCodeSD').value == null || fm.all('OrganCodeSD').value == ""){ fm.all('OrganCodeSD').value = aResult[0][14]; } if(fm.all('OrganCodeED').value == null|| fm.all('OrganCodeED').value == ""){ fm.all('OrganCodeED').value = aResult[0][15]; } if(fm.all('Corporation').value == null || fm.all('Corporation').value == ""){ fm.all('Corporation').value = aResult[0][16]; } if(fm.all('IDNoType').value == null || fm.all('IDNoType').value == ""){ fm.all('IDNoType').value = aResult[0][17];//法定代表人证件类型 showOneCodeName("idtype","IDNoType","IDNoTypeName"); } if(fm.all('IDNo').value == null || fm.all('IDNo').value == ""){ fm.all('IDNo').value = aResult[0][18]; } if(fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value == ""){ fm.all('CorporationIDTypeSD').value = aResult[0][19]; } if(fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value == ""){ fm.all('CorporationIDTypeED').value = aResult[0][20]; } if(fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value == ""){ fm.all('CorporationBirthday').value = aResult[0][21]; } if(fm.all('CorporationSex').value == null || fm.all('CorporationSex').value == ""){ fm.all('CorporationSex').value = aResult[0][22]; showOneCodeName("Sex","CorporationSex","CorporationSexName"); } if(fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value == ""){ fm.all('CorporationNativePlace').value = aResult[0][23]; showOneCodeName("NativePlace","CorporationNativePlace","CorporationNativePlaceName"); } if(fm.all('Satrap').value == null || fm.all('Satrap').value == ""){ fm.all('Satrap').value = aResult[0][24]; } if(fm.all('SatrapIDType').value == null || fm.all('SatrapIDType').value == ""){ fm.all('SatrapIDType').value = aResult[0][25];//负责人证件类型 showOneCodeName("idtype","SatrapIDType","SatrapIDTypeName"); } if(fm.all('SatrapIDNo').value == null || fm.all('SatrapIDNo').value == ""){ fm.all('SatrapIDNo').value = aResult[0][26]; } if(fm.all('SatrapIDTypeSD').value == null || fm.all('SatrapIDTypeSD').value == ""){ fm.all('SatrapIDTypeSD').value = aResult[0][27]; } if(fm.all('SatrapIDTypeED').value == null || fm.all('SatrapIDTypeED').value == ""){ fm.all('SatrapIDTypeED').value = aResult[0][28]; } if(fm.all('SatrapBirthday').value == null || fm.all('SatrapBirthday').value == ""){ fm.all('SatrapBirthday').value = aResult[0][29]; } if(fm.all('SatrapSex').value == null || fm.all('SatrapSex').value == ""){ fm.all('SatrapSex').value = aResult[0][30]; showOneCodeName("Sex","SatrapSex","SatrapSexName"); } if(fm.all('SatrapNativePlace').value == null || fm.all('SatrapNativePlace').value == ""){ fm.all('SatrapNativePlace').value = aResult[0][31]; showOneCodeName("NativePlace","SatrapNativePlace","SatrapNativePlaceName"); } if(fm.all('AuthHandler').value == null || fm.all('AuthHandler').value == ""){ fm.all('AuthHandler').value = aResult[0][32]; } if(fm.all('AuthHandlerIDType').value == null || fm.all('AuthHandlerIDType').value == ""){ fm.all('AuthHandlerIDType').value = aResult[0][33];//授权经办人证件类型 showOneCodeName("idtype","AuthHandlerIDType","AuthHandlerIDTypeName"); } if(fm.all('AuthHandlerIDNo').value == null || fm.all('AuthHandlerIDNo').value == ""){ fm.all('AuthHandlerIDNo').value = aResult[0][34]; } if(fm.all('AuthHandlerIDTypeSD').value == null || fm.all('AuthHandlerIDTypeSD').value == ""){ fm.all('AuthHandlerIDTypeSD').value = aResult[0][35]; } if(fm.all('AuthHandlerIDTypeED').value == null || fm.all('AuthHandlerIDTypeED').value == ""){ fm.all('AuthHandlerIDTypeED').value = aResult[0][36]; } if(fm.all('AuthHandlerBirthday').value == null || fm.all('AuthHandlerBirthday').value == ""){ fm.all('AuthHandlerBirthday').value = aResult[0][37]; } if(fm.all('AuthHandlerSex').value == null || fm.all('AuthHandlerSex').value == ""){ fm.all('AuthHandlerSex').value = aResult[0][38]; showOneCodeName("Sex","AuthHandlerSex","AuthHandlerSexName"); } if(fm.all('AuthHandlerNativePlace').value == null || fm.all('AuthHandlerNativePlace').value== ""){ fm.all('AuthHandlerNativePlace').value = aResult[0][39]; showOneCodeName("NativePlace","AuthHandlerNativePlace","AuthHandlerNativePlaceName"); } if(fm.all('PartnerName').value == null || fm.all('PartnerName').value == ""){ fm.all('PartnerName').value = aResult[0][40]; } if(fm.all('PartnerIDType').value == null || fm.all('PartnerIDType').value == ""){ fm.all('PartnerIDType').value = aResult[0][41];//控股股东/实际控制人信息证件类型 showOneCodeName("idtype","PartnerIDType","PartnerIDTypeName"); } if(fm.all('PartnerIDNo').value == null || fm.all('PartnerIDNo').value == ""){ fm.all('PartnerIDNo').value = aResult[0][42]; } if(fm.all('PartnerIDTypeSD').value == null || fm.all('PartnerIDTypeSD').value == ""){ fm.all('PartnerIDTypeSD').value = aResult[0][43]; } if(fm.all('PartnerIDTypeED').value == null || fm.all('PartnerIDTypeED').value == ""){ fm.all('PartnerIDTypeED').value = aResult[0][44]; } if(fm.all('PartnerBirthday').value == null || fm.all('PartnerBirthday').value == ""){ fm.all('PartnerBirthday').value = aResult[0][45]; } if(fm.all('PartnerSex').value == null || fm.all('PartnerSex').value == ""){ fm.all('PartnerSex').value = aResult[0][46]; showOneCodeName("Sex","PartnerSex","PartnerSexName"); } if(fm.all('PartnerNativePlace').value == null || fm.all('PartnerNativePlace').value == ""){ fm.all('PartnerNativePlace').value = aResult[0][47]; showOneCodeName("NativePlace","PartnerNativePlace","PartnerNativePlaceName"); } if(fm.all('BnfAllName1').value == null|| fm.all('BnfAllName1').value == ""){ fm.all('BnfAllName1').value = aResult[0][48]; } if(fm.all('BnfAllIDType1').value == null || fm.all('BnfAllIDType1').value == ""){ fm.all('BnfAllIDType1').value = aResult[0][49];//受益所有人1证件类型 showOneCodeName("idtype","BnfAllIDType1","BnfAllIDType1Name"); } if(fm.all('BnfAllIDNo1').value == null || fm.all('BnfAllIDNo1').value == ""){ fm.all('BnfAllIDNo1').value = aResult[0][50]; } if(fm.all('BnfAllIDTypeSD1').value == null || fm.all('BnfAllIDTypeSD1').value == ""){ fm.all('BnfAllIDTypeSD1').value = aResult[0][51]; } if(fm.all('BnfAllIDTypeED1').value == null || fm.all('BnfAllIDTypeED1').value == ""){ fm.all('BnfAllIDTypeED1').value = aResult[0][52]; } if(fm.all('BnfAllBirthday1').value == null || fm.all('BnfAllBirthday1').value == ""){ fm.all('BnfAllBirthday1').value = aResult[0][53]; } if(fm.all('BnfAllSex1').value == null || fm.all('BnfAllSex1').value == ""){ fm.all('BnfAllSex1').value = aResult[0][54]; showOneCodeName("Sex","BnfAllSex1","BnfAllSex1Name"); } if(fm.all('BnfAllNativePlace1').value == null || fm.all('BnfAllNativePlace1').value == ""){ fm.all('BnfAllNativePlace1').value = aResult[0][55]; showOneCodeName("NativePlace","BnfAllNativePlace1","BnfAllNativePlace1Name"); } if(fm.all('Remark1').value == null || fm.all('Remark1').value == ""){ fm.all('Remark1').value = aResult[0][56]; } if(fm.all('BnfAllName2').value == null || fm.all('BnfAllName2').value == ""){ fm.all('BnfAllName2').value = aResult[0][57]; } if(fm.all('BnfAllIDType2').value == null || fm.all('BnfAllIDType2').value == ""){ fm.all('BnfAllIDType2').value = aResult[0][58];//受益所有人2证件类型 showOneCodeName("idtype","BnfAllIDType2","BnfAllIDType2Name"); } if(fm.all('BnfAllIDNo2').value == null || fm.all('BnfAllIDNo2').value == ""){ fm.all('BnfAllIDNo2').value = aResult[0][59]; } if(fm.all('BnfAllIDTypeSD2').value == null || fm.all('BnfAllIDTypeSD2').value == ""){ fm.all('BnfAllIDTypeSD2').value = aResult[0][60]; } if(fm.all('BnfAllIDTypeED2').value == null || fm.all('BnfAllIDTypeED2').value == ""){ fm.all('BnfAllIDTypeED2').value = aResult[0][61]; } if(fm.all('BnfAllBirthday2').value == null || fm.all('BnfAllBirthday2').value == ""){ fm.all('BnfAllBirthday2').value = aResult[0][62]; } if(fm.all('BnfAllSex2').value == null || fm.all('BnfAllSex2').value == ""){ fm.all('BnfAllSex2').value = aResult[0][63]; showOneCodeName("Sex","BnfAllSex2","BnfAllSex2Name"); } if(fm.all('BnfAllNativePlace2').value == null || fm.all('BnfAllNativePlace2').value == ""){ fm.all('BnfAllNativePlace2').value = aResult[0][64]; showOneCodeName("NativePlace","BnfAllNativePlace2","BnfAllNativePlace2Name"); } if(fm.all('Remark2').value == null || fm.all('Remark2').value == ""){ fm.all('Remark2').value = aResult[0][65]; } if(fm.all('BnfAllName3').value == null || fm.all('BnfAllName3').value == ""){ fm.all('BnfAllName3').value = aResult[0][66]; } if(fm.all('BnfAllIDType3').value == null || fm.all('BnfAllIDType3').value == ""){ fm.all('BnfAllIDType3').value = aResult[0][67];//受益所有人3证件类型 showOneCodeName("idtype","BnfAllIDType3","BnfAllIDType3Name"); } if(fm.all('BnfAllIDNo3').value == null || fm.all('BnfAllIDNo3').value == ""){ fm.all('BnfAllIDNo3').value = aResult[0][68]; } if(fm.all('BnfAllIDTypeSD3').value == null || fm.all('BnfAllIDTypeSD3').value == ""){ fm.all('BnfAllIDTypeSD3').value = aResult[0][69]; } if(fm.all('BnfAllIDTypeED3').value == null || fm.all('BnfAllIDTypeED3').value == ""){ fm.all('BnfAllIDTypeED3').value = aResult[0][70]; } if(fm.all('BnfAllBirthday3').value == null || fm.all('BnfAllBirthday3').value == ""){ fm.all('BnfAllBirthday3').value = aResult[0][71]; } if(fm.all('BnfAllSex3').value == null || fm.all('BnfAllSex3').value == ""){ fm.all('BnfAllSex3').value = aResult[0][72]; showOneCodeName("Sex","BnfAllSex3","BnfAllSex3Name"); } if(fm.all('BnfAllNativePlace3').value == null || fm.all('BnfAllNativePlace3').value == ""){ fm.all('BnfAllNativePlace3').value = aResult[0][73]; showOneCodeName("NativePlace","BnfAllNativePlace3","BnfAllNativePlace3Name"); } if(fm.all('Remark3').value == null || fm.all('Remark3').value == ""){ fm.all('Remark3').value = aResult[0][74]; } } } /** * 校验身份证以及返回出生日期和性别、年龄 */ function checkidtype(IDNo,IDType,InsuredBirthDay,InsuredGender,InsuredGenderName){ if(IDNo.value.length>0 && IDType.value=="") { i18nAlert("请先选择证件类型!", "LIS-00574"); return false; } if(IDType.value=="0"&&IDNo.value.length>0) { if((IDNo.value.length!=15) &&(IDNo.value.length!=18)){ i18nAlert("输入的身份证号位数错误", "LIS-00575"); IDNo.value=""; return false; } if(!checkIdCard(IDNo.value)) { IDNo.value=""; IDNo.className = "warn"; return false; }else { InsuredBirthDay.value =getBirthdatByIdNo(IDNo.value); InsuredGender.value = getSexByIDNo(IDNo.value); if(InsuredGender.value=='0'){ InsuredGenderName.value ='男'; }else if(InsuredGender.value=='1'){ InsuredGenderName.value ='女'; } var value = calAge(InsuredBirthDay.value); if(value<0 || value> 110){ i18nAlert("请确认出生日期是否正确,最大年龄110岁!", "LIS-01998"); return false; } } } return true; } function getAgeFromIdCard(idCard) { // 校验身份证号基本格式 if (!idCard || (idCard.length !== 15 && idCard.length !== 18)) { throw new Error('身份证号格式不正确'); } let birthDateStr; // 处理15位身份证 if (idCard.length === 15) { birthDateStr = '19' + idCard.substr(6, 6); // 15位身份证:6位出生年月(YYMMDD) } // 处理18位身份证 else { birthDateStr = idCard.substr(6, 8); // 18位身份证:8位出生年月日(YYYYMMDD) } // 解析出生日期 const birthYear = parseInt(birthDateStr.substr(0, 4)); const birthMonth = parseInt(birthDateStr.substr(4, 2)) - 1; // 月份从0开始 const birthDay = parseInt(birthDateStr.substr(6, 2)); const birthDate = new Date(birthYear, birthMonth, birthDay); const currentDate = new Date(); // 计算年龄 let age = currentDate.getFullYear() - birthDate.getFullYear(); // 处理未到生日的情况 const currentMonth = currentDate.getMonth(); const currentDay = currentDate.getDate(); if (currentMonth < birthMonth || (currentMonth === birthMonth && currentDay < birthDay)) { age--; } return age; } function caldateYear(tdate, tyear) { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_claim"); tSQLInfo.setResourceName("g_claim.LLClaimCommonQuerySql"); tSQLInfo.setSqlId("LLClaimCommonQuerySql72"); tSQLInfo.addSubPara(tdate); tSQLInfo.addSubPara(tyear); return easyExecSql(tSQLInfo.getString()); } function calEndDate(code, type) { if (fm.IDNoType.value == '0' && type == "IDNoType") { var tapage = getAgeFromIdCard(fm.IDNo.value); if (tapage < 16) { var tyear = caldateYear(fm.CorporationIDTypeSD.value, 5); fm.CorporationIDTypeED.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.CorporationIDTypeSD.value, 10); fm.CorporationIDTypeED.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.CorporationIDTypeSD.value, 20); fm.CorporationIDTypeED.value = tyear; } if (tapage >= 46) { fm.CorporationIDTypeED.value = '9999-01-01'; } } if (fm.SatrapIDType.value == '0' && type == "SatrapIDType") { var tapage = getAgeFromIdCard(fm.SatrapIDNo.value); if (tapage < 16) { var tyear = caldateYear(fm.SatrapIDTypeSD.value, 5); fm.SatrapIDTypeED.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.SatrapIDTypeSD.value, 10); fm.SatrapIDTypeED.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.SatrapIDTypeSD.value, 20); fm.SatrapIDTypeED.value = tyear; } if (tapage >= 46) { fm.SatrapIDTypeED.value = '9999-01-01'; } } if (fm.AuthHandlerIDType.value == '0' && type == "AuthHandlerIDType") { var tapage = getAgeFromIdCard(fm.AuthHandlerIDNo.value); if (tapage < 16) { var tyear = caldateYear(fm.AuthHandlerIDTypeSD.value, 5); fm.AuthHandlerIDTypeED.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.AuthHandlerIDTypeSD.value, 10); fm.AuthHandlerIDTypeED.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.AuthHandlerIDTypeSD.value, 20); fm.AuthHandlerIDTypeED.value = tyear; } if (tapage >= 46) { fm.AuthHandlerIDTypeED.value = '9999-01-01'; } } if (fm.PartnerIDType.value == '0' && type == "PartnerIDType") { var tapage = getAgeFromIdCard(fm.PartnerIDNo.value); if (tapage < 16) { var tyear = caldateYear(fm.PartnerIDTypeSD.value, 5); fm.PartnerIDTypeED.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.PartnerIDTypeSD.value, 10); fm.PartnerIDTypeED.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.PartnerIDTypeSD.value, 20); fm.PartnerIDTypeED.value = tyear; } if (tapage >= 46) { fm.PartnerIDTypeED.value = '9999-01-01'; } } if (fm.BnfAllIDType1.value == '0' && type == "BnfAllIDType1") { var tapage = getAgeFromIdCard(fm.BnfAllIDNo1.value); if (tapage < 16) { var tyear = caldateYear(fm.BnfAllIDTypeSD1.value, 5); fm.BnfAllIDTypeED1.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.BnfAllIDTypeSD1.value, 10); fm.BnfAllIDTypeED1.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.BnfAllIDTypeSD1.value, 20); fm.BnfAllIDTypeED1.value = tyear; } if (tapage >= 46) { fm.BnfAllIDTypeED1.value = '9999-01-01'; } } if (fm.BnfAllIDType2.value == '0' && type == "BnfAllIDType2") { var tapage = getAgeFromIdCard(fm.BnfAllIDNo2.value); if (tapage < 16) { var tyear = caldateYear(fm.BnfAllIDTypeSD2.value, 5); fm.BnfAllIDTypeED2.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.BnfAllIDTypeSD2.value, 10); fm.BnfAllIDTypeED2.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.BnfAllIDTypeSD2.value, 20); fm.BnfAllIDTypeED2.value = tyear; } if (tapage >= 46) { fm.BnfAllIDTypeED2.value = '9999-01-01'; } } if (fm.BnfAllIDType3.value == '0' && type == "BnfAllIDType3") { var tapage = getAgeFromIdCard(fm.BnfAllIDNo3.value); if (tapage < 16) { var tyear = caldateYear(fm.BnfAllIDTypeSD3.value, 5); fm.BnfAllIDTypeED3.value = tyear; } if (16 <= tapage && tapage <= 25) { var tyear = caldateYear(fm.BnfAllIDTypeSD3.value, 10); fm.BnfAllIDTypeED3.value = tyear; } if (26 <= tapage && tapage <= 45) { var tyear = caldateYear(fm.BnfAllIDTypeSD3.value, 20); fm.BnfAllIDTypeED3.value = tyear; } if (tapage >= 46) { fm.BnfAllIDTypeED3.value = '9999-01-01'; } } } function IDCheck(){ if (fm.IDNoType.value == '0') { if (!validateCertificateDateByidCard(fm.IDNo.value, fm.CorporationIDTypeSD.value, fm.CorporationIDTypeED.value)) { const birthDate = getBirthdayFromIdCard(fm.IDNo.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("法人年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("法人年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("法人年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.SatrapIDType.value == '0') { if (!validateCertificateDateByidCard(fm.SatrapIDNo.value, fm.SatrapIDTypeSD.value, fm.SatrapIDTypeED.value)) { const birthDate = getBirthdayFromIdCard(fm.SatrapIDNo.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("负责人年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("负责人年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("负责人年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.AuthHandlerIDType.value == '0') { if (!validateCertificateDateByidCard(fm.AuthHandlerIDNo.value, fm.AuthHandlerIDTypeSD.value, fm.AuthHandlerIDTypeED.value)) { const birthDate = getBirthdayFromIdCard(fm.AuthHandlerIDNo.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("授权经办人年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("授权经办人年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("授权经办人年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.PartnerIDType.value == '0') { if (!validateCertificateDateByidCard(fm.PartnerIDNo.value, fm.PartnerIDTypeSD.value, fm.PartnerIDTypeED.value)) { const birthDate = getBirthdayFromIdCard(fm.PartnerIDNo.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("控股股东/实际控制人年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("控股股东/实际控制人年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("控股股东/实际控制人年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.BnfAllIDType1.value == '0') { if (!validateCertificateDateByidCard(fm.BnfAllIDNo1.value, fm.BnfAllIDTypeSD1.value, fm.BnfAllIDTypeED1.value)) { const birthDate = getBirthdayFromIdCard(fm.BnfAllIDNo1.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("受益所有人1年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("受益所有人1年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("受益所有人1年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.BnfAllIDType2.value == '0') { if (!validateCertificateDateByidCard(fm.BnfAllIDNo2.value, fm.BnfAllIDTypeSD2.value, fm.BnfAllIDTypeED2.value)) { const birthDate = getBirthdayFromIdCard(fm.BnfAllIDNo2.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("受益所有人2年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("受益所有人2年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("受益所有人2年龄范围为26到45周岁,止期年-起期年=20") return false; } } } if (fm.BnfAllIDType3.value == '0') { if (!validateCertificateDateByidCard(fm.BnfAllIDNo3.value, fm.BnfAllIDTypeSD3.value, fm.BnfAllIDTypeED3.value)) { const birthDate = getBirthdayFromIdCard(fm.BnfAllIDNo3.value); const today = new Date(); let age = today.getFullYear() - birthDate.getFullYear() ; const monthDiff = today.getMonth() - birthDate.getMonth(); if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) { age--; } if (age < 16) { alert("受益所有人3年龄范围为0到15周岁,止期年-起期年=5") return false; } if (16 <= age && age <= 25) { alert("受益所有人3年龄范围为16到25周岁,止期年-起期年=10") return false; } if (26 <= age && age <= 45) { alert("受益所有人3年龄范围为26到45周岁,止期年-起期年=20") return false; } } } return true; } /** * 保存 */ function SaveForm(){ if(!verifyForm("fm")){ return false; } checkidtype(fm.IDNo,fm.IDNoType,fm.CorporationBirthday,fm.CorporationSex,fm.CorporationSexName); checkidtype(fm.SatrapIDNo,fm.SatrapIDType,fm.SatrapBirthday,fm.SatrapSex,fm.SatrapSexName); checkidtype(fm.AuthHandlerIDNo,fm.AuthHandlerIDType,fm.AuthHandlerBirthday,fm.AuthHandlerSex,fm.AuthHandlerSexName); checkidtype(fm.PartnerIDNo,fm.PartnerIDType,fm.PartnerBirthday,fm.PartnerSex,fm.PartnerSexName); checkidtype(fm.BnfAllIDNo1,fm.BnfAllIDType1,fm.BnfAllBirthday1,fm.BnfAllSex1,fm.BnfAllSex1Name); checkidtype(fm.BnfAllIDNo2,fm.BnfAllIDType2,fm.BnfAllBirthday2,fm.BnfAllSex2,fm.BnfAllSex2Name); checkidtype(fm.BnfAllIDNo3,fm.BnfAllIDType3,fm.BnfAllBirthday3,fm.BnfAllSex3,fm.BnfAllSex3Name); //毕录项不能为空 if(fm.all('GrpName').value == null || fm.all('GrpName').value == ""){ alert("投保单位名称不能为空!"); return false; } if(fm.all('GrpType').value == null || fm.all('GrpType').value == ""){ alert("投保人类型不能为空!"); return false; } if(fm.all('GrpNature').value == null || fm.all('GrpNature').value == ""){ alert("单位性质分类不能为空!"); return false; } if(fm.all('GrpNatureClass').value == null || fm.all('GrpNatureClass').value == ""){ alert("单位性质细分不能为空!"); return false; } if(fm.all('CorpLicence').value == null || fm.all('CorpLicence').value == ""){ alert("企业法人营业执照不能为空!"); return false; } if(fm.all('CorpLicenceSD').value == null || fm.all('CorpLicenceSD').value == ""){ alert("企业法人营业执照起期不能为空!"); return false; } if(fm.all('CorpLicenceED').value == null || fm.all('CorpLicenceED').value == ""){ alert("企业法人营业执照止期不能为空!"); return false; } if(fm.all('TaxRegNo').value == null || fm.all('TaxRegNo').value == ""){ alert("税务登记证税号(国税)/统一社会信用代码不能为空!"); return false; } if(fm.all('TaxRegNoSD').value == null || fm.all('TaxRegNoSD').value == ""){ alert("税务登记证税号(国税)/统一社会信用代码起期不能为空!"); return false; } if(fm.all('TaxRegNoED').value == null || fm.all('TaxRegNoED').value == ""){ alert("税务登记证税号(国税)/统一社会信用代码止期不能为空!"); return false; } // fm.all('RgtMoney').value if (fm.all('RgtMoney').value != null && fm.all('RgtMoney').value != ""){ if (fm.all('RgtMoney').value >= 0 ) { if (!checkDecimalFormat(fm.all('RgtMoney').value,30,2)){ // alert("注册资本整数位不超过30位,小数位不超过2位"); alert("注册资本的小数位不能超过2位"); return false; } } else { alert("注册资本只能为大于等于0的数"); return false; } } // var myreg = /^[a-zA-Z0-9]*$/; // if (!myreg.test(fm.TaxRegNo.value) || // !(fm.TaxRegNo.value.length == 18)) { // alert("税务登记证税号(国税)/统一社会信用代码不符合规则,应由字母数字组成,位数为18位!"); // return false; // } // tSQLInfo = new SqlClass(); // tSQLInfo.setResourceName("g_app.LCContSql"); // tSQLInfo.setModule("grp_common"); // tSQLInfo.setSqlId("LCContSql170"); // tSQLInfo.addSubPara(fm.TaxRegNo.value); // var tPropEntry = easyExecSql(tSQLInfo.getString(), 1, 0, 1); // if (tPropEntry==null) { // alert("税务登记证税号(国税)/统一社会信用代码前两位应以11,12,13,19,21,29,31,32,33,34,35,39,41,49,51,52,53,59,61,62,69,71,72,79,81,89,91,92,93,A1,A9,N1,N2,N3,N9,Y1,54,55,37,G1 之一开头!"); // return false; // } if(fm.all('OrganCode').value == null || fm.all('OrganCode').value == ""){ alert("组织机构代码不能为空!"); return false; } if(fm.all('OrganCodeSD').value == null || fm.all('OrganCodeSD').value == ""){ alert("组织机构代码起期不能为空!"); return false; } if(fm.all('OrganCodeED').value == null || fm.all('OrganCodeED').value == ""){ alert("组织机构代码止期不能为空!"); return false; } if(fm.all('Corporation').value == null || fm.all('Corporation').value == ""){ alert("法定代表人不能为空!"); return false; } if(fm.all('IDNoType').value == null || fm.all('IDNoType').value == ""){ alert("法定代表人证件类型不能为空!"); return false; } if(fm.all('IDNo').value == null || fm.all('IDNo').value == ""){ alert("法定代表人证件号码不能为空!"); return false; } if(fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value == ""){ alert("法人证件起期不能为空!"); return false; } if(fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value == ""){ alert("法人证件止期不能为空!"); return false; } if(fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value == ""){ alert("法人出生日期不能为空!"); return false; } if(fm.all('CorporationSex').value == null || fm.all('CorporationSex').value == ""){ alert("法人性别不能为空!"); return false; } if(fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value == ""){ alert("法人国籍不能为空!"); return false; } if(fm.all('Satrap').value == null || fm.all('Satrap').value == ""){ alert("负责人不能为空!"); return false; } if(fm.all('SatrapIDType').value == null || fm.all('SatrapIDType').value == ""){ alert("负责人证件类型不能为空!"); return false; } if(fm.all('SatrapIDNo').value == null || fm.all('SatrapIDNo').value == ""){ alert("负责人证件号码不能为空!"); return false; } if(fm.all('SatrapIDTypeSD').value == null || fm.all('SatrapIDTypeSD').value == ""){ alert("负责人证件起期不能为空!"); return false; } if(fm.all('SatrapIDTypeED').value == null || fm.all('SatrapIDTypeED').value == ""){ alert("负责人证件止期不能为空!"); return false; } if(fm.all('SatrapBirthday').value == null || fm.all('SatrapBirthday').value == ""){ alert("负责人出生日期不能为空!"); return false; } if(fm.all('SatrapSex').value == null || fm.all('SatrapSex').value == ""){ alert("负责人性别不能为空!"); return false; } if(fm.all('SatrapNativePlace').value == null || fm.all('SatrapNativePlace').value == ""){ alert("负责人国籍不能为空!"); return false; } if(fm.all('AuthHandler').value == null || fm.all('AuthHandler').value == ""){ alert("授权经办人不能为空!"); return false; } if(fm.all('AuthHandlerIDType').value == null || fm.all('AuthHandlerIDType').value == ""){ alert("授权经办人证件类型不能为空!"); return false; } if(fm.all('AuthHandlerIDNo').value == null || fm.all('AuthHandlerIDNo').value == ""){ alert("授权经办人证件号码不能为空!"); return false; } if(fm.all('AuthHandlerIDTypeSD').value == null || fm.all('AuthHandlerIDTypeSD').value == ""){ alert("授权经办人证件起期不能为空!"); return false; } if(fm.all('AuthHandlerIDTypeED').value == null || fm.all('AuthHandlerIDTypeED').value == ""){ alert("授权经办人证件止期不能为空!"); return false; } if(fm.all('AuthHandlerBirthday').value == null || fm.all('AuthHandlerBirthday').value == ""){ alert("授权经办人出生日期不能为空!"); return false; } if(fm.all('AuthHandlerSex').value == null || fm.all('AuthHandlerSex').value == ""){ alert("授权经办人性别不能为空!"); return false; } if(fm.all('AuthHandlerNativePlace').value == null || fm.all('AuthHandlerNativePlace').value == ""){ alert("授权经办人国籍不能为空!"); return false; } //添加时间日期的校验 if(fm.CorpLicenceSD.value != null && fm.CorpLicenceSD.value != ""){ if(isDate(fm.CorpLicenceSD.value)== false){ alert("企业法人营业执照起期日期格式有误!"); return false; } } if(fm.CorpLicenceED.value != null && fm.CorpLicenceED.value != ""){ if(isDate(fm.CorpLicenceED.value)== false){ alert("企业法人营业执照止期日期格式有误!"); return false; } } if(fm.TaxRegNoSD.value != null && fm.TaxRegNoSD.value != ""){ if(isDate(fm.TaxRegNoSD.value)== false){ alert("税务登记证税号(国税)/统一社会信用代码起期日期格式有误!"); return false; } } if(fm.TaxRegNoED.value != null && fm.TaxRegNoED.value != ""){ if(isDate(fm.TaxRegNoED.value)== false){ alert("税务登记证税号(国税)/统一社会信用代码止期日期格式有误!"); return false; } } if(fm.OrganCodeSD.value != null && fm.OrganCodeSD.value != ""){ if(isDate(fm.OrganCodeSD.value)== false){ alert("组织机构代码起期日期格式有误!"); return false; } } if(fm.OrganCodeED.value != null && fm.OrganCodeED.value != ""){ if(isDate(fm.OrganCodeED.value)== false){ alert("组织机构代码止期日期格式有误!"); return false; } } if(fm.CorporationIDTypeSD.value != null && fm.CorporationIDTypeSD.value != ""){ if(isDate(fm.CorporationIDTypeSD.value)== false){ alert("法人证件起期日期格式有误!"); return false; } } if(fm.CorporationIDTypeED.value != null && fm.CorporationIDTypeED.value != ""){ if(isDate(fm.CorporationIDTypeED.value)== false){ alert("法人证件止期日期格式有误!"); return false; } } if(fm.CorporationBirthday.value != null && fm.CorporationBirthday.value != ""){ if(isDate(fm.CorporationBirthday.value)== false){ alert("法人出生日期格式有误!"); return false; } } if(fm.SatrapIDTypeSD.value != null && fm.SatrapIDTypeSD.value != ""){ if(isDate(fm.SatrapIDTypeSD.value)== false){ alert("负责人证件起期日期格式有误!"); return false; } } if(fm.SatrapIDTypeED.value != null && fm.SatrapIDTypeED.value != ""){ if(isDate(fm.SatrapIDTypeED.value)== false){ alert("负责人证件止期日期格式有误!"); return false; } } if(fm.SatrapBirthday.value != null && fm.SatrapBirthday.value != ""){ if(isDate(fm.SatrapBirthday.value)== false){ alert("负责人出生日期格式有误!"); return false; } } if(fm.AuthHandlerIDTypeSD.value != null && fm.AuthHandlerIDTypeSD.value != ""){ if(isDate(fm.AuthHandlerIDTypeSD.value)== false){ alert("授权经办人证件起期日期格式有误!"); return false; } } if(fm.AuthHandlerIDTypeED.value != null && fm.AuthHandlerIDTypeED.value != ""){ if(isDate(fm.AuthHandlerIDTypeED.value)== false ){ alert("授权经办人证件止期日期格式有误!"); return false; } } if(fm.AuthHandlerBirthday.value != null && fm.AuthHandlerBirthday.value != ""){ if(isDate(fm.AuthHandlerBirthday.value)== false){ alert("授权经办人出生日期格式有误!"); return false; } } if(fm.PartnerIDTypeSD.value != null && fm.PartnerIDTypeSD.value != ""){ if(isDate(fm.PartnerIDTypeSD.value)== false){ alert("控股股东/实际控制人证件起期日期格式有误!"); return false; } } if(fm.PartnerIDTypeED.value != null && fm.PartnerIDTypeED.value != ""){ if(isDate(fm.PartnerIDTypeED.value)== false){ alert("控股股东/实际控制人证件止期日期格式有误!"); return false; } } if(fm.PartnerBirthday.value != null && fm.PartnerBirthday.value != ""){ if(isDate(fm.PartnerBirthday.value)== false){ alert("控股股东/实际控制人出生日期格式有误!"); return false; } } if(fm.BnfAllIDTypeSD1.value != null && fm.BnfAllIDTypeSD1.value != ""){ if(isDate(fm.BnfAllIDTypeSD1.value)== false){ alert("受益所有人1证件起期日期格式有误!"); return false; } } if(fm.BnfAllIDTypeED1.value != null && fm.BnfAllIDTypeED1.value != ""){ if(isDate(fm.BnfAllIDTypeED1.value)== false ){ alert("受益所有人1证件止期日期格式有误!"); return false; } } if(fm.BnfAllBirthday1.value != null && fm.BnfAllBirthday1.value != ""){ if(isDate(fm.BnfAllBirthday1.value)== false){ alert("受益所有人1出生日期格式有误!"); return false; } } if(fm.BnfAllIDTypeSD2.value != null && fm.BnfAllIDTypeSD2.value != ""){ if(isDate(fm.BnfAllIDTypeSD2.value)== false){ alert("受益所有人2证件起期日期格式有误!"); return false; } } if(fm.BnfAllIDTypeED2.value != null && fm.BnfAllIDTypeED2.value != ""){ if(isDate(fm.BnfAllIDTypeED2.value)== false){ alert("受益所有人2证件止期日期格式有误!"); return false; } } if(fm.BnfAllBirthday2.value != null && fm.BnfAllBirthday2.value != ""){ if(isDate(fm.BnfAllBirthday2.value)== false){ alert("受益所有人2出生日期格式有误!"); return false; } } if(fm.BnfAllIDTypeSD3.value != null && fm.BnfAllIDTypeSD3.value != ""){ if(isDate(fm.BnfAllIDTypeSD3.value)== false){ alert("受益所有人3证件起期日期格式有误!"); return false; } } if(fm.BnfAllIDTypeED3.value != null && fm.BnfAllIDTypeED3.value != ""){ if(isDate(fm.BnfAllIDTypeED3.value)== false){ alert("受益所有人3证件止期日期格式有误!"); return false; } } if(fm.BnfAllBirthday3.value != null && fm.BnfAllBirthday3.value != ""){ if(isDate(fm.BnfAllBirthday3.value)== false){ alert("受益所有人3出生日期格式有误!"); return false; } } //投保人类型校验 if(fm.all('GrpType').value == "2"){ if(fm.all('BnfAllName1').value == null || fm.all('BnfAllName1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1不能为空!"); return false; } if(fm.all('BnfAllIDType1').value == null || fm.all('BnfAllIDType1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1证件类型不能为空!"); return false; } if(fm.all('BnfAllIDNo1').value == null || fm.all('BnfAllIDNo1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1证件号码不能为空!"); return false; } if(fm.all('BnfAllIDTypeSD1').value == null || fm.all('BnfAllIDTypeSD1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1证件起期不能为空!"); return false; } if(fm.all('BnfAllIDTypeED1').value == null || fm.all('BnfAllIDTypeED1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1证件止期不能为空!"); return false; } if(fm.all('BnfAllBirthday1').value == null || fm.all('BnfAllBirthday1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1出生日期不能为空!"); return false; } if(fm.all('BnfAllSex1').value == null || fm.all('BnfAllSex1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1性别不能为空!"); return false; } if(fm.all('BnfAllNativePlace1').value == null || fm.all('BnfAllNativePlace1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,受益所有人1国籍不能为空!"); return false; } if(fm.all('Remark1').value == null || fm.all('Remark1').value == ""){ alert("投保人类型为【"+fm.all('GrpType').value+"-"+fm.all('GrpTypeName').value+"】时,备注1不能为空!"); return false; } } //单位性质细分校验 if(fm.all('GrpNatureClass').value == "04" || fm.all('GrpNatureClass').value == "05" || fm.all('GrpNatureClass').value == "10" ){ //控股股东/实际控制人信息五要素不能为空 if(fm.all('PartnerName').value == null || fm.all('PartnerName').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人不能为空!"); return false; } if(fm.all('PartnerIDType').value == null || fm.all('PartnerIDType').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人证件类型不能为空!"); return false; } if(fm.all('PartnerIDNo').value == null || fm.all('PartnerIDNo').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人证件号码不能为空!"); return false; } if(fm.all('PartnerIDTypeSD').value == null || fm.all('PartnerIDTypeSD').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人证件起期不能为空!"); return false; } if(fm.all('PartnerIDTypeED').value == null || fm.all('PartnerIDTypeED').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人证件止期不能为空!"); return false; } if(fm.all('PartnerBirthday').value == null || fm.all('PartnerBirthday').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人出生日期不能为空!"); return false; } if(fm.all('PartnerSex').value == null || fm.all('PartnerSex').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人性别不能为空!"); return false; } if(fm.all('PartnerNativePlace').value == null || fm.all('PartnerNativePlace').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人国籍不能为空!"); return false; } //受益所有人1五要素不能为空 if(fm.all('BnfAllName1').value == null || fm.all('BnfAllName1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1不能为空!"); return false; } if(fm.all('BnfAllIDType1').value == null || fm.all('BnfAllIDType1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件类型不能为空!"); return false; } if(fm.all('BnfAllIDNo1').value == null || fm.all('BnfAllIDNo1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件号码不能为空!"); return false; } if(fm.all('BnfAllIDTypeSD1').value == null || fm.all('BnfAllIDTypeSD1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件起期不能为空!"); return false; } if(fm.all('BnfAllIDTypeED1').value == null || fm.all('BnfAllIDTypeED1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件止期不能为空!"); return false; } if(fm.all('BnfAllBirthday1').value == null || fm.all('BnfAllBirthday1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1出生日期不能为空!"); return false; } if(fm.all('BnfAllSex1').value == null || fm.all('BnfAllSex1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1性别不能为空!"); return false; } if(fm.all('BnfAllNativePlace1').value == null || fm.all('BnfAllNativePlace1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1国籍不能为空!"); return false; } } if(fm.all('GrpNatureClass').value == "07" || fm.all('GrpNatureClass').value == "08" ||fm.all('GrpNatureClass').value == "09" ||fm.all('GrpNatureClass').value == "11"){ if(fm.all('RgtAddress').value == null || fm.all('RgtAddress').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,注册地址不能为空!"); return false; } if(fm.all('RgtMoney').value == null || fm.all('RgtMoney').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,注册资本不能为空!"); return false; } if(fm.all('BusinessRan').value == null || fm.all('BusinessRan').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,经营范围不能为空!"); return false; } //控股股东/实际控制人信息五要素不能为空 if(fm.all('PartnerName').value == null || fm.all('PartnerName').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人信息不能为空!"); return false; } if(fm.all('PartnerIDType').value == null || fm.all('PartnerIDType').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人信息证件类型不能为空!"); return false; } if(fm.all('PartnerIDNo').value == null || fm.all('PartnerIDNo').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人信息证件号码不能为空!"); return false; } if(fm.all('PartnerIDTypeSD').value == null || fm.all('PartnerIDTypeSD').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人信息证件起期不能为空!"); return false; } if(fm.all('PartnerIDTypeED').value == null || fm.all('PartnerIDTypeED').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人信息证件止期不能为空!"); return false; } if(fm.all('PartnerBirthday').value == null || fm.all('PartnerBirthday').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人出生日期不能为空!"); return false; } if(fm.all('PartnerSex').value == null || fm.all('PartnerSex').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人性别不能为空!"); return false; } if(fm.all('PartnerNativePlace').value == null || fm.all('PartnerNativePlace').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,控股股东/实际控制人国籍不能为空!"); return false; } //受益所有人1五要素不能为空 if(fm.all('BnfAllName1').value == null || fm.all('BnfAllName1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1不能为空!"); return false; } if(fm.all('BnfAllIDType1').value == null || fm.all('BnfAllIDType1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件类型不能为空!"); return false; } if(fm.all('BnfAllIDNo1').value == null || fm.all('BnfAllIDNo1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件号码不能为空!"); return false; } if(fm.all('BnfAllIDTypeSD1').value == null || fm.all('BnfAllIDTypeSD1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件起期不能为空!"); return false; } if(fm.all('BnfAllIDTypeED1').value == null || fm.all('BnfAllIDTypeED1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1证件止期不能为空!"); return false; } if(fm.all('BnfAllBirthday1').value == null || fm.all('BnfAllBirthday1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1出生日期不能为空!"); return false; } if(fm.all('BnfAllSex1').value == null || fm.all('BnfAllSex1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1性别不能为空!"); return false; } if(fm.all('BnfAllNativePlace1').value == null || fm.all('BnfAllNativePlace1').value == ""){ alert("单位性质细分类型为【"+fm.all('GrpNatureClass').value+"-"+fm.all('GrpNatureClassName').value+"】时,受益所有人1国籍不能为空!"); return false; } } //页面上已录入证件有效起期与止期的校验 var tCurrentDate = getCurrentDate();//系统当前日期 if(new Date(fm.CorporationBirthday.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("法人出生日期应小于当前系统时间!"); return false; } if(new Date(fm.SatrapBirthday.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("负责人出生日期应小于当前系统时间!"); return false; } if(new Date(fm.AuthHandlerBirthday.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("授权经办人出生日期应小于当前系统时间!"); return false; } if(new Date(fm.PartnerBirthday.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("控股股东/实际控制人出生日期应小于当前系统时间!"); return false; } if(new Date(fm.BnfAllBirthday1.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人1出生日期应小于当前系统时间!"); return false; } if(new Date(fm.BnfAllBirthday2.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人2出生日期应小于当前系统时间!"); return false; } if(new Date(fm.BnfAllBirthday3.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人3出生日期应小于当前系统时间!"); return false; } if(new Date(fm.CorpLicenceSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.CorpLicenceSD.value.replace(/\-/g,"\/")) > new Date(fm.CorpLicenceED.value.replace(/\-/g,"\/")) ){ alert("企业法人营业执照起期应小于当前系统时间,且小于企业法人营业执照止期!"); return false; } if( new Date(fm.CorpLicenceSD.value.replace(/\-/g,"\/")) > new Date(fm.CorpLicenceED.value.replace(/\-/g,"\/")) || new Date(fm.CorpLicenceED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("企业法人营业执照止期应大于企业法人营业执照起期,且大于当前系统时间!"); return false; } if(new Date(fm.TaxRegNoSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.TaxRegNoSD.value.replace(/\-/g,"\/")) > new Date(fm.TaxRegNoED.value.replace(/\-/g,"\/")) ){ alert("税务登记证税号(国税)/统一社会信用代码起期应小于当前系统时间,且小于税务登记证税号(国税)/统一社会信用代码止期!"); return false; } if( new Date(fm.TaxRegNoSD.value.replace(/\-/g,"\/")) > new Date(fm.TaxRegNoED.value.replace(/\-/g,"\/")) || new Date(fm.TaxRegNoED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("税务登记证税号(国税)/统一社会信用代码止期应大于税务登记证税号(国税)/统一社会信用代码起期,且大于当前系统时间!"); return false; } if(new Date(fm.OrganCodeSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.OrganCodeSD.value.replace(/\-/g,"\/")) > new Date(fm.OrganCodeED.value.replace(/\-/g,"\/")) ){ alert("组织机构代码起期应小于当前系统时间,且小于组织机构代码止期!"); return false; } if( new Date(fm.OrganCodeSD.value.replace(/\-/g,"\/")) > new Date(fm.OrganCodeED.value.replace(/\-/g,"\/")) || new Date(fm.OrganCodeED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("组织机构代码止期应大于组织机构代码起期,且大于当前系统时间!"); return false; } if(new Date(fm.CorporationIDTypeSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.CorporationIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.CorporationIDTypeED.value.replace(/\-/g,"\/")) ){ alert("法人证件起期应小于当前系统时间,且小于法人证件止期!"); return false; } if( new Date(fm.CorporationIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.CorporationIDTypeED.value.replace(/\-/g,"\/")) || new Date(fm.CorporationIDTypeED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("法人证件止期应大于法人证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.SatrapIDTypeSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.SatrapIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.SatrapIDTypeED.value.replace(/\-/g,"\/")) ){ alert("负责人证件起期应小于当前系统时间,且小于负责人证件止期!"); return false; } if( new Date(fm.SatrapIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.SatrapIDTypeED.value.replace(/\-/g,"\/")) || new Date(fm.SatrapIDTypeED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("负责人证件止期应大于负责人证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.AuthHandlerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.AuthHandlerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.AuthHandlerIDTypeED.value.replace(/\-/g,"\/")) ){ alert("授权经办人证件起期应小于当前系统时间,且小于授权经办人证件止期!"); return false; } if( new Date(fm.AuthHandlerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.AuthHandlerIDTypeED.value.replace(/\-/g,"\/")) || new Date(fm.AuthHandlerIDTypeED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("授权经办人证件止期应大于授权经办人证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.PartnerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.PartnerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.PartnerIDTypeED.value.replace(/\-/g,"\/")) ){ alert("控股股东/实际控制人证件起期应小于当前系统时间,且小于控股股东/实际控制人信息证件止期!"); return false; } if( new Date(fm.PartnerIDTypeSD.value.replace(/\-/g,"\/")) > new Date(fm.PartnerIDTypeED.value.replace(/\-/g,"\/")) || new Date(fm.PartnerIDTypeED.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("控股股东/实际控制人证件止期应大于控股股东/实际控制人信息证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.BnfAllIDTypeSD1.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeSD1.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED1.value.replace(/\-/g,"\/")) ){ alert("受益所有人1证件起期应小于当前系统时间,且小于受益所有人1证件止期!"); return false; } if( new Date(fm.BnfAllIDTypeSD1.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED1.value.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeED1.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人1证件止期应大于受益所有人1证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.BnfAllIDTypeSD2.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeSD2.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED2.value.replace(/\-/g,"\/")) ){ alert("受益所有人2证件起期应小于当前系统时间,且小于受益所有人2证件止期!"); return false; } if( new Date(fm.BnfAllIDTypeSD2.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED2.value.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeED2.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人2证件止期应大于受益所有人2证件起期,且大于当前系统时间!"); return false; } if(new Date(fm.BnfAllIDTypeSD3.value.replace(/\-/g,"\/")) > new Date(tCurrentDate.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeSD3.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED3.value.replace(/\-/g,"\/")) ){ alert("受益所有人3证件起期应小于当前系统时间,且小于受益所有人3证件止期!"); return false; } if( new Date(fm.BnfAllIDTypeSD3.value.replace(/\-/g,"\/")) > new Date(fm.BnfAllIDTypeED3.value.replace(/\-/g,"\/")) || new Date(fm.BnfAllIDTypeED3.value.replace(/\-/g,"\/")) < new Date(tCurrentDate.replace(/\-/g,"\/")) ){ alert("受益所有人3证件止期应大于受益所有人3证件起期,且大于当前系统时间!"); return false; } //受益所有人1/2/3除备注外其他5项中已录入了任意几项,受益所有人处的备注为必录项 if(((fm.all('BnfAllName1').value != null && fm.all('BnfAllName1').value != "" ) || (fm.all('BnfAllIDType1').value != null && fm.all('BnfAllIDType1').value != "") || (fm.all('BnfAllIDNo1').value != null && fm.all('BnfAllIDNo1').value != "") || (fm.all('BnfAllIDTypeSD1').value != null && fm.all('BnfAllIDTypeSD1').value != "") || (fm.all('BnfAllIDTypeED1').value != null && fm.all('BnfAllIDTypeED1').value != "") || (fm.all('BnfAllBirthday1').value != null && fm.all('BnfAllBirthday1').value != "") || (fm.all('BnfAllSex1').value != null && fm.all('BnfAllSex1').value != "") || (fm.all('BnfAllNativePlace1').value != null && fm.all('BnfAllNativePlace1').value != ""))){ if(fm.all('Remark1').value == null || fm.all('Remark1').value == ""){ alert("受益所有人1信息除备注外已录入了任意几项,受益所有人1处的备注不能为空"); return false; } } if(((fm.all('BnfAllName2').value != null && fm.all('BnfAllName2').value != "" ) || (fm.all('BnfAllIDType2').value != null && fm.all('BnfAllIDType2').value != "") || (fm.all('BnfAllIDNo2').value != null && fm.all('BnfAllIDNo2').value != "") || (fm.all('BnfAllIDTypeSD2').value != null && fm.all('BnfAllIDTypeSD2').value != "") || (fm.all('BnfAllIDTypeED2').value != null && fm.all('BnfAllIDTypeED2').value != "") || (fm.all('BnfAllBirthday2').value != null && fm.all('BnfAllBirthday2').value != "") || (fm.all('BnfAllSex2').value != null && fm.all('BnfAllSex2').value != "") || (fm.all('BnfAllNativePlace2').value != null && fm.all('BnfAllNativePlace2').value != ""))){ if(( fm.all('Remark2').value == null || fm.all('Remark2').value == "" )){ alert("受益所有人2信息除备注外已录入了任意几项,受益所有人2处的备注不能为空"); return false; } } if(((fm.all('BnfAllName3').value != null && fm.all('BnfAllName3').value != "") || (fm.all('BnfAllIDType3').value != null && fm.all('BnfAllIDType3').value != "") || (fm.all('BnfAllIDNo3').value != null && fm.all('BnfAllIDNo3').value != "") || (fm.all('BnfAllIDTypeSD3').value != null && fm.all('BnfAllIDTypeSD3').value != "") || (fm.all('BnfAllIDTypeED3').value != null && fm.all('BnfAllIDTypeED3').value != "") || (fm.all('BnfAllBirthday3').value != null && fm.all('BnfAllBirthday3').value != "") || (fm.all('BnfAllSex3').value != null && fm.all('BnfAllSex3').value != "") || (fm.all('BnfAllNativePlace3').value != null && fm.all('BnfAllNativePlace3').value != ""))){ if(fm.all('Remark3').value == null || fm.all('Remark3').value == ""){ alert("受益所有人3信息除备注外已录入了任意几项,受益所有人3处的备注不能为空"); return false; } } //身份证证件时间校验 if (!IDCheck()) { return false; } fmAction = "INSERT"; fm.all('fmAction').value = fmAction; var showStr = "正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面"; var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + showStr; // showInfo = window.showModelessDialog(urlStr, window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=350; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); // fm.action="../bq/AntiMoneyLauICustInfoSave.jsp?OtherNo="+OtherNo+"&rGrpContNo="+rGrpContNo+""; fm.action = "../API/grp_nb/g_app/AntiMoneyLauICustInfoSave/INSERT?Operate=INSERT&OtherNo="+OtherNo+"&rGrpContNo="+rGrpContNo; submitForm(fm,"INSERT",true); // fm.submit(); //提交 } function checkDecimalFormat(cValue, cLen1, cLen2) { if (cValue == '' || cValue == null) {//为空, return true; } var tLen = ("" + cValue + "").length; var tLen1 = ("" + cValue + "").indexOf("."); var tLen2 = 0; if (tLen1 == -1) { tLen1 = tLen; } else { tLen2 = tLen - tLen1 - 1; } if (Number(tLen1) > Number(cLen1)) { return false; } if (Number(tLen2) > Number(cLen2)) { return false; } return true; } function submitForm(obj, tOperate, dynamic) { // submitFunc(); mOperate = tOperate; // obj.submit(); if(dynamic != null && dynamic === true){ ajaxSubmit(obj); } else { ajaxSubmit2(obj); } } /** * 确认 */ function Confirm(){ // var strComfimQuery = "select 1 from LDAntiMoneyLauICustInfo a where a.ComfimFlag='0' and a.otherno='"+OtherNo+"'"; tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti5"); tSQLInfo.addSubPara(OtherNo); var strComfimQuery = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (strComfimQuery == null || strComfimQuery == "") { alert("未进行保存操作,请点击保存后重试!"); return false; } fmAction = "COMFIM"; fm.all('fmAction').value = fmAction; var showStr=i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525"); var urlStr="../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr); //showInfo=window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); // fm.action="../bq/AntiMoneyLauICustInfoSave.jsp?OtherNo="+OtherNo+""; fm.action = "../API/grp_nb/g_app/AntiMoneyLauICustInfoSave/CONFIRM?Operate=INSERT&OtherNo="+OtherNo; submitForm(fm,"INSERT",true); } /** * 点击【确认】按钮确认成功后,【保存】和【确认】按钮自动置灰 */ function ConfimChickQuery(){ // var rConfirmFlag =easyExecSql("select 1 from LDAntiMoneyLauICustInfo a where a.ComfimFlag = '1' and a.otherno='"+OtherNo+"'"); tSQLInfo = new SqlClass(); tSQLInfo.setResourceName("g_app.LCContSql"); tSQLInfo.setModule("grp_common"); tSQLInfo.setSqlId("QueryAnti4"); tSQLInfo.addSubPara(OtherNo); var rConfirmFlag = easyExecSql(tSQLInfo.getString(), 1, 0, 1); if (rConfirmFlag!=null&&rConfirmFlag[0][0] =="1") { fm.all('SaveBtn').disabled = true;//保存按钮置灰 fm.all('ConfimBtn').disabled = true;//确认按钮置灰 } } function afterSubmit(FlagStr, content) { showInfo.close(); if (FlagStr == "Fail") { var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content="+ encodeURIComponent(content); //showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); showInfo.focus(); } else { var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content="+ encodeURIComponent(content); //showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px"); var name='提示'; //网页名称,可为空; var iWidth=550; //弹出窗口的宽度; var iHeight=250; //弹出窗口的高度; var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置 var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置 showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false); ConfimChickQuery(); } } //负责人信息同法人 function queryCopyCorporation1(){ if(fm.all('Corporation').value == null || fm.all('Corporation').value === "" || fm.all('IDNoType').value == null || fm.all('IDNoType').value === "" || fm.all('IDNo').value == null || fm.all('IDNo').value === "" || fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value === "" || fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value === "" || fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value === "" || fm.all('CorporationSex').value == null || fm.all('CorporationSex').value === "" || fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value === ""){ alert("法人的个人信息必须全部录入!"); }else{ fm.all('Satrap').value = fm.all('Corporation').value; fm.all('SatrapIDType').value = fm.all('IDNoType').value; fm.all('SatrapIDNo').value = fm.all('IDNo').value; fm.all('SatrapIDTypeSD').value = fm.all('CorporationIDTypeSD').value; fm.all('SatrapIDTypeED').value = fm.all('CorporationIDTypeED').value; fm.all('SatrapBirthday').value = fm.all('CorporationBirthday').value; fm.all('SatrapSex').value = fm.all('CorporationSex').value; fm.all('SatrapNativePlace').value = fm.all('CorporationNativePlace').value; fm.all('SatrapIDTypeName').value = fm.all('IDNoTypeName').value; fm.all('SatrapSexName').value = fm.all('CorporationSexName').value; fm.all('SatrapNativePlaceName').value = fm.all('CorporationNativePlaceName').value; } } //授权经办人信息同法人 function queryCopyCorporation2(){ if(fm.all('Corporation').value == null || fm.all('Corporation').value === "" || fm.all('IDNoType').value == null || fm.all('IDNoType').value === "" || fm.all('IDNo').value == null || fm.all('IDNo').value === "" || fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value === "" || fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value === "" || fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value === "" || fm.all('CorporationSex').value == null || fm.all('CorporationSex').value === "" || fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value === ""){ alert("法人的个人信息必须全部录入!"); }else{ fm.all('AuthHandler').value = fm.all('Corporation').value; fm.all('AuthHandlerIDType').value = fm.all('IDNoType').value; fm.all('AuthHandlerIDNo').value = fm.all('IDNo').value; fm.all('AuthHandlerIDTypeSD').value = fm.all('CorporationIDTypeSD').value; fm.all('AuthHandlerIDTypeED').value = fm.all('CorporationIDTypeED').value; fm.all('AuthHandlerBirthday').value = fm.all('CorporationBirthday').value; fm.all('AuthHandlerSex').value = fm.all('CorporationSex').value; fm.all('AuthHandlerNativePlace').value = fm.all('CorporationNativePlace').value; fm.all('AuthHandlerIDTypeName').value = fm.all('IDNoTypeName').value; fm.all('AuthHandlerSexName').value = fm.all('CorporationSexName').value; fm.all('AuthHandlerNativePlaceName').value = fm.all('CorporationNativePlaceName').value; } } //控股股东/实际控制人 function queryCopyCorporation3(){ if(fm.all('Corporation').value == null || fm.all('Corporation').value === "" || fm.all('IDNoType').value == null || fm.all('IDNoType').value === "" || fm.all('IDNo').value == null || fm.all('IDNo').value === "" || fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value === "" || fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value === "" || fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value === "" || fm.all('CorporationSex').value == null || fm.all('CorporationSex').value === "" || fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value === ""){ alert("法人的个人信息必须全部录入!"); }else{ fm.all('PartnerName').value = fm.all('Corporation').value; fm.all('PartnerIDType').value = fm.all('IDNoType').value; fm.all('PartnerIDNo').value = fm.all('IDNo').value; fm.all('PartnerIDTypeSD').value = fm.all('CorporationIDTypeSD').value; fm.all('PartnerIDTypeED').value = fm.all('CorporationIDTypeED').value; fm.all('PartnerBirthday').value = fm.all('CorporationBirthday').value; fm.all('PartnerSex').value = fm.all('CorporationSex').value; fm.all('PartnerNativePlace').value = fm.all('CorporationNativePlace').value; fm.all('PartnerIDTypeName').value = fm.all('IDNoTypeName').value; fm.all('PartnerSexName').value = fm.all('CorporationSexName').value; fm.all('PartnerNativePlaceName').value = fm.all('CorporationNativePlaceName').value; } } //受益所有人1 function queryCopyCorporation4(){ if(fm.all('Corporation').value == null || fm.all('Corporation').value === "" || fm.all('IDNoType').value == null || fm.all('IDNoType').value === "" || fm.all('IDNo').value == null || fm.all('IDNo').value === "" || fm.all('CorporationIDTypeSD').value == null || fm.all('CorporationIDTypeSD').value === "" || fm.all('CorporationIDTypeED').value == null || fm.all('CorporationIDTypeED').value === "" || fm.all('CorporationBirthday').value == null || fm.all('CorporationBirthday').value === "" || fm.all('CorporationSex').value == null || fm.all('CorporationSex').value === "" || fm.all('CorporationNativePlace').value == null || fm.all('CorporationNativePlace').value === ""){ alert("法人的个人信息必须全部录入!"); }else{ fm.all('BnfAllName1').value = fm.all('Corporation').value; fm.all('BnfAllIDType1').value = fm.all('IDNoType').value; fm.all('BnfAllIDNo1').value = fm.all('IDNo').value; fm.all('BnfAllIDTypeSD1').value = fm.all('CorporationIDTypeSD').value; fm.all('BnfAllIDTypeED1').value = fm.all('CorporationIDTypeED').value; fm.all('BnfAllBirthday1').value = fm.all('CorporationBirthday').value; fm.all('BnfAllSex1').value = fm.all('CorporationSex').value; fm.all('BnfAllNativePlace1').value = fm.all('CorporationNativePlace').value; fm.all('BnfAllIDType1Name').value = fm.all('IDNoTypeName').value; fm.all('BnfAllSex1Name').value = fm.all('CorporationSexName').value; fm.all('BnfAllNativePlace1Name').value = fm.all('CorporationNativePlaceName').value; } }