示例#1
0
        private void buscarPersonalIdent()
        {
            DataTable          dtPersonal = new DataTable();
            PersonalController funcion    = new PersonalController();

            funcion.buscarPersonalIdentificacion(ref dtPersonal, txtIdentificacion.Text);
            if (dtPersonal.Rows.Count > 0)
            {
                identificacion = dtPersonal.Rows[0]["identificacion"].ToString();
                idPersonal     = Convert.ToInt32(dtPersonal.Rows[0]["idPersonal"]);
                txtNombre.Text = dtPersonal.Rows[0]["nombres"].ToString() + " " + dtPersonal.Rows[0]["apellidos"].ToString();
            }
        }