diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj index fc948d8cb..365a3c9d2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj @@ -190,6 +190,8 @@ + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs new file mode 100644 index 000000000..67fb8273e --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs @@ -0,0 +1,48 @@ +using Learun.Application.Organization; +using Learun.Application.TwoDevelopment.EducationalAdministration; +using Learun.Application.TwoDevelopment.EvaluationTeach; +using Learun.Util; +using Nancy; +using System.Collections.Generic; +using Learun.Application.TwoDevelopment.Ask; + +namespace Learun.Application.WebApi.Modules +{ + /// + /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 + /// Copyright (c) 2013-2018 北京泉江科技有限公司 + /// 创建人:数字化智慧校园-框架开发组 + /// 日 期:2018.01.04 + /// 描 述:部门管理 + /// + public class ArrangeExamTermApi : BaseApi + { + public ArrangeExamTermApi() + : base("/learun/ask") + { + Get["/teststulist"] = GetSutdentList; + } + + //private ArrangeExamTermNewIBLL AeTerm = new ArrangeExamTermNewBLL(); + Exam_ArrangeExamTermNewIBLL AeTerm=new Exam_ArrangeExamTermNewBLL(); + + /// + /// 获取学生待考试列表 + /// + /// + /// + public Response GetSutdentList(dynamic _) + { + ReqPageParam parameter = this.GetReqData(); + var data = AeTerm.GetItemPageList(parameter.pagination, parameter.queryJson); + var jsonData = new + { + rows = data, + total = parameter.pagination.total, + page = parameter.pagination.page, + records = parameter.pagination.records + }; + return Success(jsonData); + } + } +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs new file mode 100644 index 000000000..12ece770f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs @@ -0,0 +1,48 @@ +using Learun.Application.Organization; +using Learun.Application.TwoDevelopment.EducationalAdministration; +using Learun.Application.TwoDevelopment.EvaluationTeach; +using Learun.Util; +using Nancy; +using System.Collections.Generic; +using Learun.Application.TwoDevelopment.Ask; + +namespace Learun.Application.WebApi.Modules +{ + /// + /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 + /// Copyright (c) 2013-2018 北京泉江科技有限公司 + /// 创建人:数字化智慧校园-框架开发组 + /// 日 期:2018.01.04 + /// 描 述:部门管理 + /// + public class ArrangeExamTermNewApi : BaseApi + { + public ArrangeExamTermNewApi() + : base("/learun/ask") + { + Get["/testlist"] = GetPageList; + } + + //private ArrangeExamTermNewIBLL AeTerm = new ArrangeExamTermNewBLL(); + Exam_ArrangeExamTermNewIBLL AeTerm = new Exam_ArrangeExamTermNewBLL(); + + /// + /// 获取问卷列表 + /// + /// + /// + public Response GetPageList(dynamic _) + { + ReqPageParam parameter = this.GetReqData(); + var data = AeTerm.GetPageList(parameter.pagination, parameter.queryJson); + var jsonData = new + { + rows = data, + total = parameter.pagination.total, + page = parameter.pagination.page, + records = parameter.pagination.records + }; + return Success(jsonData); + } + } +} \ No newline at end of file