public void TranslateSubjectToSubjectBDO(Subject sub, SubjectBDO sbdo) { LearningAreaService las = new LearningAreaService(); LearningAreaBDO lb = new LearningAreaBDO(); sbdo.SubjectID = sub.SubjectID; sbdo.Description = sub.Description; sbdo.GradeLevel = sub.GradeLevel; sbdo.LearningAreaCode = sub.LearningAreaCode; sbdo.SubjectCode = sub.SubjectCode; sbdo.MPW = sub.MPW; sbdo.Academic = sub.Academic; las.TranslateLearningAreaToLearningAreaBDO(sub.LArea, lb); sbdo.LearningArea = lb; }
public void TranslateCurrSub(Subject s, CurriculumSubject cs) { LearningAreaService las = new LearningAreaService(); LearningArea la = new LearningArea(); SubjectService ss = new SubjectService(); Subject subj = new Subject(); subj = ss.GetSubject(s.SubjectCode); cs.Subj = s; cs.SubjectCode = s.SubjectCode; la = las.GetLearningArea(s.LearningAreaCode); cs.Academic = la.Academic; cs.RatePerUnit = la.RatePerUnit; cs.Units = la.Units; cs.SubjectDescription = subj.Description; cs.GradeLevel = subj.GradeLevel; cs.LearningAreaCode = subj.LearningAreaCode; }
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; }