change round

This commit is contained in:
Suphonchai Phoonsawat 2023-11-23 15:48:09 +07:00
parent 22d9210416
commit 2bf43a52b5
27 changed files with 69774 additions and 7 deletions

View file

@ -4,6 +4,7 @@ using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Documents;
using BMA.EHR.Domain.Models.MetaData;
using BMA.EHR.Domain.Models.Organizations;
using BMA.EHR.Domain.Models.Leave.TimeAttendants;
namespace BMA.EHR.Domain.Models.HR
{
@ -326,5 +327,13 @@ namespace BMA.EHR.Domain.Models.HR
public virtual List<ProfileChildren> Childrens { get; set; } = new List<ProfileChildren>();
public virtual List<ProfileChangeName> ChangeNames { get; set; } = new List<ProfileChangeName>();
public virtual List<ProfileEmployment> Employments { get; set; } = new List<ProfileEmployment>();
// รอบการลงเวลา
[Comment("รอบการลงเวลาเข้างาน")]
public Guid? DutyTimeId { get; set; }
[Comment("วันที่รอบการลงเวลามีผล")]
public DateTime? DutyTimeEffectiveDate { get; set; }
}
}

View file

@ -6,13 +6,19 @@ namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
{
public class UserDutyTime : EntityBase
{
[Required, Comment("รหัส User ของ Keycloak")]
public Guid KeycloakUserId { get; set; } = Guid.Empty;
[Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")]
public Guid ProfileId { get; set; } = Guid.Empty;
[Required, Comment("รหัสรอบการลงเวลา")]
public Guid DutyTimeId { get; set; } = Guid.Empty;
[Comment("วันที่มีผล")]
public DateTime? EffectiveDate { get; set; }
[Comment("ทำการประมวลผลแล้วหรือยัง")]
public bool IsProcess { get; set; } = false;
[Comment("หมายเหตุ")]
public string? Remark { get; set; }
}
}