editar empleado listo
This commit is contained in:
+29
-3
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user