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

289 lines
14 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"%>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
<tr>
<td>
<rich:panel id="listCruscotto" header="Cruscotto">
<h:form id="idListCruscotto">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="4">
<rich:column>
<h:outputLabel for="sel_tipoKo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_tipoKO}" />
</rich:column>
<rich:column >
<h:outputLabel for="sel_olo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_olo}" />
</rich:column>
<rich:column>
<h:outputLabel for="sel_tipoUtenza" style="color:black;font-weight:bold;" value="#{msg.label_toolko_tipo_utenza}" />
</rich:column>
<rich:column>
<h:outputLabel for="sel_delibera" style="color:black;font-weight:bold;" value="#{msg.label_toolko_delibera}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_tipoKo" style="width:220px;" value="#{cruscotto.tipoKo}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaTipologieKO}" var="item0" itemLabel="#{item0.descr}" itemValue="#{item0.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column >
<t:selectOneMenu id="sel_olo" style="width:220px;" value="#{cruscotto.olo}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaCodiciOlo}" var="item1" itemLabel="#{item1.name} - #{item1.descr}" itemValue="#{item1.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_tipoUtenza" style="width:220px;" value="#{cruscotto.tipoUtenza}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaPiattaformeCrm}" var="item2" itemLabel="#{item2.name} - #{item2.descr}" itemValue="#{item2.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_delibera" style="width:220px;" value="#{cruscotto.delibera}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaDelibere}" var="item3" itemLabel="#{item3.name} - #{item3.descr}" itemValue="#{item3.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<h:outputLabel for="sel_stato" style="color:black;font-weight:bold;" value="#{msg.label_toolko_stato}" />
</rich:column>
<rich:column>
<h:outputLabel for="sel_esito" style="color:black;font-weight:bold;" value="#{msg.label_toolko_esito}" />
</rich:column>
<rich:column>
<h:outputLabel for="sel_addetto" style="color:black;font-weight:bold;" value="#{msg.label_toolko_addetto}" />
</rich:column>
<rich:column>
<h:outputLabel value="" />
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_stato" style="width:220px;" value="#{cruscotto.stato}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaStatiToolko}" var="item4" itemLabel="#{item4.name} - #{item4.descr}" itemValue="#{item4.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_esito" style="width:220px;" value="#{cruscotto.esito}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaEsiti}" var="item5" itemLabel="#{item5.name} - #{item5.descr}" itemValue="#{item5.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_addetto" style="width:220px;" value="#{cruscotto.addetto}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{cambioStatoMassivo.listaAddetti}" var="item9" itemLabel="#{item9.matricola} - #{item9.cognome} #{item9.nome}" itemValue="#{item9.matricola}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<h:outputLabel value="" />
</rich:column>
<!-- row 2 -->
<rich:column><h:outputLabel for="sel_numTel" style="color:black;font-weight:bold;" value="#{msg.label_toolko_dn}" /></rich:column>
<rich:column><h:outputLabel for="sel_idEsigenza" style="color:black;font-weight:bold;" value="#{msg.label_toolko_idesigenza}" /></rich:column>
<rich:column><h:outputLabel for="sel_processo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_processo}" /></rich:column>
<rich:column><h:outputLabel for="sel_dataRicezioneDa" value="#{msg.label_toolko_datapicda}" style="color:black;font-weight:bold;" /></rich:column>
<rich:column>
<t:inputText id="sel_numTel" value="#{cruscotto.numTel}" />
</rich:column>
<rich:column>
<t:inputText id="sel_idEsigenza" value="#{cruscotto.idEsigenza}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_processo" style="width:220px;" value="#{cruscotto.processo}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaToolProcessi}" var="item6" itemLabel="#{item6.name} - #{item6.descr}" itemValue="#{item6.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<rich:calendar id="sel_dataRicezioneDa" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{cruscotto.dataRicezioneDa}" />
</rich:column>
<rich:column><h:outputLabel for="sel_dataRicezioneA" value="#{msg.label_toolko_datapica}" style="color:black;font-weight:bold;" /></rich:column>
<rich:column><h:outputLabel for="sel_basket" style="color:black;font-weight:bold;" value="#{msg.label_toolko_basket}" /></rich:column>
<rich:column><h:outputLabel for="sel_owner" style="color:black;font-weight:bold;" value="#{msg.label_toolko_owner}" /></rich:column>
<rich:column><h:outputLabel for="flag_sky" style="color:black;font-weight:bold;" value="#{msg.label_toolko_flag_sky}" /></rich:column>
<rich:column>
<rich:calendar id="sel_dataRicezioneA" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{cruscotto.dataRicezioneA}"
requiredMessage="required message" reRender="error_dta">
<f:validator validatorId="DateCompareValidator" />
<f:attribute name="operator" value="ge" />
<f:attribute name="compareWith" value="main:idListCruscotto:sel_dataRicezioneDa" />
<f:attribute name="compareFieldName" value="Start Date" />
</rich:calendar>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_basket" style="width:220px;" value="#{cruscotto.basket}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{routing.basket}" var="item7" itemLabel="#{item7.idBasketString} - #{item7.descrizione}" itemValue="#{item7.idBasketString}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="sel_owner" style="width:220px;" value="#{cruscotto.owner}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{lov.listaOwner}" var="item8" itemLabel="#{item8.name} - #{item8.descr}" itemValue="#{item8.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column>
<t:selectOneMenu id="flag_sky" style="width:220px;" value="#{cruscotto.flagSky}">
<f:selectItem itemValue="-1" itemLabel="Tutti"/>
<f:selectItem itemValue="Y" itemLabel="Si"/>
<f:selectItem itemValue="N" itemLabel="No"/>
</t:selectOneMenu>
</rich:column>
<rich:column width="20%">
<h:commandButton type="submit" style="cursor: pointer;" value="#{msg.button_search}"
action="#{cruscotto.populate}"
title="Ricerca Richieste"/>
</rich:column>
</h:panelGrid>
</h:form>
<rich:spacer width="1" height="30"/>
<h:panelGrid align="center">
<h:form id="panelPulsanteStorico">
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="STORICO"
action="#{navigationMenu.cruscotto_storico}"
title="vai allo Storico Richieste"/>
</rich:column>
</h:form>
</h:panelGrid>
<rich:separator lineType="solid" width="100%" />
<h:form id="risultatiCruscotto">
<h:panelGrid id="error_dta" cellpadding="0" border="0" cellspacing="0" align="center" columns="1" width="90%">
<rich:column>
<rich:message for="sel_dataRicezioneA" errorLabelClass="error">
<f:facet name="errorMarker">
<h:graphicImage value="/resources/images/error_small.gif" />
</f:facet>
</rich:message>
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="5"/>
<rich:dataTable value="#{cruscotto.worklistGruppo}" rendered="#{cruscotto.sizeWorklistGruppo gt 0}" width="98%" var="item" id="listaRichiesteCruscotto" rows="25" columnClasses="col">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 30px;">
<h:outputText value="Owner" />
</rich:column>
<rich:column>
<h:outputText value="ID Esigenza" />
</rich:column>
<rich:column>
<h:outputText value="Numero Telefonico" />
</rich:column>
<rich:column>
<h:outputText value="Basket" />
</rich:column>
<rich:column>
<h:outputText value="Stato" />
</rich:column>
<rich:column>
<h:outputText value="Causale chiusura CRM" />
</rich:column>
<rich:column>
<h:outputText value="Data Ricezione Tool KO" />
</rich:column>
<rich:column>
<h:outputText value="Codice OLO" />
</rich:column>
<rich:column>
<h:outputText value="Tipologia KO" />
</rich:column>
<rich:column>
<h:outputText value="Tipo Utenza" />
</rich:column>
<rich:column>
<h:outputText value="Processo" />
</rich:column>
<rich:column>
<h:outputText value="Canale Vendita" />
</rich:column>
<rich:column>
<h:outputText value="Flag SKY" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column style="text-align: center; width: 30px;">
<h:outputText value="#{item.idOwner}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.idEsigenza}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.numeroTelefono}" />
</rich:column>
<rich:column>
<h:outputText value="#{toolkoAnagraficheBean.toolkoBasketMap[item.idBasket]}" />
</rich:column>
<rich:column>
<h:outputText value="#{toolkoAnagraficheBean.toolkoStatoMap[item.stato]}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.causaleKo}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}">
<f:param value="#{item.dataArrivoTool}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{item.cowOrigine}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.causaleRifiuto}" title="#{lov.toolkoDescrTipoKO[item.KODescrKey]}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.piattaformaProvenienza}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.processo}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.canaleVendita}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.flagSky}" />
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" />
</f:facet>
</rich:dataTable>
<rich:spacer width="1" height="30"/>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<a4j:outputPanel style="width:100%;background-color: #CCCCCC; float:left;" layout="block">
<t:commandButton id="DownloadButtonCruscotto" action="#{cruscotto.download}" type="submit" value="Download"
rendered="#{cruscotto.sizeWorklistGruppo gt 0}" style="cursor:pointer"/>
</a4j:outputPanel>
</h:form>
</rich:panel>
</td>
</tr>
</table>