C# Class Marmalade_Global.Order

Exibir arquivo Open project: DMOE15C/project-marmelade

Public Methods

Method 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 method

Not yet implemented
public BestSalesOption ( ) : string
return string

CalcualteExpectedProfit() public method

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

CalculateTotalProductPrice() public method

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
return double

CalculateTotalSellingPrice() public method

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
return double

Order() public method

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
return System

ToString() public method

public ToString ( ) : string
return string