From 5b61729769854450503313ae4df5b5732af940b4 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 27 Mar 2023 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?app2.0=20=E8=80=83=E8=AF=95=E5=AE=89=E6=8E=92?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi.csproj | 2 + .../ArrangeExamTermApi.cs | 48 +++++++++++++++++++ .../ArrangeExamTermNewApi.cs | 48 +++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs 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