OrderRequest.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MTWorkHR.Core.Entities.Base;
  2. using MTWorkHR.Core.Global;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace MTWorkHR.Core.Entities.User
  11. {
  12. public class OrderRequest : FullAuditEntity, IHaveCompany
  13. {
  14. public DateTime StartDate { get; set; }
  15. public DateTime? EndDate { get; set; }
  16. [Required]
  17. [ForeignKey("OrderTypeId")]
  18. public OrderType OrderType { get; set; }
  19. public long OrderTypeId { get; set; }
  20. [ForeignKey("LeaveTypeId")]
  21. public LeaveType? LeaveType { get; set; }
  22. public long? LeaveTypeId { get; set; }
  23. public string? RequestComments { get; set; }
  24. public ApprovalStatusEnum? OrderStatus { get; set; }
  25. [Filter]
  26. public string RequestingEmployeeId { get; set; }
  27. public int? CountryId{ get; set; }
  28. public int? CityId { get; set; }
  29. public long CompanyId { get ; set ; }
  30. }
  31. }