AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

This commit is contained in:
Daniel Cortés
2019-07-22 14:40:23 -04:00
parent d70c3bc435
commit 63939f4577
10 changed files with 704 additions and 50 deletions

View File

@@ -28,6 +28,7 @@
</h:commandLink>
</div>
<h1 class="f1 tc">Clientes</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{clienteBean.clienteList}" var="cliente">
<h:column>
<f:facet name="header">
@@ -59,6 +60,326 @@
</h:commandLink>
</h:column>
</h:dataTable>
<hr/>
<h1 class="f2 tc">Transacciones en cuentas corrientes</h1>
<h1 class="f3 tc">Depositos</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{deposito.cuentaCorriente.id}"/>
</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="#{cuentaCorrienteBean.gotoDeleteDeposito(deposito)}">
<li class="fas fa-trash"></li>
</h:commandLink>
</h:column>
</h:dataTable>
<hr/>
<h1 class="f3 tc">Giros</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{giro.cuentaCorriente.id}"/>
</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="#{cuentaCorrienteBean.gotoDeleteGiro(giro)}">
<li class="fas fa-trash"></li>
</h:commandLink>
</h:column>
</h:dataTable>
<hr/>
<h1 class="f3 tc">Transferencias</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{cuentaCorrienteBean.transferenciaList}" 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.cuentaCorrienteFrom.id}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel value="Destinatario"/>
</f:facet>
<h:outputLabel value="#{transferencia.cuentaCorrienteTo.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="#{cuentaCorrienteBean.gotoDeleteTransferencia(transferencia)}">
<li class="fas fa-trash"></li>
</h:commandLink>
</h:column>
</h:dataTable>
<hr/>
<h1 class="f2 tc">Transacciones en tarjetas de debito</h1>
<h1 class="f3 tc">Depositos</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{deposito.tarjetaDebito.id}"/>
</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>
<hr/>
<h1 class="f3 tc">Giros</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{giro.tarjetaDebito.id}"/>
</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>
<hr/>
<h1 class="f3 tc">Transferencias</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.transferenciaList}" 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="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>
<hr/>
<h1 class="f3 tc">Compras</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaDebitoBean.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{compra.tarjetaDebito.id}"/>
</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>
<hr/>
<h1 class="f2 tc">Transacciones en tarjetas de credito</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.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="Cuenta"/>
</f:facet>
<h:outputLabel value="#{compra.tarjetaCredito.id}"/>
</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="Tipo de Compra"/>
</f:facet>
<h:outputLabel value="#{compra.tipo}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel value="Monto"/>
</f:facet>
<h:outputLabel value="#{compra.monto}"/>
</h:column>
</h:dataTable>
<hr/>
<h1 class="f3">Pagos</h1>
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3 bg-white" value="#{tarjetaCreditoBean.pagoList}" var="pago">
<h:column>
<f:facet name="header">
<h:outputLabel value="Fecha"/>
</f:facet>
<h:outputLabel value="#{pago.insertedAt}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel value="Cuenta"/>
</f:facet>
<h:outputLabel value="#{pago.tarjetaCredito.id}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel value="Comentario"/>
</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"/>
</f:facet>
<h:outputLabel value="#{pago.monto}"/>
</h:column>
</h:dataTable>
</h:form>
<h:form rendered="#{!userBean.isLogged()}">