|
|
@@ -95,7 +95,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
return this.BaseRepository("CollegeMIS").FindTable($" select distinct EPLId,LessonName,LessonNo from Exam_ExamPlanLesson where EPId='{EPId}'"); |
|
|
|
return this.BaseRepository("CollegeMIS").FindTable($" select distinct EPLId,LessonName,LessonNo from Exam_ExamPlanLesson where EPId='{EPId}' order by LessonNo"); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@@ -182,9 +182,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
if (exam_ExamPlan.PlanType == "1") |
|
|
|
{ |
|
|
|
//必修 |
|
|
|
string sql = $@"insert into Exam_ExamPlanLesson(EPLId,EPId,ELId,LessonName,LessonNo) |
|
|
|
select NEWID(),'{EPId}',ELId,LessonName,LessonNo from Exam_ExamLesson where AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' |
|
|
|
and LessonNo not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}')"; |
|
|
|
string sql = $@"insert into Exam_ExamPlanLesson(EPLId,EPId,LessonName,LessonNo) |
|
|
|
select NEWID(),'{EPId}',LessonName+'('+grade+')',LessonNo+'('+grade+')' from Exam_ExamLesson where AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' |
|
|
|
and LessonNo not in (select LessonNo+'('+grade+')' from Exam_ExamPlanLesson where EPId='{EPId}') |
|
|
|
group by LessonNo,grade,LessonName"; |
|
|
|
this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
|
} |
|
|
|
else if (exam_ExamPlan.PlanType == "2") |
|
|
|