update
This commit is contained in:
parent
4330652eba
commit
9f56facfdb
2 changed files with 90 additions and 6 deletions
|
|
@ -5,6 +5,7 @@
|
|||
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">
|
||||
|
|
@ -22,6 +23,26 @@
|
|||
$('[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 updateOrderItems(data) {
|
||||
if (data.status === 'success') {
|
||||
$('[id$=oderlist]').imixsLayout();
|
||||
}
|
||||
}
|
||||
|
||||
/*]]>*/
|
||||
</script>
|
||||
|
|
@ -46,6 +67,67 @@
|
|||
|
||||
<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>
|
||||
|
|
@ -67,9 +149,8 @@
|
|||
for="iban" /></span>
|
||||
</dt>
|
||||
<dd>
|
||||
<h:inputText value="#{sepaController.dbtrIban}"
|
||||
id="iban" required="false"
|
||||
validatorMessage="#{app.IBAN_INVALID}" />
|
||||
<h:inputText value="#{sepaController.dbtrIban}" id="iban"
|
||||
required="false" validatorMessage="#{app.IBAN_INVALID}" />
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
|
@ -172,9 +253,12 @@
|
|||
|
||||
</div>
|
||||
</h:form>
|
||||
|
||||
|
||||
</f:view>
|
||||
</ui:define>
|
||||
|
||||
|
||||
|
||||
|
||||
</ui:composition>
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ Possible ImageTypes are:
|
|||
<bpmn2:task id="Task_1" imixs:processid="100" name="Erfassung">
|
||||
<bpmn2:extensionElements>
|
||||
<imixs:item name="txteditorid" type="xs:string">
|
||||
<imixs:value><![CDATA[form_basic]]></imixs:value>
|
||||
<imixs:value><![CDATA[alexander/form_basic]]></imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="txtworkflowabstract" type="xs:string">
|
||||
<imixs:value><![CDATA[<itemvalue>txtlastcomment</itemvalue>]]></imixs:value>
|
||||
|
|
@ -607,7 +607,7 @@ Betrag: <itemvalue>_amount</itemvalue> (Brutto € <itemvalue>_amount_brutto</it
|
|||
<imixs:value><![CDATA[2]]></imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="keypublicresult" type="xs:string">
|
||||
<imixs:value><![CDATA[1]]></imixs:value>
|
||||
<imixs:value><![CDATA[0]]></imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="keylogdateformat" type="xs:string">
|
||||
<imixs:value><![CDATA[2]]></imixs:value>
|
||||
|
|
@ -676,7 +676,7 @@ Betrag: <itemvalue>_amount</itemvalue> (Brutto € <itemvalue>_amount_brutto</it
|
|||
<imixs:value><![CDATA[2]]></imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="keypublicresult" type="xs:string">
|
||||
<imixs:value><![CDATA[1]]></imixs:value>
|
||||
<imixs:value><![CDATA[0]]></imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="keylogdateformat" type="xs:string">
|
||||
<imixs:value><![CDATA[2]]></imixs:value>
|
||||
|
|
|
|||
Loading…
Reference in a new issue