163 lines
9.6 KiB
Plaintext
Executable File
163 lines
9.6 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="#{balanceTypeController}"
|
|
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="#{balanceTypeController.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="#{balanceTypeController.mfilters['description']}" maxlength="60" style="width: 480px;" onkeyup="Maia.forceupper(event, this);"/>
|
|
|
|
<p:outputLabel for="module" value="#{msg_general.lbl_module}:" />
|
|
<p:selectOneMenu id="module" value="#{balanceTypeController.mfilters['modulecode']}"
|
|
var="p" style="width:300px" panelStyle="width:300px" >
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{balanceTypeController.lmodule}" var="vmod" itemLabel="#{vmod.description}" itemValue="#{vmod.pk}" />
|
|
</p:selectOneMenu>
|
|
|
|
</p:panelGrid>
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{balanceTypeController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:filters :formTable:balancetype"
|
|
createUpdate=":formBtype:pEdit"
|
|
dialogWidgetVar="dialog" />
|
|
</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="#{balanceTypeController.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.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 styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formBtype:pEdit" oncomplete="PF('dialog').show()" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, balancetype">
|
|
<f:setPropertyActionListener target="#{balanceTypeController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{balanceTypeController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{balanceTypeController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:balancetype" styleClass="m-action-button" icon="ui-icon-trash" action="#{balanceTypeController.remove()}" process="@this, balancetype">
|
|
<f:setPropertyActionListener target="#{balanceTypeController.record}" value="#{row}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
|
|
|
|
</p:dataTable>
|
|
</p:panelGrid>
|
|
</h:form>
|
|
|
|
<p:dialog widgetVar="dialog" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_createoredit}" />
|
|
</f:facet>
|
|
<h:form id="formBtype">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEdit" columns="3" bodyrows="1" >
|
|
<p:outputLabel for="codigo" value="#{msg_general.lbl_code}:" />
|
|
<h:outputText rendered="#{!balanceTypeController.newRow}"
|
|
value="#{balanceTypeController.record.pk.balancetype}"/>
|
|
<p:inputText id="codigo"
|
|
rendered="#{balanceTypeController.newRow}"
|
|
value="#{balanceTypeController.record.pk.balancetype}"
|
|
required="true" maxlength="20"
|
|
onkeyup="Maia.forceupper(event, this);" style="width:160px;" />
|
|
<p:message for="codigo" />
|
|
|
|
<p:outputLabel for="balancegroup" value="#{msg_general.lbl_balancegroup}:" />
|
|
<p:selectOneMenu id="balancegroup" value="#{balanceTypeController.record.pk.balancegroup}"
|
|
var="p" style="width:300px" panelStyle="width:300px"
|
|
disabled="#{!balanceTypeController.newRow}" required="true">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{balanceTypeController.lbalancegroup}" var="vbgrp" itemLabel="#{vbgrp.description}" itemValue="#{vbgrp.pk}" />
|
|
</p:selectOneMenu>
|
|
<p:message for="balancegroup" />
|
|
|
|
<p:outputLabel for="module" value="#{msg_general.lbl_module}:" />
|
|
<p:selectOneMenu id="module" value="#{balanceTypeController.record.modulecode}"
|
|
var="p" style="width:300px" panelStyle="width:300px"
|
|
disabled="#{!balanceTypeController.newRow}">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{balanceTypeController.lmodule}" var="vmod" itemLabel="#{vmod.description}" itemValue="#{vmod.pk}" />
|
|
</p:selectOneMenu>
|
|
<p:message for="module" />
|
|
|
|
<p:outputLabel for="category" value="#{msg_general.lbl_category}:" />
|
|
<p:selectOneMenu id="category" value="#{balanceTypeController.record.balancecategory}"
|
|
var="p" style="width:300px" panelStyle="width:300px"
|
|
disabled="#{!balanceTypeController.newRow}" required="true">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItem itemLabel="SALDO" itemValue="BALANCE" />
|
|
<f:selectItem itemLabel="CAPITAL" itemValue="CAPITAL" />
|
|
<f:selectItem itemLabel="CARGOS" itemValue="CHARGES" />
|
|
<f:selectItem itemLabel="SEGUROS" itemValue="INSURANCE" />
|
|
<f:selectItem itemLabel="INTERES" itemValue="INTEREST" />
|
|
<f:selectItem itemLabel="CUENTAS POR COBRAR" itemValue="CXC" />
|
|
|
|
</p:selectOneMenu>
|
|
<p:message for="category" />
|
|
|
|
<p:outputLabel for="charges" value="#{msg_general.lbl_chargesintable}:" />
|
|
<p:selectOneMenu id="charges" value="#{balanceTypeController.record.chargeforinstallment}"
|
|
var="p" style="width:300px" panelStyle="width:300px"
|
|
disabled="#{!balanceTypeController.newRow}" >
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
</p:selectOneMenu>
|
|
<p:message for="charges" />
|
|
|
|
<p:outputLabel for="descripcion" value="#{msg_general.lbl_description}:" />
|
|
<h:outputText rendered="#{balanceTypeController.showRow}"
|
|
value="#{balanceTypeController.record.description}" />
|
|
<p:inputText id="descripcion"
|
|
rendered="#{!balanceTypeController.showRow}"
|
|
value="#{balanceTypeController.record.description}"
|
|
required="true" maxlength="60"
|
|
onkeyup="Maia.forceupper(event, this);" style="width:480px;" />
|
|
<p:message for="descripcion" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2" >
|
|
<maia:dialogControls controller="#{balanceTypeController}"
|
|
process=":formBtype:pEdit"
|
|
update=":formBtype:pEdit :formTable:balancetype "
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |