Esempio n. 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();
           
        }
Esempio n. 2
0
 private void InitializeLists()
 {
     ISubjectAssignmentService schedService = new SubjectAssignmentService();
     scheduleList = new List<SubjectAssignment>(schedService.GetAllSchedules());
     gradeLevels = new List<GradeLevel>(schedService.GetAllGradeLevels());
     gradeLevels.RemoveAll(x => x.GradeLev == "0");
     sections = new List<GradeSection>(schedService.GetAllSections());
 }
Esempio n. 3
0
 private void InitializeLists()
 {
     ISubjectAssignmentService schedService = new SubjectAssignmentService();
     currentSY = schedService.GetCurrentSY();
     gradeLevels = new List<GradeLevel>(schedService.GetAllGradeLevels());
     gradeLevels.RemoveAll(x => x.GradeLev == "0");
     sections = new List<GradeSection>(schedService.GetAllSections());
     subjects = new List<Subject>(schedService.GetAllSubjects());
     
     timeslots = new List<Timeslot>(schedService.GetTimeslots());
     rooms = new List<Room>(schedService.GetAllRooms());
     teachers = new List<Teacher>(schedService.GetAllTeachers());
 }
Esempio n. 4
0
        private void LoadMe(object sender, EventArgs e)
        {
           ISubjectAssignmentService subjectAss = new SubjectAssignmentService();
            IFeeService feeSer = new FeeService();

            gradeLevels = new List<GradeLevel>(subjectAss.GetAllGradeLevels());
            schoolYears = new List<SchoolYear>(feeSer.GetLastFiveSY());
            sections = new List<GradeSection>(subjectAss.GetAllSections());

            cmbGradeLevel.DataSource = gradeLevels;
            cmbGradeLevel.ValueMember = "GradeLev";
            cmbGradeLevel.DisplayMember = "Description";

            cmbSY.DataSource = schoolYears;
            cmbSY.ValueMember = "SY";
            cmbSY.DisplayMember = "SY";
            
        }