예제 #1
0
        public void TranslateStudentTraitBDOToStudentTrait(StudentTraitBDO stb, StudentTrait st)
        {
            st.Description = stb.Trait.Description;
            st.FirstEntered = stb.FirstEntered;
            st.FirstLocked = stb.FirstLocked;
            st.FirstPeriodicRating = stb.FirstPeriodicRating;
            st.FourthEntered = stb.FourthEntered;
            st.FourthLocked = stb.FourthLocked;
            st.FourthPeriodicRating = stb.FourthPeriodicRating;
            st.GradeLevel = stb.GradeSection.GradeLevel;
            st.GradeSectionCode = (int)stb.GradeSectionCode;
            st.LockFirst = stb.LockFirst;
            st.LockFourth = stb.LockCFourth;
            st.LockSecond = stb.LockSecond;
            st.LockThird = stb.LockThird;
            st.SecondEntered = stb.SecondEntered;
            st.SecondLocked = stb.SecondLocked;
            st.SecondPeriodicRating = stb.SecondPeriodicRating;
            st.Section = stb.GradeSection.Section;

            RegistrationService r = new RegistrationService();
            StudentEnrollment se = new StudentEnrollment();
            r.TranslatEnrolBDOToEnrol(stb.StudentEnrollment, se);
            st.StudentEnr = se;

            st.StudentEnrTraitCode = stb.StudentEnrTraitCode;
            st.StudentId = se.StudentId;
            st.StudentName = se.StudentName;
            st.StudentSY = stb.StudentSY;
            st.TeacherId = stb.GradeSection.HomeRoomTeacherId;

            st.TeacherName = stb.GradeSection.HomeRoomTeacher.LastName + "," + stb.GradeSection.HomeRoomTeacher.FirstName;
            st.ThirdEntered = stb.ThirdEntered;
            st.ThirdLocked = stb.ThirdLocked;
            st.ThirdPeriodicRating = stb.ThirdPeriodicRating;
            st.TraitsID = stb.TraitsID;
        }
예제 #2
0
        public void TranslateStudentSubjectBDOToStudentSubject(StudentSubjectBDO ssbdo, StudentSubject ss)
        {
            SubjectService s = new SubjectService();
            Subject sub = new Subject();
            s.TranslateSubjectBDOToSubject(ssbdo.Subject, sub);

            RegistrationService r = new RegistrationService();
            StudentEnrollment se = new StudentEnrollment();
            r.TranslatEnrolBDOToEnrol(ssbdo.StudentEnrollment, se);
            ss.StudentEnr = se;

            ss.Description = sub.Description;
            ss.FirstPeriodicRating = ssbdo.FirstPeriodicRating;
            ss.SecondPeriodicRating = ssbdo.SecondPeriodicRating;
            ss.ThirdPeriodicRating = ssbdo.ThirdPeriodicRating;
            ss.FourthPeriodicRating = ssbdo.FourthPeriodicRating;

            ss.FirstEntered = ssbdo.FirstEntered;
            ss.SecondEntered = ssbdo.SecondEntered;
            ss.ThirdEntered = ssbdo.ThirdEntered;
            ss.FourthEntered = ssbdo.FourthEntered;

            ss.LockFirst =(bool) ssbdo.LockFirst;
            ss.LockFourth = (bool)ssbdo.LockFourth;
            ss.LockSecond = (bool)ssbdo.LockSecond;
            ss.LockThird = (bool)ssbdo.LockThird;

            ss.FirstLocked = ssbdo.FirstLocked;
            ss.SecondLocked = ssbdo.SecondLocked;
            ss.ThirdLocked = ssbdo.ThirdLocked;
            ss.FourthLocked = ssbdo.FourthLocked;

            ss.Remarks = ssbdo.Remarks;

            ss.StudentEnrSubCode = ssbdo.StudentEnrSubCode;

            ss.StudentEnrSubCode = ssbdo.StudentEnrSubCode;
            ss.StudentSubjectsID = ssbdo.StudentSubjectsID;
            ss.StudentSY = ssbdo.StudentSY;
            ss.SubjectCode= ssbdo.SubjectCode;

            ss.StudentId = se.StudentId;
            ss.StudentName = se.StudentName;
        }