|
|
@@ -2615,17 +2615,17 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les |
|
|
|
|
|
|
|
#region 基础数据 |
|
|
|
var lessonEntity = lessons.FirstOrDefault(x => x.LessonName == dr["课程名称"].ToString().Trim() && x.LessonNo == dr["课程编号"].ToString().Trim()); |
|
|
|
var classEntity = classes.FirstOrDefault(x => x.ClassName == dr["班级名称"].ToString().Trim() && x.ClassNo == dr["班级编号"].ToString().Trim()); |
|
|
|
var classroomEntity = classrooms.FirstOrDefault(x => x.ClassroomName == dr["教室名称"].ToString().Trim() && x.ClassroomNo == dr["教室编号"].ToString().Trim()); |
|
|
|
var empinfoEntity = empinfo.FirstOrDefault(x => x.EmpName == dr["教师名称"].ToString().Trim() && x.EmpNo == dr["教师编号"].ToString().Trim()); |
|
|
|
if (lessonEntity == null) |
|
|
|
throw (new Exception("查无此课程")); |
|
|
|
var classEntity = classes.FirstOrDefault(x => x.ClassName == dr["班级名称"].ToString().Trim() && x.ClassNo == dr["班级编号"].ToString().Trim()); |
|
|
|
if (classEntity == null) |
|
|
|
throw (new Exception("查无此班级")); |
|
|
|
if (empinfoEntity == null) |
|
|
|
throw (new Exception("查无此教师")); |
|
|
|
var classroomEntity = classrooms.FirstOrDefault(x => x.ClassroomName == dr["教室名称"].ToString().Trim() && x.ClassroomNo == dr["教室编号"].ToString().Trim()); |
|
|
|
if (classroomEntity == null) |
|
|
|
throw (new Exception("查无此教室")); |
|
|
|
var empinfoEntity = empinfo.FirstOrDefault(x => x.EmpName == dr["教师名称"].ToString().Trim() && x.EmpNo == dr["教师编号"].ToString().Trim()); |
|
|
|
if (empinfoEntity == null) |
|
|
|
throw (new Exception("查无此教师")); |
|
|
|
#endregion |
|
|
|
#region 初始化学期时间 |
|
|
|
startDate = dr["开始日期"].ToDate(); |
|
|
|