fixes bug #0007445
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@57007 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
fc00d436ca
commit
0032d42531
|
@ -16,4 +16,6 @@ public interface EmpleadoDAO extends GenericDAO<Empleado, Integer>{
|
||||||
|
|
||||||
public List<Empleado> pesquisaClave(String empleadoClave);
|
public List<Empleado> pesquisaClave(String empleadoClave);
|
||||||
|
|
||||||
|
public List<Empleado> pesquisaEmpresa(Integer empresaId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,4 +43,12 @@ public class EmpleadoHibernateDAO extends GenericHibernateDAO<Empleado, Integer>
|
||||||
|
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Empleado> pesquisaEmpresa(Integer empresaId) {
|
||||||
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("empresa.empresaId", empresaId));
|
||||||
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
return c.list();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,5 +206,4 @@ public class RutaHibernateDAO extends GenericHibernateDAO<Ruta, Integer> impleme
|
||||||
return lsRuta;
|
return lsRuta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,6 +74,28 @@ public class Empleado implements Serializable {
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Empresa empresa;
|
private Empresa empresa;
|
||||||
|
|
||||||
|
|
||||||
|
public Empleado() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empleado(Integer empleadoId) {
|
||||||
|
this();
|
||||||
|
this.empleadoId = empleadoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empleado(Integer empleadoId, String nombEmpleado) {
|
||||||
|
this();
|
||||||
|
this.empleadoId = empleadoId;
|
||||||
|
this.nombEmpleado = nombEmpleado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empleado(Integer empleadoId, Date fecmodif) {
|
||||||
|
this();
|
||||||
|
this.empleadoId = empleadoId;
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
public Boolean getActivo() {
|
public Boolean getActivo() {
|
||||||
return activo;
|
return activo;
|
||||||
}
|
}
|
||||||
|
@ -232,7 +254,7 @@ public class Empleado implements Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.getCveEmpleado();
|
return this.getNombEmpleado();
|
||||||
// return this.getNombPaterno() + getNombMaterno() + getNombEmpleado();
|
// return this.getNombPaterno() + getNombMaterno() + getNombEmpleado();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,6 @@ public class EmpresaServiceImpl implements EmpresaService {
|
||||||
empresaDAO.actualizacion(entidad);
|
empresaDAO.actualizacion(entidad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<Empresa> buscar(String nombempresa, Boolean indExterna, Short indTipo) {
|
public List<Empresa> buscar(String nombempresa, Boolean indExterna, Short indTipo) {
|
||||||
return empresaDAO.buscar(nombempresa, indExterna, indTipo);
|
return empresaDAO.buscar(nombempresa, indExterna, indTipo);
|
||||||
}
|
}
|
||||||
|
@ -126,7 +125,9 @@ public class EmpresaServiceImpl implements EmpresaService {
|
||||||
return empresaDAO.obtenerIndTipo2();
|
return empresaDAO.obtenerIndTipo2();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/*
|
||||||
|
* (non-Javadoc)
|
||||||
|
*
|
||||||
* @see com.rjconsultores.ventaboletos.service.EmpresaService#buscarNotInPuntoVtaComissao(com.rjconsultores.ventaboletos.entidad.PuntoVenta)
|
* @see com.rjconsultores.ventaboletos.service.EmpresaService#buscarNotInPuntoVtaComissao(com.rjconsultores.ventaboletos.entidad.PuntoVenta)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue