maia_modificado/.svn/pristine/0d/0d1d970afb3a09af748d4fbf1ce...

145 lines
5.9 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="form">
<maia:pageEvents controller="#{testConocimientosController}"
focusContainer="" />
<p:panelGrid id="filters" columns="1" styleClass="m-filters" style="width:400px">
<f:facet name="header">
<h:outputText value="#{msg_armas.hfld_datosgenerales}" />
</f:facet>
<h:panelGrid>
<h:panelGrid columns="5">
<p:outputLabel for="ffecha" value="#{msg_armas.lbl_fechaevaluacion}:"
style="width:300px" />
<p style="width: 0px"></p>
<p:inputText id="ffecha"
value="#{testConocimientosController.fecha}" style="width:230px"
disabled="true">
<f:convertDateTime pattern="dd-MM-yyyy" />
</p:inputText>
<p:outputLabel for="ftranstipo" value="#{msg_armas.lbl_test}:" />
<p:inputText id="ftranstipo"
value="#{msg_armas.lbl_conocimientos}" maxlength="180"
disabled="true" style="width: 230px;"
onkeyup="Maia.forceupper(event, this);" />
<p:outputLabel for="fidentificacion"
value="#{msg_armas.lbl_noDocumento}:" />
<p style="width: 21px"></p>
<p:inputText id="fidentificacion"
value="#{testConocimientosController.evaluadoSNAP.identification}"
maxlength="30" disabled="true" style="width: 230px;" icon="ui-icon-link"
onkeyup="Maia.forceupper(event, this);" />
<h:panelGroup></h:panelGroup>
<h:panelGrid columns="1"/>
<p:outputLabel for="fraz" value="#{msg_general.lbl_razonsocial}:" />
<h:panelGrid columns="1"/>
<p:inputText id="fraz"
value="#{testConocimientosController.evaluadoSNAP.name}"
maxlength="180" disabled="true" style="width: 230px;"
onkeyup="Maia.forceupper(event, this);" />
<h:panelGrid columns="1"/>
<h:panelGrid columns="1"/>
<p:outputLabel for="ftipopersona"
value="#{msg_armas.lbl_tipoPersona}:" />
<p style="width: 42px"></p>
<p:inputText id="ftipopersona"
value="#{testConocimientosController. lTipoPersona.description}"
maxlength="180" disabled="true" style="width: 230px;"
onkeyup="Maia.forceupper(event, this);" />
<h:panelGrid></h:panelGrid>
<h:panelGrid></h:panelGrid>
<p:outputLabel value="#{msg_armas.lbl_compania}" for="fcompaniaid"/>
<h:panelGrid></h:panelGrid>
<p:inputText id="fcompaniaid" value="#{testConocimientosController.guardia.modifiedData['iempresa']}" disabled="true" style="width: 230px;"/>
<h:panelGrid></h:panelGrid>
<p:inputText id="fcompanianombre" value="#{testConocimientosController.guardia.modifiedData['nempresa']}" disabled="true" style="width: 230px;"/>
</h:panelGrid>
</h:panelGrid>
<h:panelGrid id="botones" style="width:600px; text-align:center" columns="1">
<p:outputLabel style="center" value="#{msg_armas.lbl_mensaje}" />
<h:panelGrid columns="3" style="width:300px;text-align:center" >
<p style="width: 200px"></p>
<p:commandButton value="#{msg_armas.btn_iniciar}" style="width:70px"
actionListener="#{testConocimientosController.openTest()}"
process="@this" disabled="#{testConocimientosController.bloquear}" >
<p:ajax event="dialogReturn"
listener="#{testConocimientosController.onReturnOpenTest}" update="botones, dt-table"/>
</p:commandButton>
<p:commandButton value="#{msg_general.btn_cancell}" style="width:70px" rendered="false"
actionListener="#{testConocimientosController.limpiar()}"
process="@this"
update=":form:filters, botones">
</p:commandButton>
</h:panelGrid>
</h:panelGrid>
</p:panelGrid>
<p:panelGrid id="data-content" columns="1"
styleClass="m-data-content" style="width:1200px">
<f:facet name="header">
<h:outputText value="#{msg_armas.lbl_detallevaluacion}" />
</f:facet>
<p:dataTable id="dt-table" var="row"
value="#{testConocimientosController.evaluacionController.lrecord}"
rows="200" style="min-width: 800px; width: auto;"
rowKey="#{row.rowkey}" selectionMode="single">
<p:column headerText="#{msg_armas.lbl_No}" resizable="true"
style="width:60px" >
<h:outputText value="#{row.personcode}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_noDocumento}" resizable="true">
<h:outputText value="#{row.modifiedData['identificacion']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_nombrerazonsocial}" resizable="true">
<h:outputText value="#{row.modifiedData['nombre']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_tipoPersona}" resizable="true">
<h:outputText value="#{row.modifiedData['tipopersonadesc']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_evaluacion}" resizable="true">
<h:outputText value="#{row.modifiedData['tipoevaluaciondesc']}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_fechadeevaluacion}" resizable="true">
<h:outputText value="#{row.fecha}" >
<f:convertDateTime pattern="dd-MM-yyyy"/>
</h:outputText>
</p:column>
<p:column headerText="Resultado"
resizable="true">
<h:outputText value="#{row.resultado}" />
</p:column>
<p:column headerText="#{msg_armas.lbl_estadoevaluacion}" resizable="true">
<h:outputText value="#{row.modifiedData['estadovig']}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</ui:define>
</ui:composition>