Invoice Manager  2
 All Classes Namespaces Files Functions Variables Properties
Data.Invoice Class Reference

Datová třída reprezentující fakturu More...

Public Member Functions

 Invoice (int id)
 Konstruktor More...
 
 Invoice (int id, String name, Person subscriber, Person supplier, int dueDate)
 Konstruktor More...
 
 Invoice (int id, String name, Person subscriber, Person supplier, int dueDate, bool paid)
 Konstruktor More...
 
 Invoice (int id, String name, Person subscriber, Person supplier, int dueDays, bool paid, DateTime created)
 Kostruktor - úplný More...
 
void addItem (Item item)
 
int totalPrice ()
 
string toSave ()
 Informace o faktuře pro uložení do souboru More...
 
override string ToString ()
 Informace o faktuře pro výpis More...
 
override bool Equals (object obj)
 Porovná dva objekty, jestli jsou stejné More...
 
override int GetHashCode ()
 Hashcode pro porovnávání More...
 

Properties

int ID [get, set]
 Jedinečné ID faktruy More...
 
String Name [get, set]
 Typ položky - Vydaná/Přijatá More...
 
Person Subscriber [get, set]
 
Person Supplier [get, set]
 
List< ItemItems [get]
 Seznam položek More...
 
DateTime Created [get, set]
 Datum vytvoření More...
 
DateTime DueDate [get]
 Datum splatnosti More...
 
int DueDays [get, set]
 Počet dní do splatnosti ode dne vytvoření. Setter nastaví i datum splatnosti More...
 
bool Paid [get, set]
 Označení pro zaplacené faktury More...
 

Detailed Description

Datová třída reprezentující fakturu

Constructor & Destructor Documentation

Data.Invoice.Invoice ( int  id)

Konstruktor

Parameters
idint, ID faktury
Data.Invoice.Invoice ( int  id,
String  name,
Person  subscriber,
Person  supplier,
int  dueDate 
)

Konstruktor

Parameters
idint, ID faktury
namestring, typ faktury
subscriberPerson, odběratel
supplierPerson, dodavatel
dueDateint, počet dní splatnosti
Data.Invoice.Invoice ( int  id,
String  name,
Person  subscriber,
Person  supplier,
int  dueDate,
bool  paid 
)

Konstruktor

Parameters
idint, ID faktury
namestring, typ faktury
subscriberPerson, odběratel
supplierPerson, dodavatel
dueDaysint, počet dní splatnosti
paidbool, TRUE je-li faktura již zaplacená
Data.Invoice.Invoice ( int  id,
String  name,
Person  subscriber,
Person  supplier,
int  dueDays,
bool  paid,
DateTime  created 
)

Kostruktor - úplný

Parameters
idint, ID faktury
namestring, typ faktury
subscriberPerson, odběratel
supplierPerson, dodavatel
dueDaysint, počet dní splatnosti
paidbool, TRUE je-li faktura již zaplacená
createdDateTime, datum vytvoření (vystavení) faktury

Member Function Documentation

void Data.Invoice.addItem ( Item  item)

<sumary> Metoda přidá položku do seznamu

Parameters
Itemitem - jedna položka /sumary> sumary> Metoda spočítá a vrátí celkovou hodnotu faktury
Returns
int /sumary>
override bool Data.Invoice.Equals ( object  obj)

Porovná dva objekty, jestli jsou stejné

Parameters
objobject
Returns
TRUE objekty jsou stejné, jinak FALSE
override int Data.Invoice.GetHashCode ( )

Hashcode pro porovnávání

Returns
string Data.Invoice.toSave ( )

Informace o faktuře pro uložení do souboru

Returns
string
override string Data.Invoice.ToString ( )

Informace o faktuře pro výpis

Returns
string
int Data.Invoice.totalPrice ( )

Property Documentation

DateTime Data.Invoice.Created
getset

Datum vytvoření

DateTime Data.Invoice.DueDate
get

Datum splatnosti

int Data.Invoice.DueDays
getset

Počet dní do splatnosti ode dne vytvoření. Setter nastaví i datum splatnosti

int Data.Invoice.ID
getset

Jedinečné ID faktruy

List<Item> Data.Invoice.Items
get

Seznam položek

String Data.Invoice.Name
getset

Typ položky - Vydaná/Přijatá

bool Data.Invoice.Paid
getset

Označení pro zaplacené faktury

Person Data.Invoice.Subscriber
getset

Odběratel

Person Data.Invoice.Supplier
getset

Dodavatel


The documentation for this class was generated from the following file: