Przeglądaj źródła

考试学生管理 添加学年学期判断条件

西昌缴费二期
ndbs 2 lat temu
rodzic
commit
96b233be4c
1 zmienionych plików z 8 dodań i 8 usunięć
  1. +8
    -8
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs

+ 8
- 8
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamStudent/Exam_ExamStudentService.cs Wyświetl plik

@@ -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);
}


Ładowanie…
Anuluj
Zapisz