maia_modificado/.svn/pristine/d6/d66cde4e03e227ec8a05a18ff35...

90 lines
4.7 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="#{revisarReporteArmasADestruirController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:dt-table"
focusContainer=":formTable:filters"
saveProcess=""
saveUpdate="" />
<p:panelGrid id="filters" columns="9" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<h:panelGrid columns="2" >
<p:outputLabel for="nReporte" value="#{msg_armas.lbl_noTramite}" style="display:block;width:120px;"/>
<p:inputText id="nReporte" value="#{revisarReporteArmasADestruirController.creporte}" style="width:150px" maxlength="10" disabled="true"/>
<p:outputLabel for="fechaCorte" value="#{msg_armas.lbl_fechaDeCorte}:" style="display:block;width:120px;"/>
<p:inputText id="fechaCorte" value="#{revisarReporteArmasADestruirController.cabRepDestruirArmasObj.freporte}" style="width:150px" maxlength="10" disabled="true">
<f:convertDateTime pattern="#{msg_general.dateformat}"/>
</p:inputText>
</h:panelGrid>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{revisarReporteArmasADestruirController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:dt-table"
showQueryBtn = "false"
showCreateBtn = "false"
showSaveBtn = "false" />
<p:commandButton id="idComplete" value="#{msg_armas.btn_enviar}" icon="ui-icon-circle-check" process="@this" action="#{revisarReporteArmasADestruirController.save}" update="idComplete, filters, data-content" disabled="#{revisarReporteArmasADestruirController.isDenied}" oncomplete="if(args.validationFailed){return false;} Maia.loadPageUtil();" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content" style="text-align: center;">
<f:facet name="header">
<h:outputText value="#{msg_armas.fct_materialParaDestruccion}" />
</f:facet>
<p:dataTable id="dt-table" var="row" value="#{revisarReporteArmasADestruirController.detRepDestruirArmasController.lrecord}"
rows="10" rowIndexVar="index" rowKey="#{row.rowkey()}" selectionMode="single" style="width:100%">
<p:column headerText="No." resizable="true" width="15">
<h:outputText value="#{index+1}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_clase}" resizable="true" >
<h:outputText value="#{row.clase}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_tipo2}" resizable="true" >
<h:outputText value="#{row.tipo}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_calibre}" resizable="true" >
<h:outputText value="#{row.calibre}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_marca}" resizable="true" >
<h:outputText value="#{row.marca}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_serie}" resizable="true" >
<h:outputText value="#{row.serie}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_cant}" resizable="true" >
<h:outputText value="#{row.cantidad}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_uniMedida}" resizable="true" >
<h:outputText value="#{row.unidad}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_fecDecimiso}" resizable="true" >
<h:outputText value="#{row.fdecomiso}" >
<f:convertDateTime pattern="#{msg_general.dateformat}" />
</h:outputText>
</p:column>
<p:column headerText="#{msg_armas.lbl_propietario}" resizable="true" >
<h:outputText value="#{row.propietario}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_noRecibo}" resizable="true" >
<h:outputText value="#{row.nrecibo}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</ui:define>
</ui:composition>