fixes bug #7663
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@57823 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
64c0c7ed63
commit
294349534b
|
@ -37,7 +37,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
||||||
@Autowired
|
@Autowired
|
||||||
private PtovtaTipoEstoqueDAO ptovtaTipoEstoqueDAO;
|
private PtovtaTipoEstoqueDAO ptovtaTipoEstoqueDAO;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public PuntoVentaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
setSessionFactory(factory);
|
setSessionFactory(factory);
|
||||||
|
@ -80,7 +79,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<PuntoVenta> busca(String nomPuntoVenta, String numPuntoVenta) {
|
public List<PuntoVenta> busca(String nomPuntoVenta, String numPuntoVenta) {
|
||||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
@ -102,9 +100,6 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
||||||
public List<PuntoVenta> buscaPuntoVentaParada(Parada parada) {
|
public List<PuntoVenta> buscaPuntoVentaParada(Parada parada) {
|
||||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
|
||||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
|
||||||
c.add(Restrictions.eq("parada", parada));
|
|
||||||
|
|
||||||
c.addOrder(Order.asc("nombpuntoventa"));
|
c.addOrder(Order.asc("nombpuntoventa"));
|
||||||
|
|
||||||
return c.list();
|
return c.list();
|
||||||
|
@ -124,8 +119,7 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
||||||
|
|
||||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
|
||||||
Criterion crtPtovta =
|
Criterion crtPtovta = Restrictions.and(Restrictions.eq("activo", Boolean.TRUE), Restrictions.in("empresa", empresas));
|
||||||
Restrictions.and(Restrictions.eq("activo", Boolean.TRUE), Restrictions.in("empresa", empresas));
|
|
||||||
|
|
||||||
PtovtaTipoEstoque supr = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
PtovtaTipoEstoque supr = ptovtaTipoEstoqueDAO.buscarTipoSuprimento();
|
||||||
PtovtaTipoEstoque cont = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
PtovtaTipoEstoque cont = ptovtaTipoEstoqueDAO.buscarTipoContabilidade();
|
||||||
|
|
Loading…
Reference in New Issue