C# Класс Marmalade_Global.Order

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

BestSalesOption() публичный Метод

Not yet implemented
public BestSalesOption ( ) : string
Результат string

CalcualteExpectedProfit() публичный Метод

A simple calculation that gives the difference between selling and buying price
public CalcualteExpectedProfit ( ) : double
Результат double

CalculateTotalProductPrice() публичный Метод

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
Результат double

CalculateTotalSellingPrice() публичный Метод

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
Результат double

Order() публичный Метод

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
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string