AttendanceDto.cs 807 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using MTWorkHR.Application.Models;
  8. using MTWorkHR.Core.Entities.Base;
  9. using MTWorkHR.Core.Global;
  10. namespace MTWorkHR.Application.Models
  11. {
  12. public class AttendanceDto : EntityDto
  13. {
  14. [Required]
  15. public string UserId { get; set; }
  16. public string? UserName { get; set; }
  17. public DateTime? CheckInTime { get; set; }
  18. public DateTime? CheckOutTime { get; set; }
  19. public DateTime AttendanceDate { get; set; }
  20. public string? WeekDay { get; set; }
  21. public CheckOutEnum LeaveType { get; set; }
  22. [MaxLength(250)]
  23. public string? LeaveReason { get; set; }
  24. }
  25. }