C# 클래스 Marmalade_Global.Order

파일 보기 프로젝트 열기: DMOE15C/project-marmelade

공개 메소드들

메소드 설명
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