File

projects/m2-core/src/lib/core/service/value/item-values.service.ts

Index

Methods

Constructor

constructor(logger: Logger, propertyValueService: PropertyValueService, uiConfigService: UIConfigService, attributeClassifierService: AttributeClassifierService, dataReadService: DataReadService, transactionalElementReadService: TransactionalElementReadService, txService: TransactionService, authService: AuthService)
Parameters :
Name Type Optional
logger Logger No
propertyValueService PropertyValueService No
uiConfigService UIConfigService No
attributeClassifierService AttributeClassifierService No
dataReadService DataReadService No
transactionalElementReadService TransactionalElementReadService No
txService TransactionService No
authService AuthService No

Methods

Public castCategoriesWithValuesToCardRows
castCategoriesWithValuesToCardRows(ownerItemId: number, parentRow: CardRow, valuesByCategories: CategoryWithValues[], isRowHiddenFn?: (row?: AttributeValueRow | AggregationRow) => void)
Parameters :
Name Type Optional
ownerItemId number No
parentRow CardRow No
valuesByCategories CategoryWithValues[] No
isRowHiddenFn function Yes
Returns : CardRow[]
Public formCardRows
formCardRows(declarationsInfo: DeclarationInfo[], values: PropertyValue[], ownerItemId: number, parentRow?: CardRow, filterOutEmpty?: boolean)
Parameters :
Name Type Optional
declarationsInfo DeclarationInfo[] No
values PropertyValue[] No
ownerItemId number No
parentRow CardRow Yes
filterOutEmpty boolean Yes
Returns : CardRow[]
Public Async getItemValuesRows
getItemValuesRows(itemId: number, parentRow?: CardRow)

Получить значения атрибутов в виде строк карточки.

Parameters :
Name Type Optional
itemId number No
parentRow CardRow Yes
Returns : Promise<CardRow[]>
Public Async getItemValuesRows
getItemValuesRows(item: Item, parentRow?: CardRow, opts?: literal type)
Parameters :
Name Type Optional
item Item No
parentRow CardRow Yes
opts literal type Yes
Returns : Promise<CardRow[]>
Public Async getItemValuesRows
getItemValuesRows(itemOrId: number | Item, parentRow?: CardRow, opts?: literal type)
Parameters :
Name Type Optional
itemOrId number | Item No
parentRow CardRow Yes
opts literal type Yes
Returns : Promise<CardRow[]>
Public Async loadCardRowItemValues
loadCardRowItemValues(cardRow: SingleAggregationRow | RelatedItemRow | ConstraintCellSingleAggregationRow | ItemRow | CompatibilityRow, itemId: number)

Is used for aggregations (direct and inverse) + in compatibilities

Parameters :
Name Type Optional
cardRow SingleAggregationRow | RelatedItemRow | ConstraintCellSingleAggregationRow | ItemRow | CompatibilityRow No
itemId number No
Returns : Promise<CardRow[]>
Public Async loadPropertyValues
loadPropertyValues(itemId: number, parentNodeId?: number, declarationInfosCache?: Pair)

Is used in item card directly in order to split rows into 2 sets: documents and others (validation is executed later)

Parameters :
Name Type Optional
itemId number No
parentNodeId number Yes
declarationInfosCache Pair<number | DeclarationInfo[]> Yes
Public setCardRowItemValues
setCardRowItemValues(cardRow: SingleAggregationRow | ConstraintCellSingleAggregationRow | ItemRow | CompatibilityRow, itemId: number)

Related item values

Parameters :
Name Type Optional
cardRow SingleAggregationRow | ConstraintCellSingleAggregationRow | ItemRow | CompatibilityRow No
itemId number No
Returns : Promise<void>
Public setCardRowLinkAndPartValues
setCardRowLinkAndPartValues(cardRow: SingleAggregationRow | RelatedItemRow, stereotypeId: number, aggregationId: number, aggregateId: number, partId: number, focusInput)

Is used for aggregations (direct and inverse)

Parameters :
Name Type Optional Default value
cardRow SingleAggregationRow | RelatedItemRow No
stereotypeId number No
aggregationId number No
aggregateId number No
partId number No
focusInput No false
Returns : Promise<void>
Public validateBlockingInfo
validateBlockingInfo(targetItemId: number, rowsSets: CardRow[][])

Blocking info

Parameters :
Name Type Optional
targetItemId number No
rowsSets CardRow[][] No
Returns : void
Public validateItemIncompliantValues
validateItemIncompliantValues(targetItemId: number, rowsSets: CardRow[][])

Incompliant values

Parameters :
Name Type Optional
targetItemId number No
rowsSets CardRow[][] No
Returns : void
Public validateItemNullValues
validateItemNullValues(targetItemId: number, rowsSets: CardRow[][])

Item null values due to constraint tables

Parameters :
Name Type Optional
targetItemId number No
rowsSets CardRow[][] No
Returns : void

results matching ""

    No results matching ""