public BudgetPost(Maand maand, HoofdCategorie hoofdcat, SubCategorie subcat, double debet, double credit) { Mnd = maand; HoofdCat = hoofdcat; SubCat = subcat; Debet = debet; Credit = credit; }
public void duplicateBGPosten(Budget bg) { Maand vorigeMaand = bg.getLaatsteMaand(); foreach (BudgetPost bgp in MaandBGPosten.Members) { MaandBGPosten.Members.Add(bgp.dupliceerBGPost(this)); } }
public bool addMaand() { Maand currMaand = getLaatsteMaand(); int ind = currMaand.Index; int jaar = currMaand.Jaar; int id = currMaand.ID; if (ind == 11)//of 12=>1 { ind = 0; jaar++; } Maand NewMaand = new Maand(id, jaar, ind, false); NewMaand.duplicateBGPosten(this); Maanden.Add(NewMaand); // currMaand.archiveer(); return(true); }
public BudgetPost dupliceerBGPost(Maand maand) { return(new BudgetPost(maand, HoofdCat, SubCat, Debet, Credit)); }
public bool deleteMaand(Maand mnd) { //code hier return(true); }