LiveBos-split方法
<%@ livebos language='javascript' %>
var s="";
var s1="";
var temp=0;
var na="";
var rs= LB_sqlResultSet("select fintstage from T_HR_RecruitAct where id=? ",[FRecruitAct.ID]);
while(rs.next()){
s = rs.getString("fintstage");
}
var ob=s.split(";");
for(var i=0;i<ob.length;i=i+1 ){
temp=ob[i];
var rset=LB_sqlResultSet("select fname,fsort from T_HR_InterviewStage where id=? ",[temp]);
while(rset.next()){
na = rset.getString("fname");
}
if(FIntStage==parseInt(temp))
{
na="<font color='red' size='2.5'>"+na+"</font>";
}
s1=s1+na+"->";
}
s1=s1.substring(0,s1.length-2);
s1;