hrms-api-backend/BMA.EHR.Domain/Models/HR/ProfileLeave.cs

31 lines
1.3 KiB
C#
Raw Permalink Normal View History

using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
2023-06-26 15:18:39 +07:00
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>();
2024-06-11 09:34:06 +07:00
//public virtual Profile? Profile { get; set; }
[Comment("ประเภทการลา")]
public virtual TypeLeave? TypeLeave { get; set; }
2024-06-11 09:34:06 +07:00
public Guid ProfileId { get; set; } = Guid.Empty;
}
}