180 lines
13 KiB
Plaintext
Executable File
180 lines
13 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:c="http://java.sun.com/jstl/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="#{modifyUserController}"
|
|
queryProcess=":formTable:data-content :formTable:filters"
|
|
queryUpdate=":formTable:filters, :formTable:data-content, :formTable:data-profile"
|
|
saveProcess=":formTable:data-content"
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="3" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fpkuser" value="#{msg_customer.lbl_usercode}:" />
|
|
<p:inputText id="fpkuser" value="#{modifyUserController.mfilters['pk.usercode']}" style="width: 160px;" onkeyup="Maia.forceupper(event, this);" maxlength="20"/>
|
|
<p:spacer/>
|
|
<p:outputLabel for="fname" value="#{msg_customer.lbl_person}:" />
|
|
<p:inputText id="fname" value="#{modifyUserController.userdetail.mfilelds['personname']}" style="width: 400px;" disabled="true" />
|
|
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{modifyUserController.openPersonLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{modifyUserController.onReturnPersonLov}" update="filters, data-content, data-profile" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
|
|
<p:remoteCommand name="jsUser" actionListener="#{modifyUserController.query()}" update="filters,data-content" process="@this, filters"/>
|
|
|
|
<h:panelGrid columns="2" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{modifyUserController}"
|
|
queryProcess=":formTable:data-content :formTable:filters"
|
|
queryUpdate=":formTable:filters :formTable:data-content :formTable:data-profile"
|
|
showNextBtn="false" showPreviousBtn="false" showCreateBtn="false" />
|
|
</h:panelGrid>
|
|
|
|
|
|
<h:panelGrid id="data-content" columns="2" styleClass="m-data-content">
|
|
<p:outputLabel for="usercode" value="#{msg_general.lbl_code}:" />
|
|
<p:inputText id="usercode" value="#{modifyUserController.userdetail.record.pk.usercode}" style="width:200px;" disabled="true" />
|
|
|
|
<p:outputLabel for="lenguaje" value="#{msg_general.lbl_language}:" />
|
|
<p:selectOneMenu id="lenguaje" value="#{modifyUserController.userdetail.record.languagecode}"
|
|
style="width:300px" panelStyle="width:300px"
|
|
required="true" var="p" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.llanguage}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="nickname" value="#{msg_customer.lbl_nickname}:" />
|
|
<p:inputText id="nickname" value="#{modifyUserController.userdetail.record.nickname}" style="width:200px;" required="true" maxlength="30" disabled="#{modifyUserController.deshabilitarPantalla}"/>
|
|
|
|
<p:outputLabel value="#{msg_general.lbl_channel}:" />
|
|
<p:selectOneMenu id="channel" value="#{modifyUserController.userdetail.record.channelcode}"
|
|
style="width:300px" panelStyle="width:300px"
|
|
required="true" var="p" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.lchannel}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="organismocontrol" value="#{msg_armas.lbl_organismocontrol}:" style="width:150px;"/>
|
|
<p:selectOneMenu id="organismocontrol" value="#{modifyUserController.centroControl}"
|
|
panelStyle="width:300px" style="width:300px" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.centroControls}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
|
|
<p:ajax update="unidad" event="change" listener="#{modifyUserController.seleccionaCentroControl()}"
|
|
process="@this organismocontrol"/>
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="unidad" value="#{msg_armas.lbl_unidad}:" />
|
|
<p:selectOneMenu id="unidad" value="#{modifyUserController.unidad}"
|
|
style="width:300px" panelStyle="width:300px" disabled="#{modifyUserController.deshabilitarPantalla}" >
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{modifyUserController.unidades}" var="vmod"
|
|
itemLabel="#{vmod.modifiedData['desnombreinstitucion']}" itemValue="#{vmod.nombreinstitucion}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="branch" value="#{msg_customer.lbl_branch}:" />
|
|
<p:selectOneMenu id="branch" value="#{modifyUserController.userdetail.record.branchcode}"
|
|
style="width:300px" panelStyle="width:300px"
|
|
required="true" var="p" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<p:ajax listener="#{modifyUserController.loadOffice()}" update="office" event="change"/>
|
|
<f:selectItems value="#{modifyUserController.lbranch}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.branchcode}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="office" value="#{msg_customer.lbl_office}:" />
|
|
<p:selectOneMenu id="office" value="#{modifyUserController.userdetail.record.officecode}"
|
|
style="width:300px" panelStyle="width:300px"
|
|
required="true" var="p" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.loffice}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.officecode}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel value="#{msg_general.lbl_area}:" />
|
|
<p:selectOneMenu id="area" value="#{modifyUserController.userdetail.record.areacode}"
|
|
style="width:300px" panelStyle="width:300px"
|
|
required="true" var="p" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{modifyUserController.larea}" var="id"
|
|
itemLabel="#{id.descripction}" itemValue="#{id.pk.areacode}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="bpmuser" value="#{msg_customer.lbl_BPMuser}:" />
|
|
<p:selectOneMenu id="bpmuser" value="#{modifyUserController.userdetail.record.isuserbpm}"
|
|
effect="fade" style="width:80px" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="bterminal" value="#{msg_customer.lbl_branchterminal}:" />
|
|
<p:selectOneMenu id="bterminal" value="#{modifyUserController.userdetail.record.branchfromterminal}"
|
|
effect="fade" style="width:80px" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="terminalcode" value="#{msg_general.lbl_terminal}:" />
|
|
<p:selectOneMenu id="terminalcode" value="#{modifyUserController.userdetail.record.terminalcode}" var="p"
|
|
style="width:135px" panelStyle="width:135px" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.lterminal}" var="id"
|
|
itemLabel="#{id.ipaddress}" itemValue="#{id.pk.terminalcode}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="userstatuscatalog" value="#{msg_general.lbl_state}:" />
|
|
<p:selectOneMenu id="userstatuscatalog" value="#{modifyUserController.userdetail.record.userstatuscatalog}" var="p"
|
|
style="width:135px" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<f:selectItem itemLabel="" itemValue="#{null}" />
|
|
<f:selectItems value="#{modifyUserController.luserStatus}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
|
|
<p:ajax event="change" process="@this" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:spacer height="10px;"/>
|
|
<p:spacer/>
|
|
</h:panelGrid>
|
|
<p:panelGrid id="data-profile" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_profiles}" />
|
|
</f:facet>
|
|
<p:commandButton id="profileLov" value="#{msg_general.btn_add}" actionListener="#{modifyUserController.openProfileLov()}" process="@this, data-profile" disabled="#{modifyUserController.deshabilitarPantalla}">
|
|
<p:ajax event="dialogReturn" listener="#{modifyUserController.onReturnProfileLov}" update="profiles" oncomplete="Maia.focus('formTable\\:profileLov')"/>
|
|
</p:commandButton>
|
|
<p:dataTable id="profiles" var="row" value="#{modifyUserController.userprofile.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:40px" sortBy="#{row.pk.profilecode}">
|
|
<h:outputText value="#{row.pk.profilecode}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.modifiedData['profiledesc']}">
|
|
<h:outputText value="#{row.modifiedData['profiledesc']}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:profiles" styleClass="m-action-button" icon="ui-icon-trash" action="#{modifyUserController.userprofile.remove()}" process="@this, profiles">
|
|
<f:setPropertyActionListener target="#{modifyUserController.userprofile.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
</ui:define>
|
|
</ui:composition> |