|
|
@@ -191,6 +191,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
//ArrangeLessonTermOfElective数据处理 |
|
|
|
var insertDataList = new List<ArrangeLessonTermOfElectiveEntity>(); |
|
|
|
var lessonData = (await BaseRepository("CollegeMIS").FindListAsync<LessonInfoEntity>()).ToList(); |
|
|
|
var oldArrangeLessonTermOfElectiveDataList = BaseRepository("CollegeMIS") |
|
|
|
.FindList<ArrangeLessonTermOfElectiveEntity>(m => m.F_SchoolId == entity.F_SchoolId |
|
|
|
&& m.AcademicYearNo == entity.AcademicYearNo && m.Semester == entity.Semester).ToList(); |
|
|
|
foreach (var item in dataList) |
|
|
|
{ |
|
|
|
if (!string.IsNullOrEmpty(item.paike.timeText)) |
|
|
@@ -217,7 +220,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
F_SchoolId = entity.F_SchoolId, |
|
|
|
CheckMark = "1" |
|
|
|
}; |
|
|
|
insertDataList.Add(insertData); |
|
|
|
if (oldArrangeLessonTermOfElectiveDataList.Count(m => m.AcademicYearNo == insertData.AcademicYearNo |
|
|
|
&& m.Semester == insertData.Semester && m.LessonNo == insertData.LessonNo |
|
|
|
&& m.LessonSection == insertData.LessonSection && m.EmpNo == insertData.EmpNo |
|
|
|
&& m.ClassRoomNo == insertData.ClassRoomNo) == 0) |
|
|
|
{ |
|
|
|
insertDataList.Add(insertData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -284,7 +293,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
x.ClassRoomNo == insertOpenLessonPlanOfElectiveData.ClassRoomNo && |
|
|
|
x.F_SchoolId == insertOpenLessonPlanOfElectiveData.F_SchoolId) == 0) |
|
|
|
{ |
|
|
|
insertOpenLessonPlanOfElectiveDataList.Add(insertOpenLessonPlanOfElectiveData); |
|
|
|
if (BaseRepository("CollegeMIS").FindEntity<OpenLessonPlanOfElectiveEntity>(m => m.Id == insertOpenLessonPlanOfElectiveData.Id) == null |
|
|
|
&& BaseRepository("CollegeMIS").FindEntity<OpenLessonPlanOfElectiveDelEntity>(m => m.Id == insertOpenLessonPlanOfElectiveData.Id) == null) |
|
|
|
{ |
|
|
|
insertOpenLessonPlanOfElectiveDataList.Add(insertOpenLessonPlanOfElectiveData); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|