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,882 @@
<%@ 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">
<h:form id="formCambioStatoMassivo">
<tr width="100%" align="center">
<td>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
<tr width="100%" align="center">
<td>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
<tr width="100%" align="center">
<td>
<rich:panel header="Cambio Stato Massivo" style="padding: 0px; border-spacing: 0px;width:100%;text-align:center;">
<h:panelGrid cellpadding="10" border="0" cellspacing="10" align="center" columns="4">
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="numTel" style="color:black;font-weight:bold;" value="#{msg.label_toolko_dn}" />
</rich:column>
<rich:column>
<t:inputText id="numTel" value="#{cambioStatoMassivo.numTel}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="tipoKo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_tipoKO}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="tipoKo" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="olo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_olo}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="olo" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="tipoUtenza" style="color:black;font-weight:bold;" value="#{msg.label_toolko_tipo_utenza}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="tipoUtenza" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="delibera" style="color:black;font-weight:bold;" value="#{msg.label_toolko_delibera}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="delibera" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="stato" style="color:black;font-weight:bold;" value="#{msg.label_toolko_stato}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="stato" style="width:220px;" value="#{cambioStatoMassivo.stato}">
<f:selectItem itemLabel="Tutti" itemValue="-1" />
<t:selectItems value="#{cambioStatoMassivo.listaEsiti}" var="item4" itemLabel="#{item4.name} - #{item4.descr}" itemValue="#{item4.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="esito" style="color:black;font-weight:bold;" value="#{msg.label_toolko_esito}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="esito" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="idEsigenza" style="color:black;font-weight:bold;" value="#{msg.label_toolko_idesigenza}" />
</rich:column>
<rich:column>
<t:inputText id="idEsigenza" value="#{cambioStatoMassivo.idEsigenza}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="processo" style="color:black;font-weight:bold;" value="#{msg.label_toolko_processo}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="processo" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="dataRicezioneDa" value="#{msg.label_toolko_datapicda}" style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<rich:calendar id="dataRicezioneDa" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{cambioStatoMassivo.dataRicezioneDa}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="dataRicezioneA" value="#{msg.label_toolko_datapica}" style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<rich:calendar id="dataRicezioneA" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{cambioStatoMassivo.dataRicezioneA}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="basket" style="color:black;font-weight:bold;" value="#{msg.label_toolko_basket}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="basket" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="owner" style="color:black;font-weight:bold;" value="#{msg.label_toolko_owner}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="owner" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="addetto" style="color:black;font-weight:bold;" value="#{msg.label_toolko_addetto}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="addetto" style="width:220px;" value="#{cambioStatoMassivo.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>
</h:panelGrid>
</rich:column>
<rich:column width="25%">
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="flagSky" style="color:black;font-weight:bold;" value="#{msg.label_toolko_flag_sky}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="flagSky" value="#{cambioStatoMassivo.flagSky}">
<f:selectItem itemValue="-1" itemLabel="Tutti"/>
<f:selectItem itemValue="Y" itemLabel="Si"/>
<f:selectItem itemValue="N" itemLabel="No"/>
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="5"/>
<h:panelGrid>
<h:commandButton type="submit" style="cursor: pointer;" value="#{msg.button_search}"
action="#{cambioStatoMassivo.populate}"
title="Ricerca tra tutte le richieste"/>
</h:panelGrid>
</rich:panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- FINE FILTRI -->
<!-- inizio risultati ricerca -->
<tr width="100%" align="center">
<td>
<div style="width: 80%; overflow-x:auto">
<rich:dataTable value="#{cambioStatoMassivo.risultatiRicerca}" rendered="#{cambioStatoMassivo.risultatiRicercaSize gt 0}" width="98%" var="item" id="listaRic" rows="25" columnClasses="col">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 30px;">
<h:selectBooleanCheckbox style="width: auto; border: none; background-color: transparent;" onclick="javascript:toggle_chk(this)" id="chk_csm"/>
</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="Addetto" />
</rich:column>
<rich:column>
<h:outputText value="Basket" />
</rich:column>
<rich:column>
<h:outputText value="Stato" />
</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:column style="align: center; width: 30px;">
<h:outputText value="" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column style="text-align: center; width: 30px;">
<h:selectBooleanCheckbox onclick="changeRow(this)"
style="width: auto; border: none; background-color: transparent;" value="#{cambioStatoMassivo.selectedRichieste[item]}"
id="chk_dett" title="#{item.id}"/>
</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="#{item.addetto}" />
</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: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="#{item.causaleRifiuto} - #{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>
<rich:column style="text-align: center; width: 30px;" >
<a4j:commandLink action="#{cambioStatoMassivo.openDetails}" reRender="panelDettaglio" oncomplete="Richfaces.showModalPanel('idPopupDettaglio', {width:'700px',height:'390px'});" >
<h:graphicImage value="/resources/images/document_edit.png" style="border: 0; margin: 4px" alt="Visualizza la richiesta"/>
<f:param name="idRientroKO" value="#{item.id}"/>
</a4j:commandLink>
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" onclick="clearSelectedRows();" pageIndexVar="#{cambioStatoMassivo.pageIndex}"/>
</f:facet>
</rich:dataTable>
</div>
</td>
</tr>
<!-- fine risultati ricerca -->
<tr align="center">
<td>
<rich:panel style="padding:0px; border-spacing:0px;width:100%;text-align:center;" rendered="#{cambioStatoMassivo.risultatiRicercaSize gt 0}">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="5">
<rich:column width="20%">
<a4j:commandButton type="submit" reRender="panelCambioOwner" style="cursor: pointer;" value="#{msg.button_cambio_owner}"
onclick="javascript:ctrl_chk()"
oncomplete="if(chk_flg==0)Richfaces.showModalPanel('idPopupCambioOwner', {width:'700px',height:'270px'});"/>
</rich:column>
<rich:column width="20%">
<a4j:commandButton type="submit" reRender="panelCambioAddetto" style="cursor: pointer;" value="#{msg.button_cambio_addetto}"
onclick="javascript:ctrl_chk()"
oncomplete="if(chk_flg==0)Richfaces.showModalPanel('idPopupCambioAddetto', {width:'700px',height:'270px'});"/>
</rich:column>
<rich:column width="20%">
<a4j:commandButton type="submit" reRender="panelSollecito" style="cursor: pointer;" value="#{msg.button_sollecito}"
onclick="javascript:ctrl_chk()"
oncomplete="if(chk_flg==0)Richfaces.showModalPanel('idPopupSollecito', {width:'700px',height:'270px'});"/>
</rich:column>
<rich:column width="20%">
<a4j:commandButton type="submit" reRender="panelDaChiudere" style="cursor: pointer;" value="#{msg.button_dachiudere_crm}"
onclick="javascript:ctrl_chk()"
oncomplete="if(chk_flg==0)Richfaces.showModalPanel('idPopupDaChiudere', {width:'700px',height:'270px'});"/>
</rich:column>
<rich:column width="20%">
<a4j:commandButton type="submit" reRender="panelDaClonare" style="cursor: pointer;" value="#{msg.button_daclonare_crm}"
onclick="javascript:ctrl_chk()"
oncomplete="if(chk_flg==0)Richfaces.showModalPanel('idPopupDaClonare', {width:'700px',height:'270px'});"/>
</rich:column>
</h:panelGrid>
</rich:panel>
</td>
</tr>
</h:form>
</table>
<!-- panello cambio owner -->
<rich:modalPanel resizeable="true" id="idPopupCambioOwner">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupCambioOwner');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Cambio Owner --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupCambioOwner');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formsaveCambioOwner">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelCambioOwner" columns="2">
<rich:column width="30%">
<h:outputLabel for="owner" style="color:black;font-weight:bold;" value="#{msg.label_toolko_owner}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="owner" style="width:220px;" value="#{cambioStatoMassivo.ownerToChange}">
<t:selectItems value="#{lov.listaOwner}" var="itemOwner" itemLabel="#{itemOwner.descr}" itemValue="#{itemOwner.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column width="30%">
<h:outputLabel for="myNotes" style="color:black;font-weight:bold;" value="#{msg.label_toolko_note}" />
</rich:column>
<rich:column>
<h:inputTextarea id="myNotes" style="width:320px;" value="#{cambioStatoMassivo.note}" />
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
<h:panelGrid align="center" cellspacing="5" columns="2">
<rich:column colspan="2">
<t:inputHidden id="selectedRowsPopupOwner" value="#{cambioStatoMassivo.selectedRows}"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Salva"
action="#{cambioStatoMassivo.changeOwner}"
onclick="return submitAction('main:formsaveCambioOwner:selectedRowsPopupOwner');"
title="Cambia l'OWNER per tutte le richieste selezionate"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:modalPanel>
<!-- panello cambio addetto -->
<rich:modalPanel resizeable="true" id="idPopupCambioAddetto">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupCambioAddetto');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Cambio Addetto --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupCambioAddetto');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formsaveCambioAddetto">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelCambioAddetto" columns="2">
<rich:column width="30%">
<h:outputLabel for="owner" style="color:black;font-weight:bold;" value="#{msg.label_toolko_addetto}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="owner" style="width:220px;" value="#{cambioStatoMassivo.addettoToChange}">
<t:selectItems value="#{cambioStatoMassivo.listaAddetti}" var="itemAddetto" itemLabel="#{itemAddetto.matricola} - #{itemAddetto.cognome} #{itemAddetto.nome}" itemValue="#{itemAddetto.matricola}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column width="30%">
<h:outputLabel for="myNotes" style="color:black;font-weight:bold;" value="#{msg.label_toolko_note}" />
</rich:column>
<rich:column>
<h:inputTextarea id="myNotes" style="width:320px;" value="#{cambioStatoMassivo.note}" />
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
<h:panelGrid align="center" cellspacing="5" columns="2">
<rich:column colspan="2">
<t:inputHidden id="selectedRowsPopupAddetto" value="#{cambioStatoMassivo.selectedRows}"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Salva"
action="#{cambioStatoMassivo.changeAddetto}"
onclick="return submitAction('main:formsaveCambioAddetto:selectedRowsPopupAddetto');"
title="Cambia l'addetto per tutte le richieste selezionate"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:modalPanel>
<!-- panello sollecito -->
<rich:modalPanel resizeable="true" id="idPopupSollecito">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupSollecito');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Sollecito --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupSollecito');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formsaveSollecito">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelSollecito" columns="2">
<rich:column >
<h:outputLabel style="color:black;font-weight:bold;align:center;" value="#{msg.warning_sollecito}" />
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
<h:panelGrid align="center" cellspacing="5" columns="2">
<rich:column colspan="2">
<t:inputHidden id="selectedRowsPopupSollecito" value="#{cambioStatoMassivo.selectedRows}"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Salva"
action="#{cambioStatoMassivo.sollecita}"
onclick="return submitAction('main:formsaveSollecito:selectedRowsPopupSollecito');"
title="Sollecita tutte richieste selezionate"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:modalPanel>
<!-- panello cambio da chiudere -->
<rich:modalPanel resizeable="true" id="idPopupDaChiudere">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDaChiudere');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Da chiudere su CRM --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDaChiudere');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formsaveDaChiudere">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelDaChiudere" columns="2">
<rich:column width="30%">
<h:outputLabel for="addetto" style="color:black;font-weight:bold;" value="#{msg.label_toolko_addetto}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="addetto" style="width:220px;" value="#{cambioStatoMassivo.addettoToChange}">
<f:selectItem itemLabel="-" itemValue="" />
<t:selectItems value="#{cambioStatoMassivo.listaAddetti}" var="itemAddetto" itemLabel="#{itemAddetto.matricola} - #{itemAddetto.cognome} #{itemAddetto.nome}" itemValue="#{itemAddetto.matricola}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column width="30%">
<h:outputLabel for="myNotes" style="color:black;font-weight:bold;" value="#{msg.label_toolko_note}" />
</rich:column>
<rich:column>
<h:inputTextarea id="myNotes" style="width:320px;" value="#{cambioStatoMassivo.note}" />
</rich:column>
<rich:column width="30%">
<h:outputLabel style="font-weight:bold" for="myNoteOperative" value="#{msg.label_toolko_operative}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="myNoteOperative" style="width:220px;" value="#{cambioStatoMassivo.noteOperative}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaStatiParziali}" var="itemStatoPar" itemLabel="#{itemStatoPar.descr}" itemValue="#{itemStatoPar.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
<h:panelGrid align="left" cellspacing="5" columns="1" >
<rich:column>
<t:inputHidden id="selectedRowsPopupDaChiudere" value="#{cambioStatoMassivo.selectedRows}"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Salva"
action="#{cambioStatoMassivo.daChiudere}"
onclick="return submitAction('main:formsaveDaChiudere:selectedRowsPopupDaChiudere');"
title="Porta in stato da chiudere su CRM le richieste selezionate"/>
</rich:column>
<rich:column>
<h:outputLabel style="color:black;font-weight:bold;align:center;" value="#{msg.warning_dachiudere}" />
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
</h:form>
</rich:modalPanel>
<!-- panello cambio da clonare -->
<rich:modalPanel resizeable="true" id="idPopupDaClonare">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDaClonare');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Da chiudere su CRM --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDaClonare');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formsaveDaClonare">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelDaClonare" columns="2">
<rich:column width="30%">
<h:outputLabel for="addetto" style="color:black;font-weight:bold;" value="#{msg.label_toolko_addetto}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="addetto" style="width:220px;" value="#{cambioStatoMassivo.addettoToChange}">
<f:selectItem itemLabel="-" itemValue="" />
<t:selectItems value="#{cambioStatoMassivo.listaAddetti}" var="itemAddetto" itemLabel="#{itemAddetto.matricola} - #{itemAddetto.cognome} #{itemAddetto.nome}" itemValue="#{itemAddetto.matricola}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
<rich:column width="30%">
<h:outputLabel for="myNotes" style="color:black;font-weight:bold;" value="#{msg.label_toolko_note}" />
</rich:column>
<rich:column>
<h:inputTextarea id="myNotes" style="width:320px;" value="#{cambioStatoMassivo.note}" />
</rich:column>
<rich:column width="30%">
<h:outputLabel style="font-weight:bold" for="myNoteOperative" value="#{msg.label_toolko_operative}" />
</rich:column>
<rich:column>
<t:selectOneMenu id="myNoteOperative" style="width:220px;" value="#{cambioStatoMassivo.noteOperative}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaStatiParziali}" var="itemStatoPar" itemLabel="#{itemStatoPar.descr}" itemValue="#{itemStatoPar.name}"></t:selectItems>
</t:selectOneMenu>
</rich:column>
</h:panelGrid>
</a4j:outputPanel>
<h:panelGrid align="left" cellspacing="5" columns="1" >
<rich:column>
<h:outputLabel style="color:black;font-weight:bold;align:center;" value="#{msg.warning_daclonare}" />
</rich:column>
<rich:column>
<t:inputHidden id="selectedRowsPopupDaClonare" value="#{cambioStatoMassivo.selectedRows}"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Salva"
action="#{cambioStatoMassivo.daClonare}"
onclick="return submitAction('main:formsaveDaClonare:selectedRowsPopupDaClonare');"
title="Porta in stato da chiudere su CRM le richieste selezionate"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:modalPanel>
<!-- pannello dettaglio -->
<rich:modalPanel resizeable="true" id="idPopupDettaglio">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDettaglio');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Dettaglio richiesta --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('idPopupDettaglio');">
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:form id="formPopupDettaglio">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid width="98%" cellspacing="5" id="panelDettaglio" columns="4">
<!-- PRIMA RIGA -->
<h:outputText style="font-weight:bold" value="Esigenza: " /><h:outputText value="#{cambioStatoMassivo.currentItem.idEsigenza}" />
<h:outputText style="font-weight:bold" value="Owner: " /><h:outputText value="#{cambioStatoMassivo.currentItem.idOwner}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data assegnazione: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{cambioStatoMassivo.currentItem.dataPic != null}">
<f:param value="#{cambioStatoMassivo.currentItem.dataPic}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{cambioStatoMassivo.currentItem.dataPic == null}"/>
<h:outputText style="font-weight:bold" value="Codice sessione: " /><h:outputText value="#{cambioStatoMassivo.currentItem.codSessioneOlo}" />
<h:outputText style="font-weight:bold" value="Canale acquisizione: " /><h:outputText value="#{cambioStatoMassivo.currentItem.canaleProvenienza}" />
<h:outputText style="font-weight:bold" value="Modulo Customer Care: " /><h:outputText value="#{cambioStatoMassivo.currentItem.moduloCc}" />
<h:outputText style="font-weight:bold" value="Modulo Partner: " /><h:outputText value="#{cambioStatoMassivo.currentItem.moduloPartner}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data ricezione KO: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{cambioStatoMassivo.currentItem.dataArrivoTool != null}">
<f:param value="#{cambioStatoMassivo.currentItem.dataArrivoTool}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{cambioStatoMassivo.currentItem.dataArrivoTool == null}"/>
<h:outputText style="font-weight:bold" value="Numero protocollo: " /><h:outputText value="#{cambioStatoMassivo.currentItem.protocolloDms}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data creazione CRM: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{cambioStatoMassivo.currentItem.dataCreazioneSr != null}">
<f:param value="#{cambioStatoMassivo.currentItem.dataCreazioneSr}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{cambioStatoMassivo.currentItem.dataCreazioneSr == null}"/>
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data prima esigenza: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{cambioStatoMassivo.currentItem.dataPrimaEsigenza != null}">
<f:param value="#{cambioStatoMassivo.currentItem.dataPrimaEsigenza}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{cambioStatoMassivo.currentItem.dataPrimaEsigenza == null}"/>
<h:outputText style="font-weight:bold" value="Codice migrazione: " /><h:outputText value="#{cambioStatoMassivo.currentItem.cow}#{cambioStatoMassivo.currentItem.cor}#{cambioStatoMassivo.currentItem.cos}" />
<h:outputText style="font-weight:bold" value="Codice migrazione 2: " /><h:outputText value="#{cambioStatoMassivo.currentItem.cow2}#{cambioStatoMassivo.currentItem.cor2}#{cambioStatoMassivo.currentItem.cos2}" />
<h:outputText style="font-weight:bold" value="Anzianita giacenza: " /><h:outputText value="#{cambioStatoMassivo.anzianita}" />
<h:outputText style="font-weight:bold" value="Codice KO: " /><h:outputText value="#{cambioStatoMassivo.currentItem.causaleRifiuto} - #{lov.toolkoDescrTipoKO[cambioStatoMassivo.currentItem.KODescrKey]}" />
<h:outputText style="font-weight:bold" value="Codice OLO: " /><h:outputText value="#{cambioStatoMassivo.currentItem.cow}" />
<h:outputText style="font-weight:bold" value="Codice servizio: " /><h:outputText value="#{cambioStatoMassivo.currentItem.cos}" />
<h:outputText style="font-weight:bold" value="CRM provenienza: " /><h:outputText value="#{cambioStatoMassivo.currentItem.piattaformaProvenienza}" />
<h:outputText style="font-weight:bold" value="ID Esigenza padre: " /><h:outputText value="#{cambioStatoMassivo.currentItem.idPadre}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data chiusura CRM: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{cambioStatoMassivo.currentItem.dataChiusuraCrm != null}">
<f:param value="#{cambioStatoMassivo.currentItem.dataChiusuraCrm}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{cambioStatoMassivo.currentItem.dataChiusuraCrm == null}"/>
<!-- TERZA RIGA -->
<h:outputText style="font-weight:bold" value="Stato Parziale: " /><h:outputText value="#{cambioStatoMassivo.currentItem.noteOperative}" />
<h:outputText style="font-weight:bold" value="Note : " /><h:inputTextarea readonly="true" style="width:320px;" value="#{cambioStatoMassivo.currentItem.note}" />
<a4j:commandLink action="#{cambioStatoMassivo.loadStoricoNote}" immediate="true" reRender="pannelloRisultatiStoricoNote" oncomplete="Richfaces.showModalPanel('idDettaglioStoricoNote', {width:'700px',height:'390px'});">
<h:graphicImage value="/resources/images/document_edit.png" style="border: 0; margin: 4px" alt="Dettaglio Storico Note"/>
<f:param name="selectedIdRichiesta" value="#{cambioStatoMassivo.currentItem.id}"/>
</a4j:commandLink>
</h:panelGrid>
</a4j:outputPanel>
</h:form>
</rich:modalPanel>
<rich:modalPanel resizeable="true" id="idDettaglioStoricoNote">
<f:facet name="header">
<h:panelGroup>
<h:outputText style="cursor: pointer" value="X" onclick="Richfaces.hideModalPanel('idDettaglioStoricoNote');"/>
<h:outputText value=" -- Dettaglio storico note --" />
</h:panelGroup>
</f:facet>
<h:panelGrid id="pannelloRisultatiStoricoNote" width="98%">
<h:panelGrid columns="2">
<h:outputText style="font-weight:bold" value="Esigenza: " /><h:outputText value="#{cambioStatoMassivo.currentItem.idEsigenza}" />
</h:panelGrid>
<rich:dataTable value="#{cambioStatoMassivo.risultatiStorico}" width="98%" var="itemNote" id="listaStoricoNote" rows="25" columnClasses="col">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 25%;">
<h:outputText value="Data Inserimento" />
</rich:column>
<rich:column style="align: center; width: 75%;">
<h:outputText value="Note" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputFormat value="{0, date, yyyy-MM-dd HH:mm}">
<f:param value="#{itemNote.dataInserimento}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{itemNote.note}" />
</rich:column>
</rich:dataTable>
</h:panelGrid>
</rich:modalPanel>
<script language="JavaScript">
var chk_flg = 0;
var praticheSelezionate = new HashTable();
function toggle_chk(source) {
var c = new Array();
c = window.document.getElementsByTagName('input');
for (var i = 0; i < c.length; i++) {
if (c[i].type == 'checkbox' && c[i].id != source.id) {
//alert ("checked : "+i);
c[i].checked = source.checked;
chiave = '_'+c[i].title;
if (c[i].checked) {
praticheSelezionate.setItem(chiave, true);
} else {
praticheSelezionate.removeItem(chiave);
}
}
}
//alert("Selezionate ["+praticheSelezionate.length+"] pratiche");
}
function ctrl_chk() {
var ok = 0;
var c = new Array();
c = window.document.getElementsByTagName('input');
for (var i = 0; i < c.length; i++) {
if (c[i].type == 'checkbox') {
//alert ("checked : "+i);
if (c[i].checked)
ok = 1;
}
}
if (ok == 0) {
chk_flg = 1;
alert('Selezionare almeno una richiesta prima di operare !! ');
}
}
function submitAction(sourceId) {
hiddenField = document.getElementById(sourceId);
hiddenField.value = '';
for (var prop in praticheSelezionate.items) {
if (praticheSelezionate.items.hasOwnProperty(prop)) {
hiddenField.value = hiddenField.value + prop;
}
}
return confirm('Sei sicuro di volere salvare?');
}
function changeRow(source) {
chiave = '_'+source.title;
if (source.checked) {
praticheSelezionate.setItem(chiave, true);
//alert("Aggiunta ["+chiave+"]");
} else {
praticheSelezionate.removeItem(chiave);
//alert("Cancellata ["+chiave+"]");
}
//alert("Selezionate ["+praticheSelezionate.length+"] pratiche");
}
// HASHTABLE per la gestione dei checkbox delle pratiche
function HashTable() {
this.length = 0;
this.items = new Array();
for (var i = 0; i < arguments.length; i += 2) {
if (typeof (arguments[i + 1]) != 'undefined') {
this.items[arguments[i]] = arguments[i + 1];
this.length++;
}
}
this.removeItem = function (in_key) {
var tmp_previous;
if (typeof (this.items[in_key]) != 'undefined') {
this.length--;
var tmp_previous = this.items[in_key];
delete this.items[in_key];
}
return tmp_previous;
}
this.getItem = function (in_key) {
return this.items[in_key];
}
this.setItem = function (in_key, in_value) {
var tmp_previous;
if (typeof (in_value) != 'undefined') {
if (typeof (this.items[in_key]) == 'undefined') {
this.length++;
} else {
tmp_previous = this.items[in_key];
}
this.items[in_key] = in_value;
}
return tmp_previous;
}
this.hasItem = function (in_key) {
return typeof (this.items[in_key]) != 'undefined';
}
this.clear = function () {
for (var i in this.items) {
delete this.items[i];
}
this.length = 0;
}
}
function clearSelectedRows() {
praticheSelezionate.clear();
}
</script>

