add migration for LeaveRequest
This commit is contained in:
parent
d6e43a44bb
commit
5c51bf1f99
9 changed files with 2156 additions and 6 deletions
9
BMA.EHR.Domain/Models/Leave/Commons/LeaveType.cs
Normal file
9
BMA.EHR.Domain/Models/Leave/Commons/LeaveType.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.Commons
|
||||
{
|
||||
public class LeaveType : EntityBase
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
108
BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs
Normal file
108
BMA.EHR.Domain/Models/Leave/Requests/LeaveRequest.cs
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue