C# Class Marmalade_Global.Order

Afficher le fichier Open project: DMOE15C/project-marmelade

Méthodes publiques

Méthode Description
BestSalesOption ( ) : string

Not yet implemented

CalcualteExpectedProfit ( ) : double

A simple calculation that gives the difference between selling and buying price

CalculateTotalProductPrice ( ) : double

Calculates the buying price for creating the products, by using a method placed in weeklyproduct.cs. This method gets the price for the ingredients from product.cs and times it with the weight given in the WeeklyProduct.cs.

CalculateTotalSellingPrice ( ) : double

Calculates the selling price for selling all the products, by using a method placed in weeklyproduct.cs. This method gets selling price for the products times with their weight given in the weeklyproduct.cs.

Order ( double weeklyBudget ) : System

Constructor that takes 1 parameter, and fills in the rest of information using the calculations within the class, and get the ID from the List within the G3Controller. (+1 to the list for new ID)

ToString ( ) : string

Method Details

BestSalesOption() public méthode

Not yet implemented
public BestSalesOption ( ) : string
Résultat string

CalcualteExpectedProfit() public méthode

A simple calculation that gives the difference between selling and buying price
public CalcualteExpectedProfit ( ) : double
Résultat double

CalculateTotalProductPrice() public méthode

Calculates the buying price for creating the products, by using a method placed in weeklyproduct.cs. This method gets the price for the ingredients from product.cs and times it with the weight given in the WeeklyProduct.cs.
public CalculateTotalProductPrice ( ) : double
Résultat double

CalculateTotalSellingPrice() public méthode

Calculates the selling price for selling all the products, by using a method placed in weeklyproduct.cs. This method gets selling price for the products times with their weight given in the weeklyproduct.cs.
public CalculateTotalSellingPrice ( ) : double
Résultat double

Order() public méthode

Constructor that takes 1 parameter, and fills in the rest of information using the calculations within the class, and get the ID from the List within the G3Controller. (+1 to the list for new ID)
public Order ( double weeklyBudget ) : System
weeklyBudget double
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string