Example #1
0
        public Korisnik(int id, string k, string l, string ime, string p, Polovi po, string jmbg, string kont, string ema, Uloge ul, bool banovan)
        {
            this.Id            = id;
            this.KorisnickoIme = k;
            this.Lozinka       = l;
            this.Ime           = ime;
            this.Prezime       = p;
            if (po.ToString().Equals("M"))
            {
                this.Pol = Polovi.M;
            }
            else
            {
                this.Pol = Polovi.Z;
            }
            this.JMBG           = jmbg;
            this.KontaktTelefon = kont;
            this.Email          = ema;

            if (ul.ToString().Equals("Musterija"))
            {
                this.Uloga = Uloge.Musterija;
            }
            else if (ul.ToString().Equals("Dispecer"))
            {
                this.Uloga = Uloge.Dispecer;
            }
            else
            {
                this.Uloga = Uloge.Vozac;
            }

            listaVoznji  = new List <Voznja>();
            this.Banovan = banovan;
        }
Example #2
0
        public Vozac(int id, string k, string l, string ime, string p, Polovi po, string jmbg, string kont, string email, Uloge ul, Lokacija lokacija, Automobil automobil, bool zauzet, bool banovan)
        {
            this.Id            = id;
            this.KorisnickoIme = k;
            this.Lozinka       = l;
            this.Ime           = ime;
            this.Prezime       = p;
            if (po.ToString().Equals("M"))
            {
                this.Pol = Polovi.M;
            }
            else
            {
                this.Pol = Polovi.Z;
            }
            this.JMBG           = jmbg;
            this.KontaktTelefon = kont;
            this.Email          = email;

            if (ul.ToString().Equals("Musterija"))
            {
                this.Uloga = Uloge.Musterija;
            }
            else if (ul.ToString().Equals("Dispecer"))
            {
                this.Uloga = Uloge.Dispecer;
            }
            else
            {
                this.Uloga = Uloge.Vozac;
            }

            this.Lokacija  = lokacija;
            this.Automobil = automobil;
            this.Zauzet    = zauzet;
            this.Banovan   = banovan;
        }