diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs index e101fdba3..92370ceb7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs @@ -84,7 +84,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } - + public IEnumerable GetPageListForExam(Pagination pagination, string queryJson) { try @@ -348,7 +348,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration try { var historyStu = this.BaseRepository("CollegeMIS").FindList(); - + int XQ = Convert.ToInt32(Semester); List AddLStuist = new List(); if (ESType == "1") { @@ -361,13 +361,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration ESId = Guid.NewGuid().ToString(), ClassNo = item.ClassNo, AcademicYearNo = AcademicYearNo, - Semester = Convert.ToInt32(Semester), + Semester = XQ, StuNo = item.StuNo, StuName = item.StuName, ESType = "1", ESEnabled = true }; - if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.ESType == "1") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.ESType == "1")) + if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.AcademicYearNo == AcademicYearNo && x.Semester == XQ && x.ESType == "1") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.AcademicYearNo == AcademicYearNo && s.Semester == XQ && s.ESType == "1")) { AddLStuist.Add(stuList); } @@ -384,13 +384,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration ESId = Guid.NewGuid().ToString(), ClassNo = item.ClassNo, AcademicYearNo = AcademicYearNo, - Semester = Convert.ToInt32(Semester), + Semester = XQ, StuNo = item.StuNo, StuName = item.StuName, ESType = "2", ESEnabled = true }; - if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.ESType == "2") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.ESType == "2")) + if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.AcademicYearNo == AcademicYearNo && x.Semester == XQ && x.ESType == "2") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.AcademicYearNo == AcademicYearNo && s.Semester == XQ && s.ESType == "2")) { AddLStuist.Add(stuList); } @@ -407,13 +407,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration ESId = Guid.NewGuid().ToString(), ClassNo = item.ClassNo, AcademicYearNo = AcademicYearNo, - Semester = Convert.ToInt32(Semester), + Semester = XQ, StuNo = item.StuNo, StuName = item.StuName, ESType = "3", ESEnabled = true }; - if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.ESType == "3") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.ESType == "3")) + if (historyStu.Count(x => x.StuNo == stuList.StuNo && x.StuName == stuList.StuName && x.AcademicYearNo == AcademicYearNo && x.Semester == XQ && x.ESType == "3") == AddLStuist.Count(s => s.StuNo == stuList.StuNo && s.StuName == stuList.StuName && s.AcademicYearNo == AcademicYearNo && s.Semester == XQ && s.ESType == "3")) { AddLStuist.Add(stuList); }