update
This commit is contained in:
parent
3533da39ac
commit
a36b89fe58
1 changed files with 61 additions and 115 deletions
|
|
@ -38,7 +38,7 @@
|
|||
});
|
||||
|
||||
// This method refreshs the layout
|
||||
function updateOrderItems(data) {
|
||||
function updateSepaList(data) {
|
||||
if (data.status === 'success') {
|
||||
$('[id$=oderlist]').imixsLayout();
|
||||
}
|
||||
|
|
@ -66,115 +66,9 @@
|
|||
<!-- **** General info ***** -->
|
||||
|
||||
<div class="imixs-form-panel">
|
||||
<h1>Configuration</h1>
|
||||
|
||||
<h:panelGroup layout="block" styleClass="imixs-form-section"
|
||||
id="oderlist" binding="#{orderlistContainer}">
|
||||
|
||||
<f:ajax render="oderlist" onevent="updateOrderItems">
|
||||
<table class="imixsdatatable imixs-orderitems">
|
||||
<tr>
|
||||
<th style="">ID</th>
|
||||
<th style="">Company<span class="imixs-required">
|
||||
*</span></th>
|
||||
<th style="width: 50px;">IBAN</th>
|
||||
<th style="width: 150px;">BIC</th>
|
||||
<th style="">
|
||||
<!-- delete -->
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<ui:repeat var="orderitem"
|
||||
value="#{sepaController.dbtrList}">
|
||||
<tr>
|
||||
<!-- ID -->
|
||||
<td><h:inputText value="#{orderitem.item['name']}"
|
||||
style="width:100%;" /></td>
|
||||
|
||||
<!-- dbtr.name -->
|
||||
<td><h:inputText value="#{orderitem.item['dbtr.name']}"
|
||||
style="width:100%;" /></td>
|
||||
|
||||
<!-- dbtr.iban -->
|
||||
<td><h:inputText value="#{orderitem.item['dbtr.iban']}"
|
||||
style="width:100%;" /></td>
|
||||
|
||||
<!-- dbtr.bic -->
|
||||
<td><h:inputText value="#{orderitem.item['dbtr.bic']}"
|
||||
style="width:100%;" /></td>
|
||||
|
||||
|
||||
<td><h:commandLink
|
||||
actionListener="#{sepaController.remove(orderitem.item['numpos'])}">
|
||||
<span class="typcn typcn-trash imixs-state-info"></span>
|
||||
<f:ajax render="#{orderlistContainer.clientId}"
|
||||
onevent="updateOrderItems" />
|
||||
</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 class="imixs-form-section-2">
|
||||
<dl>
|
||||
<dt>
|
||||
Company: <span class="imixs-required">* </span>
|
||||
</dt>
|
||||
<dd>
|
||||
<h:inputText required="true"
|
||||
value="#{sepaController.configuration.item['dbtr.name']}">
|
||||
</h:inputText>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
</dl>
|
||||
|
||||
<dl>
|
||||
<dt>
|
||||
IBAN <span class="imixs-required">* <h:message
|
||||
for="iban" /></span>
|
||||
</dt>
|
||||
<dd>
|
||||
<h:inputText value="#{sepaController.dbtrIban}" id="iban"
|
||||
required="false" validatorMessage="#{app.IBAN_INVALID}" />
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>
|
||||
BIC <span class="imixs-required">* <h:message for="bic" /></span>
|
||||
</dt>
|
||||
<dd>
|
||||
<h:inputText value="#{sepaController.dbtrBic}" id="bic"
|
||||
required="false" validatorMessage="#{app.BIC_INVALID}" />
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h1>Model Configuration</h1>
|
||||
|
||||
|
||||
<div class="imixs-form-section-2">
|
||||
<dl>
|
||||
<dt>SEPA Model Version</dt>
|
||||
|
|
@ -210,22 +104,74 @@
|
|||
</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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue