api ลา 04,05 และ 11
This commit is contained in:
parent
cffb53c1f5
commit
e130ce00d7
7 changed files with 198 additions and 4 deletions
|
|
@ -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,21 @@
|
|||
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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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,19 @@
|
|||
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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue