public int GetRouteCount(string filter)
 {
     int count = 0;
     using (PersistentManager pm = new PersistentManager())
     {
         AbnormityCigaretteDao acDao = new AbnormityCigaretteDao();
         count = acDao.FindRouteCount(filter);
     }
     return count;
 }
 public DataTable GetRouteAll(int pageIndex, int pageSize, string filter)
 {
     DataTable table = null;
     using (PersistentManager pm = new PersistentManager())
     {
         AbnormityCigaretteDao acDao = new AbnormityCigaretteDao();
         table = acDao.FindRouteAll((pageIndex - 1) * pageSize, pageSize, filter);
     }
     return table;
 }