iSql= "select * from (select a.*,rownum rn from (select procid,procname,actid,actname,applyuser,bussstate,lastuser,proclevel,starttime,allhours,processno,istimeout,etimeout,laststatetime,endtime,formid,ismonitor,lastusername from view_relagisundoassigns "
+"where username='"
+ userId + "') a where rownum<="+(pageno*10)+") where rn>"+(pageno-1)*10;