desenvolvimento (bug 6232)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43459 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
71b40e8c6b
commit
76a85c8a28
|
@ -18,6 +18,8 @@ public interface CiudadDAO extends GenericDAO<Ciudad, Integer> {
|
|||
public List<Ciudad> buscar(String nombciudad, Estado estado, Plaza plaza);
|
||||
|
||||
public List<Ciudad> buscaLike(String strCiudad);
|
||||
|
||||
public List<Ciudad> buscaCodMun(Integer codMun, Estado estado);
|
||||
|
||||
public List<Ciudad> buscarPorEstado(Estado estado);
|
||||
}
|
||||
|
|
|
@ -16,4 +16,5 @@ public interface ColoniaDAO extends GenericDAO<Colonia, Integer> {
|
|||
|
||||
public List<Colonia> buscar(String desccolonia);
|
||||
public List<Colonia> buscarPorCiudad(Ciudad ciudad);
|
||||
public List<Colonia> buscarPorCodMun(Ciudad ciudad, String desccolonia);
|
||||
}
|
||||
|
|
|
@ -18,4 +18,6 @@ public interface EstadoDAO extends GenericDAO<Estado, Integer> {
|
|||
public List<Estado> buscar(String nombestado, Pais pais);
|
||||
|
||||
public List<Estado> buscarNotInEmpresaImposto(Empresa empresa);
|
||||
|
||||
public List<Estado> buscarCveEstado(String cveEstado);
|
||||
}
|
||||
|
|
|
@ -71,4 +71,14 @@ public class CiudadHibernateDAO extends GenericHibernateDAO<Ciudad, Integer>
|
|||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Ciudad> buscaCodMun(Integer codMun, Estado estado) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("codmunicipio", codMun));
|
||||
c.add(Restrictions.eq("estado", estado));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,4 +52,14 @@ public class ColoniaHibernateDAO extends GenericHibernateDAO<Colonia, Integer>
|
|||
c.addOrder(Order.asc("desccolonia"));
|
||||
return c.list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Colonia> buscarPorCodMun(Ciudad ciudad, String desccolonia) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("ciudad", ciudad));
|
||||
c.add(Restrictions.eq("desccolonia", desccolonia));
|
||||
return c.list();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -69,4 +69,12 @@ public class EstadoHibernateDAO extends GenericHibernateDAO<Estado, Integer>
|
|||
|
||||
return lsEstado;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Estado> buscarCveEstado(String cveEstado) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("cveestado", cveEstado));
|
||||
return c.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,6 +182,9 @@ public class PuntoVenta implements Serializable {
|
|||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoVenta")
|
||||
@LazyCollection(LazyCollectionOption.FALSE)
|
||||
private List<PtovtaCatInd> ptovtaCatIndList;
|
||||
|
||||
@Column(name = "CODPOSTAL")
|
||||
private Long codpostal;
|
||||
|
||||
public PtovtaEmpresaBloqueada addEmpresaBloqueada(Empresa e) {
|
||||
PtovtaEmpresaBloqueada eb = new PtovtaEmpresaBloqueada();
|
||||
|
@ -800,4 +803,12 @@ public class PuntoVenta implements Serializable {
|
|||
public void setIndIntegracion(Integer indIntegracion) {
|
||||
this.indIntegracion = indIntegracion;
|
||||
}
|
||||
|
||||
public Long getCodpostal() {
|
||||
return codpostal;
|
||||
}
|
||||
|
||||
public void setCodpostal(Long codpostal) {
|
||||
this.codpostal = codpostal;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,8 @@ public interface CiudadService extends GenericService<Ciudad, Integer> {
|
|||
public List<Ciudad> buscar(String nombciudad, Estado estado, Plaza plaza);
|
||||
|
||||
public List<Ciudad> buscaLike(String strCiudad);
|
||||
|
||||
public List<Ciudad> buscaCodMun(Integer codMun, Estado estado);
|
||||
|
||||
public List<Ciudad> buscarPorEstado(Estado estado);
|
||||
}
|
|
@ -16,4 +16,5 @@ public interface ColoniaService extends GenericService<Colonia, Integer> {
|
|||
|
||||
public List<Colonia> buscar(String desccolonia);
|
||||
public List<Colonia> buscarPorCiudad(Ciudad ciudad);
|
||||
public List<Colonia> buscarPorCodMun(Ciudad ciudad, String desccolonia);
|
||||
}
|
||||
|
|
|
@ -30,4 +30,6 @@ public interface EstadoService {
|
|||
public List<Estado> buscar(String nombestado, Pais pais);
|
||||
|
||||
public List<Estado> buscarNotInEmpresaImposto(Empresa empresa);
|
||||
|
||||
public List<Estado> buscarCveEstado(String cveEstado);
|
||||
}
|
|
@ -95,4 +95,9 @@ public class CiudadServiceImpl implements CiudadService {
|
|||
public List<Ciudad> buscarPorEstado(Estado estado) {
|
||||
return ciudadDAO.buscarPorEstado(estado);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Ciudad> buscaCodMun(Integer codMun, Estado estado) {
|
||||
return ciudadDAO.buscaCodMun(codMun, estado);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,4 +67,9 @@ public class ColoniaServiceImpl implements ColoniaService {
|
|||
public List<Colonia> buscarPorCiudad(Ciudad ciudad) {
|
||||
return coloniaDAO.buscarPorCiudad(ciudad);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Colonia> buscarPorCodMun(Ciudad ciudad, String desccolonia) {
|
||||
return coloniaDAO.buscarPorCodMun(ciudad, desccolonia);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,4 +80,9 @@ public class EstadoServiceImpl implements EstadoService {
|
|||
return estadoDAO.buscarNotInEmpresaImposto(empresa);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Estado> buscarCveEstado(String cveEstado) {
|
||||
return estadoDAO.buscarCveEstado(cveEstado);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue