Kind: Class
Source: Frontend/src/app/models/person/client.model.ts (line 5)
Part of: Frontend
Client represents a client person model in the frontend application. It supports creating copied Client instances through clone() and cloneClient().
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] Client --> Clone[clone(): Client] Client --> CloneClient[cloneClient(): Client] Clone --> ClientCopy[Client copy] CloneClient --> ClientCopy
Usage
tsconst copiedClient: Client = client.clone();
const copiedClientFromHelper: Client = client.cloneClient();
AI Coding Instructions
- Keep
clone()andcloneClient()return values typed asClient. - Use cloning methods when code needs a separate
Clientinstance. - Check both cloning methods before changing copy behavior, since callers may depend on either method.
- Avoid mutating a cloned instance when the original instance must remain unchanged.
Relationships
- IMPORTS →
Address - IMPORTS →
ContactInfo - IMPORTS →
ContactPersons - IMPORTS →
ClientSupplierRegistration
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—Frontend/src/app/components/market/contacts/contact-view-edit/contact-view-edit.component.ts:1ContactsComponent—Frontend/src/app/components/market/contacts/contacts.component.ts:1RegistrationsComponent—Frontend/src/app/components/market/registrations/registrations/registrations.component.ts:1CurrencyRate—Frontend/src/app/components/payments/payment-details/payment-details.component.ts:1PaymentsListComponent—Frontend/src/app/components/payments/payments-list/payments-list.component.ts:1TagComponent—Frontend/src/app/components/shared/tag/tag.component.ts:1ClientService—Frontend/src/app/services/person/client.service.ts:1
Was this page helpful?