/* * Pre: * Post: Get audition information for the input year, audition type, and student * if a matching audition exists * @param studentId is the unique id of the student * @year is the year of the audition * @auditionType signifies whether the points are being entered for HS Virtuoso * or Composition */ private void loadAudition(int studentId, int year, string auditionType) { //get student Student student = DbInterfaceStudent.LoadStudentData(studentId); //get audition if (student != null) { audition = DbInterfaceStudentAudition.GetStudentHsOrCompositionAudition(student, year, auditionType); Session[auditionVar] = audition; //set points on screen if (audition != null) { setPoints(); } else { rblAttendance.SelectedIndex = 1; ddlRoomAward.SelectedIndex = 0; lblPoints.InnerText = "0"; btnSubmit.Text = "Submit"; ddlRoomAward.Enabled = true; } } else { lblErrorMsg.Text = "There was an error loading the student data"; lblErrorMsg.Visible = true; } }
/* * Pre: * Post: Get audition information for the input year, audition type, and student * if a matching audition exists * @param studentId is the unique id of the student * @year is the year of the audition * @auditionType signifies whether the points are being entered for HS Virtuoso * or Composition */ private void loadAudition(int studentId, int year, string auditionType) { //get student Student student = DbInterfaceStudent.LoadStudentData(studentId); //get audition if (student != null) { audition = DbInterfaceStudentAudition.GetStudentHsOrCompositionAudition(student, year, auditionType); Session[auditionVar] = audition; //set points on screen if (audition != null) { setPoints(); } else { rblAttendance.SelectedIndex = 0; ddlRoomAward.SelectedIndex = 0; ddlRoomAward.Enabled = true; lblPoints.Text = "10"; } } else { showErrorMessage("Error: There was an error loading the student data."); } }