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

118 lines
6.8 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="listStoricoCodiceOrdine" header="#{msg.label_head_storico_cod_ordine}" style="width:100%;text-align:center;">
<h:form id="idlistStoricoCodiceOrdine">
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="3">
<rich:column>
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column>
<h:outputLabel for="sel_numTelStorico" style="color:black;font-weight:bold;" value="#{msg.label_dn}" />
</rich:column>
<rich:column>
<t:inputText id="sel_numTelStorico" value="#{storicoCodiceOrdine.numTel}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column>
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="dataOrdineDa" value="#{msg.label_data_ordine_da}" style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<rich:calendar id="dataOrdineDa" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{storicoCodiceOrdine.dataOrdineDa}" />
</rich:column>
</h:panelGrid>
</rich:column>
<rich:column>
<h:panelGrid columns="2" cellpadding="0" border="0" cellspacing="0">
<rich:column width="30%">
<h:outputLabel for="dataOrdineA" value="#{msg.label_data_ordine_a}" style="color:black;font-weight:bold;" />
</rich:column>
<rich:column>
<rich:calendar id="dataOrdineA" popup="true" bypassUpdates="true" datePattern="dd/MM/yyyy" enableManualInput="false" value="#{storicoCodiceOrdine.dataOrdineA}" />
</rich:column>
</h:panelGrid>
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="30"/>
<h:panelGrid cellpadding="0" border="0" cellspacing="0" align="center" columns="3">
<rich:column>
<h:commandButton type="submit" style="cursor: pointer;" value="#{msg.button_search}"
action="#{storicoCodiceOrdine.search}"
title="Cerca"/>
</rich:column>
</h:panelGrid>
<rich:spacer width="1" height="30"/>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<rich:dataTable value="#{storicoCodiceOrdine.results}" width="98%" var="item" id="listaStorico" rows="25" style="text-align: center" columnClasses="col" rendered="#{storicoCodiceOrdine.resultSize gt 0}">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Codice Ordine" />
</rich:column>
<rich:column>
<h:outputText value="Data ordine" />
</rich:column>
<rich:column>
<h:outputText value="Id Esigenza" />
</rich:column>
<rich:column>
<h:outputText value="Codice stato ordine" />
</rich:column>
<rich:column>
<h:outputText value="Data chiusura DBCFX" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputText value="#{item.id.codiceOrdine}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy}">
<f:param value="#{item.dataOrdine}"/>
</h:outputFormat>
</rich:column>
<rich:column>
<h:outputText value="#{item.id.idEsigenza}" />
</rich:column>
<rich:column>
<h:outputText value="#{item.dataChiusuraDbcfx ne null ? 'C' : 'A'}" />
</rich:column>
<rich:column>
<h:outputFormat value="{0, date, dd-MM-yyyy}" rendered="#{item.dataChiusuraDbcfx ne null}">
<f:param value="#{item.dataChiusuraDbcfx}"/>
</h:outputFormat>
<h:outputText value="" rendered="#{item.dataChiusuraDbcfx == null}"/>
</rich:column>
<f:facet name="footer">
<rich:datascroller maxPages="15" fastStep="5" renderIfSinglePage="false" />
</f:facet>
</rich:dataTable>
<rich:separator lineType="solid" width="100%" />
<rich:spacer width="1" height="5"/>
<h:panelGrid align="left">
<rich:column>
<t:commandButton id="DownloadButtonCruscotto" action="#{storicoCodiceOrdine.download}" type="submit" value="Download CSV"
rendered="#{storicoCodiceOrdine.resultSize gt 0}" style="cursor:pointer" title="Download dei risultati in formato CSV"/>
</rich:column>
</h:panelGrid>
</h:form>
</rich:panel>
</td>
</tr>
</table>