135 lines
6.2 KiB
Plaintext
Executable File
135 lines
6.2 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="#{verificacionInformacionDevolucionController}"
|
|
queryUpdate=":formTable:dt-table"
|
|
focusContainer=":formTable:datosTramites"
|
|
saveProcess=""
|
|
saveUpdate=":formTable:datosTramites" />
|
|
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<p:outputLabel value="#{msg_armas.tramite}"></p:outputLabel>
|
|
</f:facet>
|
|
|
|
<h:panelGrid id="datosTramites" columns="2" >
|
|
<p:outputLabel for="numeroTramite" value="#{msg_armas.lbl_noTramite}:" style="font-weight: bold;"/>
|
|
<p:inputText id="numeroTramite" style="width:100%" disabled="true"
|
|
value="#{verificacionInformacionDevolucionController.record.modifiedData['ntramite']}">
|
|
</p:inputText>
|
|
</h:panelGrid>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{verificacionInformacionDevolucionController}"
|
|
queryProcess=""
|
|
queryUpdate=":formTable:dt-table,:formTable:datosTramites"
|
|
createProcess=""
|
|
createUpdate=":formTable:datosTramites"
|
|
dialogWidgetVar="dialog"
|
|
showQueryBtn ="false"
|
|
showCreateBtn = "false"
|
|
showSaveBtn = "false"
|
|
showNextBtn="false"
|
|
showPreviousBtn="false" />
|
|
|
|
<p:commandButton value="#{msg_armas.lbl_registrarNovedad}" disabled="#{verificacionInformacionDevolucionController.seleccionTodas}"
|
|
action="#{verificacionInformacionDevolucionController.saveVerification()}">
|
|
</p:commandButton>
|
|
<p:commandButton id="btnActaDevolucion"
|
|
actionListener="#{verificacionInformacionDevolucionController.save()}"
|
|
ajax="false"
|
|
process="@this, :formTable"
|
|
value="#{msg_armas.lbl_actaDevolucion}"
|
|
disabled="#{!verificacionInformacionDevolucionController.seleccionTodas}"
|
|
update=":formTable:chkSeleccionarTodas,:formTable:dt-table, controls" >
|
|
</p:commandButton>
|
|
<p:commandButton id="idComplete" value="#{msg_armas.btn_enviar}" icon="ui-icon-circle-check" process="@this" update="controls"
|
|
action="#{verificacionInformacionDevolucionController.completarTarea()}" oncomplete="if(args.validationFailed){return false;} ;Maia.loadPageUtil();"/>
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="datos" columns="1" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_informacionarmas}" />
|
|
</f:facet>
|
|
|
|
<h:panelGrid columns="1">
|
|
<h:column>
|
|
<div style="float: right;">
|
|
<table >
|
|
<tr>
|
|
<td>
|
|
<p:selectBooleanCheckbox id="chkSeleccionarTodas" value="#{verificacionInformacionDevolucionController.seleccionTodas}">
|
|
<p:ajax event="change" update=":formTable:dt-table,:formTable:controls"></p:ajax>
|
|
</p:selectBooleanCheckbox>
|
|
</td>
|
|
<td>
|
|
<p:spacer width="5"></p:spacer>
|
|
</td>
|
|
<td style="font-weight: bold;">
|
|
<h:outputLabel value="#{msg_armas.lbl_seleccionartodos}" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</h:column>
|
|
|
|
<h:column>
|
|
<p:dataTable id="dt-table" var="row" value="#{verificacionInformacionDevolucionController.lArmas}"
|
|
rows="10" rowIndexVar="index" rowKey="#{row.rowkey()}" selectionMode="single" style="width:100%"
|
|
paginator="true" paginatorTemplate="{PreviousPageLink} {NextPageLink}" paginatorPosition="top">
|
|
<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="#{verificacionInformacionDevolucionController.aspectoArmaExplosivoCatalogo(row,'clase')}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_tipo2}" resizable="true" >
|
|
<h:outputText value="#{verificacionInformacionDevolucionController.aspectoArmaExplosivoCatalogo(row,'tipo')}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_marca}" resizable="true" >
|
|
<h:outputText value="#{verificacionInformacionDevolucionController.aspectoArmaCatalogo(row.marca,row.marcacodigo)}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_modelo}" resizable="true" >
|
|
<h:outputText value="#{row.modelo}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_calibre}" width="60" resizable="true" >
|
|
<h:outputText value="#{utilidades.formatearDecimalesEnTexto(verificacionInformacionDevolucionController.aspectoArmaExplosivoCatalogo(row,'calibre'),'#.00')}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_serie}" resizable="true" >
|
|
<h:outputText value="#{row.lote}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_estado}" resizable="true" >
|
|
<h:outputText value="#{verificacionInformacionDevolucionController.aspectoArmaCatalogo(row.estado,row.estadocodigo)}" />
|
|
</p:column>
|
|
<p:column headerText="Verificar" resizable="true" style="text-align:center">
|
|
<p:selectBooleanCheckbox value="#{row.modifiedData['seleccion']}">
|
|
<p:ajax event="change" update=":formTable:chkSeleccionarTodas,:formTable:controls"></p:ajax>
|
|
</p:selectBooleanCheckbox>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:column>
|
|
</h:panelGrid>
|
|
|
|
</p:panelGrid>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
|
|
</h:form>
|
|
|
|
|
|
|
|
</ui:define>
|
|
</ui:composition> |