Skip to content

Client

reference
1 min readUpdated

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

MethodSignatureReturns
cloneclone()Client
cloneClientcloneClient(cli: Client)Client

Properties

PropertyType
ClientIDnumber
UserIDnumber
ModificationDateDate
CompanyBranchIDnumber
ClientCodestring
FullNamestring
ClientNamestring
Vatstring
Selectedboolean
ClientTypeIDnumber
MarketSegmentIDnumber
MarketSegmentIDsnumber[]
AddressesAddress[]
ContactInfoListArray<ContactInfo>
ContactPersonListArray<ContactPersons>
registrationDataArray<ClientSupplierRegistration>
ImgPathstring

Diagram

mermaid
graph LR
  Client[Client instance] --> Clone[clone()]
  Client --> CloneClient[cloneClient()]
  Clone --> ClientCopy[Copied Client]
  CloneClient --> ClientCopy

Usage

ts
import { 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() or cloneClient() when a caller needs a separate Client instance.
  • Keep copy behavior consistent between clone() and cloneClient().
  • Do not mutate a source Client when 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)

  • ContactViewEditComponentPams/Web/Pams.Web/Client/app/components/market/contacts/contact-view-edit/contact-view-edit.component.ts:1
  • ContactsComponentPams/Web/Pams.Web/Client/app/components/market/contacts/contacts.component.ts:1
  • RegistrationsComponentPams/Web/Pams.Web/Client/app/components/market/registrations/registrations/registrations.component.ts:1
  • CurrencyRatePams/Web/Pams.Web/Client/app/components/payments/payment-details/payment-details.component.ts:1
  • PaymentsListComponentPams/Web/Pams.Web/Client/app/components/payments/payments-list/payments-list.component.ts:1
  • TagComponentPams/Web/Pams.Web/Client/app/components/shared/tag/tag.component.ts:1
  • ClientServicePams/Web/Pams.Web/Client/app/services/person/client.service.ts:1

Was this page helpful?

Download as PDF