public void GetOrderDetail(string orderID) { OrderDAO orderDao = new OrderDAO(); ScheduleDAO scheduleDAO = new ScheduleDAO(); MovieDAO movieDAO = new MovieDAO(); OrderDTO order = orderDao.CheckOrder(orderID); if (order != null) { ScheduleDTO schedule = scheduleDAO.GetScheduleByID(order.ScheduleID); string movieTitle = movieDAO.GetMovieTitle(schedule.MovieID); this.orderDetail.Visible = true; this.lblOrderID.Text = order.OrderID; this.invalidCode.Visible = false; this.lbMovieName.Text = movieTitle; this.lbDate.Text = schedule.ScheduleDate.ToShortDateString(); this.lbTime.Text = schedule.ScheduleDate.ToShortTimeString(); this.lbRoom.Text = schedule.RoomID.ToString(); this.lbPrice.Text = (schedule.PriceOfTicket * (order.ListOfSeat).Count) + ""; string seat = ""; foreach (string s in order.ListOfSeat) { seat += (s + " "); } this.lbSeat.Text = seat; } else { this.invalidCode.CssClass = "error_message_show"; this.orderDetail.Visible = false; } }