示例#1
0
        private void ListAbsente(int semID, int elevID, int materieID)
        {
            AbsentaBL absBL = new AbsentaBL();

            comboBoxListaAbsenteMotivare.DisplayMember = "data_absenta";
            comboBoxListaAbsenteMotivare.ValueMember   = "id_absenta";
            //labelMotivareAbsenta.Text = comboBoxListaAbsenteMotivare.SelectedValue.ToString();
            comboBoxListaAbsenteMotivare.DataSource = absBL.GetAbsenteByIDuri(semID, elevID, materieID).Rows;
        }
        private void buttonAbsentaVizualizare_Click(object sender, EventArgs e)
        {
            int                semID     = int.Parse(comboBoxAbsentaSem.SelectedValue.ToString());
            int                elevID    = int.Parse(comboBoxAbsentaElev.SelectedValue.ToString());
            int                materieID = int.Parse(comboBoxAbsentaMaterie.SelectedValue.ToString());
            AbsentaBL          absBl     = new AbsentaBL();
            DataTable          listaAbs  = absBl.GetAbsenteByIDuri(semID, elevID, materieID);
            VizualizareAbsente viz       = new VizualizareAbsente(listaAbs);

            viz.ShowDialog();
            viz.Dispose();
        }