diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs
new file mode 100644
index 000000000..5bced8bac
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuLeaveManagementApi.cs
@@ -0,0 +1,144 @@
+using Learun.Application.Organization;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.EvaluationTeach;
+using Learun.Util;
+using Nancy;
+using System;
+using System.Collections.Generic;
+
+namespace Learun.Application.WebApi.Modules
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创建人:数字化智慧校园-框架开发组
+ /// 日 期:2018.01.04
+ /// 描 述:部门管理
+ ///
+ public class StuLeaveManagementApi : BaseApi
+ {
+ private StuLeaveManagementIBLL stuLeaveManagementBLL = new StuLeaveManagementBLL();
+
+ public StuLeaveManagementApi()
+ : base("/learun/adms/stuleavemanagement")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/list"] = GetList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ Post["/savecheck"] = SaveCheckForm;
+ }
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = stuLeaveManagementBLL.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);
+ }
+ ///
+ /// 获取页面显示列表数据
+ ///
+ ///
+ ///
+ public Response GetList(dynamic _)
+ {
+ string queryJson = this.GetReqData();
+ var data = stuLeaveManagementBLL.GetList(queryJson);
+ return Success(data);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var StuMailData = stuLeaveManagementBLL.GetStuLeaveManagementEntity(keyValue);
+ var jsonData = new
+ {
+ StuMail = StuMailData,
+ };
+ return Success(jsonData);
+ }
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ stuLeaveManagementBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ ReqFormEntity parameter = this.GetReqData();
+ StuLeaveManagementEntity entity = parameter.strEntity.ToObject();
+ entity.CreateTime = DateTime.Now;
+ entity.CreateUserId = this.userInfo.userId;
+ entity.CreateUserName = this.userInfo.realName;
+ stuLeaveManagementBLL.SaveEntity(parameter.keyValue, entity);
+ return Success("保存成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ ReqFormEntity parameter = this.GetReqData();
+ stuLeaveManagementBLL.DoSubmit(parameter.keyValue);
+ return Success("提交成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveCheckForm(dynamic _)
+ {
+ ReqFormEntity parameter = this.GetReqData();
+ stuLeaveManagementBLL.SaveCheck(parameter.keyValue);
+ return Success("提交成功!");
+ }
+
+ #endregion
+
+ #region 私有类
+
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file