editar empleado listo

This commit is contained in:
carlos
2024-01-12 01:16:51 -06:00
parent 629334100c
commit 58838e4ed1
22 changed files with 451 additions and 28 deletions
+29 -3
View File
@@ -1,4 +1,5 @@
using compabetov2.database.modelos;
using compabetov2.database;
using compabetov2.database.modelos;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -44,9 +45,34 @@ namespace compabetov2
}
void CargarDatos(Empleado empleado)
private void button1_Click(object sender, EventArgs e)
{
this.empleado = empleado;
Empleado empleadoNuevo = new Empleado(
empleado.idempleado,
txtNombre.Text,
txtApellido.Text,
txtCalle.Text,
dtFechaCon.Text,
cbEstado.Text,
txtColonia.Text,
txtCp.Text,
txtNoExt.Text,
txtNoInt.Text,
txtReferencia.Text,
dtFechaNac.Text,
txtTelefono.Text);
if (service.actualizarEmpleado(empleadoNuevo))
{
ventanaPadre.llenarPanel();
}
}
private void btnCancelar_Click(object sender, EventArgs e)
{
this.Close();
}
}
}