432 lines
26 KiB
Plaintext
Executable File
432 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:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:c="http://java.sun.com/jstl/core"
|
|
xmlns:p="http://primefaces.org/ui"
|
|
xmlns:pe="http://primefaces.org/ui/extensions"
|
|
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
|
|
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents"
|
|
template="/WEB-INF/templates/template.xhtml">
|
|
<ui:define name="content">
|
|
<h:form id="formTable">
|
|
<maia:pageEvents controller="#{armasController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:dt-armas"
|
|
saveProcess=""
|
|
saveUpdate=""
|
|
focusContainer=":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="2" >
|
|
<p:outputLabel for="fpkmod" value="#{msg_armas.lbl_serie}:" />
|
|
<p:inputText id="fpkmod" value="#{armasController.mfilters['lote']}" style="width: 140px;" />
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="2" >
|
|
<p:outputLabel for="fpkdocumento" value="#{msg_armas.lbl_noDocumento}:" style="display:block;width:160px;" />
|
|
<h:panelGroup>
|
|
<p:inputText id="fpkdocumento" value="#{armasController.numeroDocumento}" style="width: 250px;" disabled="true" />
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{armasController.openPersonLov()}"
|
|
process="@this" styleClass="m-lov-button" oncomplete="Maia.focus('formTable\\:idQuery');">
|
|
<p:ajax event="dialogReturn" listener="#{armasController.onReturnPersonLov}" update=":formTable:filters" />
|
|
</p:commandButton>
|
|
</h:panelGroup>
|
|
<p:outputLabel for="fnombre" value="#{msg_armas.lbl_nombrerazonsocial}:" />
|
|
<p:inputText id="fnombre" value="#{armasController.razonSocial}" disabled="true" maxlength="60" style="width: 400px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
</h:panelGrid>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{armasController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:filters :formTable:dt-armas"
|
|
createUpdate=":txtTituloArmas :formProcess:pEdit :formProcess:pnlControlesArma"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_armas.htbl_detallematerial}" />
|
|
</f:facet>
|
|
<p:dataTable id="dt-armas" var="row" value="#{armasController.lrecord}" rowIndexVar="rowIndex" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
<p:column headerText="#{msg_armas.lbl_clase}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['clase']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_tipo}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['tipoarmaexplosivo']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_marca}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['marca']}" />
|
|
</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}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['calibre']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_serie']}">
|
|
<h:outputText value="#{row.lote}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas.lbl_estado}" resizable="true">
|
|
<h:outputText value="#{row.modifiedData['estado']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_armas['lbl_cantidad']}" resizable="true">
|
|
<h:outputText value="#{row.cantidad}" />
|
|
</p:column>
|
|
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_show}"
|
|
action="#{armasController.loadEdit}"
|
|
update=":txtTituloArmas :formProcess:pEdit :formProcess:pnlControlesArma"
|
|
oncomplete="PF('dialog').show()"
|
|
styleClass="m-action-button" icon="ui-icon-link" process="@this, :formTable:data-content">
|
|
<f:setPropertyActionListener target="#{armasController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{armasController.showRow}" value="#{true}" />
|
|
<f:setPropertyActionListener target="#{armasController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}"
|
|
action="#{armasController.loadEdit}"
|
|
update=":txtTituloArmas :formProcess:pEdit :formProcess:pnlControlesArma"
|
|
oncomplete="PF('dialog').show()"
|
|
styleClass="m-action-button"
|
|
icon="ui-icon-pencil" process="@this, :formTable:data-content">
|
|
<f:setPropertyActionListener target="#{armasController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{armasController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{armasController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}"
|
|
rendered="#{row.estado == 'REG'}"
|
|
update=":formTable:data-content" styleClass="m-action-button"
|
|
icon="ui-icon-trash" action="#{armasController.remove()}"
|
|
process="@this, :formTable:data-content">
|
|
<f:setPropertyActionListener target="#{armasController.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton rendered="true"
|
|
update="@this :frmCambioUsuario:pChange"
|
|
styleClass="m-action-button"
|
|
icon="ui-icon-person"
|
|
action="#{armasController.abrirDialogCambio}"
|
|
oncomplete="PF('dialogUserChange').show()"
|
|
process="@this">
|
|
<f:setPropertyActionListener target="#{armasController.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton id="reporte" title="Generar Certificado"
|
|
styleClass="m-action-button"
|
|
icon="ui-icon-print"
|
|
actionListener="#{armasController.generarReporte(row)}"
|
|
ajax="false" process="@this" rendered="#{row.generacertificado.equals('NO') and row.pk !=null}"/>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
<!-- dialog -->
|
|
|
|
<p:dialog widgetVar="dialog" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog" style="overflow:auto" height="450">
|
|
<f:facet name="header">
|
|
<h:outputText id="txtTituloArmas" value="#{armasController.showRow ? msg_armas.lbl_vermaterial : (armasController.record.isnew ? msg_armas.lbl_crearmaterial : msg_armas.lbl_modificarmaterial)}" />
|
|
</f:facet>
|
|
<h:form id="formProcess">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGroup id="pEdit" layout="block">
|
|
<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="#{armasController.tipoDoc}" required="true" maxlength="20" disabled="#{armasController.showRow or !armasController.record.isnew}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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="#{armasController.numDoc}"
|
|
disabled="#{armasController.showRow or !armasController.record.isnew}"
|
|
required="true" maxlength="60" style="width:160px;">
|
|
<pe:keyFilter for="numdoc" mask="pint"/>
|
|
<p:ajax event="blur" update="pEdit" process="tipodoc,numdoc" listener="#{armasController.validacionDocumento(armasController.numDoc,armasController.tipoDoc)}"/>
|
|
</p:inputText>
|
|
<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="#{armasController.nombreRazon}" 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="#{armasController.record.estado}" required="true" disabled="#{armasController.showRow}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.lestadoarma}" var="estado" itemLabel="#{estado.description}" itemValue="#{estado.pk.catalog}"/>
|
|
<p:ajax event="change" update=":formProcess" process="@this"/>
|
|
</p:selectOneMenu>
|
|
<p:message for="selEstado"/>
|
|
|
|
<p:outputLabel for="txtFecEmisionPermiso" value="#{msg_armas.lbl_fechaemisionpermiso}:"/>
|
|
<p:calendar id="txtFecEmisionPermiso"
|
|
disabled="#{armasController.showRow or !armasController.record.isnew}" required="true" maxdate="#{armasController.fechaActual}"
|
|
value="#{armasController.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="#{armasController.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="#{armasController.record.modifiedData['clase']}"/>
|
|
<p:commandButton icon="ui-icon-link" styleClass="m-lov-button"
|
|
disabled="#{armasController.showRow}"
|
|
actionListener="#{armasController.openArmaExplosivoLov}" immediate="true" process="@this" >
|
|
<p:ajax event="dialogReturn" listener="#{armasController.onReturnArmaExplosivo}"
|
|
process="@this" update="txtClase txtLongitud txtTipoarma txtCalibre txtCantidad selUnidadMedidaCant selUnidadMedidaPeso txtPeso" immediate="true"/>
|
|
</p:commandButton>
|
|
|
|
<p:outputLabel for="txtLongitud" value="#{msg_armas.lbl_longitud}:"/>
|
|
<p:inputText id="txtLongitud" disabled="true" value="#{armasController.record.modifiedData['longitud']}"/>
|
|
<h:panelGroup/>
|
|
|
|
<p:outputLabel for="txtTipoarma" value="#{msg_armas.lbl_tipo}:"/>
|
|
<p:inputText id="txtTipoarma" disabled="true" value="#{armasController.record.modifiedData['tipoarmaexplosivo']}"/>
|
|
<h:panelGroup/>
|
|
|
|
<p:outputLabel for="txtCalibre" value="#{msg_armas.lbl_calibre}:"/>
|
|
<p:inputText id="txtCalibre" disabled="true" value="#{armasController.record.modifiedData['calibre']}"/>
|
|
<h:panelGroup/>
|
|
|
|
<p:outputLabel for="selMarca" value="#{msg_armas.lbl_marca}:"/>
|
|
<p:selectOneMenu id="selMarca" value="#{armasController.record.marca}" required="true" style="width:120px;" disabled="#{armasController.showRow}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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" value="#{armasController.record.modelo}" disabled="#{armasController.showRow}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selColor" value="#{msg_armas.lbl_color}:"/>
|
|
<p:selectOneMenu id="selColor" value="#{armasController.record.color}" style="width:120px;" disabled="#{armasController.showRow}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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" value="#{armasController.record.tipofabricacion}" style="width:120px;" disabled="#{armasController.showRow}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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" value="#{armasController.registroArmas.record.paisorigen}" style="width:120px;" disabled="#{armasController.showRow}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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" value="#{armasController.record.lote}" disabled="#{armasController.showRow}" required="true"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="txtSerieCanon" value="#{msg_armas.lbl_seriecanon}:"/>
|
|
<p:inputText id="txtSerieCanon" value="#{armasController.record.seriecanon}" disabled="#{armasController.showRow}"/>
|
|
<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" value="#{armasController.record.cantidad}" disabled="#{armasController.showRow or armasController.bloquearUnidadCantidad}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selUnidadMedidaCant" value="#{msg_armas.lbl_unidadcantidad}:"/>
|
|
<p:inputText id="selUnidadMedidaCant" value="#{armasController.record.modifiedData['unidadMedidaCantidad']}" disabled="true"/>
|
|
<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" value="#{armasController.record.peso}" disabled="#{armasController.showRow or armasController.bloquearUnidadPeso}"/>
|
|
<h:outputText value="" />
|
|
|
|
<p:outputLabel for="selUnidadMedidaPeso" value="#{msg_armas.lbl_unidadpeso}:"/>
|
|
<p:inputText id="selUnidadMedidaPeso" value="#{armasController.record.modifiedData['unidadMedidaPeso']}" disabled="true"/>
|
|
<h:outputText value="" />
|
|
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
<h:outputText value="" />
|
|
|
|
<!-- documento 3 espacios-->
|
|
<p:outputLabel for="fileUploadCmpt" value="Documento:"
|
|
rendered="#{armasController.record.estado=='RPER' or armasController.record.isnew}"/>
|
|
<h:panelGrid columns="1" rendered="#{armasController.record.estado=='RPER' or armasController.record.isnew}">
|
|
<h:outputText value="#{msg_armas['msg_tamano_archivo_requisitos_jpg_png_1']}" style="color:blue;font-weight: bold;"/>
|
|
<p:fileUpload id="fileUploadCmpt" fileUploadListener="#{armasController.handleUpload}" update="descFileUpload"
|
|
allowTypes="/(\.|\/)(pdf|jpeg|jpg|png)$/" description="Seleccionar documento"
|
|
fileLimit="1"
|
|
required="true"
|
|
label="#{msg_armas.lbl_seleccionar}"
|
|
uploadLabel="#{msg_armas.lbl_subir}"
|
|
cancelLabel="#{msg_armas.lbl_cancelar}"
|
|
invalidFileMessage="#{msg_armas['msg_error_tipoarchivoinvalido']}"
|
|
invalidSizeMessage="#{msg_armas.lbl_mensajearchivoinvalidom} #{msg_armas.lbl_1mb}"
|
|
fileLimitMessage="#{msg_armas['msg_error_exedeelnumero']}"
|
|
sizeLimit="#{msg_armas.lbl_archivounmega}"
|
|
/>
|
|
</h:panelGrid>
|
|
<h:panelGrid id="descFileUpload" columns="1" style="width:100%;"
|
|
rendered="#{armasController.record.estado=='RPER' or armasController.record.isnew}">
|
|
<p:outputLabel value="#{armasController.recorteNombre(armasController.uploadedFile.fileName)}" rendered="#{armasController.uploadedFile != null}"/>
|
|
</h:panelGrid>
|
|
</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="#{armasController.record.provincecode}"
|
|
style="width:190px" disabled="false" required="true">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.lprovincias}" var="provincia" itemLabel="#{provincia.description}" itemValue="#{provincia.pk.provincecode}"/>
|
|
<p:ajax event="change" listener="#{armasController.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="#{armasController.record.cantoncode}"
|
|
required="true"
|
|
style="width:190px" disabled="false">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.lcantones}" var="canton" itemLabel="#{canton.description}" itemValue="#{canton.pk.cantoncode}"/>
|
|
<p:ajax event="change" listener="#{armasController.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="#{armasController.record.citycode}"
|
|
required="true"
|
|
style="width:190px" disabled="false">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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="#{armasController.record.parroquiacode}"
|
|
required="true"
|
|
style="width:190px" disabled="false">
|
|
<f:selectItem itemLabel="" itemValue="#{null}"/>
|
|
<f:selectItems value="#{armasController.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" value="#{armasController.record.direccion}" style="width: 500px;" disabled="#{armasController.showRow}"/>
|
|
</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_observaciones}:"/>
|
|
<p:inputTextarea id="txtObservaciones" disabled="true" style="width: 600px;"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</p:panelGrid>
|
|
</h:panelGroup>
|
|
<h:panelGrid id="pnlControlesArma" columns="2" styleClass="m-dialog-controls">
|
|
<maia:dialogControls controller="#{armasController}"
|
|
process=":formProcess:pEdit"
|
|
showUpdateBtn="#{!armasController.showRow}"
|
|
update=":formProcess:pEdit, :formTable:dt-armas "
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
<p:dialog widgetVar="dialogUserChange" 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_actualizar_propietario']}" />
|
|
</f:facet>
|
|
<h:form id="frmCambioUsuario">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGroup layout="block" id="pChange">
|
|
<h:outputLabel value="#{msg_armas['lbl_datos_propietario_nuevo']}:" />
|
|
<h:panelGrid columns="2">
|
|
<p:outputLabel for="tipodocumento" value="#{msg_armas['lbl_tipoidentiicacion']}:"/>
|
|
<p:inputText id="tipodocumento" value="#{armasController.nuevoPropietarioArma.modifiedData['destipoidentificacion']}" disabled="true"/>
|
|
<p:outputLabel for="documento" value="#{msg_armas['lbl_noDocumento']}:"/>
|
|
<h:panelGrid columns="2">
|
|
<p:inputText id="documento" value="#{armasController.nuevoPropietarioArma.identification}" disabled="true" required="true"/>
|
|
<p:commandButton icon="ui-icon-link" styleClass="m-lov-button" actionListener="#{armasController.openLovCambioUsuario}" immediate="true" process="@this" update="@this" >
|
|
<p:ajax event="dialogReturn" listener="#{armasController.onReturnCambioUsuario}" process="@this" update="tipodocumento documento razonsocial pnlBotones" immediate="true"/>
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
<p:outputLabel for="razonsocial" value="#{msg_armas['lbl_nombrerazonsocial']}:"/>
|
|
<p:inputText id="razonsocial" value="#{armasController.nuevoPropietarioArma.name}" style="width:350px;" disabled="true"/>
|
|
</h:panelGrid>
|
|
<h:panelGrid columns="2" id="pnlBotones">
|
|
<p:commandButton action="#{armasController.cambiarArmaUsuario}"
|
|
oncomplete="if(args.validationFailed){return false;} PF('dialogUserChange').hide()"
|
|
rendered="#{!empty armasController.nuevoPropietarioArma}"
|
|
value="#{msg_armas['lbl_aceptar']}" update=":formTable:dt-armas"/>
|
|
<p:commandButton value="#{msg_armas['lbl_cancelar']}" oncomplete="PF('dialogUserChange').hide()"/>
|
|
</h:panelGrid>
|
|
</h:panelGroup>
|
|
</h:form>
|
|
</p:dialog>
|
|
</ui:define>
|
|
</ui:composition> |