|
|
@@ -27,6 +27,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
private StuSelectLessonListOfElectivePreIBLL stuSelectLessonListOfElectivePreIBLL = new StuSelectLessonListOfElectivePreBLL(); |
|
|
|
private OpenLessonPlanOfElectiveChangeIBLL openLessonPlanOfElectiveChangeIBLL = new OpenLessonPlanOfElectiveChangeBLL(); |
|
|
|
private DataSourceIBLL dataSourceIBLL = new DataSourceBLL(); |
|
|
|
private OLPElectiveStuSelectCountIBLL oLPElectiveStuSelectCountIBLL = new OLPElectiveStuSelectCountBLL(); |
|
|
|
private LessonInfoIBLL lessonInfoIBLL = new LessonInfoBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
@@ -752,7 +754,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
//相同时间不能报名 |
|
|
|
return Success("本学期此时间段已有报名的选修课!"); |
|
|
|
} |
|
|
|
|
|
|
|
//专业选修课根据学生选课次数表判断选课上限 |
|
|
|
var lesson = lessonInfoIBLL.GetLessonInfoAndTypeByLessonNo(olpeEntity.LessonNo); |
|
|
|
if (lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
{ |
|
|
|
return Fail("本系部最多选择" + oLPElectiveStuSelectCount.SelectMaxCount + "门专业选修课!"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return Fail("正在提交,请等待!"); |
|
|
@@ -873,6 +884,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//专业选修课根据学生选课次数表判断选课上限 |
|
|
|
var lesson = lessonInfoIBLL.GetLessonInfoAndTypeByLessonNo(olpeEntity.LessonNo); |
|
|
|
if (lesson.LessonTypeCode.Contains("Professional")) |
|
|
|
{ |
|
|
|
var oLPElectiveStuSelectCount = oLPElectiveStuSelectCountIBLL.GetOLPElectiveStuSelectCountEntity(olpeEntity.AcademicYearNo, olpeEntity.Semester, loginUserInfo.departmentId); |
|
|
|
if (sslleListOfNow1.Count() > oLPElectiveStuSelectCount.SelectMaxCount) |
|
|
|
{ |
|
|
|
return Fail("本系部最多选择" + oLPElectiveStuSelectCount.SelectMaxCount + "门专业选修课!"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (sslleListOfNow2.Count() > 0) |
|
|
|
{ |
|
|
|
foreach (var item in sslleListOfNow2) |
|
|
|