我的值脚本
var bianhao= getItemValueAsString("用户编号");
var mingcheng="";
var run=" ";
var sql = "select custname as item_custname,custcode as item_custcode from customers where item_custcode='"+bianhao+"'";
var datas = queryByDSName("obpm",sql);
if(datas!=null && datas.size()>0){
for(var iter = datas.iterator();iter.hasNext();){
var doc = iter.next();
mingcheng=doc.getItemValueAsString("item_custname");
}
mingcheng;
}else
run;
所报的错
|