134 lines
8.3 KiB
Plaintext
Executable File
134 lines
8.3 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="#{profileHoraryController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:tranprocess"
|
|
focusContainer=":formTable:filters" />
|
|
|
|
<p:panelGrid id="filters" columns="1" styleClass="m-filters" >
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.lbl_filters}" />
|
|
</f:facet>
|
|
<p:panelGrid id="filtersTran" columns="9" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_transaction}" />
|
|
</f:facet>
|
|
<maia:lovTransaction controller="#{profileHoraryController}"
|
|
openMethod="openTransactionLov" onReturnMethod="onReturnTransactionLov"
|
|
update=":formTable:filtersTran, :formTable:tranprocess" />
|
|
</p:panelGrid >
|
|
|
|
<p:panelGrid id="filtersProfile" columns="5" styleClass="m-filters">
|
|
<f:facet name="header">
|
|
<h:outputText value="#{msg_general.htbl_profile}" />
|
|
</f:facet>
|
|
<p:outputLabel for="fpkmod2" value="#{msg_general.lbl_code}:" />
|
|
<p:inputText id="fpkmod2" value="#{profileHoraryController.mfilters['pk.profilecode']}" style="width: 100px;" disabled="true" />
|
|
|
|
<p:outputLabel for="fpktran2" value="#{msg_general.lbl_description}:" />
|
|
<p:inputText id="fpktran2" value="#{profileHoraryController.mfilelds['description']}" style="width: 425px;" disabled="true" />
|
|
|
|
<p:commandButton icon="ui-icon-link" actionListener="#{profileHoraryController.openProfileLov()}" process="@this" styleClass="m-lov-button">
|
|
<p:ajax event="dialogReturn" listener="#{profileHoraryController.onReturnProfileLov}" update="filtersProfile,tranprocess" />
|
|
</p:commandButton>
|
|
</p:panelGrid>
|
|
</p:panelGrid >
|
|
|
|
|
|
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
|
|
<maia:pageControls controller="#{profileHoraryController}"
|
|
queryProcess=":formTable:filters"
|
|
queryUpdate=":formTable:filters :formTable:tranprocess"
|
|
createUpdate=":formProcess:pEdit"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
|
|
<f:facet name="header">
|
|
<h:outputText value="HORARIO TRANSACCIONES" />
|
|
</f:facet>
|
|
<p:dataTable id="tranprocess" var="row" value="#{profileHoraryController.lrecord}" rows="200" style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single">
|
|
|
|
<p:column headerText="#{msg_general.lbl_day}" resizable="true" style="width:50px" sortBy="#{row.pk.day}">
|
|
<h:outputText value="#{profileHoraryController.getDay(row.pk.day)}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_inittime}" resizable="true" style="width:150px" >
|
|
<h:outputText value="#{row.inittime}" />
|
|
</p:column>
|
|
<p:column headerText="#{msg_general.lbl_finishtime}" resizable="true" style="width:50px" sortBy="#{row.finishtime}">
|
|
<h:outputText value="#{row.finishtime}" />
|
|
</p:column>
|
|
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_edit}" update=":formProcess:pEdit" oncomplete="PF('dialog').show()" styleClass="m-action-button" icon="ui-icon-pencil" process="@this, :formTable:tranprocess">
|
|
<f:setPropertyActionListener target="#{profileHoraryController.record}" value="#{row}" />
|
|
<f:setPropertyActionListener target="#{profileHoraryController.showRow}" value="#{false}" />
|
|
<f:setPropertyActionListener target="#{profileHoraryController.newRow}" value="#{false}" />
|
|
</p:commandButton>
|
|
</p:column>
|
|
<p:column styleClass="m-action-column">
|
|
<p:commandButton value="#{msg_general.btn_delete}" update=":formTable:tranprocess" styleClass="m-action-button" icon="ui-icon-trash" action="#{profileHoraryController.remove()}" process="@this, :formTable:tranprocess">
|
|
<f:setPropertyActionListener target="#{profileHoraryController.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="formProcess">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEdit" columns="3" >
|
|
|
|
<p:outputLabel for="days" value="#{msg_general.lbl_day}:" />
|
|
<p:outputLabel value="#{profileHoraryController.recordDayDescription}" rendered="#{!profileHoraryController.newRow}" />
|
|
<p:selectOneMenu id="days" value="#{profileHoraryController.record.pk.day}" effect="fade" style="width:100px" rendered="#{profileHoraryController.newRow}" required="true">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<f:selectItems value="#{profileHoraryController.tdays}" var="day" itemLabel="#{day.description}" itemValue="#{day.legalcode}" />
|
|
</p:selectOneMenu>
|
|
<p:outputLabel value="" />
|
|
|
|
<p:outputLabel for="itime" value="#{msg_general.lbl_inittime}:" />
|
|
<p:calendar id="itime" showOn="button" value="#{profileHoraryController.initTime}" pattern="HH:mm" readonlyInput="true" timeOnly="true" style="width:50px;" required="true"/>
|
|
<p:message for="itime" />
|
|
|
|
<p:outputLabel for="ftime" value="#{msg_general.lbl_finishtime}:" />
|
|
<p:calendar id="ftime" showOn="button" value="#{profileHoraryController.endTime}" pattern="HH:mm" readonlyInput="true" timeOnly="true" style="width:50px;" required="true"/>
|
|
<p:message for="ftime" />
|
|
|
|
<!--p:outputLabel for="vamount" value="#{msg_general.lbl_validateamount}:" />
|
|
<p:selectOneMenu id="vamount" value="#{profileHoraryController.record.validateamount}" effect="fade" style="width:80px" required="true">
|
|
<f:selectItem itemLabel="SI" itemValue="Y" />
|
|
<f:selectItem itemLabel="NO" itemValue="N" />
|
|
</p:selectOneMenu>
|
|
<p:spacer/>
|
|
<p:message for="vamount" /-->
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="2" >
|
|
<maia:dialogControls controller="#{profileHoraryController}"
|
|
process=":formProcess:pEdit"
|
|
update=":formProcess:pEdit, :formTable:tranprocess"
|
|
dialogWidgetVar="dialog" />
|
|
</h:panelGrid>
|
|
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
</ui:define>
|
|
</ui:composition> |