ContractDetail.cs 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using MTWorkHR.Core.Entities.Base;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. using MTWorkHR.Core.Entities;
  5. using MTWorkHR.Core.Global;
  6. namespace MTWorkHR.Core.Entities
  7. {
  8. public class ContractDetail
  9. {
  10. public ContractTypeEnum ContractTypeId { get; set; }
  11. public ContractStatusEnum ContractStatusId { get; set; }
  12. //--------Company data-------
  13. public string CompanyName { get; set; }
  14. public string CompanyCR { get; set; }
  15. public string CompanyEmail { get; set; }
  16. public string CompanyAddress { get; set; }
  17. public string CompanyPhone { get; set; }
  18. //--------Company Representative-------
  19. public string CompanyRepresentativeName { get; set; }
  20. public string CompanyRepresentativePassport { get; set; }
  21. public string CompanyRepresentativePhone { get; set; }
  22. public string CompanyRepresentativeEmail { get; set; }
  23. public string CompanyRepresentativePosition { get; set; }
  24. //--------Employee Data------------------------------------
  25. public string UserId { get; set; }
  26. public string? EmployeeName { get; set; }
  27. public string? EmployeeEmail { get; set; }
  28. public string? EmployeePassport{ get; set; }
  29. public string? EmployeePhone { get; set; }
  30. public string? EmployeeUniversity { get; set; }
  31. public DateTime? EmployeeDateOfBirth { get; set; }
  32. //-----------------------------
  33. public string? EmployeeJobName { get; set; }
  34. public string? AcademicQualification { get; set; }
  35. public string? Specialization { get; set; }
  36. public string WorkCountry { get; set; }
  37. public string WorkState { get; set; }
  38. //-------------------Scope of work-----------
  39. public string? JobTitleName { get; set; }
  40. public string? JobDescription { get; set; }
  41. [MaxLength(150)]
  42. public string? JobNumber { get; set; } //ثابت و مأخوذ من المنصة
  43. //----------------Contract data -------------------------
  44. public DateTime? StartDate { get; set; }
  45. public DateTime? EndDate { get; set; }
  46. public string? ContractDuration { get; set; } //: اختيار: شهري – ربعي – نصف سنوي – 3 ارباع – سنوي
  47. public string? TypeOfWork { get; set; } //: : اختيار: عقد بدوام كامل - عقد دوام جزئي
  48. public int? VacationDays { get; set; } //اختيار: بدون – سنويا (رقم)
  49. public int? TrialPeriod { get; set; } // تجربة (ادخال: تلقائياً كل ربع سنوي أسبوع تلقائياً) آخر: تعديل
  50. public string? WhoCanTerminateContractInTrial { get; set; } //اختيار الجميع – صاحب العمل – الموظف
  51. public string? WhoCanTerminateContract { get; set; }
  52. public int? NoticePeriodBeforeTermination { get; set; } //اختيار: بدون – تحديد (ادخال: تلقائياً مدة 10 أيام قبل انتهاء الاستحقاق) آخر: تعديل
  53. //------Working time---------------
  54. public string? WorkingDays { get; set; } //: اختيار متعدد الأيام سبت أحد اثنين..... (بحيث الأيام الأخرى تكون إجازة) 1,2,3,4,5
  55. public string? WorkingHours { get; set; } // يومي/ اسبوعي
  56. public int? WorkingHoursNum { get; set; } // عدد الساعات
  57. public DateTime? StartDailyWorkingHours { get; set; } // تحديد ساعات الدوام قائمة الساعات << التوقيت بحسب دولة صاحب العمل
  58. public DateTime? EndDailyWorkingHours { get; set; } // تحديد ساعات الدوام قائمة الساعات << التوقيت بحسب دولة صاحب العمل
  59. //----------Salary-----------------
  60. [MaxLength(50)]
  61. public string? Currency { get; set; }
  62. public decimal? Salary { get; set; }
  63. public string? BillingCycle { get; set; }// 2 fortnightly, 4 Monthly
  64. //------------------------Fixed Pay----------------
  65. public DateTime? FirstPatchDateFrom { get; set; }
  66. public DateTime? FirstPatchDateTo { get; set; } //
  67. public decimal? FirstPatchAmount { get; set; }
  68. public DateTime? LastPatchDateFrom { get; set; } //
  69. public DateTime? LastPatchDateTo { get; set; } //
  70. public decimal? LastPatchAmount { get; set; }
  71. public string? Teams { get; set; }
  72. public string? Vacations { get; set; }
  73. //---------Allowances----------------------
  74. public bool IncludesAllAllowances { get; set; }
  75. public List<ContractAllowance>? FixedAllowances { get; set; }
  76. //-------------------------------
  77. public List<ContractTask>? ContractTasks { get; set; }
  78. public List<ProjectStage>? ProjectStages { get; set; }
  79. }
  80. }