maia_modificado/.svn/pristine/6e/6e013bf185e9d34139e7af88f29...

67 lines
3.3 KiB
Plaintext
Executable File

<ui:composition
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
template="/WEB-INF/templates/template.xhtml"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<ui:define name="content">
<h:form id="formTable">
<maia:pageEvents controller="#{auxCargaArmasController}"
queryProcess=""
queryUpdate=""
saveProcess=""
saveUpdate=""
focusContainer=":formTable:filters" />
<h:panelGrid columns="1" id="controls" styleClass="m-controls" >
<maia:pageControls controller="#{auxCargaArmasController}"
saveUpdate=":formTable:controls" saveProcess=":formTable:controls"
dialogWidgetVar="dialog" showNextBtn="false" showPreviousBtn="false"
showQueryBtn="false" showCreateBtn="false" showSaveBtn="true"/>
<h:panelGrid id="pEditCarga" columns="2" bodyrows="1">
<p:fileUpload fileUploadListener="#{auxCargaArmasController.cargarArchivo}" multiple="false"
allowTypes="/(\.|\/)(xlsx)$/"
uploadLabel="#{msg_armas.lbl_cargararchivo}" cancelLabel="#{msg_armas.lbl_cancelar}"
label="#{msg_armas.lbl_seleccionar}" invalidFileMessage="#{msg_armas.msg_error_tipoarchivoinvalido}"
update=":formTable:controls"
onstart="PF('statusDialog').show()" oncomplete="PF('statusDialog').hide()"/>
</h:panelGrid>
<h:panelGrid id="pnlDatos" columns="3" bodyrows="1">
<h:outputText value="#{msg_armas.lbl_numero_armas_procesadas}:" style="width: 150px"/>
<h:inputText value="#{auxCargaArmasController.numArmasProcesadas}" disabled="true" style="width: 50px;background-color:f2f0ef"/>
<h:outputText value="" />
<h:outputText value="#{msg_armas.lbl_numero_armas_error}:" style="width: 150px"/>
<h:inputText value="#{auxCargaArmasController.numArmasError}" disabled="true" style="width: 50px;background-color:f2f0ef"/>
<h:outputText value="" />
<h:outputText value="#{msg_armas.lbl_numero_armas_correctas}:" style="width: 150px"/>
<h:inputText value="#{auxCargaArmasController.numCorrectas}" disabled="true" style="width: 50px;background-color:f2f0ef"/>
<h:outputText value="" />
</h:panelGrid>
<h:panelGrid columns="1" style="border:2px"
rendered="#{auxCargaArmasController.listaErrores != null and auxCargaArmasController.listaErrores.size()!=0}">
<p:commandButton id="DescargarLog" value="Log De Errores" ajax="false" immediate="true"
action="#{auxCargaArmasController.descargarArchivo()}" process="@this" update=":formTable" rendered="#{auxCargaArmasController.listaErrores != null}">
</p:commandButton>
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>