Beispiel #1
0
        private void btnConsultarEx_Click(object sender, EventArgs e)
        {
            var carrera = textBox6.Text;

            using (ServicioEscuela.Service1Client datos = new ServicioEscuela.Service1Client())
            {
                var obtieneNum = datos.NumeroAlumnos(carrera);
                var nombre     = obtieneNum.NumAlumnos;
                var apellidop  = obtieneNum.Turno;

                textBox7.Text = obtieneNum.NumAlumnos.ToString();
                textBox8.Text = obtieneNum.Turno.ToString();
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var edad = Convert.ToInt32(textBox17.Text);

            using (ServicioEscuela.Service1Client datos = new ServicioEscuela.Service1Client())
            {
                var nivelacademico = datos.NivelAcademico(edad);
                var nivel          = nivelacademico.NivelAcadem;
                var años           = nivelacademico.AñosRestantes;

                textBox18.Text = nivelacademico.NivelAcadem.ToString();
                textBox19.Text = nivelacademico.AñosRestantes.ToString();
            }
        }
Beispiel #3
0
        private void btnBorrar_Click(object sender, EventArgs e)
        {
            var operacion = Convert.ToChar(textBox13.Text);
            var num1      = Convert.ToInt32(textBox14.Text);
            var num2      = Convert.ToInt32(textBox15.Text);

            using (ServicioEscuela.Service1Client datos = new ServicioEscuela.Service1Client())
            {
                var resultado = datos.BasicCalculadora(num1, num2, operacion);
                var total     = resultado.Resultado;

                textBox16.Text = resultado.Resultado.ToString();
                label20.Text   = resultado.Operacion.ToString();
            }
        }
Beispiel #4
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            var turno = Convert.ToChar(textBox9.Text);

            using (ServicioEscuela.Service1Client datos = new ServicioEscuela.Service1Client())
            {
                var horario = datos.ObtenerHorario(turno);
                var hi      = horario.HoraI;
                var hf      = horario.HoraF;
                var numAlum = horario.NumAlumnos;

                textBox10.Text = horario.HoraI.ToString();
                textBox11.Text = horario.HoraF.ToString();
                textBox12.Text = horario.NumAlumnos.ToString();
            }
        }
Beispiel #5
0
        private void btnConsultarPro_Click(object sender, EventArgs e)
        {
            int alum = Convert.ToInt32(textBox1.Text);

            using (ServicioEscuela.Service1Client datos = new ServicioEscuela.Service1Client())
            {
                var alumnoDatos = datos.ObtenerAlumno(alum);
                var nombre      = alumnoDatos.Nombre;
                var apellidop   = alumnoDatos.ApellidoP;
                var apllidom    = alumnoDatos.ApellidoM;
                var carrera     = alumnoDatos.Carrera;

                textBox2.Text = alumnoDatos.Nombre.ToString();
                textBox3.Text = alumnoDatos.ApellidoP.ToString();
                textBox4.Text = alumnoDatos.ApellidoM.ToString();
                textBox5.Text = alumnoDatos.Carrera.ToString();
            }
        }