Esempio n. 1
0
        private void CbxGrado_SelectedIndexChanged(object sender, EventArgs e)
        {
            int clmat = NotasConsultas.ListCIMateria(cbxMateria.Text);
            int ci    = int.Parse(txtCIDOC.Text);

            datosNotas.DataSource = NotasConsultas.listar(clmat, cbxAñoCurso.Text, ci, cbxGrado.Text);
        }
Esempio n. 2
0
        private void BtnNotas_Click(object sender, EventArgs e)
        {
            panelNotas.Visible       = true;
            panelCambiarPass.Visible = false;
            cbxMateria.DataSource    = MateriasABML.ListNomMaterias();
            int clmat = NotasConsultas.ListCIMateria(cbxMateria.Text);
            int ci    = int.Parse(txtCIDOC.Text);

            datosNotas.DataSource = NotasConsultas.listar(clmat, cbxAñoCurso.Text, ci, cbxGrado.Text);

            sidePanel.Height = btnNotas.Height;
            sidePanel.Top    = btnNotas.Top;
        }
Esempio n. 3
0
 private void DatosNotas_Click(object sender, EventArgs e)
 {
     if (datosNotas.Rows.Count > 0)
     {
         txtCIALM.Text = NotasConsultas.ListCIAlumnos(datosNotas.CurrentRow.Cells["Nombre"].Value.ToString(), datosNotas.CurrentRow.Cells["Apellido"].Value.ToString()).ToString();
         txtnota1.Text = datosNotas.CurrentRow.Cells["Nota1"].Value.ToString();
         txtnota2.Text = datosNotas.CurrentRow.Cells["Nota2"].Value.ToString();
         txtnota3.Text = datosNotas.CurrentRow.Cells["Nota3"].Value.ToString();
         txtnotaf.Text = datosNotas.CurrentRow.Cells["Notaf"].Value.ToString();
         txtCIMAT.Text = NotasConsultas.ListCIMateria(cbxMateria.Text).ToString();
     }
     else
     {
         MessageBox.Show("No hay datos");
     }
 }