maia/.svn/pristine/13/13a41d2c2ede917950c32b2a905...

85 lines
4.6 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="#{importeArmasControlle}"
queryProcess=""
queryUpdate=""
saveProcess=""
saveUpdate=""
focusContainer=":formTable:filters" />
<h:panelGrid columns="1" id="controls" styleClass="m-controls" >
<maia:pageControls controller="#{importeArmasExcelController}"
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="#{importeArmasExcelController.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">
<p:outputLabel for="numeroRecibo" value="#{msg_armas.lbl_numoficio}:" style="width: 150px"/>
<p:inputText id="numeroRecibo" value="#{importeArmasExcelController.numeroRecibo}" required="true" style="width: 150px"/>
<p:message for="numeroRecibo" />
<!-- <h:outputText value="#{msg_armas.lbl_organismo_control}:" style="width: 150px"/> -->
<!-- <h:inputText value="#{importeArmasExcelController.centroControl.modifiedData['desinstitucion']}" disabled="true" style="width:300px;background-color:f2f0ef"/> -->
<!-- <h:outputText value="" /> -->
<!-- <h:outputText value="#{msg_armas.lbl_centro_control}:" style="width: 150px"/> -->
<!-- <h:inputText value="#{importeArmasExcelController.centroControl.modifiedData['desnombreinstitucion']}" disabled="true" style="width:300px;background-color:f2f0ef"/> -->
<!-- <h:outputText value="" /> -->
<h:outputText value="#{msg_armas.lbl_numero_armas_procesadas}:" style="width: 150px"/>
<h:inputText value="#{importeArmasExcelController.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="#{importeArmasExcelController.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="#{importeArmasExcelController.numCorrectas}" disabled="true" style="width: 50px;background-color:f2f0ef"/>
<h:outputText value="" />
</h:panelGrid>
<h:panelGrid columns="1" style="border:2px"
rendered="#{importeArmasExcelController.listaErrores != null and importeArmasExcelController.listaErrores.size()!=0}">
<p:commandButton id="DescargarLog" value="Log De Errores" ajax="false" immediate="true"
action="#{importeArmasExcelController.descargarArchivo()}" process="@this" update=":formTable" rendered="#{importeArmasExcelController.listaErrores != null}">
</p:commandButton>
<!-- p:dataTable value="#{importeArmasExcelController.listaErrores}" var="item"
rendered="#{importeArmasExcelController.listaErrores != null}"
paginator="true" rows="300" paginatorPosition="top">
<p:column >
<p:outputLabel value="#{item}"></p:outputLabel>
</p:column>
</p:dataTable> -->
<!-- h:outputText value="#{importeArmasExcelController.mensajeError}" /> -->
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>