Bläddra i källkod

合并

新疆警官学校中职
zhangli 2 år sedan
förälder
incheckning
f7f41fd9a1
3 ändrade filer med 89 tillägg och 0 borttagningar
  1. +1
    -0
      .gitignore
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  3. +87
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/CustmerLeaveApi.cs

+ 1
- 0
.gitignore Visa fil

@@ -81,3 +81,4 @@ Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
/Learun.Framework.Ultimate V7/Learun.Application.WebApi/bin.7z
/Learun.Framework.Ultimate V7/LearunApp-2.2.0/.hbuilderx/launch.json
/Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles
/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/QRCode

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj Visa fil

@@ -203,6 +203,7 @@
<Compile Include="Modules\LogisticsManagement\Acc_StuDayRoutineApi.cs" />
<Compile Include="Modules\LogisticsManagement\Acc_PublicAreaHealthApi.cs" />
<Compile Include="Modules\LogisticsManagement\Acc_DailyAssessApi.cs" />
<Compile Include="Modules\PersonnelManagement\CustmerLeaveApi.cs" />
<Compile Include="Modules\StuLeaveManagementApi.cs" />
<Compile Include="Modules\WelfarePositionApi.cs" />
<Compile Include="Modules\OuoutsourcingApi.cs" />


+ 87
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PersonnelManagement/CustmerLeaveApi.cs Visa fil

@@ -0,0 +1,87 @@
using Nancy;
using Learun.Util;
using System.Collections.Generic;
using Learun.Application.TwoDevelopment.PersonnelManagement;
using Learun.Application.OA.Schedule;
using System;
using Learun.Application.TwoDevelopment.LR_LGManager;

namespace Learun.Application.WebApi
{
/// <summary>
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-12-25 14:53
/// 描 述:自定义表单-教师请假统计
/// </summary>
public class CustmerLeaveApi : BaseApi
{
private StudentLeaveIBLL studentLeaveIBLL = new StudentLeaveBLL();
private StudentLeave_zcIBLL studentLeave_zcIBLL = new StudentLeave_zcBLL();

/// <summary>
/// 注册接口
/// <summary>
public CustmerLeaveApi()
: base("/Learun/adms/PersonnelManagement/CustmerLeave")
{
Get["/teacherleave"] = GetPageListOfTeacherLeave;
Get["/leaderleave"] = GetPageListOfLeaderLeave;
}
#region 获取数据

/// <summary>
/// 普通教师请假统计
/// <summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetPageListOfTeacherLeave(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = studentLeaveIBLL.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);
}

/// <summary>
/// 中层及领导请假统计
/// <summary>
/// <param name="_"></param>
/// <returns></returns>
public Response GetPageListOfLeaderLeave(dynamic _)
{
ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = studentLeave_zcIBLL.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);
}

#endregion

#region 私有类

/// <summary>
/// 表单实体类
/// <summary>
private class ReqFormEntity
{
public string keyValue { get; set; }
public string strEntity { get; set; }
}
#endregion

}
}

Laddar…
Avbryt
Spara