hrms-api-backend/BMA.EHR.Leave/DTOs/CheckIn/CheckTimeDto.cs

83 lines
1.9 KiB
C#
Raw Normal View History

2024-08-19 16:00:00 +07:00
using Org.BouncyCastle.Crypto.Paddings;
using System.ComponentModel.DataAnnotations;
2023-11-13 15:26:14 +07:00
2023-11-15 15:38:39 +07:00
namespace BMA.EHR.Leave.Service.DTOs.CheckIn
2023-11-13 15:26:14 +07:00
{
public class CheckTimeDto
{
2024-08-19 16:00:00 +07:00
public Guid? CheckInId { get; set; }
2023-11-13 15:26:14 +07:00
2024-08-19 16:00:00 +07:00
[Required]
public IFormFile? Img { get; set; }
2023-11-13 15:26:14 +07:00
[Required]
public double Lat { get; set; } = 0;
[Required]
public double Lon { get; set; } = 0;
2024-08-19 17:18:58 +07:00
[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;
}
public class FakeCheckTimeDto
{
public Guid? CheckInId { get; set; }
[Required]
public double Lat { get; set; } = 0;
[Required]
public double Lon { get; set; } = 0;
2023-11-13 15:26:14 +07:00
[Required]
public string POI { get; set; } = string.Empty;
[Required]
public bool IsLocation { get; set; } = true;
2024-08-19 16:00:00 +07:00
public string? LocationName { get; set; } = string.Empty;
public string? Remark { get; set; } = string.Empty;
}
public class CheckTimeDtoRB
{
public string Token { get; set; } = "";
public Guid? CheckInId { get; set; }
public Guid? TaskId { get; set; }
2024-08-19 16:00:00 +07:00
public double Lat { get; set; } = 0;
public double Lon { get; set; } = 0;
public string POI { get; set; } = string.Empty;
public bool IsLocation { get; set; } = true;
public string? LocationName { get; set; } = string.Empty;
public string? Remark { get; set; } = string.Empty;
public Guid? UserId { get; set; }
public DateTime? CurrentDate { get; set; }
public string CheckInFileName { get; set; } = "";
2023-11-13 15:26:14 +07:00
2024-08-19 16:00:00 +07:00
public byte[] CheckInFileBytes { get; set; } = new byte[0];
2023-11-13 15:26:14 +07:00
}
}