feat 最大连续排班控制增加

This commit is contained in:
2025-03-06 15:43:39 +08:00
parent 840433847a
commit 0ae46edcd3
8 changed files with 190 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
using Dlhis.Entity.Basic.Enums;
using Kurisu.AspNetCore.Utils.Extensions;
namespace Dlhis.Basic.WorkGrids.Response;
public class WorkGridGainfoPageResponse
{
public long Id { get; set; }
public string No { get; set; }
/// <summary>
/// 人员类型
/// </summary>
public GainfoUserTypeEnumType? Type { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string Name { get; set; }
/// <summary>
/// 工号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 性别
/// </summary>
public GenderEnumType Gender { get; set; }
public string GenderDesc => Gender.GetDescription();
/// <summary>
/// 部门编码
/// </summary>
public string DepartmentNo { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DepartmentName { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 有工作网格
/// </summary>
public bool HasWorkGrid => WorkGridName.IsPresent();
/// <summary>
/// 网格名称
/// </summary>
public string WorkGridName { get; set; }
/// <summary>
/// 最大连续排班信息
/// </summary>
public WorkGridScheduleMaximumConsecutiveDto MaximumConsecutiveSchedules { get; set; }
}

View File

@@ -0,0 +1,21 @@
namespace Dlhis.Basic.WorkGrids.Response;
public class WorkGridScheduleMaximumConsecutiveDto
{
public string UserCode { get; set; }
/// <summary>
/// 连续次数
/// </summary>
public int Count { get; set; }
/// <summary>
/// 开始日期
/// </summary>
public DateOnly Start { get; set; }
/// <summary>
/// 结束日期
/// </summary>
public DateOnly End { get; set; }
}