OrderRequest.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. [Filter]
  24. public string? RequestComments { get; set; }
  25. public ApprovalStatusEnum? OrderStatus { get; set; }
  26. [Filter]
  27. public string RequestingEmployeeId { get; set; }
  28. public int? CountryId{ get; set; }
  29. public int? CityId { get; set; }
  30. public string? StartTime { get; set; }
  31. public string? EndTime { get; set; }
  32. public long CompanyId { get ; set ; }
  33. }
  34. }