# Employee

**Kind:** Class

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

**Part of:** [Pams](subsystem-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

```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)

- `InvoiceDetailsComponent` — `Pams/Web/Pams.Web/Client/app/components/invoices/invoice-details/invoice-details.component.ts`:1
- `NewJobComponent` — `Pams/Web/Pams.Web/Client/app/components/sales/new-job/new-job.component.ts`:1
- `EmployeeService` — `Pams/Web/Pams.Web/Client/app/services/person/employee.service.ts`:1
- `LoadDataAction` — `Pams/Web/Pams.Web/Client/app/actions/job.ts`:20
- `JobState` — `Pams/Web/Pams.Web/Client/app/reducers/job.ts`:22
