Ejemplo n.º 1
0
        private void Btn_Buscar_Click(object sender, EventArgs e)
        {
            NG_Empleados negocio = new NG_Empleados();
            DataTable    tabla   = negocio.tabla_empleados(
                Cmb_Tipo_Documento.SelectedIndex.ToString(),
                txt_nro_documento.Text.Trim()
                );

            cargar_grilla(tabla);
        }
Ejemplo n.º 2
0
        private void Btn_Guardar_Click(object sender, EventArgs e)
        {
            tratamientos_especiales tratamiento = new tratamientos_especiales();

            if (tratamiento.validar(this.Controls) == tratamientos_especiales.resultado_validacion.incorrecta)
            {
                return;
            }

            NG_Empleados negocio = new NG_Empleados();

            negocio.insertar(
                Txt_Nombre.Text.Trim(),
                Txt_Apellido.Text.Trim(),
                Cmb_Tipo_Documento.SelectedIndex.ToString(),
                Txt_Nro_Documento.Text.Trim(),
                Txt_Fecha_Nacimiento.Text,
                Txt_Fecha_Ingreso.Text,
                Txt_Matricula.Text.Trim(),
                Cmb_Sucursal.SelectedIndex.ToString());
            this.Dispose();
        }