Kind: Class
Source: Pams/Web/Pams.Web/Client/app/models/person/client.model.ts (line 5)
Part of: Pams
Client represents a client person model in the web application. It supports creating copied Client instances through clone() and cloneClient() so callers can work with a separate model instance.
Methods
| Method | Signature | Returns |
|---|---|---|
clone | clone() | Client |
cloneClient | cloneClient(cli: Client) | Client |
Properties
| Property | Type |
|---|---|
ClientID | number |
UserID | number |
ModificationDate | Date |
CompanyBranchID | number |
ClientCode | string |
FullName | string |
ClientName | string |
Vat | string |
Selected | boolean |
ClientTypeID | number |
MarketSegmentID | number |
MarketSegmentIDs | number[] |
Addresses | Address[] |
ContactInfoList | Array<ContactInfo> |
ContactPersonList | Array<ContactPersons> |
registrationData | Array<ClientSupplierRegistration> |
ImgPath | string |
Diagram
mermaidgraph LR Client[Client instance] --> Clone[clone()] Client --> CloneClient[cloneClient()] Clone --> ClientCopy[Copied Client] CloneClient --> ClientCopy
Usage
tsimport { Client } from "./client.model";
declare const client: Client;
const clonedClient = client.clone();
const copiedClient = client.cloneClient();
// Use the copied instance without changing the original reference.
console.log(clonedClient, copiedClient);
AI Coding Instructions
- Use
clone()orcloneClient()when a caller needs a separateClientinstance. - Keep copy behavior consistent between
clone()andcloneClient(). - Do not mutate a source
Clientwhen preparing editable state; clone it first. - Check whether nested model properties require their own copy handling when extending this class.
Relationships
- IMPORTS →
Address
Used by
7 references from 7 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (7)
ContactViewEditComponent—Pams/Web/Pams.Web/Client/app/components/market/contacts/contact-view-edit/contact-view-edit.component.ts:1ContactsComponent—Pams/Web/Pams.Web/Client/app/components/market/contacts/contacts.component.ts:1RegistrationsComponent—Pams/Web/Pams.Web/Client/app/components/market/registrations/registrations/registrations.component.ts:1CurrencyRate—Pams/Web/Pams.Web/Client/app/components/payments/payment-details/payment-details.component.ts:1PaymentsListComponent—Pams/Web/Pams.Web/Client/app/components/payments/payments-list/payments-list.component.ts:1TagComponent—Pams/Web/Pams.Web/Client/app/components/shared/tag/tag.component.ts:1ClientService—Pams/Web/Pams.Web/Client/app/services/person/client.service.ts:1
Was this page helpful?