funcionalidad del boton eliminar y editar de personal

This commit is contained in:
carlos
2024-01-10 19:58:29 -06:00
parent 45a34a62b6
commit 629334100c
21 changed files with 1653 additions and 5 deletions
+52
View File
@@ -0,0 +1,52 @@
using compabetov2.database.modelos;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace compabetov2
{
public partial class EditarEmpleado : Form
{
private Empleado empleado;
personal ventanaPadre;
public EditarEmpleado(Empleado empleado, personal ventanaPadre)
{
InitializeComponent();
this.empleado = empleado;
this.ventanaPadre = ventanaPadre;
llenarCampos();
}
private void llenarCampos()
{
txtNombre.Text = empleado.nombre;
txtApellido.Text = empleado.apellidos;
txtCalle.Text = empleado.calle;
txtColonia.Text = empleado.colonia;
txtCp.Text = empleado.cp;
txtNoExt.Text = empleado.no_ext;
txtNoInt.Text = empleado.no_int;
txtReferencia.Text = empleado.referencia;
txtTelefono.Text = empleado.telefono;
dtFechaCon.Text = empleado.fecha_contratacion;
dtFechaNac.Text = empleado.fecha_nac;
cbEstado.Text = empleado.estado;
}
private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
{
}
void CargarDatos(Empleado empleado)
{
this.empleado = empleado;
}
}
}