correção bug relatório vendas percurso
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@67349 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
526cd46b18
commit
aa2a500034
|
@ -32,6 +32,8 @@ public interface EstacionDAO extends GenericDAO<Estacion, Integer> {
|
||||||
|
|
||||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||||
|
|
||||||
|
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta);
|
||||||
|
|
||||||
public List<PuntoVenta> buscarPuntosVentaEstacionPorUsuario(Usuario usuario);
|
public List<PuntoVenta> buscarPuntosVentaEstacionPorUsuario(Usuario usuario);
|
||||||
|
|
||||||
public Boolean temEstoque(PuntoVenta puntoVenta, Estacion estacion);
|
public Boolean temEstoque(PuntoVenta puntoVenta, Estacion estacion);
|
||||||
|
|
|
@ -174,4 +174,19 @@ public class EstacionHibernateDAO extends GenericHibernateDAO<Estacion, Integer>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta) {
|
||||||
|
|
||||||
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
|
c.add(Restrictions.in("puntoVenta", lsPuntoVenta));
|
||||||
|
c.addOrder(Order.asc("numcaja"));
|
||||||
|
c.addOrder(Order.asc("descestacion"));
|
||||||
|
c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
|
||||||
|
|
||||||
|
return c.list();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,8 @@ public interface EstacionService {
|
||||||
|
|
||||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||||
|
|
||||||
|
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta);
|
||||||
|
|
||||||
public void devolverFoliosAutomaticosImpressoraFiscal(EstacionImpresora ei);
|
public void devolverFoliosAutomaticosImpressoraFiscal(EstacionImpresora ei);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,4 +203,9 @@ public class EstacionServiceImpl implements EstacionService {
|
||||||
return estaciones;
|
return estaciones;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta) {
|
||||||
|
return estacionDAO.buscarEstaciones(lsPuntoVenta);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue