196 lines
6.9 KiB
C#
196 lines
6.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using _0_Framework.Domain;
|
|
using Company.Domain.FileAndFileEmployerAgg;
|
|
using Company.Domain.RepresentativeAgg;
|
|
|
|
namespace Company.Domain.FileEmployerAgg;
|
|
|
|
public class FileEmployer : EntityBase
|
|
{
|
|
public FileEmployer(string fName, string lName, string legalName,long representativeId,
|
|
string representativeFullName, DateTime dateOfBirth, string insuranceWorkshopCode,
|
|
string nationalCode, string levelOfEducation, string fieldOfStudy, string idNumber,
|
|
string gender, string maritalStatus, string registerId, string nationalId, string isLegal,
|
|
string phone, string officePhone, string mclsUserName, string mclsPassword,
|
|
string eserviceUserName, string eservicePassword, string taxOfficeUserName,
|
|
string taxOfficepassword, string sanaUserName, string sanaPassword)
|
|
{
|
|
FName = fName;
|
|
LName = lName;
|
|
LegalName = legalName;
|
|
if (isLegal == "false")
|
|
{
|
|
FullName = fName + " " + lName;
|
|
}
|
|
else
|
|
{
|
|
FullName = legalName;
|
|
}
|
|
RepresentativeId = representativeId;
|
|
RepresentativeFullName = representativeFullName;
|
|
DateOfBirth = dateOfBirth;
|
|
InsuranceWorkshopCode = insuranceWorkshopCode;
|
|
NationalCode = nationalCode;
|
|
LevelOfEducation = levelOfEducation;
|
|
FieldOfStudy = fieldOfStudy;
|
|
IdNumber = idNumber;
|
|
Gender = gender;
|
|
MaritalStatus = maritalStatus;
|
|
RegisterId = registerId;
|
|
NationalId = nationalId;
|
|
IsLegal = isLegal;
|
|
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 string LegalName { get; private set; }
|
|
public string FullName { get; private set; }
|
|
public long RepresentativeId { get; private set; }
|
|
public string RepresentativeFullName { get; private set; }
|
|
public DateTime DateOfBirth { get; private set; }
|
|
public string InsuranceWorkshopCode { get; private set; }
|
|
public string NationalCode { get; private set; }
|
|
public string LevelOfEducation { get; private set; }
|
|
public string FieldOfStudy { get; private set; }
|
|
|
|
public string IdNumber { get; private set; }
|
|
|
|
public string Gender { get; private set; }
|
|
public string MaritalStatus { get; private set; }
|
|
|
|
public string RegisterId { get; private set; }
|
|
|
|
public string NationalId { get; private set; }
|
|
|
|
public string IsLegal { 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 List<FileAndFileEmployer> FileAndFileEmployers { get; set; }
|
|
|
|
public FileEmployer()
|
|
{
|
|
FileAndFileEmployers = new List<FileAndFileEmployer>();
|
|
}
|
|
|
|
public void EditReal(string fName, string lName,long representativeId,
|
|
string representativeFullName, DateTime dateOfBirth, string insuranceWorkshopCode,
|
|
string nationalCode, string levelOfEducation, string fieldOfStudy, string idNumber,
|
|
string gender, string maritalStatus,
|
|
string phone,string officePhone, string mclsUserName, string mclsPassword,
|
|
string eserviceUserName, string eservicePassword, string taxOfficeUserName,
|
|
string taxOfficepassword, string sanaUserName, string sanaPassword)
|
|
{
|
|
FName = fName;
|
|
LName = lName;
|
|
FullName = fName + " " + lName;
|
|
NationalCode = nationalCode;
|
|
IdNumber = idNumber;
|
|
Phone = phone;
|
|
|
|
RepresentativeId = representativeId;
|
|
RepresentativeFullName = representativeFullName;
|
|
Gender = gender;
|
|
MaritalStatus = maritalStatus;
|
|
DateOfBirth = dateOfBirth;
|
|
InsuranceWorkshopCode = insuranceWorkshopCode;
|
|
LevelOfEducation = levelOfEducation;
|
|
FieldOfStudy = fieldOfStudy;
|
|
OfficePhone = officePhone;
|
|
MclsUserName = mclsUserName;
|
|
MclsPassword = mclsPassword;
|
|
EserviceUserName = eserviceUserName;
|
|
EservicePassword = eservicePassword;
|
|
TaxOfficeUserName = taxOfficeUserName;
|
|
TaxOfficepassword = taxOfficepassword;
|
|
SanaUserName = sanaUserName;
|
|
SanaPassword = sanaPassword;
|
|
|
|
IsLegal = "false";
|
|
LegalName = "*";
|
|
RegisterId = "*";
|
|
NationalId = "*";
|
|
}
|
|
public void EditLegal(string fName, string lName, string legalName, long representativeId,
|
|
string representativeFullName, DateTime dateOfBirth, string insuranceWorkshopCode,
|
|
string nationalCode, string levelOfEducation, string fieldOfStudy, string idNumber,
|
|
string gender, string maritalStatus, string registerId, string nationalId, string isLegal,
|
|
string phone, string officePhone, string mclsUserName, string mclsPassword,
|
|
string eserviceUserName, string eservicePassword, string taxOfficeUserName,
|
|
string taxOfficepassword, string sanaUserName, string sanaPassword)
|
|
{
|
|
FName = fName;
|
|
LName = lName;
|
|
NationalCode = nationalCode;
|
|
IdNumber = idNumber;
|
|
LegalName = legalName;
|
|
FullName = legalName;
|
|
RegisterId = registerId;
|
|
NationalId = nationalId;
|
|
Phone = phone;
|
|
|
|
RepresentativeId = representativeId;
|
|
RepresentativeFullName = representativeFullName;
|
|
Gender = gender;
|
|
MaritalStatus = maritalStatus;
|
|
DateOfBirth = dateOfBirth;
|
|
InsuranceWorkshopCode = insuranceWorkshopCode;
|
|
LevelOfEducation = levelOfEducation;
|
|
FieldOfStudy = fieldOfStudy;
|
|
OfficePhone = officePhone;
|
|
MclsUserName = mclsUserName;
|
|
MclsPassword = mclsPassword;
|
|
EserviceUserName = eserviceUserName;
|
|
EservicePassword = eservicePassword;
|
|
TaxOfficeUserName = taxOfficeUserName;
|
|
TaxOfficepassword = taxOfficepassword;
|
|
SanaUserName = sanaUserName;
|
|
SanaPassword = sanaPassword;
|
|
|
|
IsLegal = "true";
|
|
}
|
|
public void Active()
|
|
{
|
|
|
|
this.IsActive = "true";
|
|
}
|
|
|
|
public void DeActive()
|
|
{
|
|
|
|
this.IsActive = "false";
|
|
}
|
|
} |