View File

@@ -0,0 +1,288 @@
<%@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>

View File

@@ -0,0 +1,217 @@
<%@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="listCruscottoStorico" header="Storico Cruscotto">
<h:form id="idListCruscottoStorico">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="4">
<rich:column><h:outputLabel for="sel_numTelStorico" style="color:black;font-weight:bold;" value="#{msg.label_toolko_dn}" /></rich:column>
<rich:column>
<t:inputText id="sel_numTelStorico" value="#{cruscotto_storico.numTel}" />
</rich:column>
<rich:column><h:outputLabel for="sel_cfStorico" style="color:black;font-weight:bold;" value="#{msg.label_toolko_cf}" /></rich:column>
<rich:column>
<t:inputText id="sel_cfStorico" value="#{cruscotto_storico.cf}" />
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="30"/>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="2">
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="#{msg.button_search}"
action="#{cruscotto_storico.populate}"
title="Cerca"/>
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="30"/>
<h:panelGrid align="center">
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="CRUSCOTTO"
action="#{navigationMenu.cruscotto}"
title="vai al Cruscotto"/>
</rich:column>
</h:panelGrid>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<rich:dataTable value="#{cruscotto_storico.worklistGruppo}" 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="ID" />
</rich:column>
<rich:column>
<h:outputText value="ID Esigenza" />
</rich:column>
<rich:column>
<h:outputText value="Codice Fiscale" />
</rich:column>
<rich:column>
<h:outputText value="Numero Telefonico" />
</rich:column>
<rich:column>
<h:outputText value="Basket" />
</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:columnGroup>
</f:facet>
<rich:column>
<a4j:commandLink action="#{cruscotto_storico.loadStorico}" immediate="true"
reRender="pannelloRisultatiStorico" oncomplete="Richfaces.showModalPanel('popup_storicoRichieste', {width:'700px',height:'270px'});">
<h:graphicImage value="/resources/images/document_edit.png" style="border: 0; margin: 4px" alt="Dettaglio Storico"/>
<f:param name="selectedIdRichiesta" value="#{item.id}"/>
</a4j:commandLink>
</rich:column>
<rich:column>
<h:outputText value="#{item.idEsigenza}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.codiceFiscalePartivaIva}" rendered="#{ (user.codiceProfilo eq 'GG') }" />
<h:outputText value="******************" rendered="#{ !(user.codiceProfilo eq 'GG') }" />
</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: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>
<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:right;" layout="block">
<t:commandButton id="DownloadButtonCruscotto" action="#{cruscotto_storico.download}" type="submit" value="Download"
rendered="#{cruscotto_storico.sizeWorklistGruppo gt 0}" style="cursor:pointer"/>
</a4j:outputPanel>
</h:form>
</rich:panel>
</td>
</tr>
<tr>
<td>
<h:form id="idListCruscottoStoricoModal">
<rich:modalPanel id="popup_storicoRichieste" autosized="true" left="10px">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink ajaxSingle="true" onclick="Richfaces.hideModalPanel('popup_storicoRichieste');">
<h:outputText value="X" />
</a4j:commandLink>
<h:outputText value=" -- Dettaglio storico richiesta --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<a4j:commandLink immediate="true"
onclick="Richfaces.hideModalPanel('popup_storicoRichieste');" >
<h:outputText value="X" />
</a4j:commandLink>
</f:facet>
<h:panelGrid id="pannelloRisultatiStorico" width="98%">
<h:panelGrid columns="2">
<h:outputText style="font-weight:bold" value="Esigenza: " /><h:outputText value="#{cruscotto_storico.currenItem.idEsigenza}" />
<h:outputText style="font-weight:bold" value="ID Richiesta: " /><h:outputText value="#{cruscotto_storico.currenItem.id}" />
</h:panelGrid>
<rich:dataTable value="#{cruscotto_storico.worklistGruppoStorico}" width="98%" var="itemStorico" id="listaRichiesteCruscottoStorico" rows="25" columnClasses="col">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Stato Da" />
</rich:column>
<rich:column>
<h:outputText value="Stato A" />
</rich:column>
<rich:column>
<h:outputText value="Data"/>
</rich:column>
<rich:column>
<h:outputText value="Addetto" />
</rich:column>
<rich:column>
<h:outputText value="Note" />
</rich:column>
<rich:column>
<h:outputText value="Note Operative" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputText value="#{itemStorico.statoDaTxt}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemStorico.statoATxt}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, yyyy-MM-dd HH:mm}">
<f:param value="#{itemStorico.dataInserimento}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{itemStorico.addetto}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemStorico.note}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemStorico.noteOperative}" />
</rich:column>
</rich:dataTable>
</h:panelGrid>
</rich:modalPanel>
</h:form>
</td>
</tr>
</table>

