ContractAllowanceDto.cs 953 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using MTWorkHR.Core.Entities.Base;
  9. using MTWorkHR.Core.Global;
  10. using Newtonsoft.Json;
  11. namespace MTWorkHR.Application.Models
  12. {
  13. public class ContractAllowanceDto : EntityDto
  14. {
  15. public long ContractId{ get; set; }
  16. [Required]
  17. public long AllowanceType { get; set; }
  18. public string? AllowanceDesc { get; set; }
  19. [JsonProperty(Required = Required.AllowNull)]
  20. public decimal? EntitlementPercent { get; set; } = 0;// اختيار (مبلغ – يكتب المبلغ) أو (نسبة من الراتب – ويظهر المبلغ توماتك)
  21. public decimal? EntitlementAmount { get; set; } = 0;
  22. public string? PaymentType { get; set; } // PaymentTypeEnum
  23. }
  24. }