30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Domain.Models.HR
|
|
{
|
|
public class ProfileLeave : EntityBase
|
|
{
|
|
[Comment("วัน เดือน ปี ที่เริ่มลา")]
|
|
public DateTime? DateStartLeave { get; set; }
|
|
[Comment("วัน เดือน ปี ที่สิ้นสุดลา")]
|
|
public DateTime? DateEndLeave { get; set; }
|
|
[Comment("ลาครั้งที่")]
|
|
public double? NumLeave { get; set; }
|
|
[Comment("ลามาแล้ว")]
|
|
public double? SumLeave { get; set; }
|
|
[Comment("รวมเป็น")]
|
|
public double? TotalLeave { get; set; }
|
|
[Comment("สถานะ")]
|
|
public string? Status { get; set; }
|
|
[Comment("เหตุผล")]
|
|
public string? Reason { get; set; }
|
|
public virtual List<ProfileLeaveHistory> ProfileLeaveHistorys { get; set; } = new List<ProfileLeaveHistory>();
|
|
//public virtual Profile? Profile { get; set; }
|
|
[Comment("ประเภทการลา")]
|
|
public virtual TypeLeave? TypeLeave { get; set; }
|
|
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
}
|
|
}
|