コード例 #1
0
ファイル: GradingService.cs プロジェクト: RazenRyne/eSAR_new
        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;
        }
コード例 #2
0
ファイル: GradingService.cs プロジェクト: RazenRyne/eSAR_new
        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;
        }
コード例 #3
0
ファイル: GradingService.cs プロジェクト: RazenRyne/eSAR
        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;

        }
コード例 #4
0
ファイル: GradingService.cs プロジェクト: RazenRyne/eSAR
        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;

        }
コード例 #5
0
        public void TranslateStuSubjectsBDOToStuSubjects(StudentSubjectBDO sbdo, StudentSubject s)
        {
            SubjectService ss  = new SubjectService();
            Subject        sub = new Subject();

            ss.TranslateSubjectBDOToSubject(sbdo.Subject, sub);
            s.SubjectCode = sbdo.SubjectCode;
            s.Description = sub.Description;

            RegistrationService rs = new RegistrationService();
            StudentEnrollment   se = new StudentEnrollment();

            rs.TranslatEnrolBDOToEnrol(sbdo.StudentEnrollment, se);
            s.StudentEnr = se;

            s.StudentSY = sbdo.StudentSY;

            s.StudentId   = se.StudentId;
            s.StudentName = se.StudentName;

            s.StudentSubjectsID    = sbdo.StudentSubjectsID;
            s.StudentEnrSubCode    = sbdo.StudentEnrSubCode;
            s.Remarks              = sbdo.Remarks;
            s.FirstPeriodicRating  = sbdo.FirstPeriodicRating;
            s.SecondPeriodicRating = sbdo.SecondPeriodicRating;
            s.ThirdPeriodicRating  = sbdo.ThirdPeriodicRating;
            s.FourthPeriodicRating = sbdo.FourthPeriodicRating;
            s.Description          = sub.Description;
            s.SubjectAssignments   = sbdo.SubjectAssignments;
            s.FirstEntered         = sbdo.FirstEntered;
            s.FirstLocked          = sbdo.FirstLocked;
            s.FourthEntered        = sbdo.FourthEntered;
            s.FourthLocked         = sbdo.FourthLocked;
            s.LockFirst            = sbdo.LockFirst;
            s.LockFourth           = sbdo.LockFourth;
            s.LockSecond           = sbdo.LockSecond;
            s.LockThird            = sbdo.LockThird;
            s.SecondEntered        = sbdo.SecondEntered;
            s.SecondLocked         = sbdo.SecondLocked;
            s.ThirdEntered         = sbdo.ThirdEntered;
            s.ThirdLocked          = sbdo.ThirdLocked;
            s.FinalRating          = (double)sbdo.FourthPeriodicRating;

            if (s.FinalRating > 90)
            {
                s.Proficiency = "O";
            }
            else if (s.FinalRating >= 85)
            {
                s.Proficiency = "VS";
            }
            else if (s.FinalRating >= 80)
            {
                s.Proficiency = "S";
            }
            else if (s.FinalRating >= 75)
            {
                s.Proficiency = "FS";
            }
            else if (s.FinalRating <= 74)
            {
                s.Proficiency = "D";
            }
        }
コード例 #6
0
ファイル: RegistrationService.cs プロジェクト: RazenRyne/eSAR
        public void TranslateStuSubjectsBDOToStuSubjects(StudentSubjectBDO sbdo, StudentSubject s)
        {
            SubjectService ss = new SubjectService();
            Subject sub = new Subject();

            ss.TranslateSubjectBDOToSubject(sbdo.Subject, sub);
            s.SubjectCode = sbdo.SubjectCode;
            s.Description = sub.Description;

            RegistrationService rs = new RegistrationService();
            StudentEnrollment se = new StudentEnrollment();
            rs.TranslatEnrolBDOToEnrol(sbdo.StudentEnrollment, se);
            s.StudentEnr = se;

            s.StudentSY = sbdo.StudentSY;

            s.StudentId = se.StudentId;
            s.StudentName = se.StudentName;

            s.StudentSubjectsID = sbdo.StudentSubjectsID;
            s.StudentEnrSubCode = sbdo.StudentEnrSubCode;
            s.Remarks = sbdo.Remarks;
            s.FirstPeriodicRating = sbdo.FirstPeriodicRating;
            s.SecondPeriodicRating = sbdo.SecondPeriodicRating;
            s.ThirdPeriodicRating = sbdo.ThirdPeriodicRating;
            s.FourthPeriodicRating = sbdo.FourthPeriodicRating;
            s.Description = sub.Description;
            s.SubjectAssignments = sbdo.SubjectAssignments;
            s.FirstEntered = sbdo.FirstEntered;
            s.FirstLocked = sbdo.FirstLocked;
            s.FourthEntered = sbdo.FourthEntered;
            s.FourthLocked = sbdo.FourthLocked;
            s.LockFirst = sbdo.LockFirst;
            s.LockFourth = sbdo.LockFourth;
            s.LockSecond = sbdo.LockSecond;
            s.LockThird = sbdo.LockThird;
            s.SecondEntered = sbdo.SecondEntered;
            s.SecondLocked = sbdo.SecondLocked;
            s.ThirdEntered = sbdo.ThirdEntered;
            s.ThirdLocked = sbdo.ThirdLocked;
            s.FinalRating = (double)sbdo.FourthPeriodicRating;

            if (s.FinalRating > 90)
                s.Proficiency = "O";
            else if (s.FinalRating >= 85)
                s.Proficiency = "VS";
            else if (s.FinalRating >= 80)
                s.Proficiency = "S";
            else if (s.FinalRating >= 75)
                s.Proficiency = "FS";
            else if (s.FinalRating <= 74)
                s.Proficiency = "D";

        }