funcionalidad del boton eliminar y editar de personal
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user