401 lines
26 KiB
Plaintext
Executable File
401 lines
26 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:maia="http://java.sun.com/jsf/composite/maiaComponents"
|
|
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
|
|
xmlns:pe="http://primefaces.org/ui/extensions">
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_seleccionararticulos}" />
|
|
</f:facet>
|
|
|
|
<h:panelGrid id="panelFiltroAUCP">
|
|
<p:panel rendered="#{tramiteArmasController.mostrarFiltroAUCP}">
|
|
<p:outputLabel for="busquedaAUCP" value="Seleccione un #{msg_armas.lbl_numerosolicitud_aucp}:" />
|
|
<p:inputText id="busquedaAUCP" value="#{tramiteArmasController.filterAUCP}"
|
|
style="width:300px" onkeyup="Maia.forceupper(event, this);" maxlength="21" disabled="true">
|
|
<pe:keyFilter regEx="/[a-z0-9]/" />
|
|
</p:inputText>
|
|
<p:commandButton icon="ui-icon-link" styleClass="m-lov-button"
|
|
actionListener="#{tramiteArmasController.openCargaPrevia}" immediate="true" process="@this" >
|
|
<p:ajax event="dialogReturn" listener="#{tramiteArmasController.onReturnCarga}"
|
|
process="@this" immediate="true" update=":formSolicitud:tabtramite:armasPanelGrid :formSolicitud:tabtramite:panelFiltroAUCP"/>
|
|
</p:commandButton>
|
|
</p:panel>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="7" id="controlsArmas" styleClass="m-controls">
|
|
<p:commandButton value="#{msg_general.btn_query}" icon="ui-icon-search" action="#{tramiteArmasController.cargaArmas()}" process="@this" rendered="false" update=":formSolicitud:tabtramite:dtArmas"/>
|
|
<maia:pageControls controller="#{tramiteArmasController.armas}"
|
|
queryProcess=""
|
|
queryUpdate=""
|
|
createUpdate=":formSolicitud:tabtramite:txtTituloArmas :formSolicitud:tabtramite:formProcess:pEdit :formSolicitud:tabtramite:formProcess:pActionArmas"
|
|
dialogWidgetVar="dialogArmas"
|
|
saveUpdate=":formSolicitud:tabtramite:dtArmas"
|
|
showCreateBtn="#{tramiteArmasController.mostrarIngresoArmas and !tramiteArmasController.deshabilitarPantalla}"
|
|
showSaveBtn="false" showNextBtn="false" showPreviousBtn="false"
|
|
showQueryBtn="false"/>
|
|
</h:panelGrid>
|
|
<p:panelGrid columns="1" id="armasPanelGrid">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_detallematerialregistro}" />
|
|
</f:facet>
|
|
<h:panelGrid styleClass="m-data-content">
|
|
<h:panelGroup layout="block" style="float:right;">
|
|
<h:panelGrid columns="2" styleClass="m-data-content" style="min-width: 150px!important;" rendered="#{!tramiteArmasController.deshabilitarPantalla}">
|
|
<p:outputLabel for="txtSeleccionarArmas" value="#{msg_armas['lbl_seleccionartodos']}"/>
|
|
<p:selectBooleanCheckbox id="txtSeleccionarArmas" value="#{tramiteArmasController.armas.mfilelds['seleccionarTodos']}">
|
|
<p:ajax listener="#{tramiteArmasController.armas.seleccionarTodos}" global="false" process="@this" update=":formSolicitud:tabtramite:dtArmas"/>
|
|
</p:selectBooleanCheckbox>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
<p:dataTable id="dtArmas" value="#{tramiteArmasController.armas.lrecord}" var="row" rows="4000"
|
|
style="min-width: 700px;width:auto;" rowIndexVar="rowIndex" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
<p:column headerText="#{msg_armas['lbl_No']}">
|
|
<h:outputText value="#{rowIndex + 1}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_clase']}" filterBy="#{row.modifiedData['clase']}" filterMatchMode="contains">
|
|
<h:outputText value="#{row.modifiedData['clase']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_tipo']}" filterBy="#{row.modifiedData['tipoarmaexplosivo']}" filterMatchMode="contains">
|
|
<h:outputText value="#{row.modifiedData['tipoarmaexplosivo']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_marca']}" filterBy="#{row.modifiedData['marca']}" filterMatchMode="contains">
|
|
<h:outputText value="#{row.modifiedData['marca']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_modelo']}" filterBy="#{row.modelo}" filterMatchMode="contains">
|
|
<h:outputText value="#{row.modelo}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_calibre']}">
|
|
<h:outputText value="#{row.modifiedData['calibre']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_color}">
|
|
<h:outputText value="#{row.modifiedData['color']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_serie']}" filterBy="#{row.lote}" filterMatchMode="contains">
|
|
<h:outputText value="#{row.lote}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_tipofabricacion']}">
|
|
<h:outputText value="#{row.modifiedData['tipofabricacion']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_estado']}">
|
|
<h:outputText value="#{row.modifiedData['estado']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_cantidad']}">
|
|
<h:outputText value="#{row.cantidad}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_peso']}">
|
|
<h:outputText value="#{row.peso}" />
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_show}"
|
|
|
|
update=":formSolicitud:tabtramite:txtTituloArmas :formSolicitud:tabtramite:formProcess:pEdit :formSolicitud:tabtramite:formProcess:pActionArmas"
|
|
oncomplete="PF('dialogArmas').show()"
|
|
styleClass="m-action-button"
|
|
icon="ui-icon-link"
|
|
process="@this dtArmas">
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.showRow}" value="#{true}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.newRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.verificaArmaExplosivo}" value="#{true}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column" >
|
|
<p:commandButton value="#{msg_general.btn_edit}"
|
|
rendered="#{!empty row.modifiedData['edit']}"
|
|
|
|
update=":formSolicitud:tabtramite:txtTituloArmas :formSolicitud:tabtramite:formProcess:pEdit :formSolicitud:tabtramite:formProcess:pActionArmas"
|
|
oncomplete="PF('dialogArmas').show()"
|
|
styleClass="m-action-button"
|
|
icon="ui-icon-pencil"
|
|
process="@this dtArmas">
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.newRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.verificaArmaExplosivo}" value="#{true}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" process="dtArmas" update="dtArmas"
|
|
rendered="#{!empty row.modifiedData['edit']}"
|
|
styleClass="m-action-button" icon="ui-icon-trash"
|
|
oncomplete="PF('dialogConfirmArmas').show();">
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.verificaArmaExplosivo}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{tramiteArmasController.armas.existeTipoArmaExplosivo}" value="#{true}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_seleccionar']}" rendered="#{!tramiteArmasController.deshabilitarPantalla}" style="text-align:center">
|
|
<p:selectBooleanCheckbox value="#{row.modifiedData['seleccionado']}"/>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:panelGrid>
|
|
</p:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
<p:dialog widgetVar="dialogConfirmArmas" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_eliminarmaterial}" />
|
|
</f:facet>
|
|
<h:form id="formDialogArma">
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="1" id="pDelete">
|
|
<h:panelGroup layout="block" style="text-align:center;">
|
|
<h:outputText value="#{msg_armas.lbl_confirmacioneliminar}" />
|
|
<h:panelGrid columns="2" style="margin: auto;">
|
|
<p:commandButton process="@this"
|
|
update="@this :formSolicitud:tabtramite:dtArmas" oncomplete="PF('dialogConfirmArmas').hide()"
|
|
value="#{msg_general.lbl_yes}" action="#{tramiteArmasController.eliminarArmas}"/>
|
|
<p:commandButton process="@this" value="#{msg_general.lbl_no}" oncomplete="PF('dialogConfirmArmas').hide();"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</h:form>
|
|
</p:dialog>
|
|
<p:dialog widgetVar="dialogArmas" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog" style="height:500px !important; overflow:auto" height="500px">
|
|
<f:facet name="header">
|
|
<h:outputText id="txtTituloArmas" value="#{tramiteArmasController.armas.record.isnew? msg_armas.lbl_crearmaterial : (tramiteArmasController.armas.showRow ? msg_armas.lbl_vermaterial : msg_armas.lbl_modificarmaterial)}" />
|
|
</f:facet>
|
|
<h:form id="formProcess" style="height:500px !important; overflow:auto">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGroup id="pEdit" layout="block" style="height:400px !important; overflow:auto">
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_datospersonales}" />
|
|
</f:facet>
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="6">
|
|
<p:outputLabel for="tipodoc" value="#{msg_armas.lbl_tipoidentiicacion}:" style="display:block;width:160px;"/>
|
|
<p:selectOneMenu id="tipodoc" value="#{tramiteArmasController.detallepersona.record.identificationcatalog}" required="true" maxlength="20" disabled="true">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.ltipoidentificacion}" var="tipoiden" itemLabel="#{tipoiden.description}" itemValue="#{tipoiden.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="tipodoc" />
|
|
|
|
<p:outputLabel for="numdoc" value="#{msg_armas.lbl_numeroDeDocumento}:" />
|
|
<p:inputText id="numdoc" value="#{tramiteArmasController.detallepersona.record.identification}"
|
|
disabled="true" required="true" maxlength="60" style="width:160px;" />
|
|
<p:message for="numdoc" />
|
|
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="3">
|
|
<p:outputLabel for="txtNombreRazon" value="#{msg_armas.lbl_nombrerazonsocial}:" style="display:block;width:160px;"/>
|
|
<p:inputText id="txtNombreRazon" value="#{tramiteArmasController.detallepersona.record.name}" disabled="true" style="width:300px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_datosmaterial}" />
|
|
</f:facet>
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="9" id="pDatosMaterial">
|
|
<p:outputLabel for="selEstado" value="#{msg_armas.lbl_estado}:"/>
|
|
<p:selectOneMenu id="selEstado" value="#{tramiteArmasController.armas.record.estado}" required="true" disabled="true">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lestadoarma}" var="estado" itemLabel="#{estado.description}" itemValue="#{estado.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="selEstado"/>
|
|
|
|
<p:outputLabel for="txtFecEmisionPermiso" value="#{msg_armas.lbl_fechaemisionpermiso}:"/>
|
|
<p:calendar id="txtFecEmisionPermiso"
|
|
disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}" required="true" maxdate="#{tramiteArmasController.fechaActual}"
|
|
value="#{tramiteArmasController.armas.record.femisionpermiso}" pattern="#{msg_general.dateformat}">
|
|
<f:converter converterId="converter.date" for="txtFecEmisionPermiso"/>
|
|
</p:calendar>
|
|
<p:message for="txtFecEmisionPermiso"/>
|
|
|
|
<p:outputLabel for="txtCodigo" value="#{msg_armas.lbl_codigo}:"/>
|
|
<p:inputText id="txtCodigo" required="true"
|
|
value="#{tramiteArmasController.armas.record.pk}" disabled="true"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtClase" value="#{msg_armas.lbl_clase}:"/>
|
|
<p:inputText id="txtClase" required="true" disabled="true" value="#{tramiteArmasController.armas.record.modifiedData['clase']}"/>
|
|
<p:commandButton icon="ui-icon-link" styleClass="m-lov-button"
|
|
disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}"
|
|
actionListener="#{tramiteArmasController.armas.openArmaExplosivoLov()}" immediate="true" process="@this">
|
|
<p:ajax event="dialogReturn" listener="#{tramiteArmasController.armas.onReturnArmaExplosivo}" process="@this" update="txtClase txtLongitud txtTipoarma txtCalibre txtCantidad selUnidadMedidaCant txtPeso selUnidadMedidaPeso" immediate="true"/>
|
|
</p:commandButton>
|
|
|
|
<p:outputLabel for="txtLongitud" value="#{msg_armas.lbl_longitud}:"/>
|
|
<p:inputText id="txtLongitud" required="true" disabled="true" value="#{tramiteArmasController.armas.record.modifiedData['longitud']}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtTipoarma" value="#{msg_armas.lbl_tipo}:"/>
|
|
<p:inputText id="txtTipoarma" required="true" disabled="true" value="#{tramiteArmasController.armas.record.modifiedData['tipoarmaexplosivo']}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtCalibre" value="#{msg_armas.lbl_calibre}:"/>
|
|
<p:inputText id="txtCalibre" required="true" disabled="true" value="#{tramiteArmasController.armas.record.modifiedData['calibre']}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selMarca" value="#{msg_armas.lbl_marca}:"/>
|
|
<p:selectOneMenu id="selMarca" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}"
|
|
value="#{tramiteArmasController.armas.record.marca}" required="true" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lmarca}" var="marca" itemLabel="#{marca.description}" itemValue="#{marca.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="selMarca"/>
|
|
|
|
<p:outputLabel for="txtModelo" value="#{msg_armas.lbl_modelo}:"/>
|
|
<p:inputText id="txtModelo" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" onkeyup="Maia.forceupper(event, this);" maxlength="10" value="#{tramiteArmasController.armas.record.modelo}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selColor" value="#{msg_armas.lbl_color}:"/>
|
|
<p:selectOneMenu id="selColor" value="#{tramiteArmasController.armas.record.color}" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lcolor}" var="color" itemLabel="#{color.description}" itemValue="#{color.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selTipoFabricacion" value="#{msg_armas.lbl_tipofabricacion}:"/>
|
|
<p:selectOneMenu id="selTipoFabricacion" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.tipofabricacion}" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.ltipofabricacion}" var="tipofabricacion" itemLabel="#{tipofabricacion.description}" itemValue="#{tipofabricacion.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selPaisOrigen" value="#{msg_armas.lbl_paisorigen}:"/>
|
|
<p:selectOneMenu id="selPaisOrigen" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.registroArmas.record.paisorigen}" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lcountry}" var="country" itemLabel="#{country.description}" itemValue="#{country.pk}"/>
|
|
</p:selectOneMenu>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtSerieLote" value="#{msg_armas.lbl_serielote}:"/>
|
|
<p:inputText id="txtSerieLote" maxlength="15" onkeyup="Maia.forceupper(event, this);" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.lote}" required="true"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtSerieCanon" value="#{msg_armas.lbl_seriecanon}:"/>
|
|
<p:inputText id="txtSerieCanon" maxlength="10" onkeyup="Maia.forceupper(event, this);" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.seriecanon}"/>
|
|
<h:outputText value="" />
|
|
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtCantidad" value="#{msg_armas.lbl_cantidad}:"/>
|
|
<pe:inputNumber id="txtCantidad" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.armas.bloquearUnidadCantidad or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.cantidad}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selUnidadMedidaCant" value="#{msg_armas.lbl_unidadcantidad}:"/>
|
|
<p:selectOneMenu id="selUnidadMedidaCant" disabled="true" value="#{tramiteArmasController.armas.bloquearUnidadCantidad?null:tramiteArmasController.armas.record.unidadmedidacantidad}" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lunidadmedidapeso}" var="unidadmedidacant" itemLabel="#{unidadmedidacant.description}" itemValue="#{unidadmedidacant.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<h:outputText value="" />
|
|
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtPeso" value="#{msg_armas.lbl_peso}:"/>
|
|
<pe:inputNumber id="txtPeso" disabled="#{tramiteArmasController.armas.showRow or tramiteArmasController.armas.bloquearUnidadPeso or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.peso}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selUnidadMedidaPeso" value="#{msg_armas.lbl_unidadpeso}:"/>
|
|
<p:selectOneMenu id="selUnidadMedidaPeso" disabled="true" value="#{tramiteArmasController.armas.bloquearUnidadPeso?null:tramiteArmasController.armas.record.unidadmedidacantidad}" style="width:120px;">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lunidadmedidapeso}" var="unidadmedidapeso" itemLabel="#{unidadmedidapeso.description}" itemValue="#{unidadmedidapeso.pk.catalog}"/>
|
|
</p:selectOneMenu>
|
|
<h:outputText value="" />
|
|
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{fn:toUpperCase(msg_armas.lbl_ubicacion)}" />
|
|
</f:facet>
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="9">
|
|
<p:outputLabel for="provincia" value="#{msg_armas.lbl_provincia}:" />
|
|
<p:selectOneMenu id="provincia" value="#{tramiteArmasController.armas.record.provincecode}"
|
|
required="true"
|
|
style="width:190px" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lprovincias}" var="provincia" itemLabel="#{provincia.description}" itemValue="#{provincia.pk.provincecode}"/>
|
|
<p:ajax event="change" listener="#{tramiteArmasController.armas.executeProvince}" process="@this" update="canton ciudad parroquia"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="provincia" />
|
|
|
|
<p:outputLabel for="canton" value="#{msg_armas.lbl_canton}:" />
|
|
<p:selectOneMenu id="canton" value="#{tramiteArmasController.armas.record.cantoncode}"
|
|
required="true"
|
|
style="width:190px" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lcantones}" var="canton" itemLabel="#{canton.description}" itemValue="#{canton.pk.cantoncode}"/>
|
|
<p:ajax event="change" listener="#{tramiteArmasController.armas.executeCanton()}" process="@this" update="ciudad parroquia"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="canton" />
|
|
|
|
<p:outputLabel for="ciudad" value="#{msg_armas.lbl_ciudad}:" />
|
|
<p:selectOneMenu id="ciudad" value="#{tramiteArmasController.armas.record.citycode}"
|
|
required="true"
|
|
style="width:190px" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lcities}" var="ciudad" itemLabel="#{ciudad.description}" itemValue="#{ciudad.pk.citycode}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="ciudad" />
|
|
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="5">
|
|
<p:outputLabel for="parroquia" value="#{msg_armas.lbl_parroquia}:" />
|
|
<p:selectOneMenu id="parroquia" value="#{tramiteArmasController.armas.record.parroquiacode}"
|
|
required="true"
|
|
style="width:190px" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{tramiteArmasController.armas.lparroquias}" var="parroquia" itemLabel="#{parroquia.description}" itemValue="#{parroquia.pk.parroquiacode}"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="parroquia" />
|
|
|
|
<p:outputLabel for="txtDireccion" value="#{msg_armas.lbl_direccion}:"/>
|
|
<p:inputText id="txtDireccion" disabled="#{tramiteArmasController.armas.showRow or !tramiteArmasController.armas.record.isnew or tramiteArmasController.deshabilitarPantalla}" value="#{tramiteArmasController.armas.record.direccion}" onkeyup="Maia.forceupper(event, this)" style="width: 500px;"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
<p:panelGrid columns="1">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.lbl_datosdecomiso}" />
|
|
</f:facet>
|
|
<h:panelGroup layout="block">
|
|
<h:panelGrid columns="4">
|
|
<p:outputLabel for="txtFecDecomiso" value="#{msg_armas.lbl_fechadecimiso}:"/>
|
|
<p:calendar id="txtFecDecomiso" pattern="#{msg_general.dateformat}" disabled="true"/>
|
|
|
|
<p:outputLabel for="txtPortador" value="#{msg_armas.lbl_portadormaterial}:"/>
|
|
<p:inputText id="txtPortador" disabled="true" style="width: 500px;"/>
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="2">
|
|
<p:outputLabel for="selMotivoDecomiso" value="#{msg_armas.lbl_motivodecomiso}:"/>
|
|
<p:selectOneMenu id="selMotivoDecomiso" disabled="true" style="width: 600px;">
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="txtObservaciones" value="#{msg_armas.lbl_portadormaterial}:"/>
|
|
<p:inputTextarea id="txtObservaciones" disabled="true" style="width: 600px;"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
</h:panelGroup>
|
|
<h:panelGrid columns="2" styleClass="m-dialog-controls" id="pActionArmas">
|
|
<p:commandButton value="#{msg_armas['btn_aceptar']}" process="@this, :formSolicitud:tabtramite:formProcess:pEdit" update=":formSolicitud:tabtramite:formProcess:pEdit :formSolicitud:tabtramite:dtArmas"
|
|
action="#{tramiteArmasController.guardarArmas()}" rendered="#{!tramiteArmasController.armas.showRow or !tramiteArmasController.deshabilitarPantalla}"
|
|
icon="ui-icon-disk" oncomplete="if(args.validationFailed){return false;} PF('dialogArmas').hide()" />
|
|
<p:commandButton value="#{msg_general.btn_cancell}" oncomplete="PF('dialogArmas').hide()" icon="ui-icon-trash" process="@this" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
</ui:composition>
|