72 lines
4.6 KiB
Plaintext
Executable File
72 lines
4.6 KiB
Plaintext
Executable File
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:f="http://java.sun.com/jsf/core"
|
|
xmlns:c="http://java.sun.com/jstl/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">
|
|
<title>#{msg_armas.htbl_TiposDeArmasExplosivos}</title>
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{armaExplosivoLovController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:tcatalog"
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="2" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fdesclase" value="#{msg_armas.lbl_clase}:" />
|
|
<p:inputText id="fdesclase" value="#{armaExplosivoLovController.descripcionClase}" maxlength="60" style="width: 200px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
<p:outputLabel for="fdestipo" value="#{msg_armas.lbl_tipo}:" />
|
|
<p:inputText id="fdestipo" value="#{armaExplosivoLovController.descripcionTipo}" maxlength="60" style="width: 200px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<p:commandButton value="#{msg_general.btn_query}" update="data-content" icon="ui-icon-search"
|
|
action="#{armaExplosivoLovController.query()}" process="@this, filters" />
|
|
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev"
|
|
action="#{armaExplosivoLovController.previous()}" process="@this, filters"/>
|
|
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next"
|
|
action="#{armaExplosivoLovController.next()}" process="@this, filters"/>
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_catalogo}" />
|
|
</f:facet>
|
|
<p:dataTable id="tcatalog" var="row" value="#{armaExplosivoLovController.lrecord}" rows="200" style="min-width: 300px; width: auto;" rowKey="#{row.rowkey()}"
|
|
selectionMode="single" selection="#{armaExplosivoLovController.record}" >
|
|
<p:ajax event="rowSelect" listener="#{armaExplosivoLovController.setcatalog()}" />
|
|
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true">
|
|
<h:outputText value="#{row.pk}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_clase}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['nclase']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_tipo}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['ntipo']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_longitud}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['nlongitud']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_calibre}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['ncalibre']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_unidad}" resizable="true" >
|
|
<h:outputText value="#{row.modifiedData['desunidad']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_seleccionar}" style="text-align:center; width:50px">
|
|
<p:commandButton icon="ui-icon-copy" actionListener="#{armaExplosivoLovController.setcatalog(row)}" />
|
|
</p:column>
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
</ui:define>
|
|
</ui:composition> |