54 lines
1.8 KiB
C#
54 lines
1.8 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
|
{
|
|
public class AdditionalCheckRequest: EntityBase
|
|
{
|
|
[Required,Comment("*วันที่ลงเวลา")]
|
|
public DateTime CheckDate { get; set; } = DateTime.Now.Date;
|
|
|
|
[Required, Comment("*ขอลงเวลาช่วงเช้า")]
|
|
public bool CheckInEdit { get; set; } = false;
|
|
|
|
[Required, Comment("*ขอลงเวลาช่วงบ่าย")]
|
|
public bool CheckOutEdit { get; set; } = false;
|
|
|
|
[Required, Comment("*หมายเหตุขอลงเวลาพิเศษ")]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
[Comment("สถานะการอนุมัติ")]
|
|
public string Status { get; set; } = "PENDING"; // APPROVE,REJECT
|
|
|
|
[Comment("หมายเหตุในการการอนุมัติ/ไม่อนุมัติ")]
|
|
public string? Comment { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รหัส User ของ Keycloak ที่ร้องขอ")]
|
|
public Guid KeycloakUserId { get; set; } = Guid.Empty;
|
|
|
|
public string? Prefix { get; set; }
|
|
|
|
public string? FirstName { get; set; }
|
|
|
|
public string? LastName { get; set; }
|
|
|
|
|
|
public string? POI { get; set; } = string.Empty;
|
|
|
|
public double? Latitude { get; set; } = 0.0;
|
|
|
|
public double? Longitude { get; set; } = 0.0;
|
|
|
|
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; }
|
|
|
|
}
|
|
}
|