Skip to content

Employee

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/models/person/employee.model.ts (line 5)

Part of: Pams

Employee is a client-side person model in the PAMS web application. It exposes clone() to create another Employee instance from the current model state.

Methods

MethodSignatureReturns
cloneclone()Employee

Properties

PropertyType
EmployeeIDnumber
PersonIDnumber
CompanyBranchIDnumber
NationalityCodestring
Gendernumber
BirthDateDate
MaritalStatusnumber
DisplayNamestring
HireDateDate
LeaveDateDate
CompanyBranchDepartmentIDnumber
ManagerIDnumber
EmployeeTypeIDnumber
Postionstring
ImgPathstring
IsResponsibleboolean
PersonDataPerson
AddressesAddress[]
ContactInfoListArray<ContactInfo>

Diagram

mermaid
graph LR
    Employee[Employee instance] --> Clone[clone()]
    Clone --> EmployeeCopy[Employee copy]

Usage

ts
import { Employee } from './models/person/employee.model';

const employee = new Employee();
const employeeCopy = employee.clone();

AI Coding Instructions

  • Use clone() when code needs a separate Employee instance based on an existing instance.
  • Keep clone() return values typed as Employee.
  • Do not assume clone() behavior for nested object references without checking its implementation.
  • Update cloning behavior when adding mutable fields to Employee.

Relationships

  • IMPORTS → Address

Used by

5 references from 5 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (5)

  • InvoiceDetailsComponentPams/Web/Pams.Web/Client/app/components/invoices/invoice-details/invoice-details.component.ts:1
  • NewJobComponentPams/Web/Pams.Web/Client/app/components/sales/new-job/new-job.component.ts:1
  • EmployeeServicePams/Web/Pams.Web/Client/app/services/person/employee.service.ts:1
  • LoadDataActionPams/Web/Pams.Web/Client/app/actions/job.ts:20
  • JobStatePams/Web/Pams.Web/Client/app/reducers/job.ts:22

Was this page helpful?

Download as PDF