Beispiel #1
0
        private void frmControlSubjects_Load(object sender, EventArgs e)
        {        

            IRegistrationService registrationService = new RegistrationService();
            string message = String.Empty;
            
            ControlStudent = registrationService.GetStudent(controlStudentId,ref message);
            StudentEnrollment enrStudent = new StudentEnrollment();

            SY = GlobalClass.currentsy;
            enrStudent = registrationService.GetStudentEnrolled(controlStudentId,SY);

            ISubjectAssignmentService schedService = new SubjectAssignmentService();
            sections = new List<GradeSection>(schedService.GetAllSections());
            List<GradeSection> gs = new List<GradeSection>();
            gs = sections.FindAll(s => s.GradeLevel == ControlStudent.GradeLevel);

            //   cbSection.DataSource = gs;

            int index = gs.FindIndex(s => s.Section == ControlStudent.Section);
            gradeSectionCode = gs[index].GradeSectionCode;
            loadSched();
            txtSection.Text = ControlStudent.Section;
          //  cbSection.Text = ControlStudent.Section;
            txtSY.Text = SY;
            txtGradeLevel.Text = ControlStudent.GradeLevel;
            txtStudentId.Text = ControlStudent.StudentId;
            txtStudentName.Text = ControlStudent.LastName + "," + ControlStudent.FirstName + " " + ControlStudent.MiddleName;
            txtPrevGPA.Text = ControlStudent.Average.ToString();
            txtUnitsFailed.Text = ControlStudent.UnitsFailedLastYear.ToString();
           
        }