Пример #1
0
        public void loadDataFilter()
        {
            Flight flight = new Flight();

            flight.Depart_date     = calendar_depart.SelectedDate.ToString("yyyy-MM-dd");
            flight.Arrival_date    = calendar_arrival.SelectedDate.ToString("yyyy-MM-dd");
            flight.Depart_country  = txt_depart_country.Text;
            flight.Arrival_country = txt_arrival_country.Text;
            tableTicket.DataSource = null;
            tableTicket.DataSource = flightDAO.SearchFlight(flight, pageIndex, pageSize);
            tableTicket.DataBind();
            int rowCount = flightDAO.GetRowCountFilterFlight(flight);

            caculatePageCount(rowCount);
            LoadPageNumber();
        }