示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     using (PoslovniKlubBL temp = new PoslovniKlubBL())
     {
         //MessageBox.Show(Request.QueryString["SporazumBroj"]);
         string SpBr = Request.QueryString["SporazumBroj"];
         //int userid = temp.getKorBySp(SpBr);
         korisnici user = new korisnici();
         user = temp.getKorBySp(SpBr);
         //user = temp.GetUser(userid);
         txtSporazum.Text = Request.QueryString["SporazumBroj"];
         txtJMBG.Text = user.JMBG;
         txtPrezime.Text = user.Prezime;
         txtIme.Text = user.Ime;
         txtAdresa.Text = user.Adresa;
         int id = Convert.ToInt32(user.gradID);
         txtOpština.Text = temp.GetGradByID(id);
         txtMZ.Text = temp.GetMZByCode(user.mzCode);
         txtTelefon.Text = user.Telefon;
         txtTelefon2.Text = user.Telefon2;
         txtMobitel.Text = user.Mobitel;
         int fid = Convert.ToInt32(user.FilID);
         if(fid == 0)
         {
             txtFilijala.Text = "";
         }
         else
         {
             txtFilijala.Text = temp.GetFilijalaByID(fid);
         }
         txtEmail.Text = user.email;
         txtKomunikacija.Text = user.KomunikPutem;
     }
 }