hrms-api-backend/BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs
2023-11-29 17:28:15 +07:00

120 lines
4.2 KiB
C#

using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Documents;
using BMA.EHR.Domain.Models.Leave.Commons;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Domain.Models.Leave.Requests
{
public class LeaveRequest : EntityBase
{
[Required, Comment("Id ประเภทการลา")]
public LeaveType Type { get; set; }
[Required, Comment("วัน เดือน ปีเริ่มต้นลา")]
public DateTime LeaveStartDate { get; set; } = DateTime.Now;
[Required, Comment("วัน เดือน ปีสิ้นสุดลา")]
public DateTime LeaveEndDate { get; set; } = DateTime.Now;
[Required, Comment("เขียนที่")]
public string LeaveWrote { get; set; } = string.Empty;
[Required, Comment("สถานที่ติดต่อขณะลา")]
public string LeaveAddress { get; set; } = string.Empty;
[Required, Comment("หมายเลขที่ติดต่อขณะลา")]
public string LeaveNumber { get; set; } = string.Empty;
[Required, Comment("รายละเอียดการลา")]
public string LeaveDetail { get; set; } = string.Empty;
public Document LeaveDocument { get; set; }
public Document LeaveDraftDocument { get; set; }
public string LeaveSalaryText { get; set; } = string.Empty;
public string WifeDayName { get; set; } = string.Empty;
public string WifeDayDateBorn { get; set; } = string.Empty;
public int RestDayOldTotal { get; set; } = 0;
public int RestDayCurrentTotal { get; set; } = 0;
public bool OrdainDayStatus { get; set; } = false;
public string OrdainDayLocationName { get; set; } = string.Empty;
public string OrdainDayLocationAddress { get; set; } = string.Empty;
public string OrdainDayLocationNumber { get; set; } = string.Empty;
public DateTime OrdainDayOrdination { get; set; } = DateTime.Now;
public string OrdainDayBuddhistLentName { get; set; } = string.Empty;
public string OrdainDayBuddhistLentAddress { get; set; } = string.Empty;
public bool HajjDayStatus { get; set; } = false;
public string AbsentDaySummon { get; set; } = string.Empty;
public string AbsentDayLocation { get; set; } = string.Empty;
public DateTime AbsentDayRegistorDate { get; set; } = DateTime.Now;
public string AbsentDayGetIn { get; set; } = string.Empty;
public string AbsentDayAt { get; set; } = string.Empty;
public string StudyDaySubject { get; set; } = string.Empty;
public string StudyDayDegreeLevel { get; set; } = string.Empty;
public string StudyDayUniversityName { get; set; } = string.Empty;
public string StudyDayTrainingSubject { get; set; } = string.Empty;
public string StudyDayTrainingName { get; set; } = string.Empty;
public string StudyDayCountry { get; set; } = string.Empty;
public string StudyDayScholarship { get; set; } = string.Empty;
public string CoupleDayName { get; set; } = string.Empty;
public string CoupleDayPosition { get; set; } = string.Empty;
public string CoupleDayLevel { get; set; } = string.Empty;
public string CoupleDayLevelCountry { get; set; } = string.Empty;
public string CoupleDayCountryHistory { get; set; } = string.Empty;
public string CoupleDayTotalHistory { get; set; } = string.Empty;
public DateTime CoupleDayStartDateHistory { get; set; } = DateTime.Now;
public DateTime CoupleDayEndDateHistory { get; set; } = DateTime.Now;
public string CoupleDaySumTotalHistory { get; set; } = string.Empty;
public string LeaveStatus { get; set; } = string.Empty;
public string LeaveComment { get; set; } = string.Empty;
public int LeaveTotal { get; set; } = 0;
public DateTime? LeaveLast { get; set; }
public Guid KeycloakUserId { get; set; } = Guid.Empty;
public DateTime? LeaveBirthDate { get; set; }
public DateTime? LeaveGovernmentDate { get; set; }
public int? LeaveSalary { get; set; }
}
}