public BudgetPost(Maand maand, HoofdCategorie hoofdcat, SubCategorie subcat, double debet, double credit)
 {
     Mnd      = maand;
     HoofdCat = hoofdcat;
     SubCat   = subcat;
     Debet    = debet;
     Credit   = credit;
 }
Exemple #2
0
        public void duplicateBGPosten(Budget bg)
        {
            Maand vorigeMaand = bg.getLaatsteMaand();

            foreach (BudgetPost bgp in MaandBGPosten.Members)
            {
                MaandBGPosten.Members.Add(bgp.dupliceerBGPost(this));
            }
        }
Exemple #3
0
        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));
 }
Exemple #5
0
 public bool deleteMaand(Maand mnd)
 {
     //code hier
     return(true);
 }