- PÓLIZAS - CORRECCIÓN DE LOS BOTONES DE CASTELAR Y DESHABILITAR SE CAMBIARON A DESHABILITAR CON REMBOLSO Y A DESHABILITAR CON REMBOLSO Y LAS PÓLIZAS DEBILITADAS SE PASAN AL ESTATUS DE CANCELADO
This commit is contained in:
parent
ad874525ee
commit
c25c82d7f4
@ -238,6 +238,7 @@ public class PolizaController extends ConnectionManager implements Serializable
|
||||
|
||||
query.set(root.get("comentarios"), comentario);
|
||||
query.set(root.get("active"), false);
|
||||
query.set(root.get("estatus"), PolizaEstatus.CANCELADO);
|
||||
query.set(root.get("lastUpdatedBy"), lastUpdatedBy);
|
||||
query.set(root.get("lastUpdatedOn"), new Date());
|
||||
|
||||
|
@ -137,7 +137,7 @@
|
||||
|
||||
<p:commandButton
|
||||
icon="ui-icon-close"
|
||||
title="Cancelar póliza"
|
||||
title="Cancelar con reembolso"
|
||||
class="rounded-button"
|
||||
style="background: red"
|
||||
oncomplete="PF('eliminarPoliza').show()"
|
||||
@ -146,10 +146,10 @@
|
||||
rendered="#{data.active and data.estatus ne 'CANCELADO'}">
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
|
||||
<p:commandButton title="Deshabilitar póliza" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
<p:commandButton title="Cancelar sin reembolso" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
style="background-color: gray; padding-top: 1em" icon="ui-icon-minusthick" action="#{polizaBean.deleteRow()}" update="form" >
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
<p:confirm header="Deshabilitar póliza" message="¿Está seguro de deshabilitar esta póliza?" icon="pi pi-info-circle"/>
|
||||
<p:confirm header="Cancelar sin reembolso" message="¿Está seguro de cancelar esta póliza sin reembolso ?" icon="pi pi-info-circle"/>
|
||||
</p:commandButton>
|
||||
|
||||
</p:commandButton>
|
||||
@ -273,7 +273,7 @@
|
||||
|
||||
<p:commandButton
|
||||
icon="ui-icon-close"
|
||||
title="Cancelar póliza"
|
||||
title="Cancelar con reembolso"
|
||||
class="rounded-button"
|
||||
style="background: red; padding-top: 1em"
|
||||
oncomplete="PF('eliminarPoliza').show()"
|
||||
@ -282,10 +282,10 @@
|
||||
rendered="#{data.active and data.estatus ne 'CANCELADO'}">
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
|
||||
<p:commandButton title="Deshabilitar póliza" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
<p:commandButton title="Cancelar sin reembolso" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
style="background-color: gray; padding-top: 1em" icon="ui-icon-minusthick" action="#{polizaBean.deleteRow()}" update="form" >
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
<p:confirm header="Deshabilitar póliza" message="¿Está seguro de deshabilitar esta póliza?" icon="pi pi-info-circle"/>
|
||||
<p:confirm header="Cancelar sin reembolso" message="¿Está seguro de cancelar esta póliza sin reembolso ?" icon="pi pi-info-circle"/>
|
||||
</p:commandButton>
|
||||
|
||||
</p:commandButton>
|
||||
@ -413,7 +413,7 @@
|
||||
|
||||
<p:commandButton
|
||||
icon="ui-icon-close"
|
||||
title="Cancelar póliza"
|
||||
title="Cancelar con reembolso"
|
||||
class="rounded-button"
|
||||
style="background: red"
|
||||
oncomplete="PF('eliminarPoliza').show()"
|
||||
@ -422,10 +422,10 @@
|
||||
rendered="#{data.active and data.estatus ne 'CANCELADO'}">
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
|
||||
<p:commandButton title="Deshabilitar póliza" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
<p:commandButton title="Cancelar sin reembolso" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
style="background-color: gray; padding-top: 1em" icon="ui-icon-minusthick" action="#{polizaBean.deleteRow()}" update="form" >
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
<p:confirm header="Deshabilitar póliza" message="¿Está seguro de deshabilitar esta póliza?" icon="pi pi-info-circle"/>
|
||||
<p:confirm header="Cancelar sin reembolso" message="¿Está seguro de cancelar esta póliza sin reembolso ?" icon="pi pi-info-circle"/>
|
||||
</p:commandButton>
|
||||
|
||||
</p:commandButton>
|
||||
@ -552,7 +552,7 @@
|
||||
|
||||
<p:commandButton
|
||||
icon="ui-icon-close"
|
||||
title="Cancelar póliza"
|
||||
title="Cancelar con reembolso"
|
||||
class="rounded-button"
|
||||
style="background: red; padding-top: 1em"
|
||||
oncomplete="PF('eliminarPoliza').show()"
|
||||
@ -561,10 +561,10 @@
|
||||
rendered="#{data.active and data.estatus ne 'CANCELADO'}">
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
|
||||
<p:commandButton title="Deshabilitar póliza" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
<p:commandButton title="Cancelar sin reembolso" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
style="background-color: gray; padding-top: 1em" icon="ui-icon-minusthick" action="#{polizaBean.deleteRow()}" update="form" >
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
<p:confirm header="Deshabilitar póliza" message="¿Está seguro de deshabilitar esta póliza?" icon="pi pi-info-circle"/>
|
||||
<p:confirm header="Cancelar sin reembolso" message="¿Está seguro de cancelar esta póliza sin reembolso ?" icon="pi pi-info-circle"/>
|
||||
</p:commandButton>
|
||||
|
||||
</p:commandButton>
|
||||
@ -666,7 +666,7 @@
|
||||
|
||||
<p:commandButton
|
||||
icon="ui-icon-close"
|
||||
title="Cancelar póliza"
|
||||
title="Cancelar con reembolso"
|
||||
class="rounded-button"
|
||||
style="background: red; padding-top: 1em"
|
||||
oncomplete="PF('eliminarPoliza').show()"
|
||||
@ -675,10 +675,10 @@
|
||||
rendered="#{data.active and data.estatus ne 'CANCELADO'}">
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
|
||||
<p:commandButton title="Deshabilitar póliza" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
<p:commandButton title="Cancelar sin reembolso" rendered="#{data.active}" styleClass="edit-button rounded-button ui-button-secondary"
|
||||
style="background-color: gray; padding-top: 1em" icon="ui-icon-minusthick" action="#{polizaBean.deleteRow()}" update="form" >
|
||||
<f:setPropertyActionListener value="#{data}" target="#{polizaBean.selectedPoliza}"/>
|
||||
<p:confirm header="Deshabilitar póliza" message="¿Está seguro de deshabilitar esta póliza?" icon="pi pi-info-circle"/>
|
||||
<p:confirm header="Cancelar sin reembolso" message="¿Está seguro de cancelar esta póliza sin reembolso ?" icon="pi pi-info-circle"/>
|
||||
</p:commandButton>
|
||||
|
||||
</p:commandButton>
|
||||
@ -1279,7 +1279,7 @@
|
||||
</h:form>
|
||||
|
||||
<h:form id="eliminarPolizaForm">
|
||||
<p:dialog header="Cancelar póliza" widgetVar="eliminarPoliza" modal="true" height="30%" width="30%" id="eliminarPoliza">
|
||||
<p:dialog header="Cancelar póliza con reembolso" widgetVar="eliminarPoliza" modal="true" height="30%" width="30%" id="eliminarPoliza">
|
||||
<p:ajax event="close" update="eliminarPolizaForm" listener="#{polizaBean.resetSelectedComentario}" />
|
||||
<p:outputPanel>
|
||||
<div class="taxy-padding" style="padding-top: 2em">
|
||||
|
Loading…
Reference in New Issue
Block a user