Skip to content

JobsViewModel

reference
1 min readUpdated

Kind: Class

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

Part of: Pams

JobsViewModel represents sales-job view state in the Pams web application. It includes a clone() method for creating a separate JobsViewModel instance from existing state.

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
  JobsViewModel --> Clone["clone()"]
  Clone --> Copy["JobsViewModel copy"]

Usage

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

declare const jobsViewModel: JobsViewModel;

const copiedViewModel = jobsViewModel.clone();

// Change copiedViewModel without changing the original instance.

AI Coding Instructions

  • Use clone() when a separate JobsViewModel instance is needed for edits or state comparisons.
  • Keep clone() aligned with every property added to JobsViewModel.
  • Avoid mutating a cloned instance when the caller expects updates on the original view model.
  • Check sales UI components and state-handling code when changing the model shape.

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.WebApp/Client/app/services/sales/inquiry.service.ts:1

Was this page helpful?

Download as PDF