コード例 #1
0
        public bool UpdateLearningArea(ref LearningArea learningArea, ref string message)
        {
            LearningAreaBDO labdo = new LearningAreaBDO();

            TranslateLearningAreaToLearningAreaBDO(learningArea, labdo);
            return(laLogic.UpdateLearningArea(ref labdo, ref message));
        }
コード例 #2
0
        public LearningArea GetLearningArea(string learningAreaCode)
        {
            LearningArea la = new LearningArea();

            TranslateLearningAreaBDOToLearningArea(laLogic.GetLearningArea(learningAreaCode), la);

            return(la);
        }
コード例 #3
0
        public LearningArea GetLearningArea(string learningAreaCode)
        {
            LearningArea la = new LearningArea();

            TranslateLearningAreaBDOToLearningArea(laLogic.GetLearningArea(learningAreaCode), la);

            return la;
        }
コード例 #4
0
 public void TranslateLearningAreaToLearningAreaBDO(LearningArea la, LearningAreaBDO lBdo)
 {
     lBdo.Academic         = la.Academic;
     lBdo.Description      = la.Description;
     lBdo.LearningAreaCode = la.LearningAreaCode;
     lBdo.RatePerUnit      = la.RatePerUnit;
     lBdo.Units            = la.Units;
     lBdo.Subjects         = ToSubjectBDOList(la.Subjects);
 }
コード例 #5
0
 public void TranslateLearningAreaToLearningAreaBDO(LearningArea la, LearningAreaBDO lBdo)
 {
     lBdo.Academic = la.Academic;
     lBdo.Description = la.Description;
     lBdo.LearningAreaCode = la.LearningAreaCode;
     lBdo.RatePerUnit = la.RatePerUnit;
     lBdo.Units = la.Units;
     lBdo.Subjects = ToSubjectBDOList(la.Subjects);
 }
コード例 #6
0
 public void TranslateLearningAreaBDOToLearningArea(LearningAreaBDO la, LearningArea lBdo)
 {
     SubjectService ss = new SubjectService();
     lBdo.Academic = la.Academic;
     lBdo.Description = la.Description;
     lBdo.LearningAreaCode = la.LearningAreaCode;
     lBdo.RatePerUnit = la.RatePerUnit;
     lBdo.Units = la.Units;
     lBdo.Subjects = ss.ToSubjectList(la.Subjects);
 }
コード例 #7
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        private void TranslateLearningAreaToLearningAreaBDO(LearningArea la, LearningAreaBDO labdo)
        {
            SubjectService ss = new SubjectService();

            labdo.Academic         = la.Academic;
            labdo.Description      = la.Description;
            labdo.LearningAreaCode = la.LearningAreaCode;
            labdo.RatePerUnit      = la.RatePerUnit;
            labdo.Units            = la.Units;
            labdo.Subjects         = ss.ToSubjectBDOList(la.Subjects);
        }
コード例 #8
0
 public List<LearningArea> GetAllLearningAreas()
 {
     List<LearningArea> lList = new List<LearningArea>();
     foreach (LearningAreaBDO labdo in laLogic.GetAllLearningAreas())
     {
         LearningArea la = new LearningArea();
         TranslateLearningAreaBDOToLearningArea(labdo, la);
         lList.Add(la);
     }
     return lList;
 }
コード例 #9
0
ファイル: SubjectService.cs プロジェクト: dansalan/DCFIv3
 public void TranslateSubjectBDOToSubject(SubjectBDO sub, Subject sbdo)
 {
     LearningAreaService las = new LearningAreaService();
     LearningArea lb = new LearningArea();
     sbdo.SubjectID = sub.SubjectID;
     sbdo.Description = sub.Description;
     sbdo.GradeLevel = sub.GradeLevel;
     sbdo.LearningAreaCode = sub.LearningAreaCode;
     sbdo.SubjectCode = sub.SubjectCode;
     las.TranslateLearningAreaBDOToLearningArea(sub.LearningArea, lb);
     sbdo.LArea = lb;
 }
コード例 #10
0
        public List <LearningArea> GetAllLearningAreas()
        {
            List <LearningArea> lList = new List <LearningArea>();

            foreach (LearningAreaBDO labdo in laLogic.GetAllLearningAreas())
            {
                LearningArea la = new LearningArea();
                TranslateLearningAreaBDOToLearningArea(labdo, la);
                lList.Add(la);
            }
            return(lList);
        }
コード例 #11
0
        public LearningArea GetLearningArea(string learningAreaCode)
        {
            LearningArea la = new LearningArea();
            LearningAreaBDO laBDO = laLogic.GetLearningArea(learningAreaCode);

            if (laBDO != null)
            {
                TranslateLearningAreaBDOToLearningArea(laLogic.GetLearningArea(learningAreaCode), la);
            }

            return la;
        }
コード例 #12
0
ファイル: SubjectService.cs プロジェクト: RazenRyne/DCFIv4
        public void TranslateSubjectBDOToSubject(SubjectBDO sub, Subject sbdo)
        {
            LearningAreaService las = new LearningAreaService();
            LearningArea        lb  = new LearningArea();

            sbdo.SubjectID        = sub.SubjectID;
            sbdo.Description      = sub.Description;
            sbdo.GradeLevel       = sub.GradeLevel;
            sbdo.LearningAreaCode = sub.LearningAreaCode;
            sbdo.SubjectCode      = sub.SubjectCode;
            las.TranslateLearningAreaBDOToLearningArea(sub.LearningArea, lb);
            sbdo.LArea = lb;
        }
コード例 #13
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        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;
        }
コード例 #14
0
        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;

        }
コード例 #15
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        private void TranslateCurriculumSubjectBDOToCurriculumSubject(CurriculumSubjectBDO cs, CurriculumSubject csbdo)
        {
            Subject             sbdo = new Subject();
            SubjectService      ss   = new SubjectService();
            LearningAreaService las  = new LearningAreaService();
            LearningArea        la   = new LearningArea();

            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                       = sbdo.LArea;
            csbdo.Academic           = la.Academic;
            csbdo.RatePerUnit        = la.RatePerUnit;
            csbdo.Units              = la.Units;
            csbdo.SubjectDescription = sbdo.Description;
            csbdo.GradeLevel         = sbdo.GradeLevel;
            csbdo.LearningAreaCode   = sbdo.LearningAreaCode;
        }
コード例 #16
0
 public bool UpdateLearningArea(ref LearningArea learningArea, ref string message)
 {
     LearningAreaBDO labdo = new LearningAreaBDO();
     TranslateLearningAreaToLearningAreaBDO(learningArea, labdo);
     return laLogic.UpdateLearningArea(ref labdo, ref message);
 }
コード例 #17
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 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;
 }