C# Class Project_Marmelade.MachineController

Exibir arquivo Open project: DMOe15a/ProjectMarmelade Class Usage Examples

Public Properties

Property Type Description
machines List
maintenance List

Public Methods

Method Description
CalcDepreciation ( Machine machine, int year, int method ) : List
CreateAndUpdateMachine ( int id, string name, bool productionUse, System.DateTime dateBought, double purchasePrice, double scrapValue, int lifespan, double interestRate ) : string
CreateAndUpdateMaintenance ( int id, int machineID, System.DateTime startDate, System.DateTime startTime, System.DateTime endDate, System.DateTime endTime ) : string
CreateMachineAndSave ( string name, bool productionUse, System.DateTime dateBought, double purchasePrice, double scrapValue, int lifespan, double interestRate ) : string
CreateMaintenanceAndSave ( int machineID, System.DateTime startDate, System.DateTime startTime, System.DateTime endDate, System.DateTime endTime ) : string
DeleteMachine ( int MachineID ) : string
DeleteMaintenance ( int MaintenanceID ) : string
FindSpecificMachine ( int machineID ) : Machine
FindSpecificMaintenance ( int MaintenanceID ) : Maintenance
GetListForComboBoxYear ( int lifespan ) : List
GetMaintenanceListForAll ( ) : List
MachineController ( ) : System
ReadMachines ( ) : List

Method Details

CalcDepreciation() public method

public CalcDepreciation ( Machine machine, int year, int method ) : List
machine Machine
year int
method int
return List

CreateAndUpdateMachine() public method

public CreateAndUpdateMachine ( int id, string name, bool productionUse, System.DateTime dateBought, double purchasePrice, double scrapValue, int lifespan, double interestRate ) : string
id int
name string
productionUse bool
dateBought System.DateTime
purchasePrice double
scrapValue double
lifespan int
interestRate double
return string

CreateAndUpdateMaintenance() public method

public CreateAndUpdateMaintenance ( int id, int machineID, System.DateTime startDate, System.DateTime startTime, System.DateTime endDate, System.DateTime endTime ) : string
id int
machineID int
startDate System.DateTime
startTime System.DateTime
endDate System.DateTime
endTime System.DateTime
return string

CreateMachineAndSave() public method

public CreateMachineAndSave ( string name, bool productionUse, System.DateTime dateBought, double purchasePrice, double scrapValue, int lifespan, double interestRate ) : string
name string
productionUse bool
dateBought System.DateTime
purchasePrice double
scrapValue double
lifespan int
interestRate double
return string

CreateMaintenanceAndSave() public method

public CreateMaintenanceAndSave ( int machineID, System.DateTime startDate, System.DateTime startTime, System.DateTime endDate, System.DateTime endTime ) : string
machineID int
startDate System.DateTime
startTime System.DateTime
endDate System.DateTime
endTime System.DateTime
return string

DeleteMachine() public method

public DeleteMachine ( int MachineID ) : string
MachineID int
return string

DeleteMaintenance() public method

public DeleteMaintenance ( int MaintenanceID ) : string
MaintenanceID int
return string

FindSpecificMachine() public method

public FindSpecificMachine ( int machineID ) : Machine
machineID int
return Machine

FindSpecificMaintenance() public method

public FindSpecificMaintenance ( int MaintenanceID ) : Maintenance
MaintenanceID int
return Maintenance

GetListForComboBoxYear() public method

public GetListForComboBoxYear ( int lifespan ) : List
lifespan int
return List

GetMaintenanceListForAll() public method

public GetMaintenanceListForAll ( ) : List
return List

MachineController() public method

public MachineController ( ) : System
return System

ReadMachines() public method

public ReadMachines ( ) : List
return List

Property Details

machines public_oe property

public List machines
return List

maintenance public_oe property

public List maintenance
return List