Files
gateway-dbc-fx/gnpdev/dbcfxgo/web/res/content/searchNngRecipient.jsp
2024-05-09 17:40:24 +02:00

354 lines
23 KiB
Plaintext

<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<h:form>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" >
<tr>
<td>
<rich:panel header="NP NG - Cerca richiesta Recipient" style="cellpadding:0px;cellspacing:0px;width:100%;text-align:center;">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="4">
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="nng" style="color:black;font-weight:bold;" value="Numerazione NG: " />
</rich:column>
<rich:column>
<t:inputText id="nng" value="#{nng_recipient.nng}"></t:inputText>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="codiceFiscalePiva" style="color:black;font-weight:bold;" value="CF / P.IVA: " />
</rich:column>
<rich:column>
<t:inputText id="codiceFiscalePiva" value="#{nng_recipient.codiceFiscalePiva}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="dataOrdine" style="color:black;font-weight:bold;" value="Data Ordine: " />
</rich:column>
<rich:column>
<rich:calendar id="dataOrdine" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{nng_recipient.dataOrdine}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="onlyKO" style="color:black;font-weight:bold;align:center" value="Mostra solo KO:" />
</rich:column>
<rich:column>
<t:selectBooleanCheckbox id="onlyKO" value="#{nng_recipient.onlyKO}">
<a4j:actionparam name="editable" value="true" assignTo="#{nng_recipient.onlyKO}"/>
</t:selectBooleanCheckbox>
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
<tr>
<td>
<rich:separator lineType="solid" />
</td>
</tr>
<tr align="center" style="background-color: #CCCCCC;">
<td align="center">
<rich:panel style="text-align:center;width:100%;">
<h:panelGrid columns="1" width="100%" style="background-color: #CCCCCC; text-align:center;" align="center">
<rich:column>
<h:panelGrid columns="2">
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="#{msg.button_search}"
action="#{nng_recipient.searchTestata}"
title="Cerca"/>
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
<tr>
<td>
<rich:dataTable value="#{nng_recipient.listaTestate}" width="100%" var="item" id="listaTestate" rows="30" style="text-align: center" columnClasses="col" rendered="#{nng_recipient.richiesteSize gt 0}">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Codice Esigenza"/>
</rich:column>
<rich:column>
<h:outputText value="Codice Ordine Fenp"/>
</rich:column>
<rich:column>
<h:outputText value="Data Ordine"/>
</rich:column>
<rich:column>
<h:outputText value="Numerazione NG" />
</rich:column>
<rich:column>
<h:outputText value="Codice Fiscale/P.IVA" />
</rich:column>
<rich:column>
<h:outputText value="Donating" />
</rich:column>
<rich:column>
<h:outputText value="DAC" />
</rich:column>
<rich:column>
<h:outputText value="Tipo Scarto" />
</rich:column>
<rich:column>
<h:outputText value="Descrizione Scarto" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:columnGroup>
<rich:column>
<h:outputText id="showLink" value="#{item.idEsigenza}"
onclick="showDiv#{item.rowId}();hideShowLink#{item.rowId}();showHideLink#{item.rowId}()"
styleClass="myLink1"/>
<h:outputText id="hideLink" value="#{item.idEsigenza}"
onclick="hideDiv#{item.rowId}();hideHideLink#{item.rowId}();showShowLink#{item.rowId}()"
styleClass="myLink2" style="display: none;"/>
<rich:effect name="hideShowLink#{item.rowId}" for="showLink" type="Fade" />
<rich:effect name="showShowLink#{item.rowId}" for="showLink" type="Appear" params="delay:1.5,duration:0.7" />
<rich:effect name="showHideLink#{item.rowId}" for="hideLink" params="delay:1.5,duration:0.7" type="Appear" />
<rich:effect name="hideHideLink#{item.rowId}" for="hideLink" type="Fade" />
<rich:effect name="hideDiv#{item.rowId}" params="duration:0.8" type="BlindUp" for="panelloDettaglio" />
<rich:effect name="showDiv#{item.rowId}" for="panelloDettaglio" type="BlindDown" params="duration:0.8"/>
</rich:column>
<rich:column>
<h:outputText value="#{item.codiceOrdine}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy}">
<f:param value="#{item.dataOrdine}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{item.nng}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.codiceFiscalePIVA}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.codOperatore}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy}">
<f:param value="#{item.dac}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{item.tipoScarto}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.descrizioneScarto}" />
</rich:column>
</rich:columnGroup>
<rich:column colspan="9" >
<rich:panel id="panelloDettaglio" style="display: none;" >
<h:panelGrid columns="1" width="100%">
<rich:dataTable value="#{nng_recipient.listaRichieste}" width="100%" var="recList" id="listaRichieste" style="text-align: center" columnClasses="col" rendered="#{nng_recipient.richiesteSize gt 0}">
<rich:columnGroup rendered="#{(recList.idEsigenza) eq (item.idEsigenza)}">
<rich:column>
<rich:panel id="panelloSingleReq" style="display: block;" >
<h:panelGrid columns="4" width="100%">
<h:panelGroup>
<h:outputText value="Tipo Comunicazione : " styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.tipoComunicazione}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Codice Ordine : " styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.codiceOrdine}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Data invio richiesta : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputFormat value="{0, date, dd-MM-yyyy}" style="color:black;font-weight:bold;"
rendered="#{recList.dataInvioRichiesta != null}">
<f:param value="#{recList.dataInvioRichiesta}"/>
</h:outputFormat>
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Numerazione NG : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{recList.NNG}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Tipo Servizio : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.tipoServizio}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="OLO Donating : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{recList.codOpDonating}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="OP ID : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.codOperatore}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Stato : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{recList.stato}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Codice rifiuto : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{recList.codiceRifiuto}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Descrizione rifiuto : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.descrizioneRifiuto}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Cod.Progetto : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.codiceProgetto}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Nome file Fenp : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{recList.nomeFileFenp}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="DAC : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputFormat value="{0, date, dd-MM-yyyy}" style="color:black;font-weight:bold;"
rendered="#{recList.dac != null}">
<f:param value="#{recList.dac}"/>
</h:outputFormat>
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Data espletamento ordine : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputFormat value="{0, date, dd-MM-yyyy}" style="color:black;font-weight:bold;"
rendered="#{recList.dataEspletamento != null}">
<f:param value="#{recList.dataEspletamento}"/>
</h:outputFormat>
</h:panelGroup>
</h:panelGrid>
</rich:panel>
</rich:column>
</rich:columnGroup>
</rich:dataTable>
</h:panelGrid>
</rich:panel>
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="20" fastStep="21" renderIfSinglePage="false" />
</f:facet>
</rich:dataTable>
<rich:spacer width="1" height="5"/>
</td>
</tr>
<tr>
<td>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
</td>
</tr>
</table>
</h:form>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" >
<tr>
<td>
<h:form id="formInviaRichiestaRecipient" rendered="#{(user.codiceProfilo eq 'OR') or (user.codiceProfilo eq 'ON')}">
<rich:panel header="Notifica RDAC o Annullamento Recipient" style="cellpadding:0px;cellspacing:0px;width:100%;text-align:center;">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="4">
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="codiceOrdineTC7" style="color:black;font-weight:bold;" value="Codice Esigenza: " />
</rich:column>
<rich:column>
<t:inputText id="codiceOrdineTC7" value="#{tc2Don.selectedOrdine}"></t:inputText>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel style="color:black;font-weight:bold;" value="Tipo Operazione:" />
</rich:column>
<rich:column>
<t:selectOneMenu value="#{tc2Don.tipoComunicazioneRec}">
<f:selectItem itemLabel="7 - Rimodulazione DAC" itemValue="7" />
<f:selectItem itemLabel="8 - Annullamento" itemValue="8" />
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="rDAC" style="color:black;font-weight:bold;" value="RDAC:" />
</rich:column>
<rich:column>
<rich:calendar id="rDAC" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{tc2Don.rDAC}"/>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel style="color:black;font-weight:bold;" value="" />
</rich:column>
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="Invia Notifica"
onclick="return confirm('Sei sicuro di voler procedere all\'invio?')"
action="#{tc2Don.sendRDAC}" title="Invia Notifica"/>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
</rich:column>
<rich:column>
<t:outputLabel id="compilazioneKO" value="#{tc2Don.erroreCompilazione}" style="color:red;font-weight:bold;" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<rich:column>
</rich:column>
<rich:column>
<t:outputLabel id="compilazioneOK" value="#{tc2Don.compilazioneCorretta}" style="color:green;font-weight:bold;" />
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
</rich:panel>
</h:form>
</td>
</tr>
</table>