30 lines
1.4 KiB
C#
30 lines
1.4 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
|
{
|
|
public class DutyTime : EntityBase
|
|
{
|
|
[Required, Comment("คำอธิบาย")]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("เวลาเข้างานช่วงเช้า")]
|
|
public string StartTimeMorning { get; set; } = "00:00";
|
|
|
|
[Required, Comment("เวลาออกงานช่วงเช้า")]
|
|
public string EndTimeMorning { get; set; } = "00:00";
|
|
|
|
[Required, Comment("เวลาเข้างานช่วงบ่าย")]
|
|
public string StartTimeAfternoon { get; set; } = "00:00";
|
|
|
|
[Required, Comment("เวลาออกงานช่วงบ่าย")]
|
|
public string EndTimeAfternoon { get; set; } = "00:00";
|
|
|
|
[Required, Comment("สถานะว่ารอบใดเป็นค่า Default ของข้าราชการ (สำหรับทุกคนที่ยังไม่ได้ทำการเลือกรอบ)")]
|
|
public bool IsDefault { get; set; } = false;
|
|
|
|
[Required, Comment("สถานะการเปิดใช้งาน (เปิด/ปิด)")]
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|