Ejemplo n.º 1
0
        public void anadirCeldasMadre()
        {
            String r = "No hay dato";

            string[] row = null;
            if (Procesos_Alumno.obtenerMadre(alumno.getPadre()) == null)
            {
                row = new string[] { r, r, r };
                tablaMadre.Rows.Add(row);
            }
            else
            {
                tablaMadre.Rows.Add(Procesos_Alumno.obtenerMadre(alumno.getMadre()));
            }
        }
Ejemplo n.º 2
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            bool chequeo;

            chequeo = validaciones();
            if (chequeo == false)
            {
                return;
            }
            int      Mes        = cmbMes.SelectedIndex + 1;
            String   fecha      = cmbDay.SelectedItem.ToString() + "/" + Mes.ToString() + "/" + cmbYear.SelectedItem.ToString();
            DateTime nacimiento = Convert.ToDateTime(fecha);
            Alumno   nuevo      = new Alumno(alumno.getId(), txtNombre.Text, txtApellido.Text, nacimiento, cmbSangre.SelectedItem.ToString(), txtCalle.Text, txtColonia.Text, txtTel.Text, alumno.getPadre(), alumno.getMadre(), Convert.ToInt16(cmbGrado.SelectedItem), cmbGrupo.SelectedItem.ToString().Trim(), cmbPago.SelectedIndex);

            Boolean check = Procesos_Alumno.ModificarAlumno(nuevo, adeudos);

            if (check == false) // Uno de lso errores. Actualizar Excel
            {
                MessageBox.Show("Error al intentar editar los datos del alumno. Intente nuevamente", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            Boolean checkDocu = Procesos_Alumno.ModificarDocumentacion(alumno.getId(), this.chkActa.Checked, this.chkCopiaActa.Checked, this.chkCopiasCartilla.Checked, this.txtCURP.Text);

            if (checkDocu == false) // Uno de lso errores. Actualizar Excel
            {
                MessageBox.Show("Error al intentar editar los datos de documentación del alumno. Intente nuevamente", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }