Nodelistfour=onelist.item(l);
if(listfour.getNodeType()!
=Node.ELEMENT_NODE){
continue;
}
/**
*客户编号
*/
if(l==0){
if("code".equals(listfour.getNodeName())){
if(!
"NULL".equals(listfour.getFirstChild()
.getNodeValue())){
if(listfour.getFirstChild()
.getNodeValue().indexOf("'")!
=-1){
thrownewException(
"准客户基本信息的客户编号含有非法字符");
}
}
bb.setCode(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第1个子元素--客户编号[code]元素未找到");
}
}
/**
*客户名称
*/
if(l==1){
if("name".equals(listfour.getNodeName())){
if(listfour.getFirstChild().getNodeValue()
.indexOf("'")!
=-1){
thrownewException(
"准客户基本信息的客户名称含有非法字符");
}
bb.setName(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第2个子元素--客户名称[name]元素未找到");
}
}
/**
*移动电话(手机号码)
*/
if(l==2){
if("phone".equals(listfour.getNodeName())){
if("NULL".equals(listfour.getFirstChild()
.getNodeValue())){
thrownewException("准客户基本信息的移动电话必须填写");
}elseif(dxd.isPhone(listfour
.getFirstChild().getNodeValue())==false){
thrownewException("移动手机号码格式错误");
}elseif(listfour.getFirstChild()
.getNodeValue().indexOf("'")!
=-1){
thrownewException(
"准客户基本信息的电话号码含有非法字符");
}elseif(dxd.isNumber(listfour
.getFirstChild().getNodeValue())==false){
thrownewException("准客户基本信息的电话号码不合法");
}
bb.setPhone(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第3个子元素--移动电话[phone]元素未找到");
}
}
/**
*客户性质(个人/法人)
*/
if(l==3){
if("attribute".equals(listfour.getNodeName())){
if("0".equals(listfour.getFirstChild()
.getNodeValue())
||"1".equals(listfour
.getFirstChild()
.getNodeValue())){
bb.setAtribute(dxd
.forceString(listfour
.getFirstChild()
.getNodeValue()));
}
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第4个子元素--客户性质[attribute]元素未找到");
}
}
/**
*客户类型
*/
if(l==4){
if("clientType".equals(listfour.getNodeName())){
bb.setClientType(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第5个子元素--客户类型[clientType]元素未找到");
}
}
/**
*其它电话
*/
if(l==5){
if("telephone".equals(listfour.getNodeName())){
if(!
"NULL".equals(listfour.getFirstChild()
.getNodeValue())){
if(dxd
.isNumber(listfour
.getFirstChild()
.getNodeValue())==false){
thrownewException(
"准客户基本信息的其它电话含有不法字符");
}
}
bb.setTelephone(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第6个子元素--其它电话[telephone]元素未找到");
}
}
/**
*生日(yyyy-MM-dd)
*/
if(l==6){
if("birthday".equals(listfour.getNodeName())){
if(!
"NULL".equals(listfour.getFirstChild()
.getNodeValue())){
if(dxd
.checkDate(listfour
.getFirstChild()
.getNodeValue())==false){
thrownewException(
"准客户基本信息的生日日期格式错误");
}
}
bb.setBirthday(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第7个子元素--生日[birthday]元素未找到");
}
}
/**
*传真
*/
if(l==7){
if("fax".equals(listfour.getNodeName())){
bb.setFax(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第8个子元素--传真[fax]元素未找到");
}
}
/**
*电子邮件
*/
if(l==8){
if("email".equals(listfour.getNodeName())){
if(!
"NULL".equals(listfour.getFirstChild()
.getNodeValue())){
if(dxd.isMail(listfour.getFirstChild()
.getNodeValue())==false){
thrownewException(
"准客户基本信息的电子邮件格式异常");
}
}
bb.setEmail(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第9个子元素--电子邮件[email]元素未找到");
}
}
/**
*网址(博客等)
*/
if(l==9){
if("site".equals(listfour.getNodeName())){
bb.setSite(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第10个子元素--网址[site]元素未找到");
}
}
/**
*附注
*/
if(l==10){
if("remark".equals(listfour.getNodeName())){
bb.setRemark(dxd.forceString(listfour
.getFirstChild().getNodeValue()));
}else{
thrownewException(
"xml格式异常,准客户基本信息中,父元素[clientBase]下的第11个子元素--附注[remark]元素未找到");
}
}
}
}else{
thrownewException(
"xml格式异常,顶层元素[cstmRoot]下的第4个子元素--准客户基本信息[clientBase]元素未找到");
}
}
if("0".equals(bb.getAtribute())){
if(i==4){
/**