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
| Method | Signature | Returns |
|---|---|---|
clone | clone() | Employee |
Properties
| Property | Type |
|---|---|
EmployeeID | number |
PersonID | number |
CompanyBranchID | number |
NationalityCode | string |
Gender | number |
BirthDate | Date |
MaritalStatus | number |
DisplayName | string |
HireDate | Date |
LeaveDate | Date |
CompanyBranchDepartmentID | number |
ManagerID | number |
EmployeeTypeID | number |
Postion | string |
ImgPath | string |
IsResponsible | boolean |
PersonData | Person |
Addresses | Address[] |
ContactInfoList | Array<ContactInfo> |
Diagram
mermaidgraph LR Employee[Employee instance] --> Clone[clone()] Clone --> EmployeeCopy[Employee copy]
Usage
tsimport { Employee } from './models/person/employee.model';
const employee = new Employee();
const employeeCopy = employee.clone();
AI Coding Instructions
- Use
clone()when code needs a separateEmployeeinstance based on an existing instance. - Keep
clone()return values typed asEmployee. - 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)
InvoiceDetailsComponent—Pams/Web/Pams.Web/Client/app/components/invoices/invoice-details/invoice-details.component.ts:1NewJobComponent—Pams/Web/Pams.Web/Client/app/components/sales/new-job/new-job.component.ts:1EmployeeService—Pams/Web/Pams.Web/Client/app/services/person/employee.service.ts:1LoadDataAction—Pams/Web/Pams.Web/Client/app/actions/job.ts:20JobState—Pams/Web/Pams.Web/Client/app/reducers/job.ts:22
Was this page helpful?