ย้ายมาออกรายงานผ่านระบบ
This commit is contained in:
parent
4987f7c5ad
commit
b817b781d2
144 changed files with 5573 additions and 63 deletions
27
Models/MetaData/Holiday.cs
Normal file
27
Models/MetaData/Holiday.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class Holiday : EntityBase
|
||||
{
|
||||
[Required, Column(Order = 1), Comment("ประจำปี")]
|
||||
public int Year { get; set; } = 0;
|
||||
|
||||
[Required, Column(Order = 2), Comment("วันหยุด")]
|
||||
public DateTime HolidayDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 3), Comment("วันหยุด(Original)")]
|
||||
public DateTime OriginalDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, MaxLength(250), Column(Order = 4), Comment("ชื่อวันหยุด")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, Column(Order = 5), Comment("เป็นวันหยุดพิเศษหรือไม่")]
|
||||
public bool IsSpecial { get; set; } = true;
|
||||
|
||||
[Required, Column(Order = 6), Comment("ประเภทของวันหยุดสำหรับ ทำงาน 5 วัน=`NORMAL`,ทำงาน 6 วัน=`6DAYS`")]
|
||||
public string Category { get; set; } = "NORMAL";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue