maia_modificado/.svn/pristine/39/3963b7bddaf06db023f6e4736eb...

101 lines
5.9 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="#{ReporteAutorizacionesController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:filters"
focusContainer=":formTable:filters"
saveProcess=":formTable:filters"
saveUpdate=":formTable:controls, :formTable:filters" />
<p:panelGrid id="filters" columns="1" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<h:panelGrid columns="6" >
<p:outputLabel for="autorizacion" value="Tipo Documento Habilitante:" style="display:block;width:120px;"/>
<p:selectOneMenu id="autorizacion" value="#{reporteSancionesController.idAutorizacion}"
var="p" style="width:220px" panelStyle="width:220px" required="true" >
<p:ajax event="change" update=":formTable:fechaDecomiso" process="@this" listener="#{reporteSancionesController.habilitarfechadecomiso()}"/>
<f:selectItem itemLabel= "AUTORIZACIONES" itemValue="1" />
<f:selectItem itemLabel="PERMISOS" itemValue="6" />
</p:selectOneMenu>
<p:message for="autorizacion" />
<p:outputLabel for="control" value="#{msg_armas.lbl_centroControl}:" style="display:block;width:120px;"/>
<p:selectOneMenu id="control" value="#{reporteSancionesController.idControl}"
var="p" style="width:220px" panelStyle="width:220px" >
<f:selectItem itemLabel="TODOS" itemValue="TODOS" />
<f:selectItems value="#{reporteSancionesController.controlList}" var="id"
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
</p:selectOneMenu>
<p:message for="control" />
</h:panelGrid>
<h:panelGrid columns="6" >
<p:outputLabel for="unidad" value="#{msg_armas.lbl_tipo_sancion}:" style="display:block;width:120px;"/>
<p:selectOneMenu id="unidad" value="#{reporteSancionesController.idCentroControl}"
var="p" style="width:220px" panelStyle="width:220px" >
<f:selectItem itemLabel="TODOS" itemValue="TODOS" />
<f:selectItems value="#{reporteSancionesController.centroControlList}" var="id"
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
</p:selectOneMenu>
<p:message for="unidad" />
</h:panelGrid>
<h:panelGrid columns="9" >
<p:outputLabel for="fechaInicio" value="Fecha Inicio:" style="display:block;width:120px;"/>
<p:calendar id="fechaInicio" value="#{reporteSancionesController.fechaInicio}" style="width:150px" showOn="button" navigator="true" pattern="#{msg_general.dateformat}" converter="converter.date" maxlength="10">
<p:ajax event="dateSelect" listener="#{reporteSancionesController.cambioFechaDeCorte}" />
</p:calendar>
<p:message for="fechaInicio" />
<p:outputLabel for="fechaFin" value="Fecha Fin:" />
<p:calendar id="fechaFin" value="#{reporteSancionesController.fechaFin}" style="width:150px" showOn="button" navigator="true" pattern="#{msg_general.dateformat}" converter="converter.date" maxlength="10">
<p:ajax event="dateSelect" listener="#{reporteSancionesController.cambioFechaDeCorte}" />
</p:calendar>
<p:message for="fechaFin" />
<p:outputLabel for="fechaDecomiso" value="Fecha Decomiso:" />
<p:calendar id="fechaDecomiso" disabled="#{reporteSancionesController.habilitar}" value="#{reporteSancionesController.fechaDecomiso}" style="width:150px" showOn="button" navigator="true" pattern="#{msg_general.dateformat}" converter="converter.date" maxlength="10">
<p:ajax event="dateSelect" listener="#{reporteSancionesController.cambioFechaDeCorte}" />
</p:calendar>
<p:message for="fechaDecomiso" />
</h:panelGrid>
<h:panelGrid columns="6" >
<p:outputLabel for="identificacion" value="#{msg_armas.lbl_tipoidentiicacion}:" style="display:block;width:120px;"/>
<p:selectOneMenu id="identificacion" value="#{reporteSancionesController.idIdentificacion}"
var="p" style="width:220px" panelStyle="width:220px" >
<f:selectItem itemLabel="TODOS" itemValue="TODOS" />
<f:selectItems value="#{reporteSancionesController.tipoDocumentoList}" var="id"
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
</p:selectOneMenu>
<p:message for="identificacion" />
<p:spacer width="10"/>
<p:outputLabel for="numdocumento" value="#{msg_armas.lbl_numeroDeDocumento}:" style="display:block;width:120px;"/>
<p:inputText id="numdocumento" value="#{reporteSancionesController.numeroDocumento}" maxlength="13" style="width:160px;" />
<p:message for="numdocumento" />
</h:panelGrid>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<p:commandButton id="btnGenerarReporte" actionListener="#{reporteSancionesController.generateReport()}"
ajax="false" process="@this" value="#{msg_armas.btn_generarReporte}" >
</p:commandButton>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>