api ลา 04,05 และ 11

This commit is contained in:
Suphonchai Phoonsawat 2023-11-29 18:45:11 +07:00
parent cffb53c1f5
commit e130ce00d7
7 changed files with 198 additions and 4 deletions

View file

@ -0,0 +1,7 @@
namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
{
public class GetLeaveRequestCalendarDto
{
public int Year { get; set; } = DateTime.Now.Year;
}
}

View file

@ -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; }
}
}

View 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;
}
}

View file

@ -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; }
}
}