|
|
@@ -756,7 +756,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
} |
|
|
|
//专业选修课根据学生选课次数表判断选课上限 |
|
|
|
var lesson = lessonInfoIBLL.GetLessonInfoAndTypeByLessonNo(olpeEntity.LessonNo); |
|
|
|
if (lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
if (lesson != null && lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
@@ -887,7 +887,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
|
|
|
|
//专业选修课根据学生选课次数表判断选课上限 |
|
|
|
var lesson = lessonInfoIBLL.GetLessonInfoAndTypeByLessonNo(olpeEntity.LessonNo); |
|
|
|
if (lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
if (lesson != null && lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|