|
|
@@ -28,6 +28,9 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
Get["/teacher"] = GetTeachers; |
|
|
|
Get["/class"] = GetClasses; |
|
|
|
Get["/stu"] = GetStus; |
|
|
|
//获取教学计划 |
|
|
|
Get["/teachingplan"] = GetTeachingPlan; |
|
|
|
|
|
|
|
//以下返回全部 |
|
|
|
Get["/department"] = GetDepartment; |
|
|
|
Get["/allteacher"] = GetAllTeachers; |
|
|
@@ -39,6 +42,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
Get["/allschool"] = GetAllSchools; |
|
|
|
Get["/allclasslesson"] = GetAllClassLesson; |
|
|
|
Get["/allelelectivelesson"] = GetAllElectiveLesson; |
|
|
|
Get["/allteachingplan"] = GetAllTeachingPlan; |
|
|
|
|
|
|
|
//以下接口不往ArrangeLessonSync里记录已传数据 |
|
|
|
Get["/schoolNotRecord"] = GetSchoolsNotRecord; |
|
|
@@ -62,6 +66,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
ClassInfoIBLL classInfoIbll = new ClassInfoBLL(); |
|
|
|
UserIBLL userIbll = new UserBLL(); |
|
|
|
private CompanyIBLL companyIbll = new CompanyBLL(); |
|
|
|
private TeachingPlanIBLL teachingPlanIbll = new TeachingPlanBLL(); |
|
|
|
|
|
|
|
private StuSelectLessonListOfElectiveIBLL stuSelectLessonListOfElectiveIbll = |
|
|
|
new StuSelectLessonListOfElectiveBLL(); |
|
|
@@ -155,6 +160,17 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var result = arrangeLessonTermIBLL.GetLessonTypes(); |
|
|
|
return Success(result); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 获取教学计划 |
|
|
|
/// </summary> |
|
|
|
/// <param name="_"></param> |
|
|
|
/// <returns></returns> |
|
|
|
private Response GetAllTeachingPlan(dynamic _) |
|
|
|
{ |
|
|
|
var result = teachingPlanIbll.GetTeachingPlan("", ""); |
|
|
|
return Success(result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Response GetSchools(dynamic _) |
|
|
|
{ |
|
|
@@ -288,6 +304,19 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
return Success(result); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 获取教学计划 |
|
|
|
/// </summary> |
|
|
|
/// <param name="_"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public Response GetTeachingPlan(dynamic _) |
|
|
|
{ |
|
|
|
string AcademicYearNo = Request.Query["AcademicYearNo"]; |
|
|
|
string Semester = Request.Query["Semester"]; |
|
|
|
var result = teachingPlanIbll.GetTeachingPlan(AcademicYearNo, Semester); |
|
|
|
return Success(result); |
|
|
|
} |
|
|
|
|
|
|
|
public Response GetStusNotRecord(dynamic _) |
|
|
|
{ |
|
|
|
string AcademicYearNo = Request.Query["AcademicYearNo"]; |
|
|
|