maia_modificado/.svn/pristine/7e/7e9507c482fe94c3ed1d484b291...

113 lines
5.2 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="#{registrarNovedadController}"
queryUpdate=":formTable:dt-table"
focusContainer=":formTable:datosTramites"
saveProcess=""
saveUpdate=":formTable:datosTramites" />
<p:panelGrid columns="1">
<f:facet name="header">
<p:outputLabel value="#{msg_armas.tramite}"></p:outputLabel>
</f:facet>
<h:panelGrid id="datosTramites" columns="2" >
<p:outputLabel for="numeroTramite" value="#{msg_armas.lbl_noTramite}:" style="font-weight: bold;"/>
<p:inputText id="numeroTramite" style="width:100%" disabled="true"
value="#{registrarNovedadController.record.modifiedData['ntramite']}">
</p:inputText>
</h:panelGrid>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{registrarNovedadController.tarmSolicitudArmasController}"
queryProcess=""
queryUpdate=":formTable:dt-table,:formTable:datosTramites"
createProcess=""
createUpdate=":formTable:datosTramites"
dialogWidgetVar="dialog"
showQueryBtn ="false"
showCreateBtn = "false"
showSaveBtn = "false"
showNextBtn="false"
showPreviousBtn="false"/>
<p:commandButton value="#{msg_armas.lbl_aceptar}" action="#{registrarNovedadController.save()}"
update=":formTable:controls,:formTable:panelObservaciones, :formTable:idComplete">
</p:commandButton>
<p:commandButton id="idComplete" value="#{msg_armas.btn_enviar}" icon="ui-icon-circle-check" process="@this" update="controls"
action="#{registrarNovedadController.completarTarea()}" oncomplete="Maia.loadPageUtil();"
disabled="#{!registrarNovedadController.btnEnviar}"/>
<p:commandButton value="#{msg_armas.btn_cancelar}" action="/pages/armas/verificarInformacionDevolucion.xhtml" immediate="true" > </p:commandButton>
</h:panelGrid>
<p:panelGrid id="datos" columns="1" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_armas.lbl_informacionarmas}" />
</f:facet>
<h:panelGrid columns="1">
<h:column>
<p:dataTable id="dt-table" var="row" value="#{registrarNovedadController.tarmSolicitudArmasController.lrecord}"
rows="10" rowIndexVar="index" rowKey="#{row.rowkey()}" style="min-width: 500px; width: auto;" selectionMode="single"
paginator="true" paginatorTemplate="{PreviousPageLink} {NextPageLink}" paginatorPosition="top">
<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.modifiedData['clase']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_tipo2}" resizable="true" >
<h:outputText value="#{row.modifiedData['tipo']}" />
</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.modifiedData['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}" resizable="true" >
<h:outputText value="#{row.modifiedData['seriecanon']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_estado}" resizable="true" >
<h:outputText value="#{row.modifiedData['estado']}" />
</p:column>
</p:dataTable>
</h:column>
</h:panelGrid>
</p:panelGrid>
<h:panelGrid id="panelObservaciones" columns="3" >
<h:column >
<p:outputLabel for="observaciones" value="#{msg_armas.lbl_observaciones}:" />
</h:column>
<h:column>
<p:inputTextarea id="observaciones" required="true" style="width:800px;height:50px;max-height:50px"
value="#{registrarNovedadController.record.observacionnovedad}"
maxlength="50"
autoResize="false" >
</p:inputTextarea>
</h:column>
<h:column>
<p:message for="observaciones"></p:message>
</h:column>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>