30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
class NapiMunka
|
|
{
|
|
public static int KeszultDb { get; private set; }
|
|
public int Nap { get; private set; }
|
|
public int HarangKesz { get; private set; }
|
|
public int HarangEladott { get; private set; }
|
|
public int AngyalkaKesz { get; private set; }
|
|
public int AngyalkaEladott { get; private set; }
|
|
public int FenyofaKesz { get; private set; }
|
|
public int FenyofaEladott { get; private set; }
|
|
|
|
public NapiMunka(string sor)
|
|
{
|
|
string[] s = sor.Split(';');
|
|
Nap = Convert.ToInt32(s[0]);
|
|
HarangKesz = Convert.ToInt32(s[1]);
|
|
HarangEladott = Convert.ToInt32(s[2]);
|
|
AngyalkaKesz = Convert.ToInt32(s[3]);
|
|
AngyalkaEladott = Convert.ToInt32(s[4]);
|
|
FenyofaKesz = Convert.ToInt32(s[5]);
|
|
FenyofaEladott = Convert.ToInt32(s[6]);
|
|
|
|
NapiMunka.KeszultDb += HarangKesz + AngyalkaKesz + FenyofaKesz;
|
|
}
|
|
|
|
public int NapiBevetel()
|
|
{
|
|
return -(HarangEladott * 1000 + AngyalkaEladott * 1350 + FenyofaEladott * 1500);
|
|
}
|
|
} |