Browse Source

黑艺新账号
北京泉江 9 months ago
parent
commit
e2dbc1dbb2
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs

+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs View File

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


Loading…
Cancel
Save