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

418 lines
28 KiB
Plaintext
Raw Blame History

<%@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 id="formCercaRichiestaDonating">
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" >
<tr>
<td>
<rich:panel header="NP NG - Cerca richiesta Donating" 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_donating.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_donating.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_donating.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_donating.onlyKO}">
<a4j:actionparam name="editable" value="true" assignTo="#{nng_donating.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_donating.searchTestata}"
title="Cerca"/>
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
<tr>
<td>
<rich:dataTable value="#{nng_donating.listaTestate}" width="100%" var="item" id="listaTestate" rows="30" style="text-align: center" columnClasses="col" rendered="#{nng_donating.richiesteSize gt 0}">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Codice Ordine"/>
</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="Recipient" />
</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.codiceOrdine}"
onclick="showDiv#{item.rowId}();hideShowLink#{item.rowId}();showHideLink#{item.rowId}()"
styleClass="myLink1"/>
<h:outputText id="hideLink" value="#{item.codiceOrdine}"
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: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.codOpRecipient}" />
</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_donating.listaRichieste}" width="100%" var="donList" id="listaRichieste" style="text-align: center" columnClasses="col" rendered="#{nng_donating.richiesteSize gt 0}">
<rich:columnGroup rendered="#{(donList.codiceOrdine) eq (item.codiceOrdine)}">
<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="#{donList.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="#{donList.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="#{donList.dataInvioRichiesta != null}">
<f:param value="#{donList.dataInvioRichiesta}"/>
</h:outputFormat>
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Numerazione NG : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{donList.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="#{donList.tipoServizio}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Recipient : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{donList.codOpRecipient}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="OP ID : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{donList.codOperatore}" style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="Stato : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText
value="#{donList.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="#{donList.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="#{donList.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="#{donList.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="#{donList.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="#{donList.dac != null}">
<f:param value="#{donList.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="#{donList.dataEspletamento != null}">
<f:param value="#{donList.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>
</table>
</h:form>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" >
<tr>
<td>
<h:form id="formInviaRichiestaDonating" rendered="#{(user.codiceProfilo eq 'OD') or (user.codiceProfilo eq 'ON')}">
<rich:panel header="NP NG - Invia risposta Donating" 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="codiceOrdineTC2" style="color:black;font-weight:bold;" value="Codice Ordine: " />
</rich:column>
<rich:column>
<t:inputText id="codiceOrdineTC2" 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 Esito:" />
</rich:column>
<rich:column>
<t:selectOneMenu value="#{tc2Don.tipoScarto}" style="width:250px;">
<f:selectItem itemLabel="0 - Accetta la Richiesta" itemValue="0" />
<t:selectItems value="#{nng.listaNpNng}" var="item2" itemLabel="#{item2.codiceRifiuto} - #{item2.descrizioneRifiuto}" itemValue="#{item2.codiceRifiuto}"/>
<%--<f:selectItem itemLabel="1 - Numerazione non attiva presso il Donating" itemValue="1" />
<f:selectItem itemLabel="2 - Associazione tipo servizio / tipo numero non compatibile" itemValue="2" />
<f:selectItem itemLabel="3 - Errata associazione tra NNG e Codice Fiscale / Partita IVA" itemValue="3" />
<f:selectItem itemLabel="4 - Codice Operatore Recipient inesistente" itemValue="4" />
<f:selectItem itemLabel="5 - Codice Ordine Recipient duplicato" itemValue="5" />
<f:selectItem itemLabel="6 - DAC errata " itemValue="6" />
<f:selectItem itemLabel="7 - CODICE PROGETTO errato" itemValue="7" />
<f:selectItem itemLabel="8 - Altro ordine in corso" itemValue="8" />
<f:selectItem itemLabel="9 - Richiesta oltre DATA + 90 gg solari" itemValue="9" />
<f:selectItem itemLabel="10 - DATA ORDINE non corretta" itemValue="10" />
<f:selectItem itemLabel="11 - NNG non assegnato all'Operatore assegnatario della numerazione" itemValue="11" />
<f:selectItem itemLabel="12 - NNG gia restituita" itemValue="12" />
<f:selectItem itemLabel="13 - NNG non portato" itemValue="13" />--%>
</t:selectOneMenu>
</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>
</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 Risposta"
onclick="return confirm('Sei sicuro di voler procedere all\'invio?')"
action="#{tc2Don.searchTC1}" title="Invia Risposta"/>
</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>
<rich:modalPanel resizeable="true" id="idPopupRifiutaRichiesta">
<f:facet name="header">
<h:panelGroup>
<h:outputText value=" Conferma Rifiuta Richiesta " />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupRifiutaRichiesta');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formRifiutaRichiesta">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelRifiutaRichiesta" columns="2">
<rich:column width="30%">
<h:outputLabel style="color:black;font-weight:bold;" value="Codice Ordine:" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{nng_donating.selectedOrdine.codiceOrdine}" />
</rich:column>
<rich:column width="30%">
<h:outputLabel style="color:black;font-weight:bold;" value="Tipo Scarto:" />
</rich:column>
<rich:column>
<t:selectOneMenu value="#{nng_donating.tipoScarto}" style="width:250px;">
<f:selectItem itemLabel="1 - Numerazione non attiva presso il Donating" itemValue="1" />
<f:selectItem itemLabel="2 - Associazione tipo servizio / tipo numero non compatibile" itemValue="2" />
<f:selectItem itemLabel="3 - Errata associazione tra NNG e Codice Fiscale / Partita IVA" itemValue="3" />
<f:selectItem itemLabel="4 - Codice Operatore Recipient inesistente" itemValue="4" />
<f:selectItem itemLabel="5 - Codice Ordine Recipient duplicato" itemValue="5" />
<f:selectItem itemLabel="6 - DAC errata " itemValue="6" />
<f:selectItem itemLabel="7 - CODICE PROGETTO errato" itemValue="7" />
<f:selectItem itemLabel="8 - Altro ordine in corso" itemValue="8" />
<f:selectItem itemLabel="9 - Richiesta oltre DATA + 90 gg solari" itemValue="9" />
<f:selectItem itemLabel="10 - DATA ORDINE non corretta" itemValue="10" />
<f:selectItem itemLabel="11 - NNG non assegnato all'Operatore assegnatario della numerazione" itemValue="11" />
<f:selectItem itemLabel="12 - NNG gi<67> restituita" itemValue="12" />
<f:selectItem itemLabel="13 - NNG non portato" itemValue="13" />
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
<h:panelGrid align="center" cellspacing="5" columns="2">
<rich:column colspan="2">
<h:commandButton type="submit" style="cursor: pointer;" value="Rifiuta"
action="#{nng_donating.rifiutaRichiesta}"
title="Rifiuta Richiesta"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:modalPanel>
<script language="JavaScript">
var chk_flg = 0;
function ctrl_chk() {
var ok = 0;
if (ok == 0) {
chk_flg = 1;
return confirm('Sei sicuro di volere procedere?');
}
}
</script>