Listo los deletes de las tarjetas de credito
This commit is contained in:
@@ -3,6 +3,8 @@ package bean;
|
||||
import beans.ClienteFacadeLocal;
|
||||
import beans.TarjetaCreditoFacadeLocal;
|
||||
import entities.Cliente;
|
||||
import entities.CompraTarjetaCredito;
|
||||
import entities.PagoTarjetaCredito;
|
||||
import entities.TarjetaCredito;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
@@ -46,6 +48,13 @@ public class TarjetaCreditoBean implements Serializable {
|
||||
cb.setTarjetaCredito(tarjetaCredito);
|
||||
return "cliente_tarjeta_credito_comprar";
|
||||
}
|
||||
public String gotoDeleteCompra(CompraTarjetaCredito compra) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
CompraBean cb = context.getApplication().evaluateExpressionGet(context, "#{compraBean}", CompraBean.class);
|
||||
cb.setTarjetaCredito(tarjetaCredito);
|
||||
cb.setCompraTarjetaCredito(compra);
|
||||
return "admin_tarjeta_credito_delete_compra";
|
||||
}
|
||||
|
||||
public String gotoPagar() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
@@ -53,6 +62,15 @@ public class TarjetaCreditoBean implements Serializable {
|
||||
pb.setTarjetaCredito(tarjetaCredito);
|
||||
return "cliente_tarjeta_credito_pagar";
|
||||
}
|
||||
|
||||
public String gotoDeletePago(PagoTarjetaCredito pago) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
PagoBean pb = context.getApplication().evaluateExpressionGet(context, "#{pagoBean}", PagoBean.class);
|
||||
pb.setTarjetaCredito(tarjetaCredito);
|
||||
pb.setPagoTarjetaCredito(pago);
|
||||
return "admin_tarjeta_credito_delete_pago";
|
||||
|
||||
}
|
||||
|
||||
public String edit() {
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
|
||||
Reference in New Issue
Block a user