Example #1
0
 /**
  * Konstruktori
  * */
 public Korisnik()
 {
     this._korisnikId = Metode.dobaviId(ref lista_id);
     this._imePrezime = "";
     this._korIme     = "";
     this._lozinka    = "";
 }
Example #2
0
 public Film(string naziv, Zanr z, string opis, float ocena)
 {
     this._filmId = Metode.dobaviId(ref lista_id);
     this._naziv  = naziv;
     this._zanr   = z;
     this._opis   = opis;
     this._ocena  = ocena;
 }
Example #3
0
        /**
         * Konstruktori
         * */



        public Film()
        {
            this._filmId = Metode.dobaviId(ref lista_id);
            this._naziv  = "";
            this._opis   = "";
            this._ocena  = 0.0F;
            this._zanr   = Zanr.akcija;
        }
Example #4
0
 public Korisnik(string korIme, string lozinka, int tip, string imePrezime)
 {
     this._korisnikId = Metode.dobaviId(ref lista_id);
     this._korIme     = korIme;
     this._lozinka    = lozinka;
     this._tip        = tip;
     this._imePrezime = imePrezime;
 }
 public Projekcija(int film_id, int sala_id, string vreme)
 {
     this._film_id      = film_id;
     this._sala_id      = sala_id;
     this._projekcijaId = Metode.dobaviId(ref lista_id);
     this._film         = Film.VratiPoID(film_id);
     this._sala         = Sala.VratiPoID(sala_id);
     this._vreme        = vreme;
 }
 public Projekcija(Film film, Sala sala, string vreme)
 {
     this._projekcijaId = Metode.dobaviId(ref lista_id);
     this._film         = film;
     this._sala         = sala;
     this._vreme        = vreme;
     this._film_id      = film.FilmId;
     this._sala_id      = sala.SalaId;
 }
 public Projekcija()
 {
     this._projekcijaId = Metode.dobaviId(ref lista_id);
     this._sala         = null;
     this._film         = null;
     this._vreme        = DateTime.Now.ToString("f");
     this._film_id      = 0;
     this._sala_id      = 0;
 }
 public Karta()
 {
     this._kartaId       = Metode.dobaviId(ref lista_id);
     this._projekcija    = null;
     this._kupac         = null;
     this._cena          = 0.0F;
     this._red           = this._sediste = 0;
     this._kupac_id      = 0;
     this._projekcija_id = 0;
 }
 public Karta(int projekcija_id, int kupac_id, float cena, int red, int sediste)
 {
     this._kartaId       = Metode.dobaviId(ref lista_id);
     this._projekcija    = Projekcija.VratiPoID(projekcija_id);
     this._kupac         = Korisnik.VratiPoID(kupac_id);
     this._cena          = cena;
     this._red           = red;
     this._sediste       = sediste;
     this._kupac_id      = kupac_id;
     this._projekcija_id = projekcija_id;
 }
Example #10
0
 public Karta(Projekcija projekcija, Korisnik kupac, float cena, int red, int sediste)
 {
     this._kartaId       = Metode.dobaviId(ref lista_id);
     this._projekcija    = projekcija;
     this._kupac         = kupac;
     this._cena          = cena;
     this._red           = red;
     this._sediste       = sediste;
     this._kupac_id      = kupac.KorisnikId;
     this._projekcija_id = projekcija.ProjekcijaId;
 }
Example #11
0
 public Sala(string naziv, int redova, int sedistaPoRedu)
 {
     this._salaId        = Metode.dobaviId(ref lista_id);
     this._naziv         = naziv;
     this._redova        = redova;
     this._sedistaPoRedu = sedistaPoRedu;
     this._mesta         = new int[_redova][];
     for (int i = 0; i < this._mesta.Length; i++)
     {
         this._mesta [i] = new int[_sedistaPoRedu];
     }
     this._ukupnoMesta = this._redova * this._sedistaPoRedu;
     this._brSlobodnih = this._ukupnoMesta;
     this._brZauzetih  = 0;
 }
Example #12
0
        public Sala()
        {
            this._salaId        = Metode.dobaviId(ref lista_id);
            this._naziv         = "";
            this._redova        = 5;
            this._sedistaPoRedu = 10;
            this._mesta         = new int[_redova][];
            for (int i = 0; i < this._mesta.Length; i++)
            {
                this._mesta [i] = new int[_sedistaPoRedu];
            }

            _ukupnoMesta = _redova * _sedistaPoRedu;
            _brSlobodnih = _ukupnoMesta;
            _brZauzetih  = 0;
        }