office-alexander-logistics/office-alexander-logistics-app/src/main/webapp/pages/admin/sepa_config.xhtml
2020-11-26 16:30:04 +01:00

210 lines
5.4 KiB
HTML

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:i="http://java.sun.com/jsf/composite/imixs"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:marty="http://java.sun.com/jsf/composite/marty"
xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
template="/layout/template.xhtml">
<ui:define name="content">
<f:view>
<script type="text/javascript">
/*<![CDATA[*/
function updateStatustPanel(data) {
//initUserInput($('#userselector_id'));
if (data.status === 'success') {
// select with wildcard operator
$('[id$=status_panel]').imixsLayout();
}
}
// display summary
$(document).ready(function() {
// erste Zeile hinzufügen, falls tabelle noch leer ist
var posTableEmpty=#{empty sepaController.dbtrList};
if (posTableEmpty) {
// click on add button
posButton=$("[data-id='addposbutton_id']");
if (posButton) {
$(posButton).click();
}
}
});
// This method refreshs the layout
function updateSepaList(data) {
if (data.status === 'success') {
$('[id$=oderlist]').imixsLayout();
}
}
/*]]>*/
</script>
<h:form id="import_form_id">
<!-- ########## Error ########## -->
<ui:include src="/pages/error_message.xhtml" />
<div class="imixs-form">
<div class="imixs-header">
<h1>SEPA</h1>
</div>
<div class="imixs-body">
<!-- **** General info ***** -->
<div class="imixs-form-panel">
<h1>Model Configuration</h1>
<div class="imixs-form-section-2">
<dl>
<dt>SEPA Model Version</dt>
<dd>
<h:inputText required="false"
value="#{sepaController.configuration.item['_model_version']}">
</h:inputText>
</dd>
</dl>
<dl>
<dt>SEPA Initial Task</dt>
<dd>
<h:inputText required="false"
value="#{sepaController.configuration.item['_initial_task']}">
</h:inputText>
</dd>
</dl>
</div>
<div class="imixs-form-section">
<p>
<span class="typcn typcn-lightbulb"></span> The initial task
must define a report containing the query and style sheet
information. Invoices will be automatically grouped by the
attribute "_sepa_iban". If this attribute is not set, the
default sepa_iban will be assigned to the invoice before
processed. The SEPA workflow may optional include a
"invoice_update" item definition.
</p>
</div>
<h:panelGroup layout="block" styleClass="imixs-form-section"
id="oderlist" binding="#{orderlistContainer}">
<h1>Debitor Options</h1>
<f:ajax render="oderlist" onevent="updateSepaList">
<table class="imixsdatatable imixs-orderitems">
<tr>
<th style="width: 140px">ID</th>
<th style="">Company<span class="imixs-required">
*</span></th>
<th style="width: 250px;">IBAN</th>
<th style="width: 150px;">BIC</th>
<th style="width: 50px">
<!-- delete -->
</th>
</tr>
<ui:repeat var="dbtr"
value="#{sepaController.dbtrList}">
<tr>
<!-- ID -->
<td><h:inputText value="#{dbtr.item['name']}"
style="width:100%;" /></td>
<!-- dbtr.name -->
<td><h:inputText value="#{dbtr.item['dbtr.name']}"
style="width:100%;" /></td>
<!-- dbtr.iban -->
<td><h:inputText value="#{dbtr.item['dbtr.iban']}"
style="width:100%;" /></td>
<!-- dbtr.bic -->
<td><h:inputText value="#{dbtr.item['dbtr.bic']}"
style="width:100%;" /></td>
<td><h:commandLink
actionListener="#{sepaController.removeDbtr(dbtr.item['name'])}">
<span class="typcn typcn-trash imixs-state-info"></span>
<f:ajax render="#{orderlistContainer.clientId}"
onevent="updateSepaList" />
</h:commandLink></td>
</tr>
</ui:repeat>
</table>
<!-- add button -->
<h:commandButton value="#{message.add}"
a:data-id="addposbutton_id"
actionListener="#{sepaController.addDbtr}">
</h:commandButton>
</f:ajax>
</h:panelGroup>
</div>
<!-- include timer control -->
<h1>Scheduler</h1>
<ui:include src="sub_scheduler_control.xhtml">
<ui:param name="schedulerController" value="#{sepaController}" />
</ui:include>
</div>
<div class="imixs-footer">
<h:outputLabel value="#{message.modified}: " />
<h:outputText
value="#{sepaController.configuration.item['$modified']}">
<f:convertDateTime timeZone="#{message.timeZone}" type="both"
pattern="#{message.dateTimePattern}" />
</h:outputText>
<br />
<h:commandButton
actionListener="#{sepaController.saveConfiguration()}"
value="#{message.save}">
</h:commandButton>
<h:commandButton value="#{message.close}" action="notes" />
</div>
</div>
</h:form>
</f:view>
</ui:define>
</ui:composition>