培训报表 新增查询新入职员工页面

master
xiaochanghai 5 months ago
parent 712cf53d73
commit 4696badcf2
  1. 5
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  2. 6
      Tiobon.Core.Model/View/Ghra/Ghra_Staff.Dto.View.cs
  3. 14
      Tiobon.Core.Services/Ghra/Ghra_StaffServices.cs
  4. 5
      Tiobon.Core.Services/ReportServices.cs
  5. 5
      Tiobon.Core/Tiobon.Core.Model.xml
  6. 20
      Tiobon.Core/Tiobon.Core.xml

@ -27687,6 +27687,11 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffDto.GenderLabel">
<summary>
性别
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffEduBGDto">
<summary>
Ghra_StaffEduBG(Dto.View1)

@ -34,4 +34,10 @@ public class Ghra_StaffDto : Ghra_Staff
public List<Ghra_StaffLicenceDto> Licences { get; set; }
/// <summary>
/// 性别
/// </summary>
public string GenderLabel { get; set; }
public string IndateLabel { get; set; }
}

@ -16,6 +16,20 @@ public class Ghra_StaffServices : BaseServices<Ghra_Staff, Ghra_StaffDto, Insert
base._caching = caching;
_ghra_StaffLicenceServices = ghra_StaffLicenceServices;
}
public override async Task<ServicePageResult<Ghra_StaffDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
{
var result = await base.QueryFilterPage(filter, condition, IsEnable);
for (int i = 0; i < result.result.DT_TableDataT1.Count; i++)
{
result.result.DT_TableDataT1[i].GenderLabel = await GetParaLabel("Gender", result.result.DT_TableDataT1[i].Gender);
result.result.DT_TableDataT1[i].IndateLabel = DateTimeHelper.ConvertToDayString(result.result.DT_TableDataT1[i].Indate);
}
return result;
}
public async Task<ServiceResult<Ghra_StaffDto>> QuerySimple(int id)
{
var entity = await Db.Ado.SqlQuerySingleAsync<Ghra_StaffDto>($"SELECT * FROM Ghra_Staff WHERE StaffID='{id}' ");

@ -42,7 +42,10 @@ public partial class ReportServices : BaseServices<RootEntityTkey<int>>, IReport
}
var dateTime = DateTime.Now.AddMonths(-month);
condition = $"Indate >= '{DateTimeHelper.ConvertToDayString(dateTime)}'";
if (filter.orderBy.IsNotEmptyOrNull())
filter.orderBy = "Indate DESC";
condition = $"Indate >= '{DateTimeHelper.ConvertToDayString(dateTime)}' AND OutDate IS NULL";
var result = await _staffServices.QueryFilterPage(filter, condition, IsEnable);
return result;

@ -27687,6 +27687,11 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghra_StaffDto.GenderLabel">
<summary>
性别
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghra_StaffEduBGDto">
<summary>
Ghra_StaffEduBG(Dto.View1)

@ -571,6 +571,26 @@
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Controllers.ReportController">
<summary>
公共服务
</summary>
</member>
<member name="M:Tiobon.Core.Controllers.ReportController.#ctor(Microsoft.Extensions.Logging.ILogger{Tiobon.Core.Controllers.CommonController},Tiobon.Core.IServices.IReportServices)">
<summary>
构造函数
</summary>
<param name="logger"></param>
<param name="services"></param>
</member>
<member name="M:Tiobon.Core.Controllers.ReportController.QueryNewStaffAsync(Tiobon.Core.Common.QueryBody,System.String)">
<summary>
获取新入职人员列表
</summary>
<param name="filter"></param>
<param name="condition"></param>
<returns></returns>
</member>
<member name="M:Tiobon.Core.Controllers.TasksQzController.Get(System.Int32,System.String)">
<summary>
分页获取

Loading…
Cancel
Save