maia/.svn/pristine/7b/7b45cc5bff976c9ac1c43a8f274...

162 lines
10 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="#{verificacionBodegaController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:dt-table"
focusContainer=":formTable:filters"
saveProcess=""
saveUpdate=":formTable:controls" />
<p:panelGrid id="filters" columns="1" styleClass="m-filters"
style="padding-right: 150px;">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<h:panelGrid columns="2" >
<p:outputLabel for="fechaCorte" value="#{msg_armas.lbl_fechaDeCorte}:" style="display:block;width:150px;"/>
<p:calendar id="fechaCorte" value="#{verificacionBodegaController.fechaCorte}"
pattern="#{msg_general.dateformat}" size="43" disabled="#{!verificacionBodegaController.cmbTransaccionenvio}">
<f:converter converterId="converter.date" for="fechaCorte"/>
<p:ajax event="dateSelect" update="fechaCorte"
process="@this, fechaCorte" listener="#{verificacionBodegaController.validarfecha(verificacionBodegaController.fechaCorte)}"/>
</p:calendar>
<p:outputLabel for="numTransaccionenvio" value="#{msg_armas.lbl_numerotransaccionenvio}:" style="display:block;width:150px;"/>
<p:selectOneMenu id="numTransaccionenvio" value="#{verificacionBodegaController.numerotransaccionEnvio}"
lvar="p" style="width:140px" panelStyle="width:140px" required="true" disabled="#{!verificacionBodegaController.cmbTransaccionenvio}">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{verificacionBodegaController.listaEnviosRealizados}" var="vmod" itemLabel="#{vmod.numerotransaccion}" itemValue="#{vmod.numerotransaccion}" />
<p:ajax update="institucionF, nombreInstitucion" event="change" listener="#{verificacionBodegaController.executeTransaccion}" process="numTransaccionenvio"/>
</p:selectOneMenu>
<p:outputLabel for="institucionF" value="#{msg_armas.lbl_organismocontrol}:" style="display:block;width:150px;"/>
<p:inputText id="institucionF" value="#{verificacionBodegaController.centroControlOrigenStr}" style="display:block;width:258px;" disabled="true"></p:inputText>
<p:outputLabel for="nombreInstitucion" value="#{msg_armas.lbl_unidadcontrol}:" style="display:block;width:150px;"/>
<p:inputText id="nombreInstitucion" value="#{verificacionBodegaController.unidadOrigenStr}" style="display:block;width:258px;" disabled="true"></p:inputText>
</h:panelGrid>
</p:panelGrid>
<p:panelGrid id="filters2" columns="1" styleClass="m-filters"
style="padding-right: 150px;">
<f:facet name="header">
<h:outputText value="#{msg_armas.lbl_unidadrecepcion}" />
</f:facet>
<h:panelGrid columns="4" >
<p:outputLabel for="institucionDestino" value="#{msg_armas.lbl_organismocontrol}:" style="display:block;width:130px;"/>
<p:inputText id="institucionDestino" value="#{verificacionBodegaController.organismoControlDestino}" style="display:block;width:258px;" disabled="true"/>
<p:outputLabel for="nombreInstitucionUDestino" value="#{msg_armas.lbl_unidadcontrol}:" style="display:block;width:130px;"/>
<p:inputText id="nombreInstitucionUDestino" value="#{verificacionBodegaController.unidadControlDestino}" style="display:block;width:258px;" disabled="true"/>
</h:panelGrid>
</p:panelGrid>
<h:panelGrid columns="2" style="width:100%">
<h:panelGrid columns="2" styleClass="m-filters" style="border:none !important;" id="pnlnumerorecepcion">
<p:outputLabel for="numeroTran" value="#{msg_armas.lbl_numerotransaccion}:" style="display:block;width:120px;"/>
<p:inputText id="numeroTran" value="#{verificacionBodegaController.numRecepcionGenerado}" disabled="true" style="display:block;width:250px;"/>
</h:panelGrid>
</h:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{verificacionBodegaController}"
queryProcess=":formTable:filters, :formTable:data-content"
queryUpdate=":formTable:dt-table, :formTable:data-content, :formTable:pnlnumerorecepcion, :formTable:controls, :formTable:filters2 "
createProcess=""
createUpdate=""
dialogWidgetVar=""
showCreateBtn = "false" showNextBtn="false" showPreviousBtn="false"
showSaveBtn="false"/>
<p:commandButton id="saveControl1" value="#{msg_general.btn_save}" icon="ui-icon-disk" update=":formTable:dt-table, :formTable:data-content, controls, pnlnumerorecepcion, :formTable:filters, :formTable:filters2"
process="@this, :formTable:dt-table, :formTable:filters2" action="#{verificacionBodegaController.save()}"
disabled="#{verificacionBodegaController.btnSave}"/>
<p:commandButton id="btnGenerarReporte" actionListener="#{verificacionBodegaController.generarActa()}"
ajax="false" process="btnGenerarReporte" value="#{msg_armas.btn_generaracta}" update=":formTable:dt-table, :formTable:data-content, controls"
disabled="#{verificacionBodegaController.btnGenerarActa}"/>
<p:commandButton id="idIniciFlujo" value="#{msg_armas.btn_iniciarproceso}" icon="ui-icon-play" process="@this" onclick="PF('confirmFlowDialog').show()"
disabled="#{verificacionBodegaController.btnGenerarActa}" rendered="#{verificacionBodegaController.isCentroDpto}" saveUpdate="controls"/>
</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.htbl_detalledelmaterialm}" />
</f:facet>
<h:panelGroup layout="block" style="float:right;">
<h:panelGrid columns="2" styleClass="m-data-content" style="min-width: 150px!important;" >
<p:outputLabel for="txtSeleccionarArmas" value="#{msg_armas['lbl_seleccionartodos']}"/>
<p:selectBooleanCheckbox id="txtSeleccionarArmas" value="#{verificacionBodegaController.mfilelds['seleccionarTodos']}" disabled="#{verificacionBodegaController.btnSelTodos}">
<p:ajax listener="#{verificacionBodegaController.seleccionarTodos}" global="false" process="@this dt-table" update="dt-table, :formTable:controls, :formTable:filters, :formTable:filters2"/>
</p:selectBooleanCheckbox>
</h:panelGrid>
</h:panelGroup>
<p:dataTable id="dt-table" var="row" value="#{verificacionBodegaController.lrecord}"
paginator="true" paginatorTemplate="{PreviousPageLink} {NextPageLink}" paginatorPosition="top" rows="100000"
rowIndexVar="index" rowKey="#{row.rowkey()}" selectionMode="single" style="width:100%">
<p:column headerText="#{msg_armas.lbl_No}" resizable="true" width="30">
<h:outputText value="#{index+1}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_nodecomiso}" resizable="true" width="90">
<h:outputText value="#{row.modifiedData['numerotransaccion']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_clase}" resizable="true" >
<h:outputText value="#{row.modifiedData['nclase']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_tipoarmas}" resizable="true" >
<h:outputText value="#{row.modifiedData['ntipo']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_marca}" resizable="true" >
<h:outputText value="#{row.modifiedData['nmarca']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_calibre}" resizable="true">
<h:outputText value="#{row.modifiedData['ncalibre']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_serielote}" resizable="true" >
<h:outputText value="#{row.modifiedData['nserie']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_noRecibo}" resizable="true" >
<h:outputText value="#{row.modifiedData['nrecibo']}" />
</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.modifiedData['nunidad']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_numeroDeDocumento}" resizable="true" >
<h:outputText value="#{row.modifiedData['documento']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_nombrerazonsocial}" resizable="true" >
<h:outputText value="#{row.modifiedData['nrazons']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_fecdecomiso}" resizable="true" >
<h:outputText value="#{row.fdecomiso}" >
<f:convertDateTime pattern="#{msg_general.dateformat}"/>
</h:outputText>
</p:column>
<p:column headerText="#{msg_armas.lbl_observacion}" resizable="true" >
<h:outputText value="#{row.observacion}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_verificar}" resizable="true" style="width:60px;text-align: center;" >
<p:selectBooleanCheckbox value="#{row.modifiedData['seleccion']}" disabled="#{!verificacionBodegaController.btnGenerarActa}" >
<p:ajax listener="#{verificacionBodegaController.onChange(row)}"
process="@this dt-table" event="change" update="dt-table, :formTable:controls" />
</p:selectBooleanCheckbox>
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
<maia:commentBpmTask id="idCommentsBpm" controller="#{verificacionBodegaController}" aprNegMod="true" aprNeg="false" aprMod="false"/>
</ui:define>
</ui:composition>