Exemplo n.º 1
0
        private List<CurriculumSubjectBDO> ToCurriculumSubjectBDOList(List<CurriculumSubject> csList)
        {
            List<CurriculumSubjectBDO> csbdoList = new List<CurriculumSubjectBDO>();
            foreach (CurriculumSubject cs in csList)
            {
                SubjectDAO sDAO = new SubjectDAO();
                SubjectBDO sbdo = new SubjectBDO();
                CurriculumSubjectBDO csbdo = new CurriculumSubjectBDO();
                csbdo.CurriculumCode = cs.CurriculumCode;
                csbdo.CurrSubCode = cs.CurrSubCode;
                csbdo.Deactivated = cs.Deactivated;
                csbdo.SubjectCode = cs.SubjectCode;
                sbdo = sDAO.GetSubject(cs.SubjectCode);

                csbdo.Sub = sbdo;
                csbdoList.Add(csbdo);
            }
            return csbdoList;
        }
Exemplo n.º 2
0
        private void TranslateCurriculumSubjectBDOToCurriculumSubject(CurriculumSubjectBDO cs, CurriculumSubject csbdo)
        {
            Subject sbdo = new Subject();
            SubjectService ss = new SubjectService();
            LearningAreaService las = new LearningAreaService();
            LearningArea la = new LearningArea();
            csbdo.CurriculumSubjectsID = cs.CurriculumSubjectsID;
            csbdo.CurriculumCode = cs.CurriculumCode;
            csbdo.CurrSubCode = cs.CurrSubCode;
            csbdo.Deactivated = cs.Deactivated;
            ss.TranslateSubjectBDOToSubject(cs.Sub, sbdo);
            csbdo.Subj = sbdo;
            csbdo.SubjectCode = cs.SubjectCode;
            la = las.GetLearningArea(sbdo.LearningAreaCode);
            csbdo.Academic = la.Academic;
            csbdo.RatePerUnit = la.RatePerUnit;
            csbdo.Units = la.Units;
            csbdo.SubjectDescription = sbdo.Description;
            csbdo.GradeLevel = sbdo.GradeLevel;
            csbdo.LearningAreaCode = sbdo.LearningAreaCode;

        }
Exemplo n.º 3
0
 private void TranslateCurriculumSubjectToCurriculumSubjectBDO(CurriculumSubject cs, CurriculumSubjectBDO csbdo)
 {
     csbdo.CurriculumCode = cs.CurriculumCode;
     csbdo.CurrSubCode = cs.CurrSubCode;
     csbdo.Deactivated = cs.Deactivated;
     csbdo.CurriculumSubjectsID = cs.CurriculumSubjectsID;
     csbdo.SubjectCode = cs.SubjectCode;
 }
Exemplo n.º 4
0
 private List<CurriculumSubjectBDO> ToCurriculumSubjectBDOList(List<CurriculumSubject> csList)
 {
     List<CurriculumSubjectBDO> csbdoList = new List<CurriculumSubjectBDO>();
     foreach (CurriculumSubject cs in csList)
     {
         CurriculumSubjectBDO csbdo = new CurriculumSubjectBDO();
         TranslateCurriculumSubjectToCurriculumSubjectBDO(cs, csbdo);
         csbdoList.Add(csbdo);
     }
     return csbdoList;
 }