Parcourir la source

app2.0 考试安排接口

怀来职教中心中职
ndbs il y a 1 an
Parent
révision
5b61729769
3 fichiers modifiés avec 98 ajouts et 0 suppressions
  1. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  2. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs
  3. +48
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj Voir le fichier

@@ -190,6 +190,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Bootstraper.cs" />
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermApi.cs" />
<Compile Include="Modules\EducationalAdministration\ArrangeExamTermNewApi.cs" />
<Compile Include="Modules\StampPersonalApi.cs" />
<Compile Include="Modules\FundsApplyApi.cs" />
<Compile Include="Modules\AnnexesApiWx.cs" />


+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermApi.cs Voir le fichier

@@ -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);
}
}
}

+ 48
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/ArrangeExamTermNewApi.cs Voir le fichier

@@ -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);
}
}
}

Chargement…
Annuler
Enregistrer