Skip to main content

Template dei computi

In questa sezione è presente la struttura dati relative ai template di computo del modulo Computi metrici.


🗂️ Diagramma ER

100%

🧬 DTOs

McTemplateModelDto

Field
PHP Type
Note
id
int
name
string
slug
string
depth
int

Definisce la profondità del grafo (zero è la base)

layers

Contiene le informazioni relative ai layers del grafo da trasferire ai nodi

McTemplateModelLayerDto

Field
PHP Type
Note
uuid
string
depth
int

La profondità dei nodi di questo layer (sarà equivalente all'indice di questo elemento nell'array 'layers' di McTemplateModel)

label
string

La label che definirà come i nodi verranno chiamati ad alto livello (L2.1, L4, ecc)

hasBonusFeature
bool

Definisce se il nodo dovrà avere la feature 'bonus'

hasLotFeature
bool

Definisce se il nodo dovrà avere la feature 'lotti'

hasScheduleFeature
bool

Definisce se il nodo dovrà avere la feature 'cronoprogramma'

hasAdvancedPriceFeature
bool

Definisce se il nodo dovrà avere la feature 'prezzi avanzati'

McNodeTemplateDto

Field
PHP Type
Note
id
int
templateModel
nodeCategory
parent
Optional|McNodeTemplateDto
children
Optional|McNodeTemplateDto[]
label
string

L2.1, L4, ecc

depth
int

La profondità di questo nodo (zero è la base)

code
string
name
string
note
string
quantity
float
isValid
bool
isDefault
bool
shouldSumQty
bool
hasBonusFeature
bool

Indica la presenza delle properties relative alla feature dei bonus

hasLotFeature
bool

Indica la presenza delle properties relative alla feature dei lotti

hasScheduleFeature
bool

Indica la presenza delle properties relative alla feature del cronoprogramma

hasAdvancedPriceFeature
bool

Indica la presenza delle properties relative alla feature dei prezzi avanzati

unitPrices
McPriceDto[]

I prezzi associati al nodo (se selezionato hasAdvancedPrices questi sono ricavati dalle relazioni inferiori)

bonus

Se hasBonusFeature è true

bonusWorkType

Se hasBonusFeature è true

bonusWorkCategory

Se hasBonusFeature è true

overlayCode

Se hasLotFeature è true

parcelCode

Se hasScheduleFeature è true

progressiveCode
Optional|int

Se hasScheduleFeature è true

assigneeType

Se hasAdvancedPriceFeature è true

deiLineTemplate

Se hasAdvancedPriceFeature è true

typology
Optional|McAdvancedPriceNodeTypologyEnum

Se hasAdvancedPriceFeature è true

denominatorMeasurementUnit
Optional|MeasurementUnitEnum

Se hasAdvancedPriceFeature è true

vatPercentage
Optional|float

Se hasAdvancedPriceFeature è true

multiplicationFactor
Optional|int

Se hasAdvancedPriceFeature è true

isCustomer
Optional|bool

Se hasAdvancedPriceFeature è true

good

Se hasAdvancedPriceFeature è true e typology è M1 o M2

rent

Se hasAdvancedPriceFeature è true e typology è NO

landfill

Se hasAdvancedPriceFeature è true e typology è DS

labourTypes

Se hasAdvancedPriceFeature è true e typology è M4

McDeiLineTemplateDto

Field
PHP Type
Note
id
int
deiCode
string
name
string
referenceList
?string
measurementUnit
MeasurementUnitEnum
laborPercentage
?float
rentPercentage
?float
materialPercentage
?float
isWorkCompleted
bool
isDraft
bool
price
float
priceStartDate
CarbonImmutable
priceEndDate
CarbonImmutable

McLabourTypeDto

Field
PHP Type
Note
id
int
code
string
name
string
qualification
?McLabourTypeQualificationEnum
description
?string
price
float
priceStartDate
CarbonImmutable
priceEndDate
CarbonImmutable

McGoodDto

Field
PHP Type
Note
id
int
code
string
name
string
criteria
string
primaryMerchandiseCategoryId
?int
secondaryMerchandiseCategoryId
?int
measurementUnit
MeasurementUnitEnum
primaryMerchandiseCategory
secondaryMerchandiseCategory

McProductDto

Field
PHP Type
Note
id
int
code
string
name
string
manufacturerName
string
manufacturerCode
string
description
?string
measurementUnit
MeasurementUnitEnum
manufacturerPrice
float
manufacturerMeasurementUnit
MeasurementUnitEnum
price
float
priceStartDate
CarbonImmutable
priceEndDate
CarbonImmutable
attachments
MediaDto[]
images
MediaDto[]

McRentDto

Field
PHP Type
Note
id
int
code
string
name
string
description
string
measurementUnit
MeasurementUnitEnum

McLandfillDto

Field
PHP Type
Note
id
int
code
string
name
string
description
string
measurementUnit
MeasurementUnitEnum

McPriceDto

Field
PHP Type
Note
id
int
priceableType
string
type
McPriceTypeEnum
region
RegionEnum
price
float
date
datetime
isActive
bool
priceable
mixed

🔢 Enums

McAdvancedPriceNodeTypologyEnum

string
Field
Value
Frontend Value
Note
M1
m1
Materiali impresa
M2
m2
Materiali fornitore
M4
m4
Manodopere
NO
no
Noleggi
DS
ds
Discariche

McPriceTypeEnum

string
Field
Value
Frontend Value
Note
DEFAULT
default
Prezzo default
TEST
test
Prezzo di test

McLabourTypeQualificationEnum

string
Field
Value
Frontend Value
Note
SIMPLE
simple
Semplice
QUALIFIED
qualified
Qualificato
SPECIALIZED
specialized
Specializzato