|
|
@@ -759,7 +759,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
if (lesson != null && lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
if (oLPElectiveStuSelectCount != null && sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
{ |
|
|
|
return Fail("本系部最多选择" + oLPElectiveStuSelectCount.SelectMaxCount + "门专业选修课!"); |
|
|
|
} |
|
|
@@ -890,7 +890,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
if (lesson != null && lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
if (oLPElectiveStuSelectCount != null && sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
{ |
|
|
|
return Fail("本系部最多选择" + oLPElectiveStuSelectCount.SelectMaxCount + "门专业选修课!"); |
|
|
|
} |
|
|
|