DataSet ds = bbll.GetList("IsLock=0 and datediff('d',StartTi