Attendance.cs 806 B

1234567891011121314151617181920212223242526272829
  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. public string? LeaveReason { get; set; }
  24. public long CompanyId { get; set; }
  25. }
  26. }