Example #1
0
 private void FillGridViewLijek(int idTerapije)
 {
     try
     {
         proxy = new BolnicaService.Service1Client();
         GridviewLijek.DataSource = proxy.GetLijekByTerapija(Convert.ToInt32(idTerapije));
         GridviewLijek.DataBind();
     }
     catch (Exception ex)
     {
         lblStatus.Text = ("Pogreška pri učitavanju podataka, greška: " + ex);
     }
 }
Example #2
0
 private void FillGridViewLijek()
 {
     try
     {
         int idTerapija = Convert.ToInt32(GridViewTerapija.DataKeys[GridViewTerapija.SelectedRow.RowIndex].Value);
         proxy = new BolnicaService.Service1Client();
         GridViewLijek.DataSource = proxy.GetLijekByTerapija(idTerapija);
         GridViewLijek.DataBind();
     }
     catch (Exception ex)
     {
         lblStatus.Text = ("Pogreška pri učitavanju podataka, greška: " + ex);
     }
 }