Recipe Class |
Namespace: Aloe.EnterpriseOne.Model.Production.Technologies
The Recipe type exposes the following members.
| Name | Description | |
|---|---|---|
| Recipe | Initializes a new instance of the Recipe class with specific ObjectTransaction |
| Name | Description | |
|---|---|---|
| ChangingAttributes |
Gets the attributes that are currently changing. Can be used in attribute change event handler to prevent stack overflow.
(Inherited from EditableDomainObject.) | |
| CreationTime | Date and time when the Recipe was created. [Filter(ge;le)] [ReadOnly] | |
| CreationUser | Login name of the user, who created the Recipe. [Filter(like)] [ReadOnly] | |
| CurrencyDirectory | Currency directory, which is used to convert the costs and prices of materials, operations and resources into the currency of the product. [Filter(multi eq)] | |
| CustomProperties |
Gets the custom properties of the object.
(Inherited from EnterpriseOneEntityObject.) | |
| ExpiryDate | The last date, when the recipe should be used. null means that the recipe might still be in use. [Filter(ge;le)] | |
| ExtendedProperties |
Extended properties contain temporary (not persisted) values in the object instance.
(Inherited from EntityObject.) | |
| Id |
The unique Id of the entity object
(Inherited from EntityObject.) | |
| Ingredients | List of RecipeIngredient child objects, based on the Production.Technologies.RecipeIngredient.Recipe back reference | |
| IsDefault | Default for period: Release_Date - Expiry_Date. [Required] [Default(false)] [Filter(eq)] | |
| IsGhost |
Returns true when the object is a ghost object
(Inherited from EntityObject.) | |
| IsLoaded | Gets a value indicating whether the associated data for this domain object is loaded. (Overrides EntityObjectIsLoaded.) | |
| ItemString |
Gets or sets the value of a data attribute
(Inherited from DomainObject.) | |
| ItemIDataAttribute |
Gets or sets the value of a data attribute
(Inherited from DomainObject.) | |
| Name | The name of the recipe. When there is only 1 recipe, it is often equal to the product name. However, when there are multiple recipes for one product, the name is used for diferentiation. [Required] [Filter(like)] | |
| NoEvents |
Turns on "No events" mode and returns a class, that will turn it off when Disposed. See remarks for more info.
(Inherited from DomainObject.) | |
| Notes | User comments for the recipe. | |
| ObjectState | Gets the state of the domain object. (Overrides EditableDomainObjectObjectState.) | |
| Operations | List of RecipeOperation child objects, based on the Production.Technologies.RecipeOperation.Recipe back reference | |
| Price | The price for the specified Produce_Quantity. [Currency: Product.CostingCurrency] [Required] [Default(0)] | |
| PricePerLot | Price for one lot of the product (according to Lot_Size_Quantity_Base). [Currency: Product.CostingCurrency] [Required] [Default(0)] | |
| PrincipalRecipe | The prinicipal recipe, used to create this recipe. null means that this recipe was created without the help of principal recipe. [Filter(multi eq)] | |
| ProduceQuantity | Lot size. This is the produced quantity in one production run. The quantity is measured in the primary unit of Product_Id. [Unit: Product.BaseMeasurementCategory.BaseUnit] [Required] [Default(1)] | |
| Product | The Id of the produced product. [Filter(multi eq)] | |
| ReleaseDate | The date, when the recipe was released to production. [Required] [Default(Today)] [Filter(ge;le)] | |
| Repository | Provides access to RecipesRepository repository methods | |
| ScrapRate | The percentage (0..1) of scrap usually occurring during the operation. Specifying this leads to inflated requirements of all raw materials for this recipe. [Required] [Default(0)] | |
| Store | The store for which this technology is valid. The store is matched with the output store specified in the production order. When null, the technology is valid for all stores. [Filter(multi eq)] | |
| Transaction |
The EnterpriseOne transaction to which this object is attached.
(Inherited from EnterpriseOneEntityObject.) | |
| UpdateTime | Date and time when the Recipe was last updated. [Filter(ge;le)] [ReadOnly] | |
| UpdateUser | Login name of the user, who last updated the Recipe. [Filter(like)] [ReadOnly] |
| Name | Description | |
|---|---|---|
| CalculateIngredientsCost |
Calculates the total cost of the ingredients in the recipe.
| |
| CalculateOperationsCost |
Calculates the total cost of the operations in the recipe.
| |
| CreateNewFromCurrent |
Creates a new recipe from the current recipe, including all recipe operations and ingredients.
| |
| Delete | Deletes the domain object. (Overrides EntityObjectDelete.) | |
| DuplicateObject |
Creates a copy of the object.
(Inherited from EntityObject.) | |
| Equals(Object) |
Determines whether the specified Object, is equal to this instance.
(Inherited from EntityObject.) | |
| Equals(EntityObject) |
Indicates whether the current object is equal to another object of the same type.
(Inherited from EntityObject.) | |
| ExecuteBusinessRules |
Executes all business rules for the object for the specified BusinessEvent.
The validation fails are saved in the event.
(Inherited from EditableDomainObject.) | |
| GetAggregateParent |
Gets the aggregate parent of this entity object. If this is the aggregate root the return value is null.
(Inherited from EntityObject.) | |
| GetAggregateRoot |
Gets the aggregate root entity object.
If the entity does not have aggregate parent reference aggregate root is this entity object.
(Inherited from EntityObject.) | |
| GetHashCode |
Returns a hash code for this instance.
(Inherited from EntityObject.) | |
| GetRelatedObjectsForValidation |
Gets the related objects which would need validation upon validation of this object.
(Inherited from EntityObject.) | |
| IssueWarning(String) |
Issues a warning with the specified message.
(Inherited from EditableDomainObject.) | |
| IssueWarning(ExpressionFuncString, Object) |
Issues a warning with the specified message. The message can contain standard string placeholders.
(Inherited from EditableDomainObject.) | |
| MatchesFilter(DataAccessFilter) |
Returns true if this entity object matches the specified filter.
(Inherited from EnterpriseOneEntityObject.) | |
| MatchesFilter(DataAccessFilter, IBufferRow) |
Matches the filter against the specified row and returns the result of the match.
(Inherited from EnterpriseOneEntityObject.) | |
| Refresh |
Refreshes this instance with data from data source.
Only objects with ObjectState equal to Unchanged are refreshed.
(Inherited from EntityObject.) | |
| ToString |
Returns a String that represents this instance.
(Inherited from EntityObject.) | |
| ToString(String) |
Returns a String that represents this instance.
(Inherited from EntityObject.) | |
| TryGet |
Tries to get the specified attribute and returns it or null, when it is not found.
(Inherited from DomainObject.) |
| Name | Description | |
|---|---|---|
| FillAggregateMissingDefaults |
Recalculates the default values for all objects in the aggregate.
(Defined by EntityObjectExtensions.) | |
| FillMissingDefaults |
Executes the late default expression defined in each attribute (if any) if the current value is null or equal to a constant default.
(Defined by EntityObjectExtensions.) | |
| FormatString |
Converts the object to string based on the format specified.
(Defined by FormatStringExtensions.) | |
| GetExtensibleDataObject |
Gets the extensible data object related to the entity object.
Can return null if such ExtensibleDataObject doesn't exist.
(Defined by ExtensibleDataObjectExtensions.) | |
| GetOrCreateExtensibleDataObject |
Returns an ExtensibleDataObject related to the entity object.
If such object doesn't exist the object is created in the same transaction.
(Defined by ExtensibleDataObjectExtensions.) | |
| RecalculateMasterAttributes |
Recalculates the values of a master attributes in a master-detail relationship.
(Defined by EntityObjectExtensions.) | |
| RecalculateMissingValues |
Recalculates the missing values using the first reactive expression of the attributes.
(Defined by EntityObjectExtensions.) |