Example #1
0
        private void frmPrijsberekening_Load(object sender, EventArgs e)
        {
            if (informatie != null)
            {
                txtAantalkm.Text        = informatie.aantalkm.ToString();
                cbbDagkost.SelectedItem = informatie.dagprijs_autocar;
                cbbKmprijs.SelectedItem = informatie.kmprijs_autocar;
                txtBTW.Text             = informatie.offerte_btw_bedrag.ToString();
                txtTotaal.Text          = informatie.offerte_totaal.ToString();
                txtWinstmarge.Text      = informatie.offerte_winst.ToString();
                txtVraagprijs.Text      = informatie.offerte_totaal.ToString();
                txtKostprijs.Text       = informatie.offerte_kostprijs.ToString();
                txtKorting.Text         = informatie.offerte_korting.ToString();

                foreach (kost kost in OfferteManagement.getKostenVanOfferte(informatie.opdracht_id))
                {
                    ucKost ucKost = new ucKost();
                    ucKost.omschrijving = kost.omschrijving;
                    ucKost.prijs        = kost.bedrag;

                    flpKosten.Controls.Add(ucKost);
                }

                foreach (loonsoort loonsoort in OfferteManagement.getLoonSoortenVanOfferte(informatie.opdracht_id))
                {
                    ucLoonSoort ucLoonSoort = new ucLoonSoort();
                    ucLoonSoort.loonsoort = loonsoort;
                    ucLoonSoort.dagen     = dagen.ToString();

                    flpLoonSoorten.Controls.Add(ucLoonSoort);
                }
            }
        }