Ejemplo n.º 1
0
 public List<StudentTrait> GetAdvisees(int GradesectionCode)
 {
     GradingLogic gl = new GradingLogic();
     List<StudentTraitBDO> alist = new List<StudentTraitBDO>();
     List<StudentTrait> advisees = new List<StudentTrait>();
     alist = gl.GetAdviseesList(GradesectionCode);
     foreach (StudentTraitBDO stb in alist)
     {
         StudentTrait st = new StudentTrait();
         TranslateStudentTraitBDOToStudentTrait(stb, st);
         advisees.Add(st);
     }
     return advisees;
 }
Ejemplo n.º 2
0
        public void TranslateStudentTraitToStudentTraitBDO(StudentTrait ss, StudentTraitBDO ssbdo)
        {
            ssbdo.FirstEntered = ss.FirstEntered;
            ssbdo.FirstLocked = ss.FirstLocked;
            ssbdo.FirstPeriodicRating = ss.FirstPeriodicRating;
            ssbdo.FourthEntered = ss.FourthEntered;
            ssbdo.FourthLocked = ss.FourthLocked;
            ssbdo.FourthPeriodicRating = ss.FourthPeriodicRating;
            ssbdo.LockFirst = ss.LockFirst;
            ssbdo.LockCFourth = ss.LockFourth;
            ssbdo.LockSecond = ss.LockSecond;
            ssbdo.LockThird = ss.LockThird;
            ssbdo.SecondEntered = ss.SecondEntered;
            ssbdo.SecondLocked = ss.SecondLocked;
            ssbdo.SecondPeriodicRating = ss.SecondPeriodicRating;
            ssbdo.ThirdEntered = ss.ThirdEntered;
            ssbdo.ThirdLocked = ss.ThirdLocked;
            ssbdo.ThirdPeriodicRating = ss.ThirdPeriodicRating;
            ssbdo.StudentEnrTraitCode = ss.StudentEnrTraitCode;

            ssbdo.TraitsID = ss.TraitsID;
            ssbdo.StudentSY = ss.StudentSY;
            ssbdo.GradeSectionCode = ss.GradeSectionCode;
        }
Ejemplo n.º 3
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;
        }