Ejemplo n.º 1
0
        public Billet(int _id, int _client, int _vol, DateTime _date)
        {
            this.id     = _id;
            this.client = _client;

            Tarif.Tarif t = DAL_Tarif.GetTarif(DAL_TarifVol.GetTarifVol(_vol).Tarif);
            this.classe = DAL_Classe.GetClasse(t.Classe).Nom;
            this.tarif  = t.Nom;
            this.prix   = DAL_TarifVol.GetTarifVol(_vol).Prix;

            Vol.Vol vol = DAL_Vol.GetVol(DAL_TarifVol.GetTarifVol(_vol).Vol);
            this.trajet  = vol.StrTrajet;
            this.depart  = vol.Depart;
            this.arrivee = vol.Arrivee;

            this.date = _date;
        }