maia/.svn/pristine/58/58a8ac898c47cae07c9d3d75f56...

116 lines
6.8 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="#{ventaTraspasoDominioController}"
queryProcess=""
queryUpdate=":formTable:dt-table"
saveProcess=""
saveUpdate=""
focusContainer="" />
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_armas.htbl_detalledelmaterial}" />
</f:facet>
<!-- boton llama al dialogo -->
<br/><br/>
<h:panelGrid columns="9" id="controls">
<p:commandButton value="#{msg_general.btn_aceptar}"
oncomplete="if(args.validationFailed){return false;} PF('dialog').show()" icon="ui-icon-disk"
update=":formConfirmacion:pnlConfirmacionVerificacion"
rendered="#{ventaTraspasoDominioController.lrecord.size()>0}"/>
</h:panelGrid>
<p:dataTable id="dt-table" var="row" value="#{ventaTraspasoDominioController.lrecord}" rowIndexVar="rowIndex" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
<p:column headerText="No." resizable="true" style="width:60px" >
<h:outputText value="#{rowIndex+1}" />
</p:column>
<p:column headerText="#{msg_general.lbl_code}" resizable="true" >
<h:outputText value="#{row.codigoarma}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_serie}" resizable="true" sortBy="#{row.lote}">
<h:outputText value="#{row.lote}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_longitud}" resizable="true" >
<h:outputText value="#{row.modifiedData['longitud']}" />
</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_tipo}" resizable="true" >
<h:outputText value="#{row.modifiedData['tipoarmaexplosivo']}"/>
</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_estado}" resizable="true" >
<h:outputText value="#{row.modifiedData['estado']}"/>
</p:column>
<p:column headerText="#{msg_armas.lbl_color}" resizable="true" >
<h:outputText value="#{row.modifiedData['color']}" />
</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_cantidad}" resizable="true" >
<h:outputText value="#{row.cantidad}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_peso}" resizable="true" >
<h:outputText value="#{row.peso}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_unidadcantidad}" resizable="true" >
<h:outputText value="#{row.modifiedData['unidadmedidapeso']}" />
</p:column>
<p:column>
<maia:alfrescoDocDownload id="archivoComprobante" controllerAlfresco="#{ventaTraspasoDominioController.alfrescoController}"
xPathLocation="#{row.modifiedData['pathdocumento']}" immediate = "true"
label="#{msg_armas.btn_descargarDocumentos}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
<!-- Dialogo bpm -->
<p:dialog widgetVar="dialog" 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_aprobacion}" />
</f:facet>
<h:form id="formConfirmacion">
<h:panelGrid id="pnlConfirmacionVerificacion" columns="3" bodyrows="1" >
<p:outputLabel for="accion" value="#{msg_armas.lbl_accion}:" />
<p:selectOneMenu id="accion" value="#{ventaTraspasoDominioController.accionTomada}"
var="p" style="width:200px" panelStyle="width:340px" required="true">
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
<f:selectItems value="#{ventaTraspasoDominioController.accionList}" 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" rows="4" maxlength="250" value="#{ventaTraspasoDominioController.bpmDataComment}"
style="width: 250px; max-width:300px;height:70px;max-height:70px" autoResize="false" />
<p:message for="observacion" />
</h:panelGrid>
<h:panelGrid columns="9" >
<p:commandButton id="saveControl" value="#{msg_general.btn_save}" icon="ui-icon-disk"
action="#{ventaTraspasoDominioController.completarTarea()}"
oncomplete="PF('dialog').hide();" process="@this, formConfirmacion" update="@form :formTable"/>
<p:commandButton id="cancelControl" value="#{msg_general.btn_cancell}" icon="ui-icon-trash"
oncomplete="if(args.validationFailed){return false;} Maia.loadPageUtil();PF('dialog').hide();" />
</h:panelGrid>
</h:form>
</p:dialog>
</ui:define>
</ui:composition>