예제 #1
0
        public BaseSchoolProfile getP4FirstLevelbySubjectAndSIMD(string subject)
        {
            BaseSchoolProfile temp = new BaseSchoolProfile();

            temp.YearInfo = year;
            temp.ListGenericSchoolData.Add(P4FirstLevelQ1.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(P4FirstLevelQ2.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(P4FirstLevelQ3.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(P4FirstLevelQ4.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(P4FirstLevelQ5.Where(x => x.Code.Equals(subject)).FirstOrDefault());

            return(temp);
        }
예제 #2
0
        public BaseSchoolProfile getS3ForthLevelbySubjectAndSIMD(string subject)
        {
            BaseSchoolProfile temp = new BaseSchoolProfile();

            temp.YearInfo = year;

            temp.ListGenericSchoolData.Add(SIMDQ1_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(SIMDQ2_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(SIMDQ3_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(SIMDQ4_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault());
            temp.ListGenericSchoolData.Add(SIMDQ5_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault());

            return(temp);
        }