2023-11-09 14:35:08 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
2023-11-15 15:38:39 +07:00
|
|
|
|
namespace BMA.EHR.Leave.Service.DTOs.DutyTime
|
2023-11-09 14:35:08 +07:00
|
|
|
|
{
|
|
|
|
|
|
public class CreateDutyTimeDto
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2023-11-28 11:14:19 +07:00
|
|
|
|
[Comment("คำอธิบาย")]
|
|
|
|
|
|
public string? Description { get; set; } = string.Empty;
|
2023-11-09 14:35:08 +07:00
|
|
|
|
|
|
|
|
|
|
[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;
|
2023-12-12 14:17:00 +07:00
|
|
|
|
|
|
|
|
|
|
[Required, Comment("Is Active")]
|
|
|
|
|
|
public bool IsActive { get; set; } = false;
|
2023-11-09 14:35:08 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|