88 lines
5.0 KiB
Plaintext
Executable File
88 lines
5.0 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="#{tgeneNotAccountingDayController}"
|
|
queryUpdate=":formTable:nonaccountingdays"
|
|
focusContainer=":formTable:controls" />
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{tgeneNotAccountingDayController}"
|
|
queryProcess=""
|
|
queryUpdate=":formTable:nonaccountingdays"
|
|
createUpdate=":formDialog:pEdit"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content" style="min-width:220px;">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_daysnotaccounting}" />
|
|
</f:facet>
|
|
<p:dataTable id="nonaccountingdays" var="row" value="#{tgeneNotAccountingDayController.lrecord}" rows="200" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
<p:column headerText="#{msg_general.lbl_month}" resizable="true" sortBy="#{row.pk.catalog}">
|
|
<h:outputText value="#{row.modifiedData['monthdesc']}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_day}" resizable="true" sortBy="#{row.pk.day}" styleClass="m-number">
|
|
<h:outputText value="#{row.pk.day}" />
|
|
</p:column>
|
|
|
|
<p:column>
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:nonaccountingdays" styleClass="m-action-button" icon="ui-icon-trash" action="#{tgeneNotAccountingDayController.remove()}" process="@this, nonaccountingdays">
|
|
<f:setPropertyActionListener target="#{tgeneNotAccountingDayController.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="formDialog">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEdit" columns="2" bodyrows="1" >
|
|
<p:outputLabel for="mes" value="#{msg_general.lbl_month}:" />
|
|
<h:outputText rendered="#{!tgeneNotAccountingDayController.newRow}"
|
|
value="#{tgeneNotAccountingDayController.record.modifiedData['monthdesc']}"/>
|
|
<p:selectOneMenu id="mes"
|
|
rendered="#{tgeneNotAccountingDayController.newRow}"
|
|
value="#{tgeneNotAccountingDayController.record.pk.catalog}"
|
|
var="p" style="width:140px" panelStyle="width:140px">
|
|
<p:ajax event="change" listener="#{tgeneNotAccountingDayController.refreshMonth()}"/>
|
|
<f:selectItem itemLabel="" itemValue="" noSelectionOption="true" />
|
|
<f:selectItems value="#{tgeneNotAccountingDayController.lmonths}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
|
|
</p:selectOneMenu>
|
|
|
|
<p:outputLabel for="dia" value="#{msg_general.lbl_day}:" />
|
|
<h:outputText rendered="#{tgeneNotAccountingDayController.showRow}"
|
|
value="#{tgeneNotAccountingDayController.record.pk.day}" />
|
|
<pe:inputNumber id="dia"
|
|
rendered="#{!tgeneNotAccountingDayController.showRow}"
|
|
value="#{tgeneNotAccountingDayController.record.pk.day}"
|
|
required="true" maxValue="31" decimalPlaces="0" style="width:140px;" />
|
|
<p:message for="dia" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2">
|
|
<maia:dialogControls controller="#{tgeneNotAccountingDayController}"
|
|
process=":formDialog:pEdit"
|
|
update=":formDialog:pEdit :formTable:nonaccountingdays "
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |