ViniciusConsultor / controlhoras

Automatically exported from code.google.com/p/controlhoras
1 stars 0 forks source link

Agregar FechaIngreso al Listado de Historial Empleado #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Agregar la fecha de Ingreso en el listao de Historial Empleado.

Original issue reported on code.google.com by juanga...@gmail.com on 22 Feb 2011 at 8:01

GoogleCodeExporter commented 8 years ago
Pronto, se resuelve con el siguiente update sobre consultasempleados

-- Se agrega FechaIngreso en el Listado de Historial Empleado.
update consultasempleados set Query="select emp.NroEmpleado, emp.Apellido, 
emp.Nombre, emp.FechaIngreso, teh.Nombre as Tipo, ehe.Descripcion, 
ehe.FechaInicio, ehe.FechaFin from EventosHistorialEmpleado ehe, Empleados emp, 
TiposEventoHistorial teh where ehe.IdEmpleado=emp.NroEmpleado and 
ehe.IdTipoEvento = teh.IdTipoEventoHistorial and (FechaInicio between 
'FECHADESDE' and 'FECHAHASTA' or FechaFin between 'FECHADESDE' and 
'FECHAHASTA') IFNROEMPLEADO" where idConsultaEmpleado=4  and Nombre="HISTORIAL 
DE FUNCIONARIOS";

15 min.

Original comment by juanga...@gmail.com on 23 Feb 2011 at 2:22

GoogleCodeExporter commented 8 years ago
Se envia nuevo update porque el anterior no anduvo. Creo que por el 
idconsultaempleado en el where.
-- Se agrega FechaIngreso en el Listado de Historial Empleado.
update consultasempleados set Query="select emp.NroEmpleado, emp.Apellido, 
emp.Nombre, emp.FechaIngreso, teh.Nombre as Tipo, ehe.Descripcion, 
ehe.FechaInicio, ehe.FechaFin from EventosHistorialEmpleado ehe, Empleados emp, 
TiposEventoHistorial teh where ehe.IdEmpleado=emp.NroEmpleado and 
ehe.IdTipoEvento = teh.IdTipoEventoHistorial and (FechaInicio between 
'FECHADESDE' and 'FECHAHASTA' or FechaFin between 'FECHADESDE' and 
'FECHAHASTA') IFNROEMPLEADO" where Nombre = "HISTORIAL DE FUNCIONARIOS";

Original comment by juanga...@gmail.com on 1 Mar 2011 at 4:37

GoogleCodeExporter commented 8 years ago

Original comment by juanga...@gmail.com on 20 Apr 2011 at 3:21