Logo GenPRES

Component.Dto Module

Holds the serializable shapes of a component and of its products, and converts a component to and from the component Dto.

Types

Type Description

Dto

PredilutionDto

The predilution a product was made with.

ProductDto

A product a component can be made of.

ReconstitutionDto

The reconstitution a product was made with.

StrengthDto

The strength of one substance of a product.

Functions and values

Function or value Description

dto id orbN cmpN form

Full Usage: dto id orbN cmpN form

Parameters:
    id : string - The Id of the Component
    orbN : string - The name of the Orderable
    cmpN : string - The name of the Component
    form : string - The form of the Component

Returns: Dto

Create a Component Dto

id : string

The Id of the Component

orbN : string

The name of the Orderable

cmpN : string

The name of the Component

form : string

The form of the Component

Returns: Dto

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Component
dto : Dto
Returns: Component

productFromDto dto

Full Usage: productFromDto dto

Parameters:
Returns: ComponentProduct

productToDto p

Full Usage: productToDto p

Parameters:
Returns: ProductDto

toDto cmp

Full Usage: toDto cmp

Parameters:
Returns: Dto
cmp : Component
Returns: Dto

Type something to start searching.