editar empleado listo
This commit is contained in:
@@ -21,8 +21,9 @@ namespace compabetov2.database.modelos
|
||||
public string referencia;
|
||||
public string fecha_nac;
|
||||
public string telefono;
|
||||
public int? fkIdLogin;
|
||||
|
||||
public Empleado(int idempeado = -1, string nombre ="", string apellidos = "", string calle = "", string fecha_contratacion = "", string estado = "", string colonia = "", string cp = "", string no_ext = "", string no_int = "", string referencia = "", string fecha_nac = "", string telefono ="")
|
||||
public Empleado(int idempeado = -1, string nombre ="", string apellidos = "", string calle = "", string fecha_contratacion = "", string estado = "", string colonia = "", string cp = "", string no_ext = "", string no_int = "", string referencia = "", string fecha_nac = "", string telefono ="",int? fkIdLogin = null)
|
||||
{
|
||||
this.idempleado = idempeado;
|
||||
this.nombre = nombre;
|
||||
@@ -37,6 +38,25 @@ namespace compabetov2.database.modelos
|
||||
this.referencia = referencia;
|
||||
this.fecha_nac=fecha_nac;
|
||||
this.telefono = telefono;
|
||||
this.fkIdLogin = fkIdLogin;
|
||||
}
|
||||
|
||||
public bool CompareEmpleado(Empleado emp2)
|
||||
{
|
||||
if (nombre != emp2.nombre) return false;
|
||||
if (apellidos != emp2.apellidos) return false;
|
||||
if (calle != emp2.calle) return false;
|
||||
if (fecha_contratacion != emp2.fecha_contratacion) return false;
|
||||
if (estado != emp2.estado) return false;
|
||||
if (colonia != emp2.colonia) return false;
|
||||
if (cp != emp2.cp) return false;
|
||||
if (no_ext != emp2.no_ext) return false;
|
||||
if (no_int != emp2.no_int) return false;
|
||||
if (referencia != emp2.referencia) return false;
|
||||
if (fecha_nac != emp2.fecha_nac) return false;
|
||||
if (telefono != emp2.telefono) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user