117 lines
6.6 KiB
Plaintext
Executable File
117 lines
6.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="#{revisarRprteArmasADestJefCCController}"
|
|
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="#{revisarRprteArmasADestJefCCController.tarmCabRepDestruirArmas.pk}" 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="#{revisarRprteArmasADestJefCCController.tarmCabRepDestruirArmas.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="#{revisarRprteArmasADestJefCCController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:dt-table"
|
|
showQueryBtn = "false"
|
|
showCreateBtn = "false"
|
|
showSaveBtn = "false" />
|
|
<p:commandButton id="btnAceptar" value="#{msg_armas.btn_aceptar}" icon="ui-icon-circle-check" process="btnAceptar, filters, data-content" oncomplete="if(args.validationFailed){return false;} PF('dialog').show();" update="btnAceptar, filters, data-content" disabled="#{revisarRprteArmasADestJefCCController.isDenied}"/>
|
|
</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="#{revisarRprteArmasADestJefCCController.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>
|
|
<p:dialog widgetVar="dialog" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog" style="minWidth:300px !important;width:300px !important;" >
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_aprobacion}" />
|
|
</f:facet>
|
|
<h:form id="formBtype">
|
|
<h:panelGrid id="pnlConfirmacionVerificacion" columns="3" bodyrows="1" >
|
|
<p:outputLabel for="accion" value="#{msg_armas.lbl_accion}:" />
|
|
<p:selectOneMenu id="accion" value="#{revisarRprteArmasADestJefCCController.estado}"
|
|
var="p" style="width:200px" panelStyle="width:200px" required="true">
|
|
<f:selectItems value="#{revisarRprteArmasADestJefCCController.laccion}" var="vmod"
|
|
itemLabel="#{vmod.description}" itemValue="#{vmod.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="accion" />
|
|
|
|
<p:outputLabel for="observacion" value="#{msg_armas.lbl_observacion}:" />
|
|
<p:inputTextarea id="observacion" value="#{revisarRprteArmasADestJefCCController.observacion}" cols="36" rows="3"
|
|
maxlength="250"></p:inputTextarea>
|
|
<p:message for="observacion" />
|
|
|
|
</h:panelGrid>
|
|
<p:commandButton id="saveControl" value="#{msg_general.btn_save}" icon="ui-icon-disk"
|
|
action="#{revisarRprteArmasADestJefCCController.save()}" oncomplete="if(args.validationFailed){return false;} Maia.loadPageUtil(); PF('dialog').hide();"
|
|
process="@this, pnlConfirmacionVerificacion" update="pnlConfirmacionVerificacion :formTable:controls"/>
|
|
<p:commandButton id="cancelControl" value="#{msg_general.btn_cancell}" icon="ui-icon-trash"
|
|
oncomplete="PF('dialog').hide();" />
|
|
</h:form>
|
|
</p:dialog>
|
|
</ui:define>
|
|
</ui:composition> |