AttendanceDto.cs 902 B

123456789101112131415161718192021222324252627282930313233
  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 double TotalHours { get; set; }
  20. public DateTime AttendanceDate { get; set; }
  21. public string? WeekDay { get; set; }
  22. public CheckOutEnum LeaveType { get; set; }
  23. [MaxLength(250)]
  24. public string? LeaveReason { get; set; }
  25. public UserBasicInfoDto? Employee { get; set; }
  26. }
  27. }