String[] wv={"1","0","X","9","8","7","6","5","4","3","2"};
int[] wc={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1};
String oldid=null;
String newid=null;
String asd=null;
String bsd=null;
String csd=null;
String dsd=null;
int sdf;
int mgh1;
int mgh2;
int qwe;
String mgh3;
public int getMgh1() {
return mgh1;
}
public int getMgh2() {
return mgh2;
}
public String getNewid() {
if(oldid.length()==15)
{
csd=(oldid.substring(0,6))+asd+oldid.substring(6);
for(int i=0;i<csd.length();i++)
{
mgh1=Integer.parseInt(csd.substring(i,i+1))*wc[i];
mgh2+=mgh1;
}
sdf=mgh2%11;
newid=csd+wv[sdf];
}
return newid;
}
public String getOldid() {
return oldid;
}
public String getAsd() {
return asd;
}
public String getBsd() {
return bsd;
}
public String getCsd() {
return csd;
}
public String getDsd() {
return dsd;
}
public int[] getWc() {
return wc;
}
public String[] getWv() {
return wv;
}
public String getMgh3() {
qwe=sdf%2;
if (qwe == 0) {
mgh3 ="女";
}
else
{
mgh3="男";
}
return mgh3;
}