Attendance.cs 823 B

123456789101112131415161718192021222324252627282930
  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.Core.Entities.Base;
  8. using MTWorkHR.Core.Global;
  9. namespace MTWorkHR.Core.Entities
  10. {
  11. public class Attendance : FullAuditEntity, IHaveCompany
  12. {
  13. [Required]
  14. [Filter]
  15. public string UserId { get; set; }
  16. [Filter]
  17. public string? UserName { get; set; }
  18. public DateTime? CheckInTime { get; set; }
  19. public DateTime? CheckOutTime { get; set; }
  20. public DateTime AttendanceDate { get; set; }
  21. public CheckOutEnum LeaveType { get; set; }
  22. [MaxLength(250)]
  23. [Filter]
  24. public string? LeaveReason { get; set; }
  25. public long CompanyId { get; set; }
  26. }
  27. }