コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List <MovieDTO>    ListMovie    = new List <MovieDTO>();
                List <RoomDTO>     ListRoom     = new List <RoomDTO>();
                List <ScheduleDTO> ListSchedule = new List <ScheduleDTO>();
                ListMovie = MovieDaos.GetMovieListForSchedule();
                Session.Add("AdminMovieList", ListMovie);

                ListRoom = RoomDaos.GetRoomListForSchedule();
                Session.Add("AdminRoomList", ListRoom);

                ListSchedule = ScheduleDaos.GetScheduleList();
                Session.Add("AdminScheduleList", ListSchedule);

                MovieIDDropdownListAdd(ListMovie);
                RoomIDDropdownListAdd(ListRoom);
                TimeDropdownListAdd();
                Clear();
            }
        }