Ein RecipeItem verknüpft ein ProductionItem mit einer Menge und gehört zu einem Rezept
Inheritance: DomainEntity
示例#1
0
 public Stock FindStockFor(RecipeJob recipeJob, RecipeItem recipeItem)
 {
     Stock stock = null;
     _dbConversation.UsingTransaction(()=>
         {
             stock = _dbConversation.Query(new FindStockForRecipeItemQuery(recipeItem));
         });
     return stock;
 }
示例#2
0
 public virtual void RemoveRecipeItem(RecipeItem recipeItem)
 {
     _recipeItems.Remove(recipeItem);
 }
示例#3
0
 public virtual void AddRecipeItem(RecipeItem recipeItem)
 {
     recipeItem.ProductionItem = this;
     _recipeItems.Add(recipeItem);
 }
示例#4
0
 public EditRecipeItem(RecipeItem recipeItem)
 {
     RecipeItem = recipeItem;
 }
 public SingleRecipeItemViewModel(RecipeItem editRecipeItem)
 {
     _editRecipeItem = new EditRecipeItem(editRecipeItem);
 }
示例#6
0
 public virtual void AddRecipeItem(RecipeItem recipeItem)
 {
     recipeItem.Recipe = this;
     _recipeItems.Add(recipeItem);
 }