- Introduced a new column 'LeaveCount' of type int to the LeaveBeginnings table. - Set default value to 0 and added a comment for clarity in Thai: "จำนวนครั้งที่ลาสะสม".
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using BMA.EHR.Domain.Models.Base;
|
|
using BMA.EHR.Domain.Models.Leave.Commons;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Domain.Models.Leave.Requests
|
|
{
|
|
public class LeaveBeginning : EntityBase
|
|
{
|
|
[Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")]
|
|
public Guid ProfileId { get; set; } = Guid.Empty;
|
|
|
|
public string? Prefix { get; set; } = string.Empty;
|
|
|
|
public string? FirstName { get; set; } = string.Empty;
|
|
|
|
public string? LastName { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("รหัสประเภทการลา")]
|
|
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
|
|
|
public LeaveType LeaveType { get; set; }
|
|
|
|
[Required, Comment("ปีงบประมาณ")]
|
|
public int LeaveYear { get; set; } = 0;
|
|
|
|
[Required, Comment("จำนวนวันลายกมา")]
|
|
public double LeaveDays { get; set; } = 0.0;
|
|
|
|
[Required, Comment("จำนวนวันลาที่ใช้ไป")]
|
|
public double LeaveDaysUsed { get; set; } = 0.0;
|
|
|
|
[Comment("จำนวนครั้งที่ลาสะสม")]
|
|
public int LeaveCount { 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; }
|
|
}
|
|
}
|