fix: insignia + leave Error
This commit is contained in:
parent
41d28c4d7f
commit
7d8a80e9df
72 changed files with 132 additions and 142 deletions
30
BMA.EHR.Leave/DTOs/DutyTime/CreateDutyTimeDto.cs
Normal file
30
BMA.EHR.Leave/DTOs/DutyTime/CreateDutyTimeDto.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.DutyTime
|
||||
{
|
||||
public class CreateDutyTimeDto
|
||||
{
|
||||
|
||||
[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("Is Active")]
|
||||
public bool IsActive { get; set; } = false;
|
||||
}
|
||||
}
|
||||
17
BMA.EHR.Leave/DTOs/DutyTime/UpdateDutyTimeDto.cs
Normal file
17
BMA.EHR.Leave/DTOs/DutyTime/UpdateDutyTimeDto.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.DutyTime
|
||||
{
|
||||
public class UpdateDutyTimeDto
|
||||
{
|
||||
[Comment("คำอธิบาย")]
|
||||
public string? Description { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("สถานะว่ารอบใดเป็นค่า Default ของข้าราชการ (สำหรับทุกคนที่ยังไม่ได้ทำการเลือกรอบ)")]
|
||||
public bool IsDefault { get; set; } = false;
|
||||
|
||||
[Required, Comment("สถานะการเปิดใช้งาน (เปิด/ปิด)")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue