All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m46s
63 lines
2.1 KiB
C#
63 lines
2.1 KiB
C#
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;
|
|
|
|
[Comment("จำนวนวันลาที่ใช้ไป")]
|
|
public double? LeaveDaysUsed { get; set; }
|
|
|
|
[Comment("จำนวนครั้งที่ลาสะสม")]
|
|
public int? LeaveCount { get; set; }
|
|
|
|
[Required, Comment("จำนวนวันลายกมาก่อนใช้ระบบ")]
|
|
public double BeginningLeaveDays { get; set; } = 0.0;
|
|
|
|
[Comment("จำนวนครั้งที่ลายกมาก่อนใช้ระบบ")]
|
|
public int BeginningLeaveCount { get; set; } = 0;
|
|
}
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
public class ScheduleUpdateDnaDto
|
|
{
|
|
[Required]
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
|
|
// [Required, Comment("ปีงบประมาณ")]
|
|
// public int LeaveYear { get; set; } = 0;
|
|
|
|
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; }
|
|
}
|
|
}
|