maia/.svn/pristine/01/0188080e24bfb7f92eb05994f3e...

184 lines
10 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="#{userPerfilAssiggnationController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:filters,:formTable:data-content,:formTable:data-content-profile"
saveProcess=":formTable:data-content, :formTable:data-content-profile"
saveUpdate=":formTable"
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_personcode}:" />
<p:inputText id="fpkuser" value="#{userPerfilAssiggnationController.userdetail.mfilters['pk.personcode']}" style="width: 160px;" onkeyup="Maia.forceupper(event, this);" onchange="jsUser()" disabled="true"/>
<p:spacer/>
<p:outputLabel for="fname" value="#{msg_customer.lbl_person}:" />
<p:inputText id="fname" value="#{userPerfilAssiggnationController.userdetail.mfilelds['personname']}" style="width: 400px;" disabled="true" />
<p:commandButton icon="ui-icon-link" actionListener="#{userPerfilAssiggnationController.userdetail.openPersonLov()}" process="@this" styleClass="m-lov-button">
<p:ajax event="dialogReturn" listener="#{userPerfilAssiggnationController.onReturnPersonLov}" update="filters,data-content,data-content-profile" />
</p:commandButton>
</p:panelGrid>
<p:remoteCommand name="jsUser" actionListener="#{userPerfilAssiggnationController.query()}" update="filters,data-content" process="@this, filters"/>
<h:panelGrid columns="2" id="controls" styleClass="m-controls">
<maia:pageControls controller="#{userPerfilAssiggnationController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:filters :formTable:data-content :formTable:data-content-profile"
saveProcess=":formTable:data-content"
saveUpdate=":formTable"
showNextBtn="false" showPreviousBtn="false" showCreateBtn="false" />
</h:panelGrid>
<h:panelGrid id="data-content" columns="6" >
<p:outputLabel for="fpkuserc" value="#{msg_customer.lbl_usercode}:" />
<pe:keyFilter mask="int" for="fpkuser"/>
<p:inputText id="fpkuserc" value="#{userPerfilAssiggnationController.userdetail.record.pk.usercode}" maxlength="20" style="width:300px;" onkeyup="Maia.forceupper(event, this);"/>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="fpkuserc"/>
<p:outputLabel for="flanguage" value="#{msg_customer.lbl_language}:" />
<pe:keyFilter />
<p:selectOneMenu id="flanguage" value="#{userPerfilAssiggnationController.userdetail.record.languagecode}"
style="width:300px" panelStyle="width:300px"
required="true">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{userPerfilAssiggnationController.lLanguage}" var="vcha"
itemLabel="#{vcha.description}" itemValue="#{vcha.pk}" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="flanguage" />
<p:outputLabel for="fnick" value="#{msg_customer.lbl_nickname}:" />
<pe:keyFilter mask="alpha" for="fnick"/>
<p:inputText id="fnick" value="#{userPerfilAssiggnationController.userdetail.record.nickname}" maxlength="30" style="width:300px;" required="true" onkeyup="Maia.forceupper(event, this);"/>
<p:message for="fnick" />
<p:outputLabel value="" />
<p:message for="fnick"/>
<p:outputLabel for="channel" value="#{msg_customer.lbl_channel}:" />
<pe:keyFilter />
<p:selectOneMenu id="channel" value="#{userPerfilAssiggnationController.userdetail.record.channelcode}"
style="width:300px" panelStyle="width:300px"
required="true">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{userPerfilAssiggnationController.lChannel}" var="vcha"
itemLabel="#{vcha.description}" itemValue="#{vcha.pk}" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="channel" />
<p:outputLabel for="branch" value="#{msg_customer.lbl_branch}:" />
<pe:keyFilter />
<p:selectOneMenu id="branch" value="#{userPerfilAssiggnationController.userdetail.record.branchcode}"
style="width:300px" panelStyle="width:300px"
required="true">
<f:selectItem itemLabel="" itemValue="" />
<p:ajax listener="#{userPerfilAssiggnationController.loadOffice()}" update="office" event="change"/>
<f:selectItems value="#{userPerfilAssiggnationController.lBranch}" var="vbra"
itemLabel="#{vbra.description}" itemValue="#{vbra.pk.branchcode}" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="branch" />
<p:outputLabel for="office" value="#{msg_customer.lbl_office}:" />
<pe:keyFilter />
<p:selectOneMenu id="office" value="#{userPerfilAssiggnationController.userdetail.record.officecode}"
style="width:300px" panelStyle="width:300px"
required="true">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{userPerfilAssiggnationController.lOffice}" var="vof"
itemLabel="#{vof.description}" itemValue="#{vof.pk.officecode}" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="office" />
<p:outputLabel for="area" value="#{msg_customer.lbl_area}:" />
<pe:keyFilter />
<p:selectOneMenu id="area" value="#{userPerfilAssiggnationController.userdetail.record.areacode}"
style="width:300px" panelStyle="width:300px"
required="true">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{userPerfilAssiggnationController.lArea}" var="varea"
itemLabel="#{varea.descripction}" itemValue="#{varea.pk.areacode}" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value="" />
<p:message for="area" />
<p:outputLabel for="bpmuser"
value="#{msg_customer.lbl_BPMuser}:" />
<pe:keyFilter />
<p:selectOneMenu id="bpmuser"
value="#{userPerfilAssiggnationController.userdetail.record.isuserbpm}"
effect="fade" style="width:80px">
<f:selectItem itemLabel="NO" itemValue="N" />
<f:selectItem itemLabel="SI" itemValue="Y" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value=""/>
<p:message for="bpmuser" />
<p:outputLabel for="bterminal"
value="#{msg_customer.lbl_branchterminal}:" />
<pe:keyFilter />
<p:selectOneMenu id="bterminal"
value="#{userPerfilAssiggnationController.userdetail.record.branchfromterminal}"
effect="fade" style="width:80px">
<f:selectItem itemLabel="NO" itemValue="N" />
<f:selectItem itemLabel="SI" itemValue="Y" />
</p:selectOneMenu>
<p:outputLabel value="" />
<p:outputLabel value=""/>
<p:message for="bterminal" />
</h:panelGrid>
<p:panelGrid id="data-content-profile" columns="1" styleClass="m-data-content">
<p:commandButton id="btncreate" value="#{msg_general.btn_create}" actionListener="#{userPerfilAssiggnationController.openProfileLov()}" process="@this, data-content" >
<p:ajax event="dialogReturn" listener="#{userPerfilAssiggnationController.onReturnProfileLov}" update="profilecode" oncomplete="Maia.focus(':formTable:btncreate');" />
</p:commandButton>
<f:facet name="header">
<h:outputText value="#{msg_customer.htbl_profile}" />
</f:facet>
<p:dataTable id="profilecode" var="row" value="#{userPerfilAssiggnationController.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:150px" sortBy="#{row.pk.profilecode}">
<h:outputText value="#{row.pk.profilecode}" />
</p:column>
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.ingressuser}">
<h:outputText value="#{row.modifiedData['profiledesc']}" />
</p:column>
<p:column>
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:profilecode" styleClass="m-action-button" icon="ui-icon-trash" action="#{userPerfilAssiggnationController.userProfile.remove()}" process="@this, profilecode">
<f:setPropertyActionListener target="#{userPerfilAssiggnationController.userProfile.record}" value="#{row}" />
</p:commandButton>
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</ui:define>
</ui:composition>