|
|
@@ -84,7 +84,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<Exam_ExamStudentEntity> GetPageListForExam(Pagination pagination, string queryJson) |
|
|
|
{ |
|
|
|
try |
|
|
@@ -348,7 +348,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
try |
|
|
|
{ |
|
|
|
var historyStu = this.BaseRepository("CollegeMIS").FindList<Exam_ExamStudentEntity>(); |
|
|
|
|
|
|
|
int XQ = Convert.ToInt32(Semester); |
|
|
|
List<Exam_ExamStudentEntity> AddLStuist = new List<Exam_ExamStudentEntity>(); |
|
|
|
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); |
|
|
|
} |
|
|
|