projects/m2-core/src/lib/core/service/value/item-values.service.ts
Methods |
|
constructor(logger: Logger, propertyValueService: PropertyValueService, uiConfigService: UIConfigService, attributeClassifierService: AttributeClassifierService, dataReadService: DataReadService, transactionalElementReadService: TransactionalElementReadService, txService: TransactionService, authService: AuthService)
|
|||||||||||||||||||||||||||
|
Parameters :
|
| Public castCategoriesWithValuesToCardRows | |||||||||||||||
castCategoriesWithValuesToCardRows(ownerItemId: number, parentRow: CardRow, valuesByCategories: CategoryWithValues[], isRowHiddenFn?: (row?: AttributeValueRow | AggregationRow) => void)
|
|||||||||||||||
|
Parameters :
Returns :
CardRow[]
|
| Public formCardRows | ||||||||||||||||||
formCardRows(declarationsInfo: DeclarationInfo[], values: PropertyValue[], ownerItemId: number, parentRow?: CardRow, filterOutEmpty?: boolean)
|
||||||||||||||||||
|
Parameters :
Returns :
CardRow[]
|
| Public Async getItemValuesRows |
getItemValuesRows(itemId: number, parentRow?: CardRow)
|
|
Получить значения атрибутов в виде строк карточки.
Returns :
Promise<CardRow[]>
|
| Public Async getItemValuesRows |
getItemValuesRows(item: Item, parentRow?: CardRow, opts?: literal type)
|
|
Returns :
Promise<CardRow[]>
|
| Public Async getItemValuesRows | ||||||||||||
getItemValuesRows(itemOrId: number | Item, parentRow?: CardRow, opts?: literal type)
|
||||||||||||
|
Parameters :
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 :
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 :
Returns :
Promise<DeclarationToValues[]>
|
| Public setCardRowItemValues | |||||||||
setCardRowItemValues(cardRow: SingleAggregationRow | ConstraintCellSingleAggregationRow | ItemRow | CompatibilityRow, itemId: number)
|
|||||||||
|
Related item values
Parameters :
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 :
Returns :
Promise<void>
|
| Public validateBlockingInfo | |||||||||
validateBlockingInfo(targetItemId: number, rowsSets: CardRow[][])
|
|||||||||
|
Blocking info
Parameters :
Returns :
void
|
| Public validateItemIncompliantValues | |||||||||
validateItemIncompliantValues(targetItemId: number, rowsSets: CardRow[][])
|
|||||||||
|
Incompliant values
Parameters :
Returns :
void
|
| Public validateItemNullValues | |||||||||
validateItemNullValues(targetItemId: number, rowsSets: CardRow[][])
|
|||||||||
|
Item null values due to constraint tables
Parameters :
Returns :
void
|