var skyh = rows[row].skyh;
var zh = rows[row].zh;var swiftno = rows[row].swiftno;
var sfmr = rows[row].sfmr;
var lengthObjArray = [skyh,zh,swiftno];
var lengthNumArray = [60,60,60];
var lengthMsgArray = ["银承名称","账户","SWIFTNO"];
if( validataisNull(lengthObjArray,lengthMsgArray) || validataLength(lengthObjArray,lengthNumArray,lengthMsgArray)){
return ;
};
//非空验证
function validataisNull(objarr,messagearr){
for(var i=0;i<objarr.length;i++){
if(objarr[i]==undefined||objarr[i].length==0){
mini.alert("【"+messagearr[i]+"】不能为空!", 12);
return true;
}
}
return false;
}
//验证长度
function validataLength(objarr,Lengtharr,messagearr){
for(var i=0;i<objarr.length;i++){
if(objarr[i].length>0&&objarr[i].length>Lengtharr[i]){
mini.alert("【"+messagearr[i]+"】长度不能超过"+Lengtharr[i]+"位!",12);
return true;
}
}
return false;
}