50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
|
|
namespace Entity;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 节假日实体
|
|||
|
|
/// </summary>
|
|||
|
|
public class Holiday : BaseEntity
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 年份
|
|||
|
|
/// </summary>
|
|||
|
|
[Column]
|
|||
|
|
public int Year { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日期类型:1=节假日放假,3=调休工作日
|
|||
|
|
/// </summary>
|
|||
|
|
[Column]
|
|||
|
|
public int DayType { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 节假日名称(如:春节、国庆节)
|
|||
|
|
/// </summary>
|
|||
|
|
[Column(StringLength = 50)]
|
|||
|
|
public string HolidayName { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 是否休息:1=休息,0=工作
|
|||
|
|
/// </summary>
|
|||
|
|
[Column]
|
|||
|
|
public int Rest { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日期(yyyy-MM-dd格式)
|
|||
|
|
/// </summary>
|
|||
|
|
[Column(StringLength = 10)]
|
|||
|
|
public string Date { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 星期几(0=周日,1-6=周一至周六)
|
|||
|
|
/// </summary>
|
|||
|
|
[Column]
|
|||
|
|
public int Week { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 星期描述(中文)
|
|||
|
|
/// </summary>
|
|||
|
|
[Column(StringLength = 10)]
|
|||
|
|
public string WeekDescCn { get; set; } = string.Empty;
|
|||
|
|
}
|