|
|
@@ -143,7 +143,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public ActionResult GetPageListOfStudent(string pagination, string queryJson) |
|
|
|
{ |
|
|
|
Pagination paginationobj = pagination.ToObject<Pagination>(); |
|
|
|
var data = openLessonPlanOfElectiveIBLL.GetPageListOfStudent(paginationobj, queryJson).OrderByDescending(x => x.AcademicYearNo).ThenByDescending(x => x.Semester).ThenBy(x => x.LessonNo).ThenBy(x=>x.EmpNo); |
|
|
|
var data = openLessonPlanOfElectiveIBLL.GetPageListOfStudent(paginationobj, queryJson).OrderByDescending(x => x.AcademicYearNo).ThenByDescending(x => x.Semester).ThenBy(x => x.LessonNo).ThenBy(x => x.EmpNo); |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
rows = data, |
|
|
@@ -506,9 +506,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
var sslleList = stuSelectLessonListOfElectiveIBLL.GetStuSelectLessonListOfElectiveListByStuNo(loginUserInfo.enCode); |
|
|
|
var sslleListOfNow = sslleList.Where(x => x.AcademicYearNo == olpeEntity.AcademicYearNo && x.Semester == olpeEntity.Semester); |
|
|
|
var sslleListOfNow1 = sslleListOfNow.Where(x => x.Status == 1 || x.Status == 2); |
|
|
|
if (sslleListOfNow1.Count() >= 2) |
|
|
|
//if (sslleListOfNow1.Count() >= 2) |
|
|
|
if (sslleListOfNow1.Count() >= Config.GetValue("ElectiveLessonApplyMax").ToInt()) |
|
|
|
{ |
|
|
|
return Success("每学期最多选择两门选修课!"); |
|
|
|
return Success("每学期最多选择" + Config.GetValue("ElectiveLessonApplyMax").ToInt() + "门选修课!"); |
|
|
|
} |
|
|
|
//相同时间不能报名 |
|
|
|
if (sslleListOfNow1.Where(x => x.LessonSection == olpeEntity.LessonSection).Any()) |
|
|
@@ -618,9 +619,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
var sslleListOfNow = sslleList.Where(x => x.AcademicYearNo == olpeEntity.AcademicYearNo && x.Semester == olpeEntity.Semester); |
|
|
|
var sslleListOfNow1 = sslleListOfNow.Where(x => x.Status == 1 || x.Status == 2); |
|
|
|
var sslleListOfNow2 = sslleListOfNow.Where(x => x.Status == 3); |
|
|
|
if (sslleListOfNow1.Count() >= 2) |
|
|
|
if (sslleListOfNow1.Count() >= Config.GetValue("ElectiveLessonApplyMax").ToInt()) |
|
|
|
{ |
|
|
|
return Fail("每学期最多选择两门选修课!"); |
|
|
|
return Fail("每学期最多选择" + Config.GetValue("ElectiveLessonApplyMax").ToInt() + "门选修课!"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|