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

110 lines
4.3 KiB
C#

using System;
using _0_Framework.Domain;
using Company.Domain.RepresentativeAgg;
namespace Company.Domain.FileEmployeeAgg;
public class FileEmployee : EntityBase
{
public FileEmployee(string fName, string lName, long representativeId, string representativeFullName, string fatherName, DateTime dateOfBirth, string nationalCode, string idNumber, string gender, string maritalStatus, string levelOfEducation, string fieldOfStudy, string insuranceCode, string phone, string officePhone, string mclsUserName, string mclsPassword, string eserviceUserName, string eservicePassword, string taxOfficeUserName, string taxOfficepassword, string sanaUserName, string sanaPassword)
{
FName = fName;
LName = lName;
RepresentativeId = representativeId;
RepresentativeFullName = representativeFullName;
FatherName = fatherName;
DateOfBirth = dateOfBirth;
NationalCode = nationalCode;
IdNumber = idNumber;
Gender = gender;
MaritalStatus = maritalStatus;
LevelOfEducation = levelOfEducation;
FieldOfStudy = fieldOfStudy;
InsuranceCode = insuranceCode;
Phone = phone;
OfficePhone = officePhone;
MclsUserName = mclsUserName;
MclsPassword = mclsPassword;
EserviceUserName = eserviceUserName;
EservicePassword = eservicePassword;
TaxOfficeUserName = taxOfficeUserName;
TaxOfficepassword = taxOfficepassword;
SanaUserName = sanaUserName;
SanaPassword = sanaPassword;
IsActive = "true";
}
public string FName { get; private set; }
public string LName { get; private set; }
public long RepresentativeId { get; private set; }
public string RepresentativeFullName { get; private set; }
public string FatherName { get; private set; }
public DateTime DateOfBirth { get; private set; }
public string NationalCode { get; private set; }
public string IdNumber { get; private set; }
public string Gender { get; private set; }
public string MaritalStatus { get; private set; }
public string LevelOfEducation { get; private set; }
public string FieldOfStudy { get; private set; }
public string InsuranceCode { get; private set; }
public string Phone { get; private set; }
public string OfficePhone { get; private set; }
public string MclsUserName { get; private set; }
public string MclsPassword { get; private set; }
public string EserviceUserName { get; private set; }
public string EservicePassword { get; private set; }
public string TaxOfficeUserName { get; private set; }
public string TaxOfficepassword { get; private set; }
public string SanaUserName { get; private set; }
public string SanaPassword { get; private set; }
public string IsActive { get; private set; }
public Representative Representative { get; set; }
public void Edit(string fName, string lName, long representativeId, string representativeFullName, string fatherName, DateTime dateOfBirth, string nationalCode, string idNumber, string gender, string maritalStatus, string levelOfEducation, string fieldOfStudy, string insuranceCode, string phone, string officePhone, string mclsUserName, string mclsPassword, string eserviceUserName, string eservicePassword, string taxOfficeUserName, string taxOfficepassword, string sanaUserName, string sanaPassword)
{
FName = fName;
LName = lName;
RepresentativeId = representativeId;
RepresentativeFullName = representativeFullName;
FatherName = fatherName;
DateOfBirth = dateOfBirth;
NationalCode = nationalCode;
IdNumber = idNumber;
Gender = gender;
MaritalStatus = maritalStatus;
LevelOfEducation = levelOfEducation;
FieldOfStudy = fieldOfStudy;
InsuranceCode = insuranceCode;
Phone = phone;
OfficePhone = officePhone;
MclsUserName = mclsUserName;
MclsPassword = mclsPassword;
EserviceUserName = eserviceUserName;
EservicePassword = eservicePassword;
TaxOfficeUserName = taxOfficeUserName;
TaxOfficepassword = taxOfficepassword;
SanaUserName = sanaUserName;
SanaPassword = sanaPassword;
}
public void Active()
{
this.IsActive = "true";
}
public void DeActive()
{
this.IsActive = "false";
}
}