From 0ded85a0a8ee3bf1765ed57d75774b999e827f57 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Tue, 20 Nov 2018 11:50:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=8B=85=E4=BF=9D=E4=BA=BA?= =?UTF-8?q?=E6=80=A7=E5=88=AB=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index 0d6102458..f8ac361ee 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -206,14 +206,16 @@ } //根据身份证号判断性别 function ValidityCheck(){ - debugger; + var certType = getItemValue(0,getRow(0),"CERTTYPE"); var certID = getItemValue(0,getRow(),"CERTID"); - sex = certID.substring(16,17); + var sex = certID.substring(16,17); sex = parseInt(sex); - if(sex%2==0){//奇男偶女 - setItemValue(0,getRow(),"SEX","2"); - }else(sex%2==1){ - setItemValue(0,getRow(),"SEX","1"); + if(certType=="Ind01"||certType=="Ind08"){ + if(sex%2==0){//奇男偶女 + setItemValue(0,getRow(),"SEX","2"); + }else if(sex%2==1){ + setItemValue(0,getRow(),"SEX","1"); + } } checkCertidRepeat(); }