コード例 #1
0
 private void LLenarCampos()
 {
     txtApellidos.Text               = alumnoEditado.Apellidos;
     txtCarrera.Text                 = alumnoEditado.Carrera;
     txtMatricula.Text               = alumnoEditado.Matricula;
     txtNombre.Text                  = alumnoEditado.Nombre;
     txtSemestre.Text                = alumnoEditado.Semestre.ToString();
     DateFinSemestre.SelectedDate    = alumnoEditado.CicloEscolarFin;
     DateInicioSemestre.SelectedDate = alumnoEditado.CicloEscolarInicio;
     DateF_Ingreso.SelectedDate      = alumnoEditado.FechaIngreso;
     if (alumnoEditado.EstaDeAlta)
     {
         EstaDeAlta.IsChecked = true;
     }
     else
     {
         NoEstaDeAlta.IsChecked = true;
     }
     Img.Source = ByteToImagen(alumnoEditado.Foto);
     SALUD      = new EDO_SALUD()
     {
         Alergias     = alumnoEditado.Alergias,
         Num_Seguro   = alumnoEditado.Num_Seguro,
         TipoDeSangre = alumnoEditado.TipoDeSangre
     };
 }
コード例 #2
0
        private void BtnEstadoSalud_Click(object sender, RoutedEventArgs e)
        {
            AgregarEstadoDeSalud agregarEstadoDeSalud = new AgregarEstadoDeSalud(EsEditar, SALUD);

            agregarEstadoDeSalud.ShowDialog();
            SALUD = agregarEstadoDeSalud.sALUD;
        }
コード例 #3
0
        public AgregarEstadoDeSalud(bool EsEditar, EDO_SALUD eDO_SALUD)
        {
            InitializeComponent();

            if (EsEditar)
            {
                txtAlergias.Text     = eDO_SALUD.Alergias;
                txtNumSeguro.Text    = eDO_SALUD.Num_Seguro;
                txtTipoDeSangre.Text = eDO_SALUD.TipoDeSangre;
            }
        }
コード例 #4
0
        private void BtnGuardar_Click(object sender, RoutedEventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(txtAlergias.Text) && !string.IsNullOrWhiteSpace(txtNumSeguro.Text) && !string.IsNullOrWhiteSpace(txtTipoDeSangre.Text))
            {
                sALUD = new EDO_SALUD
                {
                    Alergias     = txtAlergias.Text,
                    Num_Seguro   = txtNumSeguro.Text,
                    TipoDeSangre = txtTipoDeSangre.Text
                };


                this.Close();
            }
        }
コード例 #5
0
 private void LLenarCampos()
 {
     txtApellidos.Text    = docenteEditado.Apellidos;
     txtMatricula.Text    = docenteEditado.Matricula;
     txtNombre.Text       = docenteEditado.Nombre;
     txtArea.Text         = docenteEditado.Area;
     txtEspecialidad.Text = docenteEditado.Especialidad;
     if (docenteEditado.EstaActivo)
     {
         EstaActivo.IsChecked = true;
     }
     else
     {
         NoEstaActivo.IsChecked = true;
     }
     Img.Source = ByteToImagen(docenteEditado.Foto);
     SALUD      = new EDO_SALUD()
     {
         Alergias     = docenteEditado.Alergias,
         Num_Seguro   = docenteEditado.Num_Seguro,
         TipoDeSangre = docenteEditado.TipoDeSangre
     };
 }