View File

@@ -0,0 +1,79 @@
<%@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 width="100%" align="center">
<td>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
<tr width="100%" align="center">
<td>
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="100%" align="center">
<tr width="100%" align="center">
<td>
<rich:panel>
<f:facet name="header">
<h:outputText value="Download File" />
</f:facet>
</rich:panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- FINE FILTRI -->
<tr width="100%" align="center">
<td>
<h:form id="updateForm">
<table valign="top" cellspacing="0" cellpadding="0" WIDTH="50%" align="center">
<tr width="100%" align="center">
<td align="center">
<h:outputText value="Trovati #{downloadFile.resultsSize} files" />
<a4j:outputPanel id="panelListaFile" ajaxRendered="true" style="align:center;">
<!-- risultato -->
<h:panelGrid id="panelGridRisultato" columns="1" rendered="#{(downloadFile.resultsSize gt 0)}" width="100%">
<rich:dataTable value="#{downloadFile.dynamicList}" var="item" width="100%" id="listaRic" rows="25" columnClasses="col" rowKeyVar="rowKey">
<f:facet name="header">
<rich:columnGroup>
<rich:column width="5%" style="align: center;">
<h:outputText value="" />
</rich:column>
<rich:column width="65%">
<h:outputText value="Nome file" />
</rich:column>
<rich:column width="30%">
<h:outputText value="Data Creazione" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column style="align: center;" >
<a4j:htmlCommandLink id="DownloadButtonId2" action="#{downloadFile.download}" immediate="true">
<h:graphicImage style="margin: 2px; border: none;" value="/resources/images/drive-download.png" alt="Scarica il file #{item.fileName} " />
<f:param name="selectedCompleteFileName" value="#{item.completeFileName}"/>
<f:param name="selectedFileName" value="#{item.fileName}"/>
</a4j:htmlCommandLink>
</rich:column>
<rich:column>
<h:outputText value="#{item.fileName}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.lastModified}" />
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" />
</f:facet>
</rich:dataTable>
</h:panelGrid>
</a4j:outputPanel>
</td>
</tr>
</table>
</h:form>
</td>
</tr>
</table>

