2023-11-23 10:35:55 +07:00
|
|
|
|
using BMA.EHR.Domain.Models.Base;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
|
|
|
|
|
{
|
|
|
|
|
|
public class UserDutyTime : EntityBase
|
|
|
|
|
|
{
|
2023-11-23 15:48:09 +07:00
|
|
|
|
[Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")]
|
|
|
|
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
2023-11-23 10:35:55 +07:00
|
|
|
|
|
|
|
|
|
|
[Required, Comment("รหัสรอบการลงเวลา")]
|
|
|
|
|
|
public Guid DutyTimeId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
2023-11-23 17:04:45 +07:00
|
|
|
|
public DutyTime DutyTime { get; set; }
|
|
|
|
|
|
|
2023-11-23 10:35:55 +07:00
|
|
|
|
[Comment("วันที่มีผล")]
|
|
|
|
|
|
public DateTime? EffectiveDate { get; set; }
|
2023-11-23 15:48:09 +07:00
|
|
|
|
|
|
|
|
|
|
[Comment("ทำการประมวลผลแล้วหรือยัง")]
|
|
|
|
|
|
public bool IsProcess { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
[Comment("หมายเหตุ")]
|
2025-06-20 14:44:53 +07:00
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? RootDnaId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? Child1DnaId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? Child2DnaId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? Child3DnaId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid? Child4DnaId { get; set; }
|
2023-11-23 10:35:55 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|