Files
Backend-Api/Company.Domain/InsuranceEmployeeInfoAgg/InsuranceEmployeeInfo.cs
2024-07-05 21:36:15 +03:30

60 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Domain;
using Company.Domain.EmployeeAgg;
namespace Company.Domain.InsuranceEmployeeInfoAgg;
public class InsuranceEmployeeInfo : EntityBase
{
public InsuranceEmployeeInfo(long employeeId, string fName, string lName, string fatherName, DateTime dateOfBirth, DateTime dateOfIssue, string placeOfIssue, string nationalCode, string idNumber, string gender, string insuranceCode)
{
EmployeeId = employeeId;
FName = fName;
LName = lName;
FatherName = fatherName;
DateOfBirth = dateOfBirth;
DateOfIssue = dateOfIssue;
PlaceOfIssue = placeOfIssue;
NationalCode = nationalCode;
IdNumber = idNumber;
Gender = gender;
InsuranceCode = insuranceCode;
}
public long EmployeeId { get; private set; }
public string FName { get; private set; }
public string LName { get; private set; }
public string FatherName { get; private set; }
public DateTime DateOfBirth { get; private set; }
public DateTime DateOfIssue { get; private set; }
public string PlaceOfIssue { get; private set; }
public string NationalCode { get; private set; }
public string IdNumber { get; private set; }
public string Gender { get; private set; }
public string InsuranceCode { get; private set; }
public Employee Employee { get; set; }
public void Edit(string fName, string lName, string fatherName, DateTime dateOfBirth, DateTime dateOfIssue, string placeOfIssue, string nationalCode, string idNumber, string gender, string insuranceCode)
{
FName = fName;
LName = lName;
FatherName = fatherName;
DateOfBirth = dateOfBirth;
DateOfIssue = dateOfIssue;
PlaceOfIssue = placeOfIssue;
NationalCode = nationalCode;
IdNumber = idNumber;
Gender = gender;
InsuranceCode = insuranceCode;
}
}