예제 #1
0
        private void btnAnotarAlumno_Click(object sender, EventArgs e)
        {
            AlumnoInscripciones alumnoInscripciones = new AlumnoInscripciones();

            alumnoInscripciones.ShowDialog();
            alumnoInscripciones.Dispose();
        }
예제 #2
0
        public AlumnoInscripcionesDesktop(int ID, ModoForm modo) : this()
        {
            this.Modo = modo;
            AlumnoInscripcionLogic AIL = new AlumnoInscripcionLogic();

            AluInscActual = AIL.GetOne(ID);
            MapearDeDatos();
        }
예제 #3
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            //Siempre se deben ingresar 5 numeros, de lo contrario tira error. Buscar como hacer que se complete con ceros

            int id = Convert.ToInt32(this.mtbIDAlumno.Text);
            AlumnoInscripcionLogic AIL = new AlumnoInscripcionLogic();

            AluInscActual = AIL.GetOne(id);

            if (AluInscActual == null)
            {
                DialogResult DR = (MessageBox.Show("El id no existe", "Aceptar", MessageBoxButtons.OK, MessageBoxIcon.Error));
            }
            else
            {
                txtCondicion.ReadOnly = false;
                mtbNota.ReadOnly      = false;
            }
        }
예제 #4
0
        public override void MapearADatos()
        {
            if (Modo == AplicationForm.ModoForm.Alta)
            {
                AlumnoInscripciones aluInsc = new AlumnoInscripciones();

                AluInscActual = aluInsc;

                this.AluInscActual.IDAlumno  = Convert.ToInt32(this.mtbIDAlumno.Text);
                this.AluInscActual.IDCurso   = Convert.ToInt32(this.cbIDCurso.SelectedValue);
                this.AluInscActual.Condicion = this.txtCondicion.Text;
                this.AluInscActual.Nota      = Convert.ToInt32(this.mtbNota.Text);
            }
            else if (Modo == AplicationForm.ModoForm.Modificacion)
            {
                this.AluInscActual.ID        = Convert.ToInt32(this.ID.Text);
                this.AluInscActual.IDAlumno  = Convert.ToInt32(this.mtbIDAlumno.Text);
                this.AluInscActual.IDCurso   = Convert.ToInt32(this.cbIDCurso.SelectedValue);
                this.AluInscActual.Condicion = this.txtCondicion.Text;
                this.AluInscActual.Nota      = Convert.ToInt32(this.mtbNota.Text);
            }
        }
예제 #5
0
        private void tsmInscripcion_Click(object sender, EventArgs e)
        {
            AlumnoInscripciones alum = new AlumnoInscripciones(perEncontrada.ID);

            alum.ShowDialog();
        }
예제 #6
0
        private void btnEXAMENES_Click(object sender, EventArgs e)
        {
            AlumnoInscripciones inscripciones = new AlumnoInscripciones();

            this.openChildForm(inscripciones);
        }