@@ -190,6 +190,8 @@ | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<Compile Include="Bootstraper.cs" /> | <Compile Include="Bootstraper.cs" /> | ||||
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermApi.cs" /> | |||||
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermNewApi.cs" /> | |||||
<Compile Include="Modules\StampPersonalApi.cs" /> | <Compile Include="Modules\StampPersonalApi.cs" /> | ||||
<Compile Include="Modules\FundsApplyApi.cs" /> | <Compile Include="Modules\FundsApplyApi.cs" /> | ||||
<Compile Include="Modules\AnnexesApiWx.cs" /> | <Compile Include="Modules\AnnexesApiWx.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 | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 | |||||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
/// 创建人:数字化智慧校园-框架开发组 | |||||
/// 日 期:2018.01.04 | |||||
/// 描 述:部门管理 | |||||
/// </summary> | |||||
public class ArrangeExamTermApi : BaseApi | |||||
{ | |||||
public ArrangeExamTermApi() | |||||
: base("/learun/ask") | |||||
{ | |||||
Get["/teststulist"] = GetSutdentList; | |||||
} | |||||
//private ArrangeExamTermNewIBLL AeTerm = new ArrangeExamTermNewBLL(); | |||||
Exam_ArrangeExamTermNewIBLL AeTerm=new Exam_ArrangeExamTermNewBLL(); | |||||
/// <summary> | |||||
/// 获取学生待考试列表 | |||||
/// </summary> | |||||
/// <param name="_"></param> | |||||
/// <returns></returns> | |||||
public Response GetSutdentList(dynamic _) | |||||
{ | |||||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||||
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); | |||||
} | |||||
} | |||||
} |
@@ -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 | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.0 数字化智慧校园 | |||||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
/// 创建人:数字化智慧校园-框架开发组 | |||||
/// 日 期:2018.01.04 | |||||
/// 描 述:部门管理 | |||||
/// </summary> | |||||
public class ArrangeExamTermNewApi : BaseApi | |||||
{ | |||||
public ArrangeExamTermNewApi() | |||||
: base("/learun/ask") | |||||
{ | |||||
Get["/testlist"] = GetPageList; | |||||
} | |||||
//private ArrangeExamTermNewIBLL AeTerm = new ArrangeExamTermNewBLL(); | |||||
Exam_ArrangeExamTermNewIBLL AeTerm = new Exam_ArrangeExamTermNewBLL(); | |||||
/// <summary> | |||||
/// 获取问卷列表 | |||||
/// </summary> | |||||
/// <param name="_"></param> | |||||
/// <returns></returns> | |||||
public Response GetPageList(dynamic _) | |||||
{ | |||||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||||
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); | |||||
} | |||||
} | |||||
} |