private void button12_Click(object sender, EventArgs e) { ISession s = DataLayerOracle.GetSession(); KlinickiCentar kc = s.Load <KlinickiCentar>(1); foreach (Klinika k in kc.Klinike) { foreach (SpecijalistaKC sckc in k.Specijaliste) { MessageBox.Show(sckc.Ime); } } s.Close(); }
// //private string jmbg_lekara, active_patient_jmbg; //private int smena_lekara; //private string sql_search; public FormLekar(string jmbg_lekara) { InitializeComponent(); session = DataLayer.GetSession(); oracle_session = DataLayerOracle.GetSession(); lekar_local = session.Load <IzabraniLekar>(jmbg_lekara); //this.jmbg_lekara = lekar_local.Jmbg; this.Text = lekar_local.Ime + " " + lekar_local.Prezime; //this.Text = GetDoctorNameAndSurname(jmbg_lekara); metroDateTime1.MinDate = System.DateTime.Today; metroDateTime1.Value = System.DateTime.Now; // causes event that calls RefreshControls to initialize the controls metroTabGlobal.SelectedIndex = 0; // Show 'Raspored pregleda' first metroComboBoxIzborPretrage.SelectedIndex = 1; // LBO default way of search metroLabelInfoOTerminu.Text = "Prelaz preko dugmeta za info o terminu"; metroLabelInfoPacijenta.Text = string.Empty; //metroLabelInfoPacijenta.Text = "Pacijent: "; smena_lekara_local = GetDoctorShift(lekar_local); metroLabelSmenaLekara.Text = smena_lekara_local == null ? "Smena nije postavljena za izabrani datum" : GetShiftName(smena_lekara_local.SmenaLekara); //metroButtonPretraziPacijente_Click += metroComboBoxIzborPretrage_SelectedIndexChanged; foreach (Control c in pnlPopodne.Controls) { MetroButton mb = c as MetroButton; if (mb != null) { mb.Click += metroButton_Click; mb.MouseHover += metroButton_MouseHover; mb.MouseLeave += metroButton_MouseLeave; //mb.UseStyleColors = true; } } foreach (Control c in pnlPrepodne.Controls) { MetroButton mb = c as MetroButton; if (mb != null) { mb.Click += metroButton_Click; mb.MouseHover += metroButton_MouseHover; mb.MouseLeave += metroButton_MouseLeave; //mb.UseStyleColors = true; } } }