예제 #1
0
        private void ProspectusList_Load(object sender, EventArgs e)
        {
            ISubjectService ssR = new SubjectService();
            if (zGradeLevel == "0")
                subj = new List<Subject>(ssR.GetAllSubjects());
            else
                subj = new List<Subject>(ssR.GetAllSubjectsOfGradeLevel(zGradeLevel));

            gridView.DataSource = subj;
        }
예제 #2
0
 public List<CurriculumSubject> GetAllSubjectsOfGradeLevel(string gradeLevel)
 {
     SubjectService ss = new SubjectService();
     List<CurriculumSubject> csList = new List<CurriculumSubject>();
     List<Subject> sList = new List<Subject>();
     sList = ss.GetAllSubjectsOfGradeLevel(gradeLevel);
     foreach (Subject s in sList)
     {
         CurriculumSubject cs = new CurriculumSubject();
         TranslateCurrSub(s, cs);
         csList.Add(cs);
     }
     return csList;
 }
예제 #3
0
        public List <CurriculumSubject> GetAllSubjectsOfGradeLevel(string gradeLevel)
        {
            SubjectService           ss     = new SubjectService();
            List <CurriculumSubject> csList = new List <CurriculumSubject>();
            List <Subject>           sList  = new List <Subject>();

            sList = ss.GetAllSubjectsOfGradeLevel(gradeLevel);
            foreach (Subject s in sList)
            {
                CurriculumSubject cs = new CurriculumSubject();
                TranslateCurrSub(s, cs);
                csList.Add(cs);
            }
            return(csList);
        }
예제 #4
0
        public List <Subject> GetAllSubjectsOfGradeLevel(string gradeLevel)
        {
            SubjectService ss = new SubjectService();

            return(ss.GetAllSubjectsOfGradeLevel(gradeLevel));
        }
예제 #5
0
 public List<Subject> GetAllSubjectsOfGradeLevel(string gradeLevel)
 {
     SubjectService ss = new SubjectService();
     return ss.GetAllSubjectsOfGradeLevel(gradeLevel);
 }