Пример #1
0
        /*
         * Pre:  audition must exist as the id of an audition in the system
         * Post: The existing data for the audition associated with the auditionId
         *       is loaded to the page.
         * @param auditionId is the id of the audition being edited
         */
        private void LoadScheduleInformation(int auditionId)
        {
            //load schedule table
            DataTable schedule = DbInterfaceScheduling.LoadScheduleForUpdate(auditionId);

            if (schedule != null && schedule.Rows.Count > 0)
            {
                gvSchedule.DataSource = schedule;
                gvSchedule.DataBind();

                Session[scheduleData] = schedule;
            }
            else
            {
                showErrorMessage("Error: The schedule could not be loaded.  Please make sure it has been created and saved.");
                Session[scheduleData] = null;
            }
        }
Пример #2
0
        /*
         * Pre:  audition must exist as the id of an audition in the system
         * Post: The existing data for the audition associated with the auditionId
         *       is loaded to the page.
         * @param auditionId is the id of the audition being edited
         */
        private void LoadScheduleInformation(int auditionId)
        {
            //load schedule table
            DataTable schedule = DbInterfaceScheduling.LoadScheduleForUpdate(auditionId);

            if (schedule != null && schedule.Rows.Count > 0)
            {
                // Load each judge's available time and juge's that haven't had auditions assigned to them
                LoadJudgeTimeAllowances(auditionId);
                LoadEmptyJudges(auditionId);

                gvSchedule.DataSource = schedule;
                gvSchedule.DataBind();

                Session[scheduleData] = schedule;
            }
            else
            {
                showErrorMessage("Error: The schedule could not be loaded.  Please make sure it has been created and saved.");
                Session[scheduleData] = null;
            }
        }