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:
Daniel Cortés
2019-07-22 05:04:58 -04:00
parent c21919db55
commit bd70170c32
50 changed files with 2156 additions and 1517 deletions

View File

@@ -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>

View File

@@ -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()}">

View 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>

View 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>

View 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_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>

View File

@@ -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>

View File

@@ -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>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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"/>

View File

@@ -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">