2025-04-23 11:25:12 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Leave.Service.DTOs.LeaveBeginnings
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EditLeaveBeginningDto
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
[Required, Comment("ปีงบประมาณ")]
|
|
|
|
|
|
public int LeaveYear { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
[Required, Comment("จำนวนวันลายกมา")]
|
|
|
|
|
|
public double LeaveDays { get; set; } = 0.0;
|
|
|
|
|
|
|
2026-05-05 12:37:38 +07:00
|
|
|
|
[Comment("จำนวนวันลาที่ใช้ไป")]
|
2026-05-05 12:56:31 +07:00
|
|
|
|
public double? LeaveDaysUsed { get; set; }
|
2026-02-05 10:54:44 +07:00
|
|
|
|
|
2026-05-05 12:37:38 +07:00
|
|
|
|
[Comment("จำนวนครั้งที่ลาสะสม")]
|
2026-05-05 12:56:31 +07:00
|
|
|
|
public int? LeaveCount { get; set; }
|
2026-02-11 11:11:19 +07:00
|
|
|
|
|
2026-05-05 12:37:38 +07:00
|
|
|
|
[Required, Comment("จำนวนวันลายกมาก่อนใช้ระบบ")]
|
2026-02-11 11:11:19 +07:00
|
|
|
|
public double BeginningLeaveDays { get; set; } = 0.0;
|
|
|
|
|
|
|
2026-05-05 12:37:38 +07:00
|
|
|
|
[Comment("จำนวนครั้งที่ลายกมาก่อนใช้ระบบ")]
|
2026-02-11 11:11:19 +07:00
|
|
|
|
public int BeginningLeaveCount { get; set; } = 0;
|
2025-04-23 11:25:12 +07:00
|
|
|
|
}
|
2026-02-18 16:34:35 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ScheduleEditLeaveBeginningDto
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
[Required, Comment("ปีงบประมาณ")]
|
|
|
|
|
|
public int LeaveYear { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
[Required, Comment("จำนวนวันลายกมา")]
|
|
|
|
|
|
public double LeaveDays { get; set; } = 0.0;
|
|
|
|
|
|
}
|
2026-02-25 15:26:49 +07:00
|
|
|
|
|
|
|
|
|
|
public class ScheduleUpdateDnaDto
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
|
|
|
|
|
2026-02-25 16:26:28 +07:00
|
|
|
|
// [Required, Comment("ปีงบประมาณ")]
|
|
|
|
|
|
// public int LeaveYear { get; set; } = 0;
|
2026-02-25 15:26:49 +07:00
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
}
|
2025-04-23 11:25:12 +07:00
|
|
|
|
}
|