36 lines
763 B
C#
36 lines
763 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Dlhis.Entity.Basic.Enums;
|
|
|
|
namespace Dlhis.Basic.WorkGrids.Request;
|
|
|
|
public class WorkGridTimePeriodSaveRequest
|
|
{
|
|
public long? Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 班次, eg: 禁止编辑
|
|
/// </summary>
|
|
public WorkGridTimePeriodEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 前(min)
|
|
/// </summary>
|
|
[Range(1, int.MaxValue)]
|
|
public int Before { get; set; }
|
|
|
|
/// <summary>
|
|
/// 后(min)
|
|
/// </summary>
|
|
[Range(1, int.MaxValue)]
|
|
public int After { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开始时间
|
|
/// </summary>
|
|
public TimeOnly Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束时间
|
|
/// </summary>
|
|
public TimeOnly End { get; set; }
|
|
} |