83 lines
2.9 KiB
C#
83 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace Erp.Platform.Entities;
|
|
|
|
public class Employee : FullAuditedEntity<Guid>, IMultiTenant
|
|
{
|
|
public Guid? TenantId { get; set; }
|
|
|
|
public string Code { get; set; }
|
|
public string Name { get; set; }
|
|
public string Avatar { get; set; }
|
|
public string NationalId { get; set; }
|
|
public DateTime BirthDate { get; set; }
|
|
public string Gender { get; set; }
|
|
public string MaritalStatus { get; set; }
|
|
|
|
// Embedded Address
|
|
public string Country { get; set; }
|
|
public string City { get; set; }
|
|
public string District { get; set; }
|
|
public string Township { get; set; }
|
|
public string PostalCode { get; set; }
|
|
public string MobileNumber { get; set; }
|
|
public string PhoneNumber { get; set; }
|
|
public string Email { get; set; }
|
|
public string Address1 { get; set; }
|
|
public string Address2 { get; set; }
|
|
|
|
// Emergency contact
|
|
public string EmergencyContactName { get; set; }
|
|
public string EmergencyContactRelationship { get; set; }
|
|
public string EmergencyContactPhoneNumber { get; set; }
|
|
|
|
public DateTime HireDate { get; set; }
|
|
public DateTime? TerminationDate { get; set; }
|
|
|
|
public Guid? EmploymentTypeId { get; set; }
|
|
public EmploymentType EmploymentType { get; set; }
|
|
|
|
public Guid? JobPositionId { get; set; }
|
|
public JobPosition JobPosition { get; set; }
|
|
|
|
public Guid? DepartmentId { get; set; }
|
|
public Department Department { get; set; }
|
|
|
|
public string WorkLocation { get; set; }
|
|
|
|
public Guid? ManagerId { get; set; }
|
|
public Employee Manager { get; set; }
|
|
|
|
public decimal BaseSalary { get; set; }
|
|
public string Currency { get; set; }
|
|
|
|
public string PayrollGroup { get; set; } // e.g., Monthly, Biweekly, Weekly
|
|
|
|
public Guid? BankId { get; set; }
|
|
public Bank Bank { get; set; }
|
|
public string IbanNumber { get; set; }
|
|
|
|
public Guid? BadgeId { get; set; }
|
|
public Badge Badge { get; set; }
|
|
|
|
public string EmployeeStatus { get; set; }
|
|
public bool IsActive { get; set; }
|
|
|
|
public ICollection<Overtime> Overtimes { get; set; }
|
|
public ICollection<Leave> Leaves { get; set; }
|
|
public ICollection<Announcement> Announcements { get; set; }
|
|
public ICollection<Visitor> Visitors { get; set; }
|
|
public ICollection<Reservation> Reservations { get; set; }
|
|
public ICollection<Certificate> Certificates { get; set; }
|
|
public ICollection<Expense> ExpenseRequests { get; set; }
|
|
public ICollection<SurveyResponse> SurveyResponses { get; set; }
|
|
public ICollection<Partner> Partners { get; set; }
|
|
public ICollection<BlogPost> BlogPosts { get; set; }
|
|
public ICollection<Opportunity> Opportunities { get; set; }
|
|
public ICollection<Warehouse> Warehouses { get; set; }
|
|
public ICollection<Quotation> Quotations { get; set; }
|
|
}
|
|
|