C# Class Domain.Asset

Mostra file Open project: Tiakiana/ProjectMarmelade Class Usage Examples

Public Methods

Method Description
Asset ( string name, decimal purchasePrice, string purchaseDate, decimal scrapvalue, int lifeSpan, string isoperative, DecreciationType decreciationtype ) : System
CalculateDecreciations ( ) : void
CompleteMaintenance ( ) : void
PerformMaintenance ( ) : void
SetID ( int inID ) : void
ToString ( ) : string
addDecreciation ( AssetDecreciation newDecreciation ) : void
addMaintenance ( AssetMaintenance newMaintenance ) : void

Method Details

Asset() public method

public Asset ( string name, decimal purchasePrice, string purchaseDate, decimal scrapvalue, int lifeSpan, string isoperative, DecreciationType decreciationtype ) : System
name string
purchasePrice decimal
purchaseDate string
scrapvalue decimal
lifeSpan int
isoperative string
decreciationtype DecreciationType
return System

CalculateDecreciations() public method

public CalculateDecreciations ( ) : void
return void

CompleteMaintenance() public method

public CompleteMaintenance ( ) : void
return void

PerformMaintenance() public method

public PerformMaintenance ( ) : void
return void

SetID() public method

public SetID ( int inID ) : void
inID int
return void

ToString() public method

public ToString ( ) : string
return string

addDecreciation() public method

public addDecreciation ( AssetDecreciation newDecreciation ) : void
newDecreciation AssetDecreciation
return void

addMaintenance() public method

public addMaintenance ( AssetMaintenance newMaintenance ) : void
newMaintenance AssetMaintenance
return void