Skip to content

Client

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.WebApp/Client/app/models/person/client.model.ts (line 5)

Part of: Pams

Client is a person-domain model in the web application. It supports creating copies of a client instance through clone() and cloneClient().

Methods

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

Properties

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

Diagram

mermaid
graph LR
  Client[Client]
  Client --> Clone[clone(): Client]
  Client --> CloneClient[cloneClient(): Client]
  Clone --> ClientCopy[Client copy]
  CloneClient --> ClientCopy

Usage

ts
import { Client } from './models/person/client.model';

const client = new Client();

const copiedClient = client.clone();
const copiedClientFromClientMethod = client.cloneClient();

AI Coding Instructions

  • Use clone() or cloneClient() when code needs a separate Client instance instead of mutating the original.
  • Keep cloning behavior aligned between clone() and cloneClient() when changing the model.
  • Check call sites before changing clone behavior, especially forms and state-management code that may depend on copied instances.

Relationships

  • IMPORTS → Address

Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (1)

  • ClientServicePams/Web/Pams.WebApp/Client/app/services/person/client.service.ts:1

Was this page helpful?

Download as PDF