TO MUCH THINGS
Pero ya esta casi casi, estoy haciendo la eliminacion de cosas de las tarjetas de credito, luego empiezo a utilizar la linea de sobregiro y esta done done <3
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package bean;
|
||||
|
||||
import beans.ClienteFacadeLocal;
|
||||
import beans.CuentaCorrienteFacadeLocal;
|
||||
import beans.UsuarioFacadeLocal;
|
||||
import entities.Cliente;
|
||||
import entities.CuentaCorriente;
|
||||
@@ -24,6 +25,8 @@ public class ClienteBean implements Serializable {
|
||||
@EJB
|
||||
private ClienteFacadeLocal clienteFacade;
|
||||
@EJB
|
||||
private CuentaCorrienteFacadeLocal cuentaCorrienteFacade;
|
||||
@EJB
|
||||
private UsuarioFacadeLocal usuarioFacade;
|
||||
|
||||
private List<Cliente> clienteList;
|
||||
@@ -43,7 +46,7 @@ public class ClienteBean implements Serializable {
|
||||
}
|
||||
|
||||
public String gotoCreate() {
|
||||
this.resetInnerCliente();
|
||||
this.resetInput();
|
||||
return "admin_cliente_create";
|
||||
}
|
||||
|
||||
@@ -54,23 +57,19 @@ public class ClienteBean implements Serializable {
|
||||
usuario.setNombre(cliente.getRut());
|
||||
usuario.setPassword(hash);
|
||||
usuario.setSalt(salt);
|
||||
usuario.setRole("Cliente");
|
||||
|
||||
CuentaCorriente cc = new CuentaCorriente();
|
||||
cc.setSaldo(0);
|
||||
cc.setCliente(cliente);
|
||||
cc.setInsertedAt(new Date());
|
||||
|
||||
cliente.getCuentaCorrienteList().add(cc);
|
||||
|
||||
cliente.setUsuario(usuario);
|
||||
usuario.setCliente(cliente);
|
||||
|
||||
usuarioFacade.create(usuario);
|
||||
|
||||
CuentaCorriente cc = new CuentaCorriente();
|
||||
cuentaCorrienteFacade.create(cc);
|
||||
|
||||
cliente.setCuentaCorriente(cc);
|
||||
cliente.setUsuario(usuario);
|
||||
clienteFacade.create(cliente);
|
||||
|
||||
this.clienteList.add(cliente);
|
||||
|
||||
resetInnerCliente();
|
||||
resetInput();
|
||||
|
||||
return "admin_main";
|
||||
}
|
||||
@@ -94,7 +93,7 @@ public class ClienteBean implements Serializable {
|
||||
usuarioFacade.edit(usuario);
|
||||
clienteFacade.edit(cliente);
|
||||
|
||||
this.resetInnerCliente();
|
||||
this.resetInput();
|
||||
return "admin_main";
|
||||
}
|
||||
|
||||
@@ -108,7 +107,7 @@ public class ClienteBean implements Serializable {
|
||||
|
||||
usuarioFacade.remove(cliente.getUsuario());
|
||||
|
||||
this.resetInnerCliente();
|
||||
this.resetInput();
|
||||
|
||||
return "admin_main";
|
||||
}
|
||||
@@ -134,48 +133,56 @@ public class ClienteBean implements Serializable {
|
||||
return "admin_tarjeta_debito_contratar";
|
||||
}
|
||||
|
||||
public String gotoEditTarjetaCredito(TarjetaCredito tarjetaCredito) {
|
||||
public String gotoEditTarjetaCredito() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TarjetaCreditoBean tcb = context.getApplication().evaluateExpressionGet(context, "#{tarjetaCreditoBean}", TarjetaCreditoBean.class);
|
||||
tcb.setCliente(cliente);
|
||||
tcb.setTarjetaCredito(tarjetaCredito);
|
||||
tcb.setTarjetaCredito(cliente.getTarjetaCredito());
|
||||
return "admin_tarjeta_credito_edit";
|
||||
}
|
||||
|
||||
public String gotoViewCuentaCorriente(CuentaCorriente cuentaCorriente) {
|
||||
public String gotoViewCuentaCorriente() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
CuentaCorrienteBean ccb = context.getApplication().evaluateExpressionGet(context, "#{cuentaCorrienteBean}", CuentaCorrienteBean.class);
|
||||
ccb.setCliente(cliente);
|
||||
ccb.setCuentaCorriente(cuentaCorriente);
|
||||
ccb.setCuentaCorriente(cliente.getCuentaCorriente());
|
||||
return "cliente_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
public String gotoViewTarjetaDebito(TarjetaDebito tarjetaDebito) {
|
||||
public String gotoViewTarjetaDebito() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TarjetaDebitoBean tdb = context.getApplication().evaluateExpressionGet(context, "#{tarjetaDebitoBean}", TarjetaDebitoBean.class);
|
||||
tdb.setCliente(cliente);
|
||||
tdb.setTarjetaDebito(tarjetaDebito);
|
||||
tdb.setTarjetaDebito(cliente.getTarjetaDebito());
|
||||
return "cliente_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String gotoViewTarjetaCredito(TarjetaCredito tarjetaCredito) {
|
||||
public String gotoViewTarjetaCredito() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TarjetaCreditoBean tcb = context.getApplication().evaluateExpressionGet(context, "#{tarjetaCreditoBean}", TarjetaCreditoBean.class);
|
||||
tcb.setCliente(cliente);
|
||||
tcb.setTarjetaCredito(tarjetaCredito);
|
||||
tcb.setTarjetaCredito(cliente.getTarjetaCredito());
|
||||
return "cliente_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
public String gotoAdminViewCuentaCorriente(CuentaCorriente cuentaCorriente) {
|
||||
public String gotoAdminViewCuentaCorriente() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
CuentaCorrienteBean ccb = context.getApplication().evaluateExpressionGet(context, "#{cuentaCorrienteBean}", CuentaCorrienteBean.class);
|
||||
ccb.setCliente(cliente);
|
||||
ccb.setCuentaCorriente(cuentaCorriente);
|
||||
ccb.setCuentaCorriente(cliente.getCuentaCorriente());
|
||||
return "admin_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
public String gotoAdminViewTarjetaDebito() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TarjetaDebitoBean tdb = context.getApplication().evaluateExpressionGet(context, "#{tarjetaDebitoBean}", TarjetaDebitoBean.class);
|
||||
tdb.setCliente(cliente);
|
||||
tdb.setTarjetaDebito(cliente.getTarjetaDebito());
|
||||
return "admin_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
|
||||
private void resetInnerCliente() {
|
||||
private void resetInput() {
|
||||
this.cliente = new Cliente();
|
||||
this.usuario = new Usuario();
|
||||
}
|
||||
|
||||
@@ -32,9 +32,12 @@ public class CompraBean implements Serializable {
|
||||
private TarjetaDebito tarjetaDebito;
|
||||
private TarjetaCredito tarjetaCredito;
|
||||
|
||||
private CompraTarjetaDebito compraTarjetaDebito;
|
||||
private CompraTarjetaCredito compraTarjetaCredito;
|
||||
|
||||
private int monto;
|
||||
private String comentario;
|
||||
private String clase;
|
||||
private String tipo;
|
||||
|
||||
public String comprar() {
|
||||
if (tarjetaDebito != null) {
|
||||
@@ -46,63 +49,92 @@ public class CompraBean implements Serializable {
|
||||
}
|
||||
|
||||
public String comprarTarjetaDebito() {
|
||||
CompraTarjetaDebito compra = new CompraTarjetaDebito();
|
||||
compra.setMonto(monto);
|
||||
compra.setComentario(comentario);
|
||||
compra.setInsertedAt(new Date());
|
||||
compra.setTarjetaDebito(tarjetaDebito);
|
||||
|
||||
if (tarjetaDebito.getSaldo() - monto < 0) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
context.addMessage(null, new FacesMessage("La compra sobrepasa el saldo de su tarjeta de debito"));
|
||||
context.validationFailed();
|
||||
return "cliente_tarjeta_debito_compra";
|
||||
}
|
||||
|
||||
CompraTarjetaDebito compra = new CompraTarjetaDebito();
|
||||
compra.setMonto(monto);
|
||||
compra.setComentario(comentario);
|
||||
compra.setTarjetaDebito(tarjetaDebito);
|
||||
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() - monto);
|
||||
tarjetaDebito.getCompraList().add(compra);
|
||||
|
||||
compraTarjetaDebitoFacade.edit(compra);
|
||||
|
||||
compraTarjetaDebitoFacade.create(compra);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
|
||||
|
||||
this.resetInput();
|
||||
return "cliente_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String comprarTarjetaCredito() {
|
||||
CompraTarjetaCredito compra = new CompraTarjetaCredito();
|
||||
compra.setMonto(monto);
|
||||
compra.setComentario(comentario);
|
||||
compra.setInsertedAt(new Date());
|
||||
compra.setTarjetaCredito(tarjetaCredito);
|
||||
|
||||
if (clase.equals("Nacional")) {
|
||||
if (tipo.equals("Nacional")) {
|
||||
if (tarjetaCredito.getDeudaNacional() + monto > tarjetaCredito.getLimiteNacional()) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
context.addMessage(null, new FacesMessage("La compra sobrepasa el limite nacional de su cuenta"));
|
||||
context.validationFailed();
|
||||
return "cliente_tarjeta_credito_compra";
|
||||
}
|
||||
|
||||
tarjetaCredito.setDeudaNacional(tarjetaCredito.getDeudaNacional() + monto);
|
||||
} else if (clase.equals("Internacional")) {
|
||||
if (tarjetaCredito.getDeudaInternacional()+ monto > tarjetaCredito.getLimiteInternacional()) {
|
||||
} else if (tipo.equals("Internacional")) {
|
||||
if (tarjetaCredito.getDeudaInternacional() + monto > tarjetaCredito.getLimiteInternacional()) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
context.addMessage(null, new FacesMessage("La compra sobrepasa el limite internacional de su cuenta"));
|
||||
context.validationFailed();
|
||||
return "cliente_tarjeta_credito_compra";
|
||||
}
|
||||
tarjetaCredito.setDeudaInternacional(tarjetaCredito.getDeudaInternacional() + monto);
|
||||
}
|
||||
|
||||
tarjetaCredito.getCompraList().add(compra);
|
||||
|
||||
compraTarjetaCreditoFacade.edit(compra);
|
||||
CompraTarjetaCredito compra = new CompraTarjetaCredito();
|
||||
compra.setMonto(monto);
|
||||
compra.setComentario(comentario);
|
||||
compra.setTipo(tipo);
|
||||
compra.setTarjetaCredito(tarjetaCredito);
|
||||
|
||||
switch (tipo) {
|
||||
case "Nacional":
|
||||
tarjetaCredito.setDeudaNacional(tarjetaCredito.getDeudaNacional() + monto);
|
||||
break;
|
||||
case "Internacional":
|
||||
tarjetaCredito.setDeudaInternacional(tarjetaCredito.getDeudaInternacional() + monto);
|
||||
break;
|
||||
}
|
||||
|
||||
compraTarjetaCreditoFacade.create(compra);
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
|
||||
this.resetInput();
|
||||
|
||||
return "cliente_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
public String deleteCompraTarjetaDebito() {
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() + compraTarjetaDebito.getMonto());
|
||||
tarjetaDebito.getCompraList().remove(compraTarjetaDebito);
|
||||
compraTarjetaDebitoFacade.remove(compraTarjetaDebito);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
return "admin_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String deleteCompraTarjetaCredito() {
|
||||
switch (compraTarjetaCredito.getTipo()) {
|
||||
case "Nacional":
|
||||
tarjetaCredito.setDeudaNacional(tarjetaCredito.getDeudaNacional() + compraTarjetaCredito.getMonto());
|
||||
break;
|
||||
case "Internacional":
|
||||
tarjetaCredito.setDeudaInternacional(tarjetaCredito.getDeudaInternacional() + compraTarjetaCredito.getMonto());
|
||||
break;
|
||||
}
|
||||
|
||||
tarjetaCredito.getCompraList().remove(compraTarjetaCredito);
|
||||
compraTarjetaCreditoFacade.remove(compraTarjetaCredito);
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
|
||||
return "admin_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
private void resetInput() {
|
||||
this.monto = 0;
|
||||
this.tarjetaCredito = null;
|
||||
@@ -142,14 +174,28 @@ public class CompraBean implements Serializable {
|
||||
this.comentario = comentario;
|
||||
}
|
||||
|
||||
public String getClase() {
|
||||
return clase;
|
||||
public String getTipo() {
|
||||
return tipo;
|
||||
}
|
||||
|
||||
public void setClase(String clase) {
|
||||
this.clase = clase;
|
||||
public void setTipo(String tipo) {
|
||||
this.tipo = tipo;
|
||||
}
|
||||
|
||||
public CompraTarjetaDebito getCompraTarjetaDebito() {
|
||||
return compraTarjetaDebito;
|
||||
}
|
||||
|
||||
public void setCompraTarjetaDebito(CompraTarjetaDebito compraTarjetaDebito) {
|
||||
this.compraTarjetaDebito = compraTarjetaDebito;
|
||||
}
|
||||
|
||||
public CompraTarjetaCredito getCompraTarjetaCredito() {
|
||||
return compraTarjetaCredito;
|
||||
}
|
||||
|
||||
public void setCompraTarjetaCredito(CompraTarjetaCredito compraTarjetaCredito) {
|
||||
this.compraTarjetaCredito = compraTarjetaCredito;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,8 +5,9 @@ import beans.CuentaCorrienteFacadeLocal;
|
||||
import entities.Cliente;
|
||||
import entities.CuentaCorriente;
|
||||
import entities.DepositoCuentaCorriente;
|
||||
import entities.GiroCuentaCorriente;
|
||||
import entities.TransferenciaCuentaCorriente;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import javax.ejb.EJB;
|
||||
import javax.enterprise.context.SessionScoped;
|
||||
import javax.faces.context.FacesContext;
|
||||
@@ -23,18 +24,6 @@ public class CuentaCorrienteBean implements Serializable{
|
||||
private CuentaCorriente cuentaCorriente;
|
||||
private Cliente cliente;
|
||||
|
||||
public String contratar() {
|
||||
CuentaCorriente cc = new CuentaCorriente();
|
||||
cc.setSaldo(0);
|
||||
cc.setCliente(cliente);
|
||||
cc.setInsertedAt(new Date());
|
||||
|
||||
cliente.getCuentaCorrienteList().add(cc);
|
||||
clienteFacade.edit(cliente);
|
||||
|
||||
return "admin_cliente_view";
|
||||
}
|
||||
|
||||
public String edit() {
|
||||
return "admin_cliente_view";
|
||||
}
|
||||
@@ -54,6 +43,7 @@ public class CuentaCorrienteBean implements Serializable{
|
||||
return "admin_cuenta_corriente_delete_deposito";
|
||||
}
|
||||
|
||||
|
||||
public String gotoGirar() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
GiroBean gb = context.getApplication().evaluateExpressionGet(context, "#{giroBean}", GiroBean.class);
|
||||
@@ -61,6 +51,13 @@ public class CuentaCorrienteBean implements Serializable{
|
||||
return "cliente_cuenta_corriente_girar";
|
||||
}
|
||||
|
||||
public String gotoDeleteGiro(GiroCuentaCorriente giro) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
GiroBean gb = context.getApplication().evaluateExpressionGet(context, "#{giroBean}", GiroBean.class);
|
||||
gb.setCuentaCorriente(cuentaCorriente);
|
||||
gb.setGiroCuentaCorriente(giro);
|
||||
return "admin_cuenta_corriente_delete_giro";
|
||||
}
|
||||
public String gotoTransferir() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TransferenciaBean tb = context.getApplication().evaluateExpressionGet(context, "#{transferenciaBean}", TransferenciaBean.class);
|
||||
@@ -68,6 +65,13 @@ public class CuentaCorrienteBean implements Serializable{
|
||||
return "cliente_cuenta_corriente_transferir";
|
||||
}
|
||||
|
||||
public String gotoDeleteTransferencia(TransferenciaCuentaCorriente transferencia) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TransferenciaBean tb = context.getApplication().evaluateExpressionGet(context, "#{transferenciaBean}", TransferenciaBean.class);
|
||||
tb.setCuentaCorriente(cuentaCorriente);
|
||||
tb.setTransferenciaCuentaCorriente(transferencia);
|
||||
return "admin_cuenta_corriente_delete_transferencia";
|
||||
}
|
||||
|
||||
public CuentaCorriente getCuentaCorriente() {
|
||||
return cuentaCorriente;
|
||||
|
||||
@@ -17,6 +17,8 @@ import java.util.List;
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.ejb.EJB;
|
||||
import javax.enterprise.context.SessionScoped;
|
||||
import javax.faces.application.FacesMessage;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.inject.Named;
|
||||
|
||||
@Named(value = "depositoBean")
|
||||
@@ -62,10 +64,8 @@ public class DepositoBean implements Serializable {
|
||||
deposito.setComentario(comentario);
|
||||
deposito.setMonto(monto);
|
||||
deposito.setMetodo(metodo);
|
||||
deposito.setInsertedAt(new Date());
|
||||
deposito.setCuentaCorriente(cuentaCorriente);
|
||||
|
||||
cuentaCorriente.getDepositoList().add(deposito);
|
||||
cuentaCorriente.setSaldo(cuentaCorriente.getSaldo() + monto);
|
||||
|
||||
depositoCCFacade.create(deposito);
|
||||
@@ -80,10 +80,8 @@ public class DepositoBean implements Serializable {
|
||||
deposito.setComentario(comentario);
|
||||
deposito.setMonto(monto);
|
||||
deposito.setMetodo(metodo);
|
||||
deposito.setInsertedAt(new Date());
|
||||
deposito.setTarjetaDebito(tarjetaDebito);
|
||||
|
||||
tarjetaDebito.getDepositoList().add(deposito);
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() + monto);
|
||||
|
||||
depositoTDFacade.create(deposito);
|
||||
@@ -93,21 +91,44 @@ public class DepositoBean implements Serializable {
|
||||
return "cliente_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String delete() {
|
||||
if(cuentaCorriente != null) {
|
||||
return deleteDepositoCuentaCorriente();
|
||||
}else if (depositoTarjetaDebito != null) {
|
||||
return deleteDepositoTarjetaDebito();
|
||||
}
|
||||
return "error/505";
|
||||
}
|
||||
|
||||
public String deleteDepositoCuentaCorriente() {
|
||||
return "";
|
||||
int monto = depositoCuentaCorriente.getMonto();
|
||||
CuentaCorriente cuentaCorriente = depositoCuentaCorriente.getCuentaCorriente();
|
||||
|
||||
if(cuentaCorriente.getSaldo() - monto < 0){
|
||||
FacesContext facesContext = FacesContext.getCurrentInstance();
|
||||
facesContext.addMessage(null, new FacesMessage("Eliminar el deposito dejaria la cuenta en negativo"));
|
||||
facesContext.validationFailed();
|
||||
return "admin_cuenta_corriente_delete_deposito";
|
||||
}
|
||||
|
||||
cuentaCorriente.setSaldo(cuentaCorriente.getSaldo() - monto);
|
||||
cuentaCorriente.getDepositoList().remove(depositoCuentaCorriente);
|
||||
|
||||
depositoCCFacade.remove(depositoCuentaCorriente);
|
||||
cuentaCorrienteFacade.edit(cuentaCorriente);
|
||||
|
||||
return "admin_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
public String deleteDepositoTarjetaDebito() {
|
||||
return "";
|
||||
int monto = depositoTarjetaDebito.getMonto();
|
||||
TarjetaDebito tarjetaDebito = depositoTarjetaDebito.getTarjetaDebito();
|
||||
|
||||
if(tarjetaDebito.getSaldo() - monto < 0){
|
||||
FacesContext facesContext = FacesContext.getCurrentInstance();
|
||||
facesContext.addMessage(null, new FacesMessage("Eliminar el deposito dejaria la cuenta en negativo"));
|
||||
facesContext.validationFailed();
|
||||
return "admin_tarjeta_debito_delete_deposito";
|
||||
}
|
||||
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() - monto);
|
||||
tarjetaDebito.getDepositoList().remove(depositoTarjetaDebito);
|
||||
|
||||
depositoTDFacade.remove(depositoTarjetaDebito);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
|
||||
return "admin_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
private void resetInput() {
|
||||
@@ -181,4 +202,22 @@ public class DepositoBean implements Serializable {
|
||||
public void setDepositoTarjetaDebito(DepositoTarjetaDebito depositoTarjetaDebito) {
|
||||
this.depositoTarjetaDebito = depositoTarjetaDebito;
|
||||
}
|
||||
|
||||
public DepositoCuentaCorrienteFacadeLocal getDepositoCCFacade() {
|
||||
return depositoCCFacade;
|
||||
}
|
||||
|
||||
public void setDepositoCCFacade(DepositoCuentaCorrienteFacadeLocal depositoCCFacade) {
|
||||
this.depositoCCFacade = depositoCCFacade;
|
||||
}
|
||||
|
||||
public DepositoTarjetaDebitoFacadeLocal getDepositoTDFacade() {
|
||||
return depositoTDFacade;
|
||||
}
|
||||
|
||||
public void setDepositoTDFacade(DepositoTarjetaDebitoFacadeLocal depositoTDFacade) {
|
||||
this.depositoTDFacade = depositoTDFacade;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
package bean;
|
||||
|
||||
import beans.CuentaCorrienteFacade;
|
||||
import beans.CuentaCorrienteFacadeLocal;
|
||||
import beans.GiroCuentaCorrienteFacade;
|
||||
import beans.GiroCuentaCorrienteFacadeLocal;
|
||||
import beans.GiroTarjetaDebitoFacadeLocal;
|
||||
import beans.MetodoFacadeLocal;
|
||||
@@ -25,9 +25,10 @@ import javax.inject.Named;
|
||||
@Named(value = "giroBean")
|
||||
@SessionScoped
|
||||
public class GiroBean implements Serializable {
|
||||
@EJB
|
||||
|
||||
@EJB
|
||||
private GiroCuentaCorrienteFacadeLocal giroCCFacade;
|
||||
@EJB
|
||||
@EJB
|
||||
private GiroTarjetaDebitoFacadeLocal giroTDFacade;
|
||||
@EJB
|
||||
private MetodoFacadeLocal metodoFacade;
|
||||
@@ -36,77 +37,90 @@ public class GiroBean implements Serializable {
|
||||
@EJB
|
||||
private TarjetaDebitoFacadeLocal tarjetaDebitoFacade;
|
||||
|
||||
private GiroCuentaCorriente giroCuentaCorriente;
|
||||
private GiroTarjetaDebito giroTarjetaDebito;
|
||||
private int monto;
|
||||
private String comentario;
|
||||
private Metodo metodo;
|
||||
private List<Metodo> metodoList;
|
||||
private CuentaCorriente cuentaCorriente;
|
||||
private TarjetaDebito tarjetaDebito;
|
||||
|
||||
|
||||
@PostConstruct
|
||||
private void init(){
|
||||
private void init() {
|
||||
this.metodoList = metodoFacade.findAll();
|
||||
}
|
||||
|
||||
|
||||
public String girar() {
|
||||
if(cuentaCorriente != null){
|
||||
if (cuentaCorriente != null) {
|
||||
return girarEnCuentaCorriente();
|
||||
}else if(tarjetaDebito != null){
|
||||
} else if (tarjetaDebito != null) {
|
||||
return girarEnTarjetaDebito();
|
||||
}else{
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String girarEnCuentaCorriente() {
|
||||
if(cuentaCorriente.getSaldo() - monto < 0 ){
|
||||
if (cuentaCorriente.getSaldo() - monto < 0) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("El monto sobrepasa el saldo de la cuenta corriente"));
|
||||
FacesContext.getCurrentInstance().validationFailed();
|
||||
return "cliente_cuenta_corriente_girar";
|
||||
}
|
||||
|
||||
|
||||
GiroCuentaCorriente giro = new GiroCuentaCorriente();
|
||||
giro.setComentario(comentario);
|
||||
giro.setMonto(monto);
|
||||
giro.setMetodo(metodo);
|
||||
giro.setInsertedAt(new Date());
|
||||
giro.setCuentaCorriente(cuentaCorriente);
|
||||
|
||||
cuentaCorriente.getGiroList().add(giro);
|
||||
|
||||
cuentaCorriente.setSaldo(cuentaCorriente.getSaldo() - monto);
|
||||
|
||||
|
||||
giroCCFacade.create(giro);
|
||||
cuentaCorrienteFacade.edit(cuentaCorriente);
|
||||
|
||||
|
||||
resetInput();
|
||||
return "cliente_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
|
||||
public String girarEnTarjetaDebito() {
|
||||
if(tarjetaDebito.getSaldo() - monto < 0 ){
|
||||
if (tarjetaDebito.getSaldo() - monto < 0) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("El monto sobrepasa el saldo de la tarjeta de debito"));
|
||||
FacesContext.getCurrentInstance().validationFailed();
|
||||
return "cliente_tarjeta_debito_girar";
|
||||
}
|
||||
|
||||
|
||||
GiroTarjetaDebito giro = new GiroTarjetaDebito();
|
||||
giro.setComentario(comentario);
|
||||
giro.setMonto(monto);
|
||||
giro.setMetodo(metodo);
|
||||
giro.setInsertedAt(new Date());
|
||||
giro.setTarjetaDebito(tarjetaDebito);
|
||||
|
||||
tarjetaDebito.getGiroList().add(giro);
|
||||
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() - monto);
|
||||
|
||||
|
||||
giroTDFacade.create(giro);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
|
||||
|
||||
resetInput();
|
||||
return "cliente_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String deleteGiroEnCuentaCorriente() {
|
||||
cuentaCorriente.setSaldo(cuentaCorriente.getSaldo() + giroCuentaCorriente.getMonto());
|
||||
cuentaCorriente.getGiroList().remove(giroCuentaCorriente);
|
||||
giroCCFacade.remove(giroCuentaCorriente);
|
||||
cuentaCorrienteFacade.edit(cuentaCorriente);
|
||||
return "admin_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
public String deleteGiroEnTarjetaDebito() {
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() + giroTarjetaDebito.getMonto());
|
||||
tarjetaDebito.getGiroList().remove(giroTarjetaDebito);
|
||||
giroTDFacade.remove(giroTarjetaDebito);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
return "admin_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
private void resetInput() {
|
||||
this.cuentaCorriente = null;
|
||||
this.tarjetaDebito = null;
|
||||
@@ -162,4 +176,23 @@ public class GiroBean implements Serializable {
|
||||
public void setMetodoList(List<Metodo> metodoList) {
|
||||
this.metodoList = metodoList;
|
||||
}
|
||||
|
||||
public GiroCuentaCorriente getGiroCuentaCorriente() {
|
||||
return giroCuentaCorriente;
|
||||
}
|
||||
|
||||
public void setGiroCuentaCorriente(GiroCuentaCorriente giroCuentaCorriente) {
|
||||
this.giroCuentaCorriente = giroCuentaCorriente;
|
||||
}
|
||||
|
||||
public GiroTarjetaDebito getGiroTarjetaDebito() {
|
||||
return giroTarjetaDebito;
|
||||
}
|
||||
|
||||
public void setGiroTarjetaDebito(GiroTarjetaDebito giroTarjetaDebito) {
|
||||
this.giroTarjetaDebito = giroTarjetaDebito;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -24,10 +24,10 @@ public class PagoBean implements Serializable {
|
||||
|
||||
private int monto;
|
||||
private String comentario;
|
||||
private String clase;
|
||||
private String tipo;
|
||||
|
||||
public String pagar() {
|
||||
if (clase.equals("Nacional")) {
|
||||
if (tipo.equals("Nacional")) {
|
||||
if (tarjetaCredito.getDeudaNacional() == 0) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
context.addMessage(null, new FacesMessage("No hay ninguna deuda nacional que pagar"));
|
||||
@@ -40,21 +40,9 @@ public class PagoBean implements Serializable {
|
||||
context.validationFailed();
|
||||
return "cliente_tarjeta_credito_pagar";
|
||||
}
|
||||
|
||||
PagoTarjetaCredito pago = new PagoTarjetaCredito();
|
||||
pago.setComentario(comentario);
|
||||
pago.setMonto(monto);
|
||||
pago.setTarjetaCredito(tarjetaCredito);
|
||||
|
||||
tarjetaCredito.setDeudaNacional(tarjetaCredito.getDeudaNacional() - monto);
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
pagoTarjetaCreditoFacade.create(pago);
|
||||
|
||||
this.resetInput();
|
||||
return "cliente_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
if (clase.equals("Internacional")) {
|
||||
if (tipo.equals("Internacional")) {
|
||||
if (tarjetaCredito.getDeudaInternacional() == 0) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
context.addMessage(null, new FacesMessage("No hay ninguna deuda internacional que pagar"));
|
||||
@@ -67,29 +55,34 @@ public class PagoBean implements Serializable {
|
||||
context.validationFailed();
|
||||
return "cliente_tarjeta_credito_pagar";
|
||||
}
|
||||
|
||||
PagoTarjetaCredito pago = new PagoTarjetaCredito();
|
||||
pago.setComentario(comentario);
|
||||
pago.setMonto(monto);
|
||||
pago.setTarjetaCredito(tarjetaCredito);
|
||||
|
||||
tarjetaCredito.setDeudaInternacional(tarjetaCredito.getDeudaInternacional() - monto);
|
||||
tarjetaCredito.getPagoList().add(pago);
|
||||
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
pagoTarjetaCreditoFacade.create(pago);
|
||||
|
||||
this.resetInput();
|
||||
return "cliente_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
PagoTarjetaCredito pago = new PagoTarjetaCredito();
|
||||
pago.setComentario(comentario);
|
||||
pago.setMonto(monto);
|
||||
pago.setTipo(tipo);
|
||||
pago.setTarjetaCredito(tarjetaCredito);
|
||||
|
||||
switch(tipo){
|
||||
case "Nacional":
|
||||
tarjetaCredito.setDeudaNacional(tarjetaCredito.getDeudaNacional() - monto);
|
||||
break;
|
||||
case "Internacional":
|
||||
tarjetaCredito.setDeudaInternacional(tarjetaCredito.getDeudaInternacional()- monto);
|
||||
break;
|
||||
}
|
||||
|
||||
pagoTarjetaCreditoFacade.create(pago);
|
||||
tarjetaCreditoFacade.edit(tarjetaCredito);
|
||||
|
||||
this.resetInput();
|
||||
return "cliente_tarjeta_credito_view";
|
||||
}
|
||||
|
||||
|
||||
public void resetInput() {
|
||||
this.monto = 0;
|
||||
this.comentario = null;
|
||||
this.clase = null;
|
||||
this.tipo = null;
|
||||
}
|
||||
|
||||
public TarjetaCredito getTarjetaCredito() {
|
||||
@@ -116,12 +109,12 @@ public class PagoBean implements Serializable {
|
||||
this.comentario = comentario;
|
||||
}
|
||||
|
||||
public String getClase() {
|
||||
return clase;
|
||||
public String getTipo() {
|
||||
return tipo;
|
||||
}
|
||||
|
||||
public void setClase(String clase) {
|
||||
this.clase = clase;
|
||||
public void setTipo(String tipo) {
|
||||
this.tipo = tipo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,9 +32,8 @@ public class TarjetaCreditoBean implements Serializable {
|
||||
|
||||
public String contratar() {
|
||||
tarjetaCredito.setCliente(cliente);
|
||||
tarjetaCredito.setInsertedAt(new Date());
|
||||
|
||||
cliente.getTarjetaCreditoList().add(tarjetaCredito);
|
||||
tarjetaCreditoFacade.create(tarjetaCredito);
|
||||
clienteFacade.edit(cliente);
|
||||
|
||||
this.resetClases();
|
||||
|
||||
@@ -3,7 +3,14 @@ package bean;
|
||||
import beans.ClienteFacadeLocal;
|
||||
import beans.TarjetaDebitoFacadeLocal;
|
||||
import entities.Cliente;
|
||||
import entities.CompraTarjetaDebito;
|
||||
import entities.DepositoCuentaCorriente;
|
||||
import entities.DepositoTarjetaDebito;
|
||||
import entities.GiroCuentaCorriente;
|
||||
import entities.GiroTarjetaDebito;
|
||||
import entities.TarjetaDebito;
|
||||
import entities.TransferenciaCuentaCorriente;
|
||||
import entities.TransferenciaTarjetaDebito;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import javax.annotation.PostConstruct;
|
||||
@@ -32,43 +39,73 @@ public class TarjetaDebitoBean implements Serializable {
|
||||
|
||||
public String contratar() {
|
||||
tarjetaDebito.setCliente(cliente);
|
||||
tarjetaDebito.setInsertedAt(new Date());
|
||||
|
||||
cliente.getTarjetaDebitoList().add(tarjetaDebito);
|
||||
tarjetaDebitoFacade.create(tarjetaDebito);
|
||||
clienteFacade.edit(cliente);
|
||||
|
||||
this.resetInput();
|
||||
return "admin_cliente_view";
|
||||
}
|
||||
|
||||
|
||||
public String gotoDepositar() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
DepositoBean db = context.getApplication().evaluateExpressionGet(context, "#{depositoBean}", DepositoBean.class);
|
||||
db.setTarjetaDebito(tarjetaDebito);
|
||||
return "cliente_tarjeta_debito_depositar";
|
||||
}
|
||||
|
||||
|
||||
public String gotoDeleteDeposito(DepositoTarjetaDebito deposito) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
DepositoBean db = context.getApplication().evaluateExpressionGet(context, "#{depositoBean}", DepositoBean.class);
|
||||
db.setTarjetaDebito(tarjetaDebito);
|
||||
db.setDepositoTarjetaDebito(deposito);
|
||||
return "admin_tarjeta_debito_delete_deposito";
|
||||
}
|
||||
|
||||
public String gotoGirar() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
GiroBean gb = context.getApplication().evaluateExpressionGet(context, "#{giroBean}", GiroBean.class);
|
||||
gb.setTarjetaDebito(tarjetaDebito);
|
||||
return "cliente_tarjeta_debito_girar";
|
||||
}
|
||||
|
||||
|
||||
public String gotoDeleteGiro(GiroTarjetaDebito giro) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
GiroBean gb = context.getApplication().evaluateExpressionGet(context, "#{giroBean}", GiroBean.class);
|
||||
gb.setTarjetaDebito(tarjetaDebito);
|
||||
gb.setGiroTarjetaDebito(giro);
|
||||
return "admin_tarjeta_debito_delete_giro";
|
||||
}
|
||||
|
||||
public String gotoTransferir() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TransferenciaBean tb = context.getApplication().evaluateExpressionGet(context, "#{transferenciaBean}", TransferenciaBean.class);
|
||||
tb.setTarjetaDebito(tarjetaDebito);
|
||||
return "cliente_tarjeta_debito_transferir";
|
||||
}
|
||||
|
||||
|
||||
public String gotoDeleteTransferencia(TransferenciaTarjetaDebito transferencia) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
TransferenciaBean tb = context.getApplication().evaluateExpressionGet(context, "#{transferenciaBean}", TransferenciaBean.class);
|
||||
tb.setTarjetaDebito(tarjetaDebito);
|
||||
tb.setTransferenciaTarjetaDebito(transferencia);
|
||||
return "admin_tarjeta_debito_delete_transferencia";
|
||||
}
|
||||
|
||||
public String gotoComprar() {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
CompraBean cb = context.getApplication().evaluateExpressionGet(context, "#{compraBean}", CompraBean.class);
|
||||
cb.setTarjetaDebito(tarjetaDebito);
|
||||
return "cliente_tarjeta_debito_comprar";
|
||||
}
|
||||
|
||||
|
||||
public String gotoDeleteCompra(CompraTarjetaDebito compra) {
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
CompraBean cb = context.getApplication().evaluateExpressionGet(context, "#{compraBean}", CompraBean.class);
|
||||
cb.setTarjetaDebito(tarjetaDebito);
|
||||
cb.setCompraTarjetaDebito(compra);
|
||||
return "admin_tarjeta_debito_delete_compra";
|
||||
}
|
||||
|
||||
private void resetInput() {
|
||||
this.cliente = new Cliente();
|
||||
|
||||
@@ -34,6 +34,8 @@ public class TransferenciaBean implements Serializable {
|
||||
private String comentario;
|
||||
private CuentaCorriente cuentaCorriente;
|
||||
private TarjetaDebito tarjetaDebito;
|
||||
private TransferenciaCuentaCorriente transferenciaCuentaCorriente;
|
||||
private TransferenciaTarjetaDebito transferenciaTarjetaDebito;
|
||||
|
||||
public String transferir() {
|
||||
if (cuentaCorriente != null) {
|
||||
@@ -46,12 +48,12 @@ public class TransferenciaBean implements Serializable {
|
||||
}
|
||||
|
||||
public String transferirEnCuentaCorriente() {
|
||||
if(this.destinatario_id == this.cuentaCorriente.getId()){
|
||||
if (this.destinatario_id == this.cuentaCorriente.getId()) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("No se puede transferir hacia si mismo"));
|
||||
FacesContext.getCurrentInstance().validationFailed();
|
||||
return "cliente_cuenta_corriente_transferir";
|
||||
}
|
||||
|
||||
|
||||
CuentaCorriente destinatario = cuentaCorrienteFacade.find(this.destinatario_id);
|
||||
if (destinatario == null) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("La cuenta corriente ingresada no existe"));
|
||||
@@ -68,16 +70,12 @@ public class TransferenciaBean implements Serializable {
|
||||
TransferenciaCuentaCorriente transferencia = new TransferenciaCuentaCorriente();
|
||||
transferencia.setComentario(comentario);
|
||||
transferencia.setMonto(monto);
|
||||
transferencia.setInsertedAt(new Date());
|
||||
transferencia.setCuentaCorrienteFrom(cuentaCorriente);
|
||||
transferencia.setCuentaCorrienteTo(destinatario);
|
||||
|
||||
cuentaCorriente.getTransferenciaFromList().add(transferencia);
|
||||
destinatario.getTransferenciaToList().add(transferencia);
|
||||
|
||||
cuentaCorriente.setSaldo(cuentaCorriente.getSaldo() - monto);
|
||||
destinatario.setSaldo(destinatario.getSaldo() + monto);
|
||||
|
||||
|
||||
transferenciaCCFacade.create(transferencia);
|
||||
cuentaCorrienteFacade.edit(cuentaCorriente);
|
||||
cuentaCorrienteFacade.edit(destinatario);
|
||||
@@ -87,12 +85,12 @@ public class TransferenciaBean implements Serializable {
|
||||
}
|
||||
|
||||
public String transferirEnTarjetaDebito() {
|
||||
if(this.destinatario_id == this.tarjetaDebito.getId()){
|
||||
if (this.destinatario_id == this.tarjetaDebito.getId()) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("No se puede transferir hacia si mismo"));
|
||||
FacesContext.getCurrentInstance().validationFailed();
|
||||
return "cliente_tarjeta_debito_transferir";
|
||||
}
|
||||
|
||||
|
||||
TarjetaDebito destinatario = tarjetaDebitoFacade.find(this.destinatario_id);
|
||||
if (destinatario == null) {
|
||||
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("La tarjeta de debito ingresada no existe"));
|
||||
@@ -109,16 +107,12 @@ public class TransferenciaBean implements Serializable {
|
||||
TransferenciaTarjetaDebito transferencia = new TransferenciaTarjetaDebito();
|
||||
transferencia.setComentario(comentario);
|
||||
transferencia.setMonto(monto);
|
||||
transferencia.setInsertedAt(new Date());
|
||||
transferencia.setTarjetaDebitoFrom(tarjetaDebito);
|
||||
transferencia.setTarjetaDebitoTo(destinatario);
|
||||
|
||||
tarjetaDebito.getTransferenciaFromList().add(transferencia);
|
||||
destinatario.getTransferenciaToList().add(transferencia);
|
||||
|
||||
tarjetaDebito.setSaldo(tarjetaDebito.getSaldo() - monto);
|
||||
destinatario.setSaldo(destinatario.getSaldo() + monto);
|
||||
|
||||
|
||||
transferenciaTDFacade.create(transferencia);
|
||||
tarjetaDebitoFacade.edit(tarjetaDebito);
|
||||
tarjetaDebitoFacade.edit(destinatario);
|
||||
@@ -127,6 +121,55 @@ public class TransferenciaBean implements Serializable {
|
||||
return "cliente_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
public String eliminarTransferenciaEnCuentaCorriente() {
|
||||
CuentaCorriente ccFrom = transferenciaCuentaCorriente.getCuentaCorrienteFrom();
|
||||
CuentaCorriente ccTo = transferenciaCuentaCorriente.getCuentaCorrienteTo();
|
||||
|
||||
if (ccTo.getSaldo() - transferenciaCuentaCorriente.getMonto() < 0) {
|
||||
FacesContext facesContext = FacesContext.getCurrentInstance();
|
||||
facesContext.addMessage(null, new FacesMessage("Eliminar la transferencia dejaria la cuenta del destinatario en negativo"));
|
||||
facesContext.validationFailed();
|
||||
return "admin_cuenta_corriente_delete_transferencia";
|
||||
}
|
||||
|
||||
ccFrom.setSaldo(ccFrom.getSaldo() + transferenciaCuentaCorriente.getMonto());
|
||||
ccTo.setSaldo(ccTo.getSaldo() - transferenciaCuentaCorriente.getMonto());
|
||||
|
||||
ccFrom.getTransferenciaFromList().remove(transferenciaCuentaCorriente);
|
||||
ccTo.getTransferenciaToList().remove(transferenciaCuentaCorriente);
|
||||
|
||||
transferenciaCCFacade.remove(transferenciaCuentaCorriente);
|
||||
cuentaCorrienteFacade.edit(ccFrom);
|
||||
cuentaCorrienteFacade.edit(ccTo);
|
||||
|
||||
return "admin_cuenta_corriente_view";
|
||||
}
|
||||
|
||||
|
||||
public String eliminarTransferenciaEnTarjetaDebito() {
|
||||
TarjetaDebito tdFrom = transferenciaTarjetaDebito.getTarjetaDebitoFrom();
|
||||
TarjetaDebito tdTo = transferenciaTarjetaDebito.getTarjetaDebitoTo();
|
||||
|
||||
if (tdTo.getSaldo() - transferenciaTarjetaDebito.getMonto() < 0) {
|
||||
FacesContext facesContext = FacesContext.getCurrentInstance();
|
||||
facesContext.addMessage(null, new FacesMessage("Eliminar la transferencia dejaria la cuenta del destinatario en negativo"));
|
||||
facesContext.validationFailed();
|
||||
return "admin_tarjeta_debito_delete_transferencia";
|
||||
}
|
||||
|
||||
tdFrom.setSaldo(tdFrom.getSaldo() + transferenciaTarjetaDebito.getMonto());
|
||||
tdTo.setSaldo(tdTo.getSaldo() - transferenciaTarjetaDebito.getMonto());
|
||||
|
||||
tdFrom.getTransferenciaFromList().remove(transferenciaTarjetaDebito);
|
||||
tdTo.getTransferenciaToList().remove(transferenciaTarjetaDebito);
|
||||
|
||||
transferenciaTDFacade.remove(transferenciaTarjetaDebito);
|
||||
tarjetaDebitoFacade.edit(tdFrom);
|
||||
tarjetaDebitoFacade.edit(tdTo);
|
||||
|
||||
return "admin_tarjeta_debito_view";
|
||||
}
|
||||
|
||||
private void resetInput() {
|
||||
this.cuentaCorriente = null;
|
||||
this.tarjetaDebito = null;
|
||||
@@ -174,6 +217,22 @@ public class TransferenciaBean implements Serializable {
|
||||
public void setDestinatario_id(int destinatario_id) {
|
||||
this.destinatario_id = destinatario_id;
|
||||
}
|
||||
|
||||
public TransferenciaCuentaCorriente getTransferenciaCuentaCorriente() {
|
||||
return transferenciaCuentaCorriente;
|
||||
}
|
||||
|
||||
public void setTransferenciaCuentaCorriente(TransferenciaCuentaCorriente transferenciaCuentaCorriente) {
|
||||
this.transferenciaCuentaCorriente = transferenciaCuentaCorriente;
|
||||
}
|
||||
|
||||
public TransferenciaTarjetaDebito getTransferenciaTarjetaDebito() {
|
||||
return transferenciaTarjetaDebito;
|
||||
}
|
||||
|
||||
public void setTransferenciaTarjetaDebito(TransferenciaTarjetaDebito transferenciaTarjetaDebito) {
|
||||
this.transferenciaTarjetaDebito = transferenciaTarjetaDebito;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class UsuarioBean implements Serializable {
|
||||
u.setNombre(nombre);
|
||||
u.setPassword(hash);
|
||||
u.setSalt(salt);
|
||||
u.setRole("Admin");
|
||||
u.setRol("Admin");
|
||||
|
||||
usuarioFacade.create(u);
|
||||
|
||||
@@ -76,11 +76,11 @@ public class UsuarioBean implements Serializable {
|
||||
}
|
||||
|
||||
public boolean isAdmin() {
|
||||
return this.getUsuario().getRole().equals("Admin");
|
||||
return this.getUsuario().getRol().equals("Admin");
|
||||
}
|
||||
|
||||
public boolean isClient() {
|
||||
return this.getUsuario().getRole().equals("Cliente");
|
||||
return this.getUsuario().getRol().equals("Cliente");
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
</h:inputSecret>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 dib white bg-blue" action="#{clienteBean.create()}">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 mb2 dib white bg-blue" action="#{clienteBean.create()}" style="width: 200px">
|
||||
<li class="fas fa-plus-circle"></li> Crear
|
||||
</h:commandLink>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" immediate="true" action="admin_main">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="admin_main" style="width: 200px">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
@@ -17,182 +17,177 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Cliente</h1>
|
||||
<h1 class="f1 tc">Cliente</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<div class="mv3 cf">
|
||||
<h:commandLink class="f5 fl tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-blue" immediate="true" action="admin_main" style="width: 200px">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list white bg-red pa4" />
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Datos del cliente////////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="rut" value="Rut:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="rut" value="#{clienteBean.cliente.rut}" readonly="true"/>
|
||||
<div class="mv3">
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Rut:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.rut}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" for="nombre" value="Nombre:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="nombre" value="#{clienteBean.cliente.nombre}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" for="ciudad" value="Ciudad:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="ciudad" value="#{clienteBean.cliente.ciudad}" readonly="true"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="nombre" value="Nombre:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="nombre" value="#{clienteBean.cliente.nombre}" readonly="true"/>
|
||||
</div>
|
||||
<hr/>
|
||||
|
||||
<div class="mv3 pa2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="ciudad" value="Ciudad:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 w-100" id="ciudad" value="#{clienteBean.cliente.ciudad}" readonly="true"/>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class="f2">Servicios</h2>
|
||||
<h2 class="f2 tc">Productos</h2>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Cuentas Corrientes///////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Cuentas Corrientes</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarCuentaCorriente()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.cuentaCorriente != null}">
|
||||
<h3 class="f3 tc">Cuenta Corriente</h3>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.saldo}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoAdminViewCuentaCorriente()}" style="width: 200px">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.cuentaCorriente == null}">
|
||||
<h3 class="f3 tc">Cuenta Corriente</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarCuentaCorriente()}" style="width: 200px">
|
||||
<li class="fas fa-wallet"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.cuentaCorrienteList}" var="cuentaCorriente">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green" action="#{clienteBean.gotoAdminViewCuentaCorriente(cuentaCorriente)}">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Debito//////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Tarjetas de Debito</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.tarjetaDebito != null}">
|
||||
<h3 class="f3 tc">Tarjeta Debito</h3>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.saldo}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-green" action="#{clienteBean.gotoAdminViewTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.tarjetaDebito == null}">
|
||||
<h3 class="f3 tc">Tarjeta Debito</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaDebito()}" style="width: 200px">
|
||||
<li class="fas fa-money-check"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaDebitoList}" var="tarjetaDebito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 dib white bg-green">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Credito//////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h3 class="f3 dib">Tarjetas de Credito</h3>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaCredito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.tarjetaCredito != null}">
|
||||
<h3 class="f3 tc">Tarjeta Credito</h3>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Nacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.limiteNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Nacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.deudaNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Internacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.limiteInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Internacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.deudaInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-green" action="#{clienteBean.gotoAdminViewCuentaCorriente()}" style="width: 200px">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" action="#{clienteBean.gotoEditTarjetaCredito()}" style="width: 200px">
|
||||
<li class="fas fa-edit"></li> Editar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.tarjetaCredito == null}">
|
||||
<h3 class="f3 tc">Tarjeta Credito</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="#{clienteBean.gotoContratarTarjetaCredito()}" style="width: 200px">
|
||||
<li class="fas fa-credit-card"></li> Contratar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaCreditoList}" var="tarjetaCredito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 dib white bg-green">
|
||||
<li class="fas fa-eye"></li>
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 ml2 dib white bg-blue" action="#{clienteBean.gotoEditTarjetaCredito(tarjetaCredito)}">
|
||||
<li class="fas fa-edit"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
|
||||
58
bank-war/web/admin_cuenta_corriente_delete_deposito.xhtml
Normal file
58
bank-war/web/admin_cuenta_corriente_delete_deposito.xhtml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Deposito</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_cuenta_corriente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{depositoBean.depositoCuentaCorriente.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{depositoBean.depositoCuentaCorriente.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="metodo" value="Metodo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="metodo" value="#{depositoBean.depositoCuentaCorriente.metodo.nombre}" readonly="true" label="Metodo"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{depositoBean.deleteDepositoCuentaCorriente()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
58
bank-war/web/admin_cuenta_corriente_delete_giro.xhtml
Normal file
58
bank-war/web/admin_cuenta_corriente_delete_giro.xhtml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Giro</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_cuenta_corriente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{giroBean.giroCuentaCorriente.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{giroBean.giroCuentaCorriente.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="metodo" value="Metodo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="metodo" value="#{giroBean.giroCuentaCorriente.metodo.nombre}" readonly="true" label="Metodo"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{giroBean.deleteGiroEnCuentaCorriente()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Transferencia</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_cuenta_corriente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{transferenciaBean.transferenciaCuentaCorriente.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{transferenciaBean.transferenciaCuentaCorriente.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="emisor" value="Cuenta Emisor:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="emisor" value="#{transferenciaBean.transferenciaCuentaCorriente.cuentaCorrienteFrom.id}" readonly="true" label="Cuenta Emisor"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="destinatario" value="Cuenta Destinatario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="destinatario" value="#{transferenciaBean.transferenciaCuentaCorriente.cuentaCorrienteTo.id}" readonly="true" label="Cuenta Destinatario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{transferenciaBean.eliminarTransferenciaEnCuentaCorriente()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Cuenta Corriente</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_cliente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
@@ -35,9 +35,7 @@
|
||||
</div>
|
||||
<div class="mv4 ph2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100" id="fecha_creacion" value="#{cuentaCorrienteBean.cuentaCorriente.insertedAt}" readonly="true" label="Fecha Creacion:">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy"/>
|
||||
</h:inputText>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100" id="fecha_creacion" value="#{cuentaCorrienteBean.cuentaCorriente.insertedAt}" readonly="true" label="Fecha Creacion:"/>
|
||||
</div>
|
||||
|
||||
<h1 class="f2 ">Depositos</h1>
|
||||
@@ -46,9 +44,7 @@
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{deposito.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -62,6 +58,11 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{cuentaCorrienteBean.gotoDeleteDeposito(deposito)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Giros</h1>
|
||||
@@ -70,9 +71,7 @@
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{giro.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -86,6 +85,11 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{cuentaCorrienteBean.gotoDeleteGiro(giro)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Transferencias Hechas</h1>
|
||||
@@ -94,9 +98,7 @@
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column><h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Destinatario"/>
|
||||
@@ -115,6 +117,11 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{cuentaCorrienteBean.gotoDeleteTransferencia(transferencia)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Transferencias Recibidas</h1>
|
||||
@@ -123,9 +130,7 @@
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column><h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Emisor"/>
|
||||
@@ -144,6 +149,11 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{cuentaCorrienteBean.gotoDeleteTransferencia(transferencia)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</h:form>
|
||||
|
||||
|
||||
@@ -17,12 +17,13 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<h1 class="f1 w-100 dib tc">Administracion</h1>
|
||||
<div>
|
||||
<h:commandLink class="f5 fr link dim br2 ph3 pv2 mb2 dib white bg-blue" action="#{clienteBean.gotoCreate()}">
|
||||
<h1 class="f1 tc">Administracion</h1>
|
||||
|
||||
<div class="mt3 cf">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-blue" action="#{clienteBean.gotoCreate()}" style="width: 200px">
|
||||
<li class="fas fa-plus-circle"></li> Crear Cliente
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 fl link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}">
|
||||
<h:commandLink class="f5 fl tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
54
bank-war/web/admin_tarjeta_debito_delete_compra.xhtml
Normal file
54
bank-war/web/admin_tarjeta_debito_delete_compra.xhtml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Compra</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_tarjeta_debito_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{compraBean.compraTarjetaDebito.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{compraBean.compraTarjetaDebito.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{compraBean.deleteCompraTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
58
bank-war/web/admin_tarjeta_debito_delete_deposito.xhtml
Normal file
58
bank-war/web/admin_tarjeta_debito_delete_deposito.xhtml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Deposito</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_tarjeta_debito_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{depositoBean.depositoTarjetaDebito.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{depositoBean.depositoTarjetaDebito.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="metodo" value="Metodo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="metodo" value="#{depositoBean.depositoTarjetaDebito.metodo.nombre}" readonly="true" label="Metodo"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{depositoBean.deleteDepositoTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
58
bank-war/web/admin_tarjeta_debito_delete_giro.xhtml
Normal file
58
bank-war/web/admin_tarjeta_debito_delete_giro.xhtml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Giro</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_tarjeta_debito_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{giroBean.giroTarjetaDebito.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{giroBean.giroTarjetaDebito.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="metodo" value="Metodo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="metodo" value="#{giroBean.giroTarjetaDebito.metodo.nombre}" readonly="true" label="Metodo"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{giroBean.deleteGiroEnTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
62
bank-war/web/admin_tarjeta_debito_delete_transferencia.xhtml
Normal file
62
bank-war/web/admin_tarjeta_debito_delete_transferencia.xhtml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Eliminar Transferencia</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_tarjeta_debito_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h:messages class="f4 w-40 list tc center white bg-red pa4 "/>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="monto" value="Monto:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="monto" value="#{transferenciaBean.transferenciaTarjetaDebito.monto}" readonly="true" label="Monto"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="comentario" value="Comentario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="comentario" value="#{transferenciaBean.transferenciaTarjetaDebito.comentario}" readonly="true" label="Comentario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="emisor" value="Cuenta Emisor:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="emisor" value="#{transferenciaBean.transferenciaTarjetaDebito.tarjetaDebitoFrom.id}" readonly="true" label="Cuenta Emisor"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="destinatario" value="Cuenta Destinatario:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="destinatario" value="#{transferenciaBean.transferenciaTarjetaDebito.tarjetaDebitoTo.id}" readonly="true" label="Cuenta Destinatario"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" action="#{transferenciaBean.eliminarTransferenciaEnTarjetaDebito()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-trash"></li> Eliminar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
196
bank-war/web/admin_tarjeta_debito_view.xhtml
Normal file
196
bank-war/web/admin_tarjeta_debito_view.xhtml
Normal file
@@ -0,0 +1,196 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
||||
xmlns:f="http://java.sun.com/jsf/core">
|
||||
<h:head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
||||
<h:outputStylesheet library="css" name="all.css"/>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
</style>
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isAdmin()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Tarjeta Debito</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="admin_cliente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<div class="mv4 ph2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100" id="id" value="#{tarjetaDebitoBean.tarjetaDebito.id}" readonly="true" label="Id:"/>
|
||||
</div>
|
||||
<div class="mv4 ph2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="saldo" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100" id="saldo" value="#{tarjetaDebitoBean.tarjetaDebito.saldo}" readonly="true" label="Saldo:"/>
|
||||
</div>
|
||||
<div class="mv4 ph2 fl w-33">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100" id="fecha_creacion" value="#{tarjetaDebitoBean.tarjetaDebito.insertedAt}" readonly="true" label="Fecha Creacion:"/>
|
||||
</div>
|
||||
|
||||
<h1 class="f2 ">Depositos</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.depositoList}" var="deposito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Comentario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{tarjetaDebitoBean.gotoDeleteDeposito(deposito)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Giros</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.giroList}" var="giro">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Comentario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{tarjetaDebitoBean.gotoDeleteGiro(giro)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Transferencias Hechas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.transferenciaFromList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column><h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Destinatario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.tarjetaDebitoTo.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Comentario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{tarjetaDebitoBean.gotoDeleteTransferencia(transferencia)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f2">Transferencias Recibidas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.transferenciaToList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column><h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Emisor"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.tarjetaDebitoFrom.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Comentario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{tarjetaDebitoBean.gotoDeleteTransferencia(transferencia)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<hr/>
|
||||
<h1 class="f2">Compras</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.compraList}" var="compra">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Comentario"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.monto}"/>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mr2 dib white bg-red tc" action="#{tarjetaDebitoBean.gotoDeleteCompra(compra)}">
|
||||
<li class="fas fa-trash"></li>
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</h:form>
|
||||
|
||||
<h:form rendered="#{!userBean.isLogged()}">
|
||||
<div class="tc">
|
||||
<h1 class="f1 tc">Acceso no autorizado</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Ir al index" action="index"/>
|
||||
</div>
|
||||
</h:form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Cuenta Corriente - Depositar</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" immediate="true" action="cliente_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" immediate="true" action="cliente_cuenta_corriente_view" style="margin-top: auto; margin-bottom: auto">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
@@ -17,50 +17,50 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isClient()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Cuenta Corriente</h1>
|
||||
<h1 class="f1 tc">Cuenta Corriente</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="cliente_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<div class="mv3 cf">
|
||||
<h:commandLink class="f5 fl tc link dim br2 ph3 pv2 mb2 dib white bg-blue" immediate="true" action="cliente_main" style="width: 200px">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="id" value="#{cuentaCorrienteBean.cuentaCorriente.id}" readonly="true" label="Id:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" for="saldo" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="saldo" value="#{cuentaCorrienteBean.cuentaCorriente.saldo}" readonly="true" label="Saldo:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="fecha_creacion" value="#{cuentaCorrienteBean.cuentaCorriente.insertedAt}" readonly="true" label="Fecha Creacion:"/>
|
||||
</div>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="id" value="#{cuentaCorrienteBean.cuentaCorriente.id}" readonly="true" label="Id:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="saldo" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="saldo" value="#{cuentaCorrienteBean.cuentaCorriente.saldo}" readonly="true" label="Saldo:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="fecha_creacion" value="#{cuentaCorrienteBean.cuentaCorriente.insertedAt}" readonly="true" label="Fecha Creacion:">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy"/>
|
||||
</h:inputText>
|
||||
</div>
|
||||
|
||||
<div class="flex mt3 justify-center">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 w-20 dib white bg-green" action="#{cuentaCorrienteBean.gotoDepositar()}">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 ma2 dib white bg-green tc" action="#{cuentaCorrienteBean.gotoDepositar()}" style="width: 200px">
|
||||
<li class="fas fa-piggy-bank"></li> Depositar
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 w-20 dib white bg-red" action="#{cuentaCorrienteBean.gotoGirar()}">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 ma2 dib white bg-gold tc" action="#{cuentaCorrienteBean.gotoGirar()}" style="width: 200px">
|
||||
<li class="fas fa-hand-holding-usd"></li> Girar
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 dib w-20 white bg-blue" action="#{cuentaCorrienteBean.gotoTransferir()}">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 ma2 dib white bg-blue tc" action="#{cuentaCorrienteBean.gotoTransferir()}" style="width: 200px">
|
||||
<li class="fas fa-comments-dollar"></li> Transferir
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h1 class="f1">Depositos</h1>
|
||||
<h1 class="f3">Depositos</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.cuentaCorriente.depositoList}" var="deposito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{deposito.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -68,6 +68,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Metodo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.metodo.nombre}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
@@ -75,16 +81,15 @@
|
||||
<h:outputLabel value="#{deposito.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f1">Giros</h1>
|
||||
<h1 class="f3">Giros</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.cuentaCorriente.giroList}" var="giro">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{giro.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -92,6 +97,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Metodo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.metodo.nombre}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
@@ -99,16 +110,15 @@
|
||||
<h:outputLabel value="#{giro.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f1">Transferencias Hechas</h1>
|
||||
<h1 class="f3">Transferencias Hechas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.cuentaCorriente.transferenciaFromList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column><h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Destinatario"/>
|
||||
@@ -128,17 +138,17 @@
|
||||
<h:outputLabel value="#{transferencia.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f1">Transferencias Recibidas</h1>
|
||||
<h1 class="f3">Transferencias Recibidas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.cuentaCorriente.transferenciaToList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column><h:column>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Emisor"/>
|
||||
</f:facet>
|
||||
|
||||
@@ -17,139 +17,127 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isClient()}">
|
||||
<h1 class="f1 tc">¡Bienvenido #{clienteBean.cliente.nombre}!</h1>
|
||||
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1 w-100 dib">¡Bienvenido #{clienteBean.cliente.nombre}!</h1>
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="margin-top: auto; margin-bottom: auto">
|
||||
<div class="mv3 cf">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h2 class="f2">Productos</h2>
|
||||
<h2 class="f2 tc">Productos</h2>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Cuentas Corrientes///////////////////////
|
||||
///////////////////////////Cuenta Corriente///////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
<h3 class="f3">Cuentas Corrientes</h3>
|
||||
-->
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.cuentaCorriente != null}">
|
||||
<h3 class="f3 tc">Cuenta Corriente</h3>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.cuentaCorrienteList}" var="cuentaCorriente">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{cuentaCorriente.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewCuentaCorriente(cuentaCorriente)}">
|
||||
<li class="fas fa-eye"></li>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.saldo}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.cuentaCorriente.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewCuentaCorriente()}" style="width: 200px">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.cuentaCorriente == null}">
|
||||
<h3 class="f3 tc">Cuenta Corriente</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
</h:panelGroup>
|
||||
|
||||
<hr/>
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Debito///////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
<h3 class="f3">Tarjetas de Debito</h3>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaDebitoList}" var="tarjetaDebito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Saldo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.saldo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaDebito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewTarjetaDebito(tarjetaDebito)}">
|
||||
<li class="fas fa-eye"></li>
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.tarjetaDebito != null}">
|
||||
<h3 class="f3 tc">Tarjeta Debito</h3>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.saldo}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaDebito.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-green" action="#{clienteBean.gotoViewTarjetaDebito()}" style="width: 200px">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.tarjetaDebito == null}">
|
||||
<h3 class="f3 tc">Tarjeta Debito</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
</h:panelGroup>
|
||||
|
||||
<hr/>
|
||||
|
||||
<!--
|
||||
////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////Tarjetas de Credito//////////////////////
|
||||
////////////////////////////////////////////////////////////////////
|
||||
-->
|
||||
<h3 class="f3">Tarjetas de Credito</h3>
|
||||
|
||||
<h:panelGroup layout="block" class="mv3 w-100" rendered="#{clienteBean.cliente.tarjetaCredito != null}">
|
||||
<h3 class="f3 tc">Tarjeta Credito</h3>
|
||||
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaCreditoList}" var="tarjetaCredito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Id"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.id}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Nacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaNacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Limite Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.limiteInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Deuda Internacional"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.deudaInternacional}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha creacion"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{tarjetaCredito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column>
|
||||
<h:column class="tr">
|
||||
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewTarjetaCredito(tarjetaCredito)}">
|
||||
<li class="fas fa-eye"></li>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Nacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.limiteNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Nacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.deudaNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Internacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.limiteInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Internacional:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.deudaInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" value="#{clienteBean.cliente.tarjetaCredito.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-green" action="#{clienteBean.gotoViewTarjetaCredito()}" style="width: 200px">
|
||||
<li class="fas fa-eye"></li> Ver
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<h:panelGroup layout="block" rendered="#{clienteBean.cliente.tarjetaCredito == null}">
|
||||
<h3 class="f3 tc">Tarjeta Credito</h3>
|
||||
<p class="f6 tc">Sin contratar</p>
|
||||
</h:panelGroup>
|
||||
</h:form>
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="tipo" value="Tipo:"/>
|
||||
<h:selectOneMenu class="pa2 ba b--black-20 bg-transparent w-100 measure" id="tipo" value="#{compraBean.clase}" required="true" label="Tipo">
|
||||
<h:selectOneMenu class="pa2 ba b--black-20 bg-transparent w-100 measure" id="tipo" value="#{compraBean.tipo}" required="true" label="Tipo">
|
||||
<f:selectItem itemValue="Nacional"/>
|
||||
<f:selectItem itemValue="Internacional"/>
|
||||
</h:selectOneMenu>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="tipo" value="Tipo:"/>
|
||||
<h:selectOneMenu class="pa2 ba b--black-20 bg-transparent w-100 measure" id="tipo" value="#{pagoBean.clase}" required="true" label="Tipo">
|
||||
<h:selectOneMenu class="pa2 ba b--black-20 bg-transparent w-100 measure" id="tipo" value="#{pagoBean.tipo}" required="true" label="Tipo">
|
||||
<f:selectItem itemValue="Nacional"/>
|
||||
<f:selectItem itemValue="Internacional"/>
|
||||
</h:selectOneMenu>
|
||||
|
||||
@@ -17,59 +17,57 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isClient()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Tarjeta Credito</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="cliente_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<h1 class="f1 tc">Tarjeta Credito</h1>
|
||||
<div class="mv3 cf">
|
||||
<h:commandLink class="f5 fl tc link dim br2 ph3 pv2 mb2 dib white bg-blue" immediate="true" action="cliente_main" style="width: 200px">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="id" value="#{tarjetaCreditoBean.tarjetaCredito.id}" readonly="true" label="Id:"/>
|
||||
<h:outputLabel class="db lh-copy f6" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="id" value="#{tarjetaCreditoBean.tarjetaCredito.id}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="limite_nacional" value="Limite Nacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="limite_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteNacional}" readonly="true" label="Limite Nacional:"/>
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Nacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="limite_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="deuda_nacional" value="Deuda Nacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="deuda_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaNacional}" readonly="true" label="Deuda Nacional"/>
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Nacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="deuda_nacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaNacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="limite_internacional" value="Limite Internacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="limite_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteInternacional}" readonly="true" label="Limite Internacional: "/>
|
||||
<h:outputLabel class="db lh-copy f6" value="Limite Internacional: "/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="limite_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.limiteInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="deuda_internacional" value="Deuda Internacional"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="deuda_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaInternacional}" readonly="true" label="Deuda Internacional: "/>
|
||||
<h:outputLabel class="db lh-copy f6" value="Deuda Internacional"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="deuda_internacional" value="#{tarjetaCreditoBean.tarjetaCredito.deudaInternacional}" readonly="true"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="fecha_creacion" value="#{tarjetaCreditoBean.tarjetaCredito.insertedAt}" readonly="true" label="Fecha Creacion:">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy"/>
|
||||
</h:inputText>
|
||||
<h:outputLabel class="db lh-copy f6" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="fecha_creacion" value="#{tarjetaCreditoBean.tarjetaCredito.insertedAt}" readonly="true"/>
|
||||
</div>
|
||||
|
||||
<div class="flex mt3 justify-center">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 w-30 dib white bg-green" action="#{tarjetaCreditoBean.gotoComprar()}">
|
||||
<div class="mt3 tc">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ma2 dib white bg-green" action="#{tarjetaCreditoBean.gotoComprar()}" style="width: 200px">
|
||||
<li class="fas fa-shopping-basket"></li> Comprar
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 w-30 dib white bg-red" action="#{tarjetaCreditoBean.gotoPagar()}">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ma2 dib white bg-gold" action="#{tarjetaCreditoBean.gotoPagar()}" style="width: 200px">
|
||||
<li class="fas fa-money-bill"></li> Pagar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<h1 class="f1">Compras</h1>
|
||||
<h1 class="f3">Compras</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaCreditoBean.tarjetaCredito.compraList}" var="compra">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{compra.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -77,6 +75,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Tipo de Compra"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.tipo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
@@ -84,16 +88,15 @@
|
||||
<h:outputLabel value="#{compra.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f1">Pagos</h1>
|
||||
<h1 class="f3">Pagos</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaCreditoBean.tarjetaCredito.pagoList}" var="pago">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{pago.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{pago.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -101,6 +104,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{pago.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Tipo de Pago"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{pago.tipo}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
|
||||
@@ -17,53 +17,53 @@
|
||||
</h:head>
|
||||
<body class="black-70 pa4">
|
||||
<h:form rendered="#{userBean.isLogged() and userBean.isClient()}">
|
||||
<div class="flex justify-between">
|
||||
<h1 class="f1">Tarjeta Debito</h1>
|
||||
<h1 class="f1 tc">Tarjeta Debito</h1>
|
||||
|
||||
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-blue" immediate="true" action="cliente_main" style="margin-top: auto; margin-bottom: auto">
|
||||
<div class="mv3 cf">
|
||||
<h:commandLink class="f5 fl tc link dim br2 ph3 pv2 mb2 dib white bg-blue" immediate="true" action="cliente_main" style="width: 200px">
|
||||
<li class="fas fa-arrow-left"></li> Volver
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 mb2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="width: 200px">
|
||||
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
||||
</h:commandLink>
|
||||
</div>
|
||||
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="id" value="#{tarjetaDebitoBean.tarjetaDebito.id}" readonly="true" label="Id:"/>
|
||||
<h:outputLabel class="db lh-copy f6" for="id" value="Id:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="id" value="#{tarjetaDebitoBean.tarjetaDebito.id}" readonly="true" label="Id:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="saldo" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="saldo" value="#{tarjetaDebitoBean.tarjetaDebito.saldo}" readonly="true" label="Saldo:"/>
|
||||
<h:outputLabel class="db lh-copy f6" for="saldo" value="Saldo:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="saldo" value="#{tarjetaDebitoBean.tarjetaDebito.saldo}" readonly="true" label="Saldo:"/>
|
||||
</div>
|
||||
<div class="mt3 tc">
|
||||
<h:outputLabel class="db fw4 lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-60" id="fecha_creacion" value="#{tarjetaDebitoBean.tarjetaDebito.insertedAt}" readonly="true" label="Fecha Creacion:">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy"/>
|
||||
</h:inputText>
|
||||
<h:outputLabel class="db lh-copy f6" for="fecha_creacion" value="Fecha Creacion:"/>
|
||||
<h:inputText class="pa2 input-reset ba b--black-20 bg-transparent w-100 measure" id="fecha_creacion" value="#{tarjetaDebitoBean.tarjetaDebito.insertedAt}" readonly="true" label="Fecha Creacion:"/>
|
||||
</div>
|
||||
|
||||
<div class="flex mt3 justify-center">
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 w-20 dib white bg-green" action="#{tarjetaDebitoBean.gotoDepositar()}">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 ma2 dib white bg-green" action="#{tarjetaDebitoBean.gotoDepositar()}" style="width: 200px">
|
||||
<li class="fas fa-piggy-bank"></li> Depositar
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 w-20 dib white bg-red" action="#{tarjetaDebitoBean.gotoGirar()}">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 ma2 dib white bg-gold" action="#{tarjetaDebitoBean.gotoGirar()}" style="width: 200px">
|
||||
<li class="fas fa-hand-holding-usd"></li> Girar
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 dib w-20 white bg-blue" action="#{tarjetaDebitoBean.gotoTransferir()}">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 ma2 dib white bg-blue" action="#{tarjetaDebitoBean.gotoTransferir()}" style="width: 200px">
|
||||
<li class="fas fa-comments-dollar"></li> Transferir
|
||||
</h:commandLink>
|
||||
<h:commandLink class="f5 tc link dim br2 ph3 pv2 ml2 dib w-20 white bg-purple" action="#{tarjetaDebitoBean.gotoComprar()}">
|
||||
<h:commandLink class="f5 fr tc link dim br2 ph3 pv2 ma2 dib white bg-purple" action="#{tarjetaDebitoBean.gotoComprar()}" style="width: 200px">
|
||||
<li class="fas fa-shopping-basket"></li> Comprar
|
||||
</h:commandLink>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1 class="f1">Depositos</h1>
|
||||
|
||||
<h1 class="f3">Depositos</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.depositoList}" var="deposito">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{deposito.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -71,6 +71,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Metodo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{deposito.metodo.nombre}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
@@ -78,16 +84,15 @@
|
||||
<h:outputLabel value="#{deposito.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f1">Giros</h1>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f3">Giros</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.giroList}" var="giro">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{giro.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
@@ -95,6 +100,12 @@
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.comentario}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Metodo"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{giro.metodo.nombre}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Monto"/>
|
||||
@@ -102,17 +113,18 @@
|
||||
<h:outputLabel value="#{giro.monto}"/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h1 class="f1">Transferencias Hechas</h1>
|
||||
<h1 class="f3">Transferencias Hechas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.transferenciaFromList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column><h:column>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Destinatario"/>
|
||||
</f:facet>
|
||||
@@ -132,16 +144,17 @@
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<h1 class="f1">Transferencias Recibidas</h1>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f3">Transferencias Recibidas</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.transferenciaToList}" var="transferencia">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
</h:column><h:column>
|
||||
<h:outputLabel value="#{transferencia.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Emisor"/>
|
||||
</f:facet>
|
||||
@@ -162,15 +175,15 @@
|
||||
</h:dataTable>
|
||||
</h:form>
|
||||
|
||||
<h1 class="f1">Compras</h1>
|
||||
<hr/>
|
||||
|
||||
<h1 class="f3">Compras</h1>
|
||||
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.tarjetaDebito.compraList}" var="compra">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputLabel value="Fecha"/>
|
||||
</f:facet>
|
||||
<h:outputLabel value="#{compra.insertedAt}">
|
||||
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
||||
</h:outputLabel>
|
||||
<h:outputLabel value="#{compra.insertedAt}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
|
||||
Reference in New Issue
Block a user