|
|
@@ -2639,6 +2639,8 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les |
|
|
|
var lessonEndDate = startDate.AddDays(endWeek * 7 - 1); |
|
|
|
if (lessonEndDate > endDate) lessonEndDate = endDate; |
|
|
|
#endregion |
|
|
|
|
|
|
|
var weekType = dr["课程类型"].ToString(); |
|
|
|
#region 计算真正的上课时间 |
|
|
|
var lessonWeekData = dr["上课周几"].ToInt(); |
|
|
|
var lessonStartDateWeek = (int)lessonStartDate.DayOfWeek; |
|
|
@@ -2652,11 +2654,14 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les |
|
|
|
{ |
|
|
|
trueStartDate = lessonStartDate.AddDays(7 - (lessonStartDateWeek - lessonWeekData)); |
|
|
|
} |
|
|
|
if (weekType == "双周") |
|
|
|
{ |
|
|
|
trueStartDate = trueStartDate.AddDays(7); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
|
|
|
|
var intLesson = dr["上课节次"].ToInt(); |
|
|
|
var lessonTime = lessonTimes[intLesson]; |
|
|
|
var weekType = dr["课程类型"].ToString(); |
|
|
|
while (true) |
|
|
|
{ |
|
|
|
//写入要导入替换的数据 |
|
|
|