First Commit from Source Code Reply

This commit is contained in:
vincenzofariello
2024-05-09 17:40:24 +02:00
parent 11e3b57c5b
commit 107a016cb9
35225 changed files with 1111346 additions and 1 deletions

View File

@@ -0,0 +1,419 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<a4j:region>
<h:form id="poll_form">
<a4j:poll id="poll" interval="#{monitoring.pollInterval}"
action="#{monitoring.viewAction}" enabled="#{monitoring.pollEnabled}"
reRender="poll,panel_requestView" />
</h:form>
</a4j:region>
<h:form id="monitoring_form">
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%">
<tr width="100%">
<td>
<rich:panel header="#{msg.header_semaforo}" style="cellpadding=0px;cellspacing=0px;width:100%;text-align:left;">
<h:panelGrid align="center" cellpadding="0" border="0" cellspacing="0" columns="3">
<rich:column width="33%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<h:outputLabel for="filtroProcesso" style="color:black;font-weight:bold;" value="#{msg.label_selectProcess}" />
<t:selectOneMenu style="width:170px;" value="#{monitoring.filter.processo}">
<t:selectItems value="#{lov.listaProcessi}" var="item" itemLabel="#{item.descr}" itemValue="#{item.name}"/>
</t:selectOneMenu>
</h:panelGrid>
</rich:column>
<rich:column width="33%">
<h:panelGrid columns="1" cellpadding="0" border="0" cellspacing="0">
<h:panelGroup>
<h:outputLabel for="dateFrom" value="#{msg.label_intervalDateFrom}" style="color:black;font-weight:bold;" />
<rich:calendar id="calDateFrom" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy"
enableManualInput="false" requiredMessage="required message"
value="#{monitoring.filter.dateFrom}" />
</h:panelGroup>
</h:panelGrid>
</rich:column>
<rich:column width="33%">
<h:panelGrid columns="1">
<h:panelGroup>
<h:outputLabel for="dateTo" value="#{msg.label_intervalDateTo}" style="color:black;font-weight:bold;" />
<rich:calendar id="calDateTo" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy"
enableManualInput="false" requiredMessage="required message"
value="#{monitoring.filter.dateTo}">
<f:validator validatorId="DateCompareValidator" />
<f:attribute name="operator" value="ge" />
<f:attribute name="compareWith" value="main:monitoring_form:calDateFrom" />
<f:attribute name="compareFieldName" value="Start Date" />
</rich:calendar>
</h:panelGroup>
</h:panelGrid>
</rich:column>
</h:panelGrid>
<rich:spacer height="10" />
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="1" width="90%">
<rich:column>
<rich:message for="calDateTo" errorLabelClass="error">
<f:facet name="errorMarker">
<h:graphicImage value="/resources/images/error_small.gif" />
</f:facet>
</rich:message>
</rich:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
<tr align="center" style="background-color: #CCCCCC;">
<td align="center">
<rich:panel style="text-align:center;width:100%;">
<h:panelGrid columns="1" styleClass="button" width="100%" rowClasses="buttonReport" style="background-color: #CCCCCC; text-align:center;" align="center">
<h:column>
<a4j:commandButton id="buttonId"
action="#{monitoring.viewAction}" value="#{msg.button_view}" type="submit"
status="semaforoViewStatus" reRender="panel_semaforoView"
onclick="Richfaces.showModalPanel('loadingPanel');" oncomplete="Richfaces.hideModalPanel('loadingPanel');"/>
</h:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
<tr>
<td align="center">
<a4j:region id="region_semaforo">
<rich:modalPanel shadowDepth="1" shadowOpacity="4" styleClass="rich-mpnl-shadow" style="background-color:#FFFFFF; filter:alpha( opacity=80); border:2 outset;border-color:#AAAAFF;" width="252" height="232" id="loadingPanel" autosized="true" zindex="100" left="500" top="150">
<h:graphicImage alt="loading..." width="250" height="230" style="align:center;" value="/resources/images/loading_aqua.gif" />
</rich:modalPanel>
<a4j:outputPanel id="out_panel_semaforoView" ajaxRendered="true"
style="width:100%;align:center;" layout="block">
<a4j:status id="semaforoViewStatus" layout="block"
style="width:100%;align:center;">
<f:facet name="start">
</f:facet>
<f:facet name="stop">
<rich:panel id="panel_semaforoView"
rendered="#{(monitoring.view ne null) and (monitoring.viewSize gt 0)}"
style="cellpadding=0px;cellspacing=0px;width:100%;text-align:center;">
<rich:spacer height="20" />
<rich:dataTable width="60%" id="view_table" rows="30"
columnClasses="col" value="#{monitoring.view}" var="colonna"
border="1"
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
style="border-style: solid; border-width: 2px; align:center;">
<f:facet name="header">
<h:outputFormat value="#{msg.semaforo_table_header}">
<f:param value="#{monitoring.filter.processo}" />
<f:param value="#{monitoring.lastUpdate}" />
</h:outputFormat>
</f:facet>
<rich:column rendered="false">
<h:outputText value="#{colonna[0]}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{msg.semaforo_table_STATO}" />
</f:facet>
<h:outputText value="#{colonna[1]}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column style="font-weight:bold;text-align:center;">
<f:facet name="header">
<t:graphicImage
value="/resources/images/semaforo_small_green.gif"
align="center"></t:graphicImage>
</f:facet>
<a4j:commandLink value="#{colonna[2]}"
action="#{monitoring.viewRequestAction}"
style="text-decoration:none" reRender="panel_requestView"
rendered="#{(colonna[2] ne '0')}" status="requestViewStatus"
onclick="Richfaces.showModalPanel('loadingPanel');" oncomplete="Richfaces.hideModalPanel('loadingPanel');">
<f:param name="selectedStateId" value="#{colonna[0]}" />
<f:param name="selectedState" value="#{colonna[1]}" />
<f:param name="selectedPos" value="2" />
<f:param name="selectedCount" value="#{colonna[2]}" />
</a4j:commandLink>
<h:outputText value="#{colonna[2]}"
rendered="#{(colonna[2] eq '0')}"
style="color:black;font-weight:bold;font-size:11;" />
</rich:column>
<rich:column style="font-weight:bold;text-align:center;">
<f:facet name="header">
<t:graphicImage
value="/resources/images/semaforo_small_yellow.gif"
align="center"></t:graphicImage>
</f:facet>
<a4j:commandLink value="#{colonna[3]}"
action="#{monitoring.viewRequestAction}"
style="text-decoration:none" reRender="panel_requestView"
rendered="#{(colonna[3] ne '0')}" status="requestViewStatus"
onclick="Richfaces.showModalPanel('loadingPanel');" oncomplete="Richfaces.hideModalPanel('loadingPanel');">
<f:param name="selectedStateId" value="#{colonna[0]}" />
<f:param name="selectedState" value="#{colonna[1]}" />
<f:param name="selectedPos" value="3" />
<f:param name="selectedCount" value="#{colonna[3]}" />
</a4j:commandLink>
<h:outputText value="#{colonna[3]}"
rendered="#{(colonna[3] eq '0')}"
style="color:black;font-weight:bold;font-size:11;" />
</rich:column>
<rich:column style="font-weight:bold;text-align:center;">
<f:facet name="header">
<t:graphicImage
value="/resources/images/semaforo_small_red.gif"
align="center"></t:graphicImage>
</f:facet>
<a4j:commandLink value="#{colonna[4]}"
action="#{monitoring.viewRequestAction}"
style="text-decoration:none" reRender="panel_requestView"
rendered="#{(colonna[4] ne '0')}" status="requestViewStatus"
onclick="Richfaces.showModalPanel('loadingPanel');" oncomplete="Richfaces.hideModalPanel('loadingPanel');">
<f:param name="selectedStateId" value="#{colonna[0]}" />
<f:param name="selectedState" value="#{colonna[1]}" />
<f:param name="selectedPos" value="4" />
<f:param name="selectedCount" value="#{colonna[4]}" />
</a4j:commandLink>
<h:outputText value="#{colonna[4]}"
rendered="#{(colonna[4] eq '0')}"
style="color:black;font-weight:bold;font-size:11;" />
</rich:column>
<f:facet name="footer">
<rich:columnGroup>
<rich:column style="font-weight:bold;">
<h:outputText value="#{msg.label_totali_semaforo}" />
</rich:column>
<rich:column
style="color:black;font-weight:bold;text-align:center;font-size:11;">
<h:outputText value="#{monitoring.count[2]}" />
</rich:column>
<rich:column
style="color:black;font-weight:bold;text-align:center;font-size:11;">
<h:outputText value="#{monitoring.count[3]}" />
</rich:column>
<rich:column
style="color:black;font-weight:bold;text-align:center;font-size:11;">
<h:outputText value="#{monitoring.count[4]}" />
</rich:column>
</rich:columnGroup>
</f:facet>
</rich:dataTable>
</rich:panel>
</f:facet>
</a4j:status>
</a4j:outputPanel>
</a4j:region>
</td>
</tr>
<tr>
<td align="center">
<a4j:region id="region_request">
<a4j:outputPanel id="out_panel_requestView" ajaxRendered="true" style="align:center">
<a4j:status id="requestViewStatus" forceId="requestViewStatus"
layout="block" style="width:100%;align:center;">
<f:facet name="start">
</f:facet>
<f:facet name="stop">
<rich:panel id="panel_requestView"
rendered="#{(monitoring.requestList ne null) and (monitoring.requestListSize gt 0)}"
style="cellpadding=0px;cellspacing=0px;width:100%;text-align:center;">
<rich:spacer height="20" />
<rich:toolBar id="bar" height="20" itemSeparator="line"
width="60%">
<rich:toolBarGroup>
<h:outputFormat value="#{msg.richieste_table_header}">
<f:param value="#{monitoring.selectedState}" />
</h:outputFormat>
<h:graphicImage value="#{monitoring.selectedColor}" />
</rich:toolBarGroup>
</rich:toolBar>
<rich:dataTable width="60%" id="request_table" rows="30"
columnClasses="col" value="#{monitoring.requestList}"
var="request" border="1"
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
style="border-style: solid; border-width: 2px; align:center;">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_id_esigenza}" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_data_olo}" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_crm}" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_num_tel}" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_olo}" />
</rich:column>
<rich:column>
<h:outputText style="color:black;font-weight:bold;" value="#{msg.label_cod_servzio}" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:columnGroup>
<rich:column>
<h:outputText id="showLink" value="#{request.idEsigenza}"
onclick="showDiv#{request.idProg}();hideShowLink#{request.idProg}();showHideLink#{request.idProg}()"
styleClass="myLink1" />
<h:outputText id="hideLink" value="#{request.idEsigenza}"
onclick="hideDiv#{request.idProg}();hideHideLink#{request.idProg}();showShowLink#{request.idProg}()"
styleClass="myLink2" style="display: none;" />
<rich:effect name="hideShowLink#{request.idProg}" for="showLink" type="Fade" />
<rich:effect name="showShowLink#{request.idProg}" for="showLink" type="Appear" params="delay:1.5,duration:0.7" />
<rich:effect name="showHideLink#{request.idProg}" for="hideLink" params="delay:1.5,duration:0.7" type="Appear" />
<rich:effect name="hideHideLink#{request.idProg}" for="hideLink" type="Fade" />
<rich:effect name="hideDiv#{request.idProg}" params="duration:0.8" type="BlindUp" for="panelloDettaglio" />
<rich:effect name="showDiv#{request.idProg}" for="panelloDettaglio" type="BlindDown" params="duration:0.8"/>
</rich:column>
<rich:column>
<h:outputText value="#{request.dataInvioOlo}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<h:outputText value="#{request.piattaformaCrm}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<h:outputText value="#{request.numeroTelefono}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<h:outputText value="#{request.cow}"
style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<h:outputText value="#{request.cos}"
style="color:black;font-weight:bold;" />
</rich:column>
</rich:columnGroup>
<rich:columnGroup>
<rich:column colspan="6">
<f:facet name="header" />
<a4j:region id="dettaglioRegion" renderRegionOnly="true">
<rich:panel id="panelloDettaglio" style="display: none;">
<h:panelGrid columns="4" width="100%">
<h:panelGroup>
<h:outputText value="#{msg.label_stato} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.gnpgoStatoRec.descrStato}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_causaleRifiutoOlo} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.causaleRifiutoOlo}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText
value="#{msg.label_causaleRifiutoPitagora} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.causaleRifiutoPitagora}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_canaleVendita} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.canaleVendita}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_marcaggio} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{lov.hashMarcaggi[request.marcaggio].descr}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText
value="#{msg.label_dataRicezioneRichiesta} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.dataRicezioneRichiesta}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText
value="#{msg.label_dataRicezioneAccettato} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.dataRicezionePic}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_dac} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.dac}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_codiceSessione} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.codSessioneOlo}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_dataInvioPitagora} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.dataInvioPitagora}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_nomeFilePitagora} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.nomeFilePitagora}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_nomeFileOLO} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.nomeFileOlo}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_cor} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.cor}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_Piva} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.codFiscalePIva}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText
value="#{msg.label_numTentativiRiciclo} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.nroInviiOlo}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
<h:panelGroup>
<h:outputText value="#{msg.label_dataRicezioneKO} : "
styleClass="standard_bold_ruby"></h:outputText>
<h:outputText value="#{request.dataRicezioneKoOlo}"
style="color:black;font-weight:bold;" />
</h:panelGroup>
</h:panelGrid>
</rich:panel>
</a4j:region>
</rich:column>
</rich:columnGroup>
<f:facet name="footer">
<rich:datascroller align="center" renderIfSinglePage="false"
maxPages="20" fastStep="21" id="sc2"/>
</f:facet>
</rich:dataTable>
</rich:panel>
</f:facet>
</a4j:status>
</a4j:outputPanel>
</a4j:region>
</td>
</tr>
</table>
</h:form>