Пример #1
0
        private void LoadMe(object sender, EventArgs e)
        {
            SubjectAssignmentServiceClient subjectAss = new SubjectAssignmentServiceClient();
            FeeServiceClient feeSer = new FeeServiceClient();

            gradeLevels = new List<ScheduleServiceRef.GradeLevel>(subjectAss.GetAllGradeLevels());
            schoolYears = new List<FeeServiceRef.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";
        }
Пример #2
0
 private void InitializeLists()
 {
     SubjectAssignmentServiceClient schedService = new SubjectAssignmentServiceClient();
     scheduleList = new List<SubjectAssignment>(schedService.GetAllSchedules());
     gradeLevels = new List<GradeLevel>(schedService.GetAllGradeLevels());
     gradeLevels.RemoveAll(x => x.GradeLev == "0");
     sections = new List<GradeSection>(schedService.GetAllSections());
 }
Пример #3
0
        private void InitializeLists()
        {
            SubjectAssignmentServiceClient schedService = new SubjectAssignmentServiceClient();
            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());
        }