API การลา 01-03

This commit is contained in:
Suphonchai Phoonsawat 2023-11-29 17:28:15 +07:00
parent 32686c3e0b
commit cffb53c1f5
29 changed files with 6391 additions and 4 deletions

View file

@ -26,5 +26,72 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
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; }
}
}

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

View file

@ -0,0 +1,11 @@
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;
}
}

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

View file

@ -0,0 +1,35 @@
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; }
}
}