diff --git a/pom.xml b/pom.xml
index aee25422e..464a348ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
br.com.rjconsultores
ModelWeb
- 1.97.0
+ 1.98.0
diff --git a/src/com/rjconsultores/ventaboletos/dao/FormaPagoDAO.java b/src/com/rjconsultores/ventaboletos/dao/FormaPagoDAO.java
index 5958f90c0..75d31c220 100644
--- a/src/com/rjconsultores/ventaboletos/dao/FormaPagoDAO.java
+++ b/src/com/rjconsultores/ventaboletos/dao/FormaPagoDAO.java
@@ -16,4 +16,8 @@ public interface FormaPagoDAO extends GenericDAO {
public List buscarPorDescricao(String descpago);
public List buscarTodosExceto(Integer... idFormaPago);
+
+ public List buscarNotIn(Short... idsFormaPago);
+
+ public List buscarIn(Short... idsFormaPago);
}
diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/FormaPagoHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/FormaPagoHibernateDAO.java
index 765c3d602..cf171cfef 100644
--- a/src/com/rjconsultores/ventaboletos/dao/hibernate/FormaPagoHibernateDAO.java
+++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/FormaPagoHibernateDAO.java
@@ -55,4 +55,24 @@ public class FormaPagoHibernateDAO extends GenericHibernateDAO
return c.list();
}
+
+ public List buscarNotIn(Short... idsFormaPago) {
+ Criteria c = this.makeCriteria();
+ for (Short id : idsFormaPago) {
+ c.add(Restrictions.ne("formapagoId", id));
+ }
+ c.add(Restrictions.eq(ACTIVO, Boolean.TRUE));
+ c.addOrder(Order.asc("descpago"));
+ return c.list();
+
+ }
+
+ public List buscarIn(Short... idFormaPago) {
+ Criteria c = this.makeCriteria();
+ c.add(Restrictions.in("formapagoId", idFormaPago));
+ c.add(Restrictions.eq(ACTIVO, Boolean.TRUE));
+ c.addOrder(Order.asc("descpago"));
+ return c.list();
+
+ }
}
diff --git a/src/com/rjconsultores/ventaboletos/service/FormaPagoService.java b/src/com/rjconsultores/ventaboletos/service/FormaPagoService.java
index 7370f8790..253648101 100644
--- a/src/com/rjconsultores/ventaboletos/service/FormaPagoService.java
+++ b/src/com/rjconsultores/ventaboletos/service/FormaPagoService.java
@@ -22,4 +22,8 @@ public interface FormaPagoService extends GenericService {
* @return
*/
public List buscarFormasPagoExceptoEspeciales();
+
+ public List buscarNotIn(Short... idFormaPago);
+
+ public List buscarIn(Short... idFormaPago);
}
diff --git a/src/com/rjconsultores/ventaboletos/service/impl/FormaPagoServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/FormaPagoServiceImpl.java
index 55c862d3b..8059afc61 100644
--- a/src/com/rjconsultores/ventaboletos/service/impl/FormaPagoServiceImpl.java
+++ b/src/com/rjconsultores/ventaboletos/service/impl/FormaPagoServiceImpl.java
@@ -103,4 +103,12 @@ public class FormaPagoServiceImpl implements FormaPagoService {
public List buscarFormasPagoExceptoEspeciales() {
return formaPagoDAO.buscarTodosExceto(formasPagoEspeciales);
}
+
+ public List buscarNotIn(Short... idFormaPago) {
+ return formaPagoDAO.buscarNotIn(idFormaPago);
+ }
+
+ public List buscarIn(Short... idFormaPago) {
+ return formaPagoDAO.buscarIn(idFormaPago);
+ }
}