30 lines
1.3 KiB
C#
30 lines
1.3 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;
|
|
}
|
|
}
|