public DetallePuntaje(Postulacion origen)
        {
            InitializeComponent();

            try
            {
                if (txtBuscarPostulante.Text != null)
                {
                    Cone = Oracle.abrirConexion();

                    OracleCommand cmd = new OracleCommand("FN_LISTAR_TODO", Cone);
                    cmd.CommandType = CommandType.StoredProcedure;
                    List <Postulante> listaBeneficiados = new List <Postulante>();


                    OracleParameter copia_cursor = cmd.Parameters.Add("L_TODO", OracleDbType.RefCursor);     // es igual a %rowtype
                    copia_cursor.Direction = ParameterDirection.ReturnValue;

                    OracleParameter rut = new OracleParameter("rut", OracleDbType.Varchar2);
                    rut.Direction = ParameterDirection.Input;
                    rut.Value     = txtBuscarPostulante.Text;

                    cmd.ExecuteNonQuery();

                    OracleDataReader info_leida = ((OracleRefCursor)copia_cursor.Value).GetDataReader();     //lo parseamos a cursor, por los distintos tipo de datos que contiene
                    while (info_leida.Read())
                    {
                        //rescatamos
                        Postulante pos = new Postulante();
                        pos.Rut            = info_leida.GetString(0);
                        pos.Nombre         = info_leida.GetString(1);
                        pos.Edad           = info_leida.GetInt32(2);
                        pos.PuntjEdad      = info_leida.GetInt32(3);
                        pos.CantCargas     = info_leida.GetInt32(4);
                        pos.PuntjCargas    = info_leida.GetInt32(5);
                        pos.EstadoCivil    = info_leida.GetString(6);
                        pos.PuntjCivil     = info_leida.GetInt32(7);
                        pos.PuebloIndigena = info_leida.GetString(8);
                        pos.PuntjIndigena  = info_leida.GetInt32(9);
                        pos.MontoAhorrado  = info_leida.GetString(10);
                        pos.PuntjAhorro    = info_leida.GetInt32(11);
                        pos.Titulo         = info_leida.GetString(12);
                        pos.PuntjTitulo    = info_leida.GetInt32(13);
                        pos.Region         = info_leida.GetString(14);
                        pos.PuntjRegion    = info_leida.GetInt32(15);
                        pos.TipoVivienda   = info_leida.GetString(16);
                        pos.ValorVivienda  = info_leida.GetString(17);
                        pos.PuntjTotal     = info_leida.GetInt32(18);


                        //agregamos a la lista
                        listaBeneficiados.Add(pos);
                    }

                    gvListarFiltro.ItemsSource = listaBeneficiados;
                    txtAhorro.Text             = pos.PuntjAhorro.ToString();
                    txtCarga.Text       = pos.PuntjCargas.ToString();
                    txtEdad.Text        = pos.PuntjEdad.ToString();
                    txtEstadoCivil.Text = pos.PuntjCivil.ToString();
                    txtIndigena.Text    = pos.PuntjIndigena.ToString();
                    txtRegion.Text      = pos.PuntjRegion.ToString();
                    txtTitulo.Text      = pos.PuntjTitulo.ToString();
                    txtTotal.Text       = pos.PuntjTotal.ToString();
                }
            }
            catch (Exception exa)
            {
                MessageBox.Show("Error!" + exa.Message);
            }
        }
        private void btnPostular_Click(object sender, RoutedEventArgs e)
        {
            Postulacion pos = new Postulacion();

            pos.Show();
        }