示例#1
0
        private KlinickiCentar SelectedKlinickiCentar(MetroGrid mg)
        {
            KlinickiCentar kc = null;

            if (mg.Rows.Count > 0)
            {
                kc = (KlinickiCentar)mg.SelectedRows[0].DataBoundItem;
            }

            return(kc);
        }
示例#2
0
        private void metroGridKlinickiCentri_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            MetroGrid mg = sender as MetroGrid;

            if (mg.Rows.Count > 0)
            {
                KlinickiCentar kc = SelectedKlinickiCentar(metroGridKlinickiCentri);
                if (kc != null)
                {
                    GetKlinikeData(kc);
                }
            }
        }
示例#3
0
        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();
        }
示例#4
0
        private void RefreshUputData(Pacijent pacijent)
        {
            GetKlinickiCentriData();
            KlinickiCentar kc = SelectedKlinickiCentar(metroGridKlinickiCentri);

            if (kc != null)
            {
                GetKlinikeData(kc);
                Klinika k = SelectedKlinika(metroGridKlinike);
                if (k != null)
                {
                    GetSpecijalisteData(k);
                    metroButtonZakaziKodSpecijaliste.Enabled = true;
                }
                else
                {
                    metroButtonZakaziKodSpecijaliste.Enabled = false;
                }
            }
        }
示例#5
0
 private void GetKlinikeData(KlinickiCentar klinicki_centar)
 {
     //metroGridKlinike.Rows.Clear();
     metroGridKlinike.DataSource = new BindingList <Klinika>(klinicki_centar.Klinike);
 }