maia/.svn/pristine/f9/f91c0c592849a158f5814da1067...

72 lines
4.5 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">
<title>LOV: #{msg_general.lvh_balancetype}</title>
<h:form id="formTable">
<maia:pageEvents controller="#{balanceTypeLovController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:balancetype"
focusContainer=":formTable:filters" />
<p:panelGrid id="filters" columns="4" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<p:outputLabel for="fpk" value="#{msg_general.lbl_code}:" />
<p:inputText id="fpk" value="#{balanceTypeLovController.mfilters['pk.balancetype']}" maxlength="20" style="width: 160px;" onkeydown="Maia.forceupper(event, this);" />
<p:outputLabel for="fdesc" value="#{msg_general.lbl_description}:" />
<p:inputText id="fdesc" value="#{balanceTypeLovController.mfilters['description']}" maxlength="60" style="width: 480px;" onkeyup="Maia.forceupper(event, this);"/>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<p:commandButton id="query" value="#{msg_general.btn_query}" icon="ui-icon-search" action="#{balanceTypeLovController.query()}" update="data-content" process="@this, filters "/>
<p:commandButton value="#{msg_general.btn_previous}" update=":formTable:balancetype" icon="ui-icon-seek-prev" action="#{balanceTypeLovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update=":formTable:balancetype" icon="ui-icon-seek-next" action="#{balanceTypeLovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.htbl_balancetype}" />
</f:facet>
<p:dataTable id="balancetype" var="row" value="#{balanceTypeLovController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}"
selectionMode="single" selection="#{balanceTypeLovController.record}" >
<p:ajax event="rowSelect" listener="#{balanceTypeLovController.setBalancetype()}" />
<p:column headerText="#{msg_general.lbl_code}" resizable="true" style="width:150px" sortBy="#{row.pk.balancetype}">
<h:outputText value="#{row.pk.balancetype}" />
</p:column>
<p:column headerText="#{msg_general.lbl_balancegroup}" resizable="true" sortBy="#{row.pk.balancegroup}">
<h:outputText value="#{row.pk.balancegroup}" />
</p:column>
<p:column headerText="#{msg_general.lbl_category}" resizable="true" sortBy="#{row.balancecategory}">
<h:outputText value="#{row.balancecategory}" />
</p:column>
<p:column headerText="#{msg_general.lbl_description}" resizable="true" sortBy="#{row.description}">
<h:outputText value="#{row.description}" />
</p:column>
<p:column headerText="#{msg_general.lbl_chargesintable}" resizable="true" >
<h:outputText value="#{row.chargeforinstallment}" />
</p:column>
<p:column >
<p:commandButton icon="ui-icon-copy" actionListener="#{balanceTypeLovController.setBalancetype(row)}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</ui:define>
</ui:composition>