882 lines
55 KiB
Plaintext
882 lines
55 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">
|
|
<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> |