Skip to content

JobsViewModel

reference
2 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/models/sales/jobs-view.model.ts (line 2)

Part of: Pams

JobsViewModel represents job-related view state in the sales client application. Its clone() method creates a separate copy of the model so callers can work with duplicated state without changing the original instance.

Methods

MethodSignatureReturns
cloneclone(job: JobsViewModel)void

Properties

PropertyType
InquiryNumbernumber
CurrentJobStatusIDnumber
CompanyBranchIDnumber
JobNostring
InquiryDateDate
BidDueDateDate
ClientNamestring
EndUserstring
Projectstring
SupplierNamestring
InquiryTypestring
StatusNamestring
OrderBackLognumber
ActionDateDate
BranchNamestring
StatusDateDate
StatusReasonstring
DeliveredOnDate
CancellationFeesAmountnumber
CancellationFeesAmountInBaseCurrencynumber
ClientInquiryNumberstring
SupplierOfferNumberstring
SupplierOrderNumberstring
OrderDateDate
OrderActivationDateDate
OfferStatusstring
OrderChancestring
OrderStatusstring
JobVersionPricenumber
JobVersionPriceInBaseCurrencynumber
CurrencyCodestring
OfferValidationstring
DeliveryTimestring
RequirdProductstring
SalesResponsiblestring
ProductTypestring
PaymentMethodstring
DeliveryTermstring
ClientInquiryCountnumber
ClientOfferCountnumber
ClientOrderCountnumber
ClientDeliveredCountnumber
BidBondValuenumber
BidBondValueTypenumber
BidBondValueCurrencystring
BidBondValueInBaseCurrencynumber
AgreedCommissionPercentagenumber
CommissionPercentagenumber
ContractualCommissionPercentagenumber
CommissionValuenumber

Diagram

mermaid
graph LR
  A[Sales UI] --> B[JobsViewModel]
  B --> C[clone()]
  C --> D[Copied JobsViewModel]

Usage

ts
import { JobsViewModel } from './models/sales/jobs-view.model';

const jobsView = new JobsViewModel();

const copiedJobsView = jobsView.clone();

// Update the copied view model without replacing the original reference.
console.log(copiedJobsView);

AI Coding Instructions

  • Call clone() when a workflow needs an independent JobsViewModel instance for editing, comparison, or temporary UI state.
  • Keep cloning behavior aligned with the model's properties; add new properties to the clone implementation when they are added to the class.
  • Avoid treating a cloned model as a shared reference with the original instance.
  • Import JobsViewModel from the sales models area when integrating it with sales UI components or state handling.

Relationships

  • IMPORTS → AppSettings

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)

  • InquiryServicePams/Web/Pams.Web/Client/app/services/sales/inquiry.service.ts:1

Was this page helpful?

Download as PDF