fix: insignia + leave Error

This commit is contained in:
Suphonchai Phoonsawat 2024-07-10 10:46:26 +07:00
parent 41d28c4d7f
commit 7d8a80e9df
72 changed files with 132 additions and 142 deletions

View file

@ -0,0 +1,49 @@
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckInDetailForAdminDto
{
public Guid Id { get; set; } = Guid.Empty;
public string FullName { get; set; } = string.Empty;
public DateTime? CheckInDate { get; set; } = DateTime.MinValue;
public string? CheckInStatus { get; set; } = string.Empty;
public string? CheckInTime { get; set; } = "00:00";
public string? CheckInPOI { get; set; } = string.Empty;
public double? CheckInLat { get; set; } = 0;
public double? CheckInLon { get; set; } = 0;
public string? CheckInImg { get; set; } = string.Empty;
public string CheckInDescription { get; set; } = string.Empty;
public bool IsLocationCheckIn { get; set; } = true;
public string? CheckInLocationName { get; set; } = string.Empty;
public DateTime? CheckOutDate { get; set; } = DateTime.MinValue;
public string? CheckOutStatus { get; set; } = string.Empty;
public string? CheckOutTime { get; set; } = "00:00";
public string? CheckOutPOI { get; set; } = string.Empty;
public double? CheckOutLat { get; set; } = 0;
public double? CheckOutLon { get; set; } = 0;
public string? CheckOutImg { get; set; } = string.Empty;
public string? CheckOutDescription { get; set; } = string.Empty;
public bool IsLocationCheckOut { get; set; } = true;
public string? CheckOutLocationName { get; set; } = string.Empty;
}
}

View file

@ -0,0 +1,37 @@
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckInHistoryDto
{
public Guid CheckInId { get; set; } = Guid.Empty;
public DateTime? CheckInDate { get; set; } = DateTime.MinValue;
public string? CheckInTime { get; set; } = "00:00";
public string? CheckInLocation { get; set; } = string.Empty;
public string? CheckInStatus { get; set; } = string.Empty;
public bool CheckInIsLocation { get; set; } = false;
public string? CheckInLocationName { get; set; } = string.Empty;
public DateTime? CheckOutDate { get; set; } = DateTime.MinValue;
public string? CheckOutTime { get; set; } = "00:00";
public string? CheckOutLocation { get; set; } = string.Empty;
public string? CheckOutStatus { get; set; } = string.Empty;
public bool CheckOutIsLocation { get; set; } = false;
public string? CheckOutLocationName { get; set; } = string.Empty;
//public string EditStatus { get; set; } = string.Empty;
//public string EditReason { get; set; } = string.Empty;
public bool IsEdit { get; set; } = false;
}
}

View file

@ -0,0 +1,41 @@
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckInHistoryForAdminDto
{
public Guid Id { get; set; } = Guid.Empty;
public string FullName { get; set; } = string.Empty;
public DateTime? CheckInDate { get; set; } = DateTime.MinValue;
public string? CheckInTime { get; set; } = "00:00";
public string? CheckInLocation { get; set; } = string.Empty;
public double? CheckInLat { get; set; } = 0;
public double? CheckInLon { get; set; } = 0;
public string? CheckInImage { get; set; } = string.Empty;
public bool IsLocationCheckIn { get; set; } = true;
public string? CheckInLocationName { get; set; } = string.Empty;
public DateTime? CheckOutDate { get; set; } = DateTime.MinValue;
public string? CheckOutTime { get; set; } = "00:00";
public string? CheckOutLocation { get; set; } = string.Empty;
public double? CheckOutLat { get; set; } = 0;
public double? CheckOutLon { get; set; } = 0;
public string? CheckOutImage { get; set; } = string.Empty;
public bool IsLocationCheckOut { get; set; } = true;
public string? CheckOutLocationName { get; set; } = string.Empty;
}
}

View file

@ -0,0 +1,41 @@
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckInProcessHistoryForAdminDto
{
public Guid Id { get; set; } = Guid.Empty;
public string FullName { get; set; } = string.Empty;
public DateTime? CheckInDate { get; set; } = DateTime.MinValue;
public string? CheckInTime { get; set; } = "00:00";
public string? CheckInLocation { get; set; } = string.Empty;
public double? CheckInLat { get; set; } = 0;
public double? CheckInLon { get; set; } = 0;
public string? CheckInStatus { get; set; } = string.Empty;
public DateTime? CheckOutDate { get; set; } = DateTime.MinValue;
public string? CheckOutTime { get; set; } = "00:00";
public string? CheckOutLocation { get; set; } = string.Empty;
public double? CheckOutLat { get; set; } = 0;
public double? CheckOutLon { get; set; } = 0;
public string? CheckOutStatus { get; set; } = string.Empty;
public bool CheckInIsLocation { get; set; } = false;
public string? CheckInLocationName { get; set; } = string.Empty;
public bool CheckOutIsLocation { get; set; } = false;
public string? CheckOutLocationName { get; set; } = string.Empty;
}
}

View file

@ -0,0 +1,19 @@
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckInResultDto
{
public Guid? CheckInId { get; set; }
public DateTime? CheckInTime { get; set; }
public string Description { get; set; } = string.Empty;
public string StartTimeMorning { get; set; } = "00:00";
public string EndTimeMorning { get; set; } = "00:00";
public string StartTimeAfternoon { get; set; } = "00:00";
public string EndTimeAfternoon { get; set; } = "00:00";
}
}

View file

@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class CheckTimeDto
{
public Guid? CheckInId { get; set; }
[Required]
public IFormFile? Img { get; set; }
[Required]
public double Lat { get; set; } = 0;
[Required]
public double Lon { get; set; } = 0;
[Required]
public string POI { get; set; } = string.Empty;
[Required]
public bool IsLocation { get; set; } = true;
public string? LocationName { get; set; } = string.Empty;
public string? Remark { get; set;} = string.Empty;
}
}

View file

@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
{
public class EditCheckInStatusDto
{
[Required]
public string CheckInStatus { get; set; } = string.Empty;
[Required]
public string CheckOutStatus { get; set; } = string.Empty;
public string? Reason { get; set; } = string.Empty;
}
}