213 lines
12 KiB
Plaintext
213 lines
12 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 - Nuova 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="tipoComunicazione" style="color:black;font-weight:bold;" value="Tipo Comunicazione: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:inputText id="tipoComunicazione" value="1" disabled="true"/>
|
|
</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="tipoServizio" style="color:black;font-weight:bold;" value="Tipo Servizio: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="tipoServizio" onchange="dacVisible()" value="#{nng_recipient.tipoServizio}">
|
|
<f:selectItem id="servizio0" itemLabel="0 - Addebito al chiamato" itemValue="0" />
|
|
<f:selectItem id="servizio1" itemLabel="1 - Addebito ripartito" itemValue="1" />
|
|
<f:selectItem id="servizio2" itemLabel="2 - Addebito al chiamante" itemValue="2" />
|
|
</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="nng" style="color:black;font-weight:bold;" value="Numerazione NG: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:inputText id="nng" maxlength="12" 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" maxlength="16" 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="oloDonating" style="color:black;font-weight:bold;" value="OLO Donating" />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:inputText id="oloDonating" maxlength="3" value="#{nng_recipient.oloDonating}" />
|
|
</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="dac" style="color:black;font-weight:bold;" value="DAC: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<rich:calendar id="dac" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{nng_recipient.dac}" />
|
|
</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="codiceProgetto" style="color:black;font-weight:bold;" value="Codice Progetto: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:inputText id="codiceProgetto" maxlength="10" value="#{nng_recipient.codiceProgetto}" />
|
|
</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="idOperatore" style="color:black;font-weight:bold;" value="ID Operatore: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="idOperatore" onchange="dacVisible()" value="#{nng_recipient.idOperatore}">
|
|
<f:selectItem id="op01" itemLabel="204" itemValue="204" />
|
|
<f:selectItem id="op02" itemLabel="244" itemValue="244" />
|
|
</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="mailAddress" style="color:black;font-weight:bold;" value="Email: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:inputText id="mailAddress" value="#{nng_recipient.mailAddress}" />
|
|
</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="Dac minima: " />
|
|
</rich:column>
|
|
<rich:column>
|
|
<h:outputLabel style="color:red;font-weight:bold;" value="Tipo Servizio 0/1: " />
|
|
<h:outputFormat value="{0, date, dd-MM-yyyy}">
|
|
<f:param value="#{nng_recipient.dacIdeale01}"/>
|
|
</h:outputFormat>
|
|
</rich:column>
|
|
<rich:column>
|
|
<h:outputLabel style="color:red;font-weight:bold;" value="Tipo Servizio 2: " />
|
|
<h:outputFormat value="{0, date, dd-MM-yyyy}">
|
|
<f:param value="#{nng_recipient.dacIdeale02}"/>
|
|
</h:outputFormat>
|
|
</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>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:outputLabel id="compilazioneKO" value="#{nng_recipient.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="#{nng_recipient.compilazioneCorretta}" style="color:green;font-weight:bold;" />
|
|
</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_insert}"
|
|
action="#{nng_recipient.inserisciRichiesta}"
|
|
onclick="return confirm('Vuoi confermare invio notifica con i parametri inseriti?')"
|
|
title="Inserisci"/>
|
|
</rich:column>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
</h:panelGrid>
|
|
</rich:panel>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
|
|
<rich:separator lineType="solid" width="100%" />
|
|
<rich:spacer width="1" height="5"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</h:form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
/*
|
|
function dacVisible(){
|
|
|
|
if(document.getElementById('servizio2').selected=true) {
|
|
document.getElementById('dac1').style.display = 'none';
|
|
document.getElementById('dac2').style.display = 'block';
|
|
} else {
|
|
document.getElementById('dac2').style.display = 'none';
|
|
document.getElementById('dac1').style.display = 'block';
|
|
}
|
|
}*/
|
|
|
|
</script>
|