fix: insignia + leave Error
This commit is contained in:
parent
41d28c4d7f
commit
7d8a80e9df
72 changed files with 132 additions and 142 deletions
|
|
@ -0,0 +1,7 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class CancelLeaveRequestApproveDto
|
||||
{
|
||||
public string? Reason { get; set; }
|
||||
}
|
||||
}
|
||||
11
BMA.EHR.Leave/DTOs/LeaveRequest/CancelLeaveRequestDto.cs
Normal file
11
BMA.EHR.Leave/DTOs/LeaveRequest/CancelLeaveRequestDto.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class CancelLeaveRequestDto
|
||||
{
|
||||
public string? Reason { get; set; }
|
||||
|
||||
public IFormFile? Doc { get; set; }
|
||||
|
||||
public string? LeaveWrote { get; set; }
|
||||
}
|
||||
}
|
||||
101
BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs
Normal file
101
BMA.EHR.Leave/DTOs/LeaveRequest/CreateLeaveRequestDto.cs
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class CreateLeaveRequestDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.Now;
|
||||
|
||||
[Required]
|
||||
public DateTime LeaveEndDate { get; set; } = DateTime.Now;
|
||||
|
||||
public string? LeaveWrote { get; set; }
|
||||
|
||||
public string? LeaveRange { get; set; } = "ALL";
|
||||
|
||||
public double LeaveTotal { get; set; } = 0.0;
|
||||
|
||||
public string? LeaveAddress { get; set; }
|
||||
|
||||
public string? LeaveNumber { get; set; }
|
||||
|
||||
public string? LeaveDetail { get; set; }
|
||||
|
||||
public List<IFormFile> LeaveDocument { get; set; } = new();
|
||||
|
||||
public IFormFile? LeaveDraftDocument { get; set; }
|
||||
|
||||
public string? LeaveSalaryText { get; set; }
|
||||
|
||||
public string? WifeDayName { get; set; }
|
||||
|
||||
public string? WifeDayDateBorn { get; set; }
|
||||
|
||||
public int? RestDayOldTotal { get; set; }
|
||||
|
||||
public int? RestDayCurrentTotal { get; set; }
|
||||
|
||||
public bool? OrdainDayStatus { get; set; }
|
||||
|
||||
public string? OrdainDayLocationName { get; set; }
|
||||
|
||||
public string? OrdainDayLocationAddress { get; set; }
|
||||
|
||||
public string? OrdainDayLocationNumber { get; set; }
|
||||
|
||||
public DateTime? OrdainDayOrdination { get; set; }
|
||||
|
||||
public string? OrdainDayBuddhistLentName { get; set; }
|
||||
|
||||
public string? OrdainDayBuddhistLentAddress { get; set; }
|
||||
|
||||
public bool? HajjDayStatus { get; set; }
|
||||
|
||||
public string? AbsentDaySummon { get; set; }
|
||||
|
||||
public string? AbsentDayLocation { get; set; }
|
||||
|
||||
public DateTime? AbsentDayRegistorDate { get; set; }
|
||||
|
||||
public string? AbsentDayGetIn { get; set; }
|
||||
|
||||
public string? AbsentDayAt { get; set; }
|
||||
|
||||
public string? StudyDaySubject { get; set; }
|
||||
|
||||
public string? StudyDayDegreeLevel { get; set; }
|
||||
|
||||
public string? StudyDayUniversityName { get; set; }
|
||||
|
||||
public string? StudyDayTrainingSubject { get; set; }
|
||||
|
||||
public string? StudyDayTrainingName { get; set; }
|
||||
|
||||
public string? StudyDayCountry { get; set; }
|
||||
|
||||
public string? StudyDayScholarship { get; set; }
|
||||
|
||||
public string? CoupleDayName { get; set; }
|
||||
|
||||
public string? CoupleDayPosition { get; set; }
|
||||
|
||||
public string? CoupleDayLevel { get; set; }
|
||||
|
||||
public string? CoupleDayLevelCountry { get; set; }
|
||||
|
||||
public string? CoupleDayCountryHistory { get; set; }
|
||||
|
||||
public string? CoupleDayTotalHistory { get; set; }
|
||||
|
||||
public DateTime? CoupleDayStartDateHistory { get; set; }
|
||||
|
||||
public DateTime? CoupleDayEndDateHistory { get; set; }
|
||||
|
||||
public string? CoupleDaySumTotalHistory { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
13
BMA.EHR.Leave/DTOs/LeaveRequest/DeleteLeaveDocumentDto.cs
Normal file
13
BMA.EHR.Leave/DTOs/LeaveRequest/DeleteLeaveDocumentDto.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class DeleteLeaveDocumentDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public Guid DocId { get; set; } = Guid.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetCancelLeaveRequestByIdDto
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
|
||||
public string LeaveTypeName { get; set; } = string.Empty;
|
||||
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveDocDelete { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveReasonDelete { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveWrote { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveAddress { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveNumber { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveDetail { get; set; } = string.Empty;
|
||||
|
||||
public double LeaveTotal { get; set; } = 0;
|
||||
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime LeaveEndDate { get; set;} = DateTime.MinValue;
|
||||
}
|
||||
}
|
||||
21
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestDto.cs
Normal file
21
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCancelRequestDto.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveCancelRequestDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
[Required]
|
||||
public int PageSize { get; set; } = 10;
|
||||
|
||||
public string Keyword { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveCancelRequestResultDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string LeaveTypeName { get; set; }
|
||||
|
||||
public Guid LeaveTypeId { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
public DateTime DateSendLeave { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
16
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs
Normal file
16
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckDto.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveCheckDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public DateTime StartLeaveDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
[Required]
|
||||
public DateTime EndLeaveDate { get; set;} = DateTime.MinValue;
|
||||
}
|
||||
}
|
||||
13
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckResultDto.cs
Normal file
13
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveCheckResultDto.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveCheckResultDto
|
||||
{
|
||||
public bool IsLeave { get; set; } = false;
|
||||
|
||||
public double SumDateWork { get; set; } = 0;
|
||||
|
||||
public double TotalDate { get; set; } = 0;
|
||||
|
||||
public double SumDateHoliday { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
128
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs
Normal file
128
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestByIdDto.cs
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestByIdDto
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
|
||||
public string LeaveTypeName { get; set; } = string.Empty;
|
||||
|
||||
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateSendLeave { get; set; } = DateTime.MinValue;
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime LeaveEndDate { get; set; } = DateTime.Now;
|
||||
|
||||
public string LeaveWrote { get; set; } = string.Empty;
|
||||
|
||||
public string? LeaveRange { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveAddress { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveNumber { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveDetail { get; set; } = string.Empty;
|
||||
|
||||
public List<LeaveDocumentDto> LeaveDocument { get; set; } = new();
|
||||
|
||||
public string LeaveDraftDocument { get; set; }
|
||||
|
||||
public DateTime? LeaveLastStart { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
||||
|
||||
public double LeaveTotal { get; set; } = 0;
|
||||
|
||||
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? LeaveGovernmentDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public double LeaveSalary { get; set; } = 0;
|
||||
|
||||
public string LeaveSalaryText { get; set; } = string.Empty;
|
||||
|
||||
public string WifeDayName { get; set; } = string.Empty;
|
||||
|
||||
public string WifeDayDateBorn { get; set; } = string.Empty;
|
||||
|
||||
public double RestDayOldTotal { get; set; } = 0;
|
||||
|
||||
public double 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? Dear { get; set; } = string.Empty;
|
||||
|
||||
public string? LeaveTypeCode { get; set; } = string.Empty;
|
||||
|
||||
public string? PositionName { get; set; } = string.Empty;
|
||||
|
||||
public string? PositionLevelName { get; set; } = string.Empty;
|
||||
|
||||
public string? OrganizationName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestCalendarDto
|
||||
{
|
||||
public int Year { get; set; } = DateTime.Now.Year;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestCalendarResultDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string LeaveTypeName { get; set; }
|
||||
|
||||
public Guid LeaveTypeId { get; set; }
|
||||
|
||||
public DateTime DateSendLeave { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
public DateTime LeaveStartDate { get; set; }
|
||||
|
||||
public DateTime LeaveEndDate { get; set; }
|
||||
|
||||
public Guid KeycloakId { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,137 @@
|
|||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestForAdminByIdDto
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
|
||||
public string? ReasonCommander { get; set; }
|
||||
|
||||
public string? ReasonOligarch { get; set; }
|
||||
|
||||
public string? PositionName { get; set; }
|
||||
|
||||
public string? PositionLevelName { get; set; }
|
||||
|
||||
public string? OrganizationName { get; set; }
|
||||
|
||||
public string LeaveTypeName { get; set; } = string.Empty;
|
||||
|
||||
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateSendLeave { get; set; } = DateTime.MinValue;
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime LeaveEndDate { get; set; } = DateTime.Now;
|
||||
|
||||
public string LeaveWrote { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveAddress { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveNumber { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveDetail { get; set; } = string.Empty;
|
||||
|
||||
public List<LeaveDocumentDto> LeaveDocument { get; set; } = new();
|
||||
|
||||
public string LeaveDraftDocument { get; set; }
|
||||
|
||||
public DateTime? LeaveLastStart { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
||||
|
||||
public double LeaveTotal { get; set; } = 0;
|
||||
|
||||
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime? LeaveGovernmentDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public double LeaveSalary { get; set; } = 0;
|
||||
|
||||
public string LeaveSalaryText { get; set; } = string.Empty;
|
||||
|
||||
public string WifeDayName { get; set; } = string.Empty;
|
||||
|
||||
public string WifeDayDateBorn { get; set; } = string.Empty;
|
||||
|
||||
public double RestDayOldTotal { get; set; } = 0;
|
||||
|
||||
public double 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 Dear { get; set; } = string.Empty;
|
||||
|
||||
public string ApproveStep { get; set; } = string.Empty;
|
||||
|
||||
public double LeaveLimit { get; set; } = 0;
|
||||
|
||||
public double LeaveSummary { get; set; } = 0;
|
||||
|
||||
public double LeaveRemain { get; set; } = 0;
|
||||
|
||||
public string LeaveRange { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
using Org.BouncyCastle.Asn1.X509;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestForAdminDto
|
||||
{
|
||||
[Required]
|
||||
public int Year { get; set; } = 0;
|
||||
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
[Required]
|
||||
public int PageSize { get; set; } = 10;
|
||||
|
||||
public string Keyword { get; set; } = string.Empty;
|
||||
|
||||
public DateTime StartDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime EndDate { get; set; } = DateTime.MinValue;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestForAdminResultDto
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.Empty;
|
||||
|
||||
public string LeaveTypeName { get; set; } = string.Empty;
|
||||
|
||||
public Guid LeaveTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
public DateTime DateSendLeave { get; set; } = DateTime.MinValue;
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public string CitizenId { get; set; } = string.Empty;
|
||||
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public DateTime LeaveEndDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
public string Agency { get; set; } = string.Empty;
|
||||
|
||||
public string Org { get; set; } = string.Empty;
|
||||
|
||||
public string Position { get; set; } = string.Empty;
|
||||
|
||||
public string Level { get; set; } = string.Empty;
|
||||
|
||||
public string LeaveRange { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
24
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableDto.cs
Normal file
24
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveRequestTableDto.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestTableDto
|
||||
{
|
||||
[Required]
|
||||
public int Year { get; set; } = 0;
|
||||
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
|
||||
[Required]
|
||||
public string Status { get; set; } = "ALL";
|
||||
|
||||
[Required]
|
||||
public int Page = 1;
|
||||
|
||||
[Required]
|
||||
public int PageSize = 10;
|
||||
|
||||
public string? Keyword { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveRequestTableResultDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string LeaveTypeName { get; set; }
|
||||
|
||||
public Guid LeaveTypeId { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
public DateTime DateSendLeave { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
|
||||
public bool IsDelete { get; set; }
|
||||
|
||||
public DateTime LeaveStartDate { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime LeaveEndDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
9
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveSummaryDto.cs
Normal file
9
BMA.EHR.Leave/DTOs/LeaveRequest/GetLeaveSummaryDto.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetLeaveSummaryDto
|
||||
{
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
public DateTime EndDate { get; set; }
|
||||
}
|
||||
}
|
||||
10
BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileDto.cs
Normal file
10
BMA.EHR.Leave/DTOs/LeaveRequest/GetUserLeaveProfileDto.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetUserLeaveProfileDto
|
||||
{
|
||||
[Required]
|
||||
public Guid Type { get; set; } = Guid.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class GetUserLeaveProfileResultDto
|
||||
{
|
||||
public DateTime DateSendLeave { get; set; }
|
||||
|
||||
public string LeaveTypeName { get; set; }
|
||||
|
||||
public string Dear { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
|
||||
public string PositionName { get; set; }
|
||||
|
||||
public string PositionLevelName { get; set; }
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
|
||||
public double LeaveLimit { get; set; }
|
||||
|
||||
public double LeaveTotal { get; set; }
|
||||
|
||||
public double LeaveRemain { get; set; }
|
||||
|
||||
public double RestDayTotalOld { get; set; }
|
||||
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
||||
public DateTime? DateAppoint { get; set; }
|
||||
|
||||
public int Salary { get; set; }
|
||||
|
||||
public string SalaryText { get; set; }
|
||||
|
||||
public DateTime? LeaveLast { get; set; }
|
||||
}
|
||||
}
|
||||
9
BMA.EHR.Leave/DTOs/LeaveRequest/LeaveDocumentDto.cs
Normal file
9
BMA.EHR.Leave/DTOs/LeaveRequest/LeaveDocumentDto.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class LeaveDocumentDto
|
||||
{
|
||||
public Guid DocId { get; set; } = Guid.Empty;
|
||||
|
||||
public string Path { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||
{
|
||||
public class LeaveRequestApproveDto
|
||||
{
|
||||
public string? Reason { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue