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

457 lines
31 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="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>