if(b=='checktype'){
var rating= "";//是否评级编号
var check_id = "";//检查项目分类ID
$.each( selected, function(i, n){
if (i==0)
rating+=n["rating_code"];
check_id +=n["id"];
});
if(check_id!=checkType ){
addCheckDetial(check_id);
}
//根据检查分类,自动选中是否评级
$(":radio[name='rating'][value= '"+rating+"']").attr("checked","checked");
return true;
}
var rating= "";//是否评级编号
var check_id = "";//检查项目分类ID
$.each( selected, function(i, n){
if (i==0)
rating+=n["rating_code"];
check_id +=n["id"];
});
if(check_id!=checkType ){
addCheckDetial(check_id);
}
//根据检查分类,自动选中是否评级
$(":radio[name='rating'][value= '"+rating+"']").attr("checked","checked");
return true;
}