224 lines
15 KiB
Plaintext
224 lines
15 KiB
Plaintext
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
|
|
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
|
|
<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
|
|
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
|
|
<h:form>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<rich:panel header="Routing" style="cellpadding=0px;cellspacing=0px;width:100%;text-align:center;">
|
|
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="10">
|
|
<rich:column style="width:15px">
|
|
<h:selectBooleanCheckbox style="width:15px" />
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="codiceOLO" style="color:black;font-weight:bold;" value="#{msg.label_codiceOlo}" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.opearatorCodiceOlo}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="codiceOLO" value="#{richieste.filtroRichiesta.cow}"
|
|
onchange="javascript : setValueDiv(this,'dv_olo')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<t:selectItems value="#{lov.listaCodiciOlo}" var="item2" itemLabel="#{item2.descr}" itemValue="#{item2.name}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="piattaformaCRM" style="color:black;font-weight:bold;" value="Piattaforma CRM:" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.operatorCrm}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="piattaformaCRM" value="#{richieste.filtroRichiesta.piattaformaCrm}"
|
|
onchange="javascript : setValueDiv(this,'dv_crm')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<t:selectItems value="#{lov.listaPiattaformeCrm}" var="item" itemLabel="#{item.descr}" itemValue="#{item.name}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="delibera" style="color:black;font-weight:bold;" value="Delibera" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.operatorDelibera}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="delibera" value="#{richieste.filtroRichiesta.delibera}"
|
|
onchange="javascript : setValueDiv(this,'dv_delibera')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<f:selectItem itemLabel="Del. 274" itemValue="274" />
|
|
<f:selectItem itemLabel="Del. 35" itemValue="35" />
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="processo" style="color:black;font-weight:bold;" value="Processo:" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.operatorProcesso}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="processo" value="#{richieste.filtroRichiesta.processo}"
|
|
onchange="javascript : setValueDiv(this,'dv_processo')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<t:selectItems value="#{lov.listaToolProcessi}" var="item" itemLabel="#{item.descr}" itemValue="#{item.name}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="canaleVendita" style="color:black;font-weight:bold;" value="#{msg.label_canaleVendita}" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.opearatorCanaleVendita}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="canaleVendita" value="#{richieste.filtroRichiesta.canaleVendita}"
|
|
onchange="javascript : setValueDiv(this,'dv_canale')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<t:selectItems value="#{lov.listaCanaliVendita}" var="item" itemLabel="#{item.descr}" itemValue="#{item.name}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>>
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column>
|
|
<h:outputLabel for="regola" style="color:black;font-weight:bold;" value="#{msg.label_regola}" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<h:inputText id="regola" value=""></h:inputText>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>
|
|
</rich:column>
|
|
|
|
<rich:column width="10%">
|
|
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
|
|
<rich:column colspan="2">
|
|
<h:outputLabel for="owner" style="color:black;font-weight:bold;" value="#{msg.label_canaleVendita}" />
|
|
</rich:column>
|
|
<rich:columnGroup>
|
|
<rich:column>
|
|
<t:selectOneMenu style="width:55px;" value="#{richieste.filtroRichiesta.operatorOwner}">
|
|
<t:selectItems value="#{richieste.filtroRichiesta.guiRoutingOperatorTypes}" var="item" itemLabel="#{item.descr}" itemValue="#{item.id}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
<rich:column>
|
|
<t:selectOneMenu id="owner" value="#{richieste.filtroRichiesta.owner}"
|
|
onchange="javascript : setValueDiv(this,'dv_owner')">
|
|
<f:selectItem itemLabel="Tutti" itemValue="-1" />
|
|
<t:selectItems value="#{lov.listaOwner}" var="item" itemLabel="#{item.descr}" itemValue="#{item.name}"></t:selectItems>
|
|
</t:selectOneMenu>
|
|
</rich:column>
|
|
</rich:columnGroup>
|
|
</h:panelGrid>>
|
|
</rich:column>
|
|
|
|
</h:panelGrid>
|
|
</rich:panel>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table style="width: 100%">
|
|
<tr>
|
|
<td style="width: 55px">check</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_olo" name="dv_olo">
|
|
olo
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_crm" name="dv_crm">
|
|
crm
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_delibera" name="dv_delibera">
|
|
delibera
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_processo" name="dv_processo">
|
|
processo
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_canale" name="dv_canale">
|
|
vendita
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_regola" name="dv_regola">
|
|
regola
|
|
</div>
|
|
</td>
|
|
<td style="width: 275px;border:2px dashed #blue;">
|
|
<div id="dv_owner" name="dv_owner">
|
|
owner
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</h:form>
|
|
|
|
<script type="text/javascript">
|
|
function setValueDiv(el,dv){
|
|
var val=el.value;
|
|
var html_dv=document.getElementById(dv).innerHTML;
|
|
if(html_dv.indexOf(val)!==-1)
|
|
alert("value already selected!!");
|
|
else
|
|
document.getElementById(dv).innerHTML+=" "+val;
|
|
}
|
|
</script> |