View File

@@ -0,0 +1,457 @@
<%@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="myIdWorklistGruppoPanel" header="Worklist Gruppo">
<h:form id="updateFormGruppo">
<rich:panel header="Filtri">
<h:panelGrid align="center" cellspacing="5" columns="6">
<!-- PRIMA RIGA -->
<h:outputText style="font-weight:bold" value="Codice OLO : " />
<t:selectOneMenu style="width:220px;" value="#{toolkoRichieste.filter.selectedCow}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaCodiciOlo}" var="codOlo" itemLabel="#{codOlo.name} - #{codOlo.descr}" itemValue="#{codOlo.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Tipo KO : " />
<t:selectOneMenu style="width:220px;" value="#{toolkoRichieste.filter.selectedTipoKo}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaTipologieKO}" var="tipKO" itemLabel="#{tipKO.descr}" itemValue="#{tipKO.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Tipo Utenza : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filter.selectedTipoUtenza}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaPiattaformeCrm}" var="tipoUtenza" itemLabel="#{tipoUtenza.name} - #{tipoUtenza.descr}" itemValue="#{tipoUtenza.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Delibera : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filter.selectedDelibera}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaDelibere}" var="tipoDel" itemLabel="#{tipoDel.name} - #{tipoDel.descr}" itemValue="#{tipoDel.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Processo : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filter.selectedProcesso}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaToolProcessi}" var="processo" itemLabel="#{processo.name} - #{processo.descr}" itemValue="#{processo.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Canale : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filter.selectedCanale}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaCanaliVendita}" var="canale" itemLabel="#{canale.name} - #{canale.descr}" itemValue="#{canale.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Flag SKY : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filter.flagSky}">
<f:selectItem itemValue="-1" itemLabel="Tutti"/>
<f:selectItem itemValue="Y" itemLabel="Si"/>
<f:selectItem itemValue="N" itemLabel="No"/>
</t:selectOneMenu>
</h:panelGrid>
<rich:spacer width="1" height="5"/>
<h:panelGrid align="center">
<h:commandButton type="submit" style="cursor: pointer;" value="Filtra"
action="#{toolkoRichieste.filtraWorklistGruppo}"
title="Filtra le richiesta della worklist di gruppo"/>
</h:panelGrid>
</rich:panel>
<rich:spacer width="1" height="10"/>
<rich:dataTable value="#{toolkoRichieste.worklistGruppo}" width="98%" var="item" id="listaRic" rows="25" columnClasses="col" rendered="#{(toolkoRichieste.sizeWorklistGruppo gt 0)}">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 30px;">
<h:outputText value="" />
</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="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:selectBooleanCheckbox style="width: auto; border: none; background-color: transparent;" value="#{toolkoRichieste.selectedWorklistGruppo[item]}"/>
</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: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="#{item.causaleRifiuto} - #{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="5"/>
<h:commandButton rendered="#{(toolkoRichieste.sizeWorklistGruppo gt 0)}" style="cursor: pointer;" type="submit"
value="Prendi in carico" id="buttonPic" action="#{toolkoRichieste.prendiInCarico}"
title="Prendi in carico le richieste selezionate" />
<rich:panel rendered="#{toolkoRichieste.sizeWorklistGruppo eq 0}">
<h:panelGrid align="center" cellspacing="5" columns="4">
<h:outputText style="font-weight:bold" value="Nessun risultato trovato" />
</h:panelGrid>
</rich:panel>
</h:form>
</rich:panel>
</td>
</tr>
<tr width="100%">
<td>
<rich:spacer width="1" height="55"/>
<rich:panel id="myIdWorklistPersonalePanel" header="Worklist Personale">
<h:form id="updateFormPersonale">
<rich:panel header="Filtri">
<h:panelGrid align="center" cellspacing="5" columns="4">
<!-- PRIMA RIGA -->
<h:outputText style="font-weight:bold" value="Numero Telefonico : " />
<t:inputText id="numeroTelefono" value="#{toolkoRichieste.filterWLPers.selectedNumTel}" />
<h:outputText style="font-weight:bold" value="Codice Fiscale : " />
<t:inputText id="codiceFiscale" value="#{toolkoRichieste.filterWLPers.selectedCodFisc}" />
<h:outputText style="font-weight:bold" value="Nota Operativa : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filterWLPers.selectedNotaOp}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaStatiParziali}" var="notaOperativa" itemLabel="#{notaOperativa.descr}" itemValue="#{notaOperativa.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Tipo KO : " />
<t:selectOneMenu style="width:220px;" value="#{toolkoRichieste.filterWLPers.selectedTipoKo}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaTipologieKO}" var="tipKO" itemLabel="#{tipKO.descr}" itemValue="#{tipKO.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Flag SKY : " />
<t:selectOneMenu style="width:120px;" value="#{toolkoRichieste.filterWLPers.flagSky}">
<f:selectItem itemValue="-1" itemLabel="Tutti"/>
<f:selectItem itemValue="Y" itemLabel="Si"/>
<f:selectItem itemValue="N" itemLabel="No"/>
</t:selectOneMenu>
</h:panelGrid>
<rich:spacer width="1" height="5"/>
<h:panelGrid align="center">
<h:commandButton type="submit" style="cursor: pointer;" value="Filtra"
action="#{toolkoRichieste.filtraWorklistPersonale}"
title="Filtra le richiesta della worklist personale"/>
</h:panelGrid>
</rich:panel>
<rich:spacer width="1" height="10"/>
<rich:dataTable value="#{toolkoRichieste.worklistPersonale}" var="itemPers" width="98%" id="listaRicPersonale" rows="25" columnClasses="col" rendered="#{toolkoRichieste.sizeWorklistPersonale gt 0}">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 30px;">
<h:outputText value="" />
</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="Codice Fiscale" />
</rich:column>
<rich:column>
<h:outputText value="Owner" />
</rich:column>
<rich:column>
<h:outputText value="Stato" />
</rich:column>
<rich:column>
<h:outputText value="Delibera" />
</rich:column>
<rich:column>
<h:outputText value="Note operative" />
</rich:column>
<rich:column>
<h:outputText value="Data Ricezione Tool KO" />
</rich:column>
<rich:column>
<h:outputText value="Tipologia KO" />
</rich:column>
<rich:column>
<h:outputText value="Nominativo Cliente" />
</rich:column>
<rich:column>
<h:outputText value="Recapito alternativo" />
</rich:column>
<rich:column>
<h:outputText value="Flag SKY" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column style="text-align: center; width: 30px;" >
<a4j:commandLink action="#{toolkoRichieste.openDetails}" immediate="true" reRender="panelDettaglio" oncomplete="Richfaces.showModalPanel('idPopupDettaglio', {width:'830px',height:'430px'});">
<h:graphicImage value="/resources/images/document_edit.png" style="border: 0; margin: 4px" alt="Modifica la richiesta"/>
<f:param name="idRientroKO" value="#{itemPers.id}"/>
</a4j:commandLink>
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.idEsigenza}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.numeroTelefono}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.codiceFiscalePartivaIva}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.idOwner}" />
</rich:column>
<rich:column>
<h:outputText value="#{toolkoAnagraficheBean.toolkoStatoMap[itemPers.stato]}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.delibera}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.noteOperative}" id="stato"/>
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}">
<f:param value="#{itemPers.dataArrivoTool}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.causaleRifiuto}" title="#{itemPers.causaleRifiuto} - #{lov.toolkoDescrTipoKO[itemPers.KODescrKey]}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.nominativoCliente}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.recapitoAlternativo}" />
</rich:column>
<rich:column>
<h:outputText value="#{itemPers.flagSky}" />
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" />
</f:facet>
</rich:dataTable>
<rich:spacer width="1" height="5"/>
<h:commandButton rendered="#{(toolkoRichieste.sizeWorklistPersonale gt 0)}" style="cursor: pointer;" type="submit"
value="Download" id="DownloadButtonWLPersonale" action="#{toolkoRichieste.download}"
title="Scarica il risultato della worklist personale su file csv" />
<rich:panel rendered="#{toolkoRichieste.sizeWorklistPersonale eq 0}">
<h:panelGrid align="center" cellspacing="5" columns="4">
<h:outputText style="font-weight:bold" value="Nessun risultato trovato" />
</h:panelGrid>
</rich:panel>
</h:form>
</rich:panel>
<rich:modalPanel resizeable="true" id="idPopupDettaglio">
<f:facet name="header">
<h:panelGroup>
<h:outputText style="cursor: pointer" value="X" onclick="Richfaces.hideModalPanel('idPopupDettaglio');"/>
<h:outputText value=" -- Dettaglio richiesta --" />
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:outputText style="cursor: pointer" value="X" onclick="Richfaces.hideModalPanel('idPopupDettaglio');"/>
</f:facet>
<h:form id="formsaveDettaglio">
<a4j:outputPanel ajaxRendered="true" >
<h:panelGrid cellspacing="5" id="panelDettaglio" columns="4">
<!-- PRIMA RIGA -->
<h:outputText style="font-weight:bold" value="Esigenza: " /><h:outputText value="#{toolkoRichieste.currenItem.idEsigenza}" />
<h:outputText style="font-weight:bold" value="Owner: " /><h:outputText value="#{toolkoRichieste.currenItem.idOwner}" />
<h:outputText style="font-weight:bold" value="Numero telefonico: " /><h:outputText value="#{toolkoRichieste.currenItem.numeroTelefono}" />
<h:outputText style="font-weight:bold" value="Codice Fiscale/ Partita IVA: " /><h:outputText value="#{toolkoRichieste.currenItem.codiceFiscalePartivaIva}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data assegnazione: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{toolkoRichieste.currenItem.dataPic != null}">
<f:param value="#{toolkoRichieste.currenItem.dataPic}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{toolkoRichieste.currenItem.dataPic == null}" />
<h:outputText style="font-weight:bold" value="Codice sessione: " /><h:outputText value="#{toolkoRichieste.currenItem.codSessioneOlo}" />
<h:outputText style="font-weight:bold" value="Canale acquisizione: " /><h:outputText value="#{toolkoRichieste.currenItem.canaleProvenienza}" />
<h:outputText style="font-weight:bold" value="Modulo Customer Care: " /><h:outputText value="#{toolkoRichieste.currenItem.moduloCc}" />
<h:outputText style="font-weight:bold" value="Modulo Partner: " /><h:outputText value="#{toolkoRichieste.currenItem.moduloPartner}" />
<h:outputText style="font-weight:bold" value="Data ricezione Tool KO: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}">
<f:param value="#{toolkoRichieste.currenItem.dataArrivoTool}"/>
</h:outputFormat>
<h:outputText style="font-weight:bold" value="Numero protocollo: " /><h:outputText value="#{toolkoRichieste.currenItem.protocolloDms}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data creazione CRM: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{toolkoRichieste.currenItem.dataCreazioneSr != null}">
<f:param value="#{toolkoRichieste.currenItem.dataCreazioneSr}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{toolkoRichieste.currenItem.dataCreazioneSr == null}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data prima esigenza: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{toolkoRichieste.currenItem.dataPrimaEsigenza != null}">
<f:param value="#{toolkoRichieste.currenItem.dataPrimaEsigenza}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{toolkoRichieste.currenItem.dataPrimaEsigenza == null}" />
<h:outputText style="font-weight:bold" value="Codice migrazione: " /><h:outputText value="#{toolkoRichieste.currenItem.cow}#{toolkoRichieste.currenItem.cor}#{toolkoRichieste.currenItem.cos}" />
<h:outputText style="font-weight:bold" value="Codice migrazione 2: " /><h:outputText value="#{toolkoRichieste.currenItem.cow2}#{toolkoRichieste.currenItem.cor2}#{toolkoRichieste.currenItem.cos2}" />
<h:outputText style="font-weight:bold" value="Anzianita giacenza: " /><h:outputText value="#{toolkoRichieste.anzianitaByCurrenItem}" />
<h:outputText style="font-weight:bold" value="Codice KO: " /><h:outputText value="#{toolkoRichieste.currenItem.causaleRifiuto} - #{lov.toolkoDescrTipoKO[toolkoRichieste.currenItem.KODescrKey]}" />
<h:outputText style="font-weight:bold" value="Codice OLO: " /><h:outputText value="#{toolkoRichieste.currenItem.cow}" />
<h:outputText style="font-weight:bold" value="Codice servizio: " /><h:outputText value="#{toolkoRichieste.currenItem.cos}" />
<h:outputText style="font-weight:bold" value="CRM provenienza: " /><h:outputText value="#{toolkoRichieste.currenItem.piattaformaProvenienza}" />
<h:outputText style="font-weight:bold" value="ID Esigenza padre: " /><h:outputText value="#{toolkoRichieste.currenItem.idPadre}" />
<!-- DATA FORMATTATA SOLO SE VALORIZZATA, ALTRIMENTI NON INSERISCO NULLA -->
<h:outputText style="font-weight:bold" value="Data chiusura CRM: " />
<h:outputFormat value="{0, date, dd-MM-yyyy HH:mm:ss}" rendered="#{toolkoRichieste.currenItem.dataChiusuraCrm != null}">
<f:param value="#{toolkoRichieste.currenItem.dataChiusuraCrm}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{toolkoRichieste.currenItem.dataChiusuraCrm == null}" />
<!-- TERZA RIGA -->
<h:outputText style="font-weight:bold" value="Stato Richiesta: " /><h:outputText value="#{toolkoAnagraficheBean.toolkoStatoMap[toolkoRichieste.currenItem.stato]}" />
<h:outputText style="font-weight:bold" value="Note operative: " />
<t:selectOneMenu style="width:220px;" value="#{toolkoRichieste.currenItem.noteOperative}">
<f:selectItem itemLabel="--" itemValue="" />
<t:selectItems value="#{lov.listaStatiParziali}" var="item2" itemLabel="#{item2.descr}" itemValue="#{item2.name}"></t:selectItems>
</t:selectOneMenu>
<h:outputText style="font-weight:bold" value="Nominativo Cliente: " /><h:outputText value="#{toolkoRichieste.currenItem.nominativoCliente}" />
<h:outputText style="font-weight:bold" value="Recapito alternativo: " /><h:outputText value="#{toolkoRichieste.currenItem.recapitoAlternativo}" />
<h:outputText style="font-weight:bold" value="Note : " /><h:inputTextarea style="width:320px;" value="#{toolkoRichieste.currenItem.note}" />
<a4j:commandLink action="#{toolkoRichieste.loadStoricoNote}" immediate="true" reRender="pannelloRisultatiStoricoNote" oncomplete="Richfaces.showModalPanel('idDettaglioStoricoNote', {width:'830px',height:'430px'});">
<h:graphicImage value="/resources/images/document_edit.png" style="border: 0; margin: 4px" alt="Dettaglio Storico Note"/>
<f:param name="selectedIdRichiesta" value="#{toolkoRichieste.currenItem.id}"/>
</a4j:commandLink>
</h:panelGrid>
</a4j:outputPanel>
<rich:spacer width="1" height="30"/>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<h:panelGrid align="center" cellspacing="5" columns="3">
<a4j:commandButton type="submit" value="Salva" style="cursor: pointer;" id="cbutton" action="#{toolkoRichieste.salva}" reRender="stato" oncomplete="Richfaces.hideModalPanel('idPopupDettaglio');" />
<h:commandButton type="submit" style="cursor: pointer;" value="Da assegnare a PPS"
action="#{toolkoRichieste.impostaDaAssegnarePPS}"
title="Cambia l'OWNER della richiesta a PPS"/>
<h:commandButton type="submit" style="cursor: pointer;" value="Da assegnare a OLO"
action="#{toolkoRichieste.impostaDaAssegnareOLO}"
title="Cambia l'OWNER della richiesta a OLO"/>
</h:panelGrid>
<rich:spacer width="1" height="50"/>
</h:form>
</rich:modalPanel>
</td>
</tr>
<tr>
<td>
<h:form id="idListStoricoNote">
<rich:modalPanel resizeable="true" id="idDettaglioStoricoNote">
<f:facet name="header">
<h:panelGroup>
<h:outputText style="cursor: pointer" value="X" onclick="Richfaces.hideModalPanel('idDettaglioStoricoNote');"/>
<h:outputText value=" -- Dettaglio storico note --" />
</h:panelGroup>
</f:facet>
<h:panelGrid id="pannelloRisultatiStoricoNote" width="98%">
<h:panelGrid columns="2">
<h:outputText style="font-weight:bold" value="Esigenza: " /><h:outputText value="#{toolkoRichieste.currenItem.idEsigenza}" />
</h:panelGrid>
<rich:dataTable value="#{toolkoRichieste.risultatiStorico}" width="98%" var="itemNote" id="listaStoricoNote" rows="25" columnClasses="col">
<f:facet name="header">
<rich:columnGroup>
<rich:column style="align: center; width: 25%;">
<h:outputText value="Data Inserimento" />
</rich:column>
<rich:column style="align: center; width: 75%;">
<h:outputText value="Note" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputFormat value="{0, date, yyyy-MM-dd HH:mm}">
<f:param value="#{itemNote.dataInserimento}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{itemNote.note}" />
</rich:column>
</rich:dataTable>
</h:panelGrid>
</rich:modalPanel>
</h:form>
</td>
</tr>
</table>