and memory performance if a cursor isn't being used on large result sets quite a bit. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808820 13f79535-47bb-0310-9956-ffa450edef68
178 lines
11 KiB
XML
178 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
|
|
<!-- Payment Group -->
|
|
<form name="FindPaymentGroup" type="single" target="FindPaymentGroup"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-entity entity-name="PaymentGroup" default-field-type="find"/>
|
|
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="ListPaymentGroup" type="list" separate-columns="true" default-entity-name="PaymentGroup" list-name="listIt"
|
|
paginate-target="FindPaymentGroup" paginate="true" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
|
<field-map field-name="inputFields" from-field="parameters"/>
|
|
<field-map field-name="entityName" value="PaymentGroup"/>
|
|
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
|
<field-map field-name="viewSize" from-field="viewSize"/>
|
|
</service>
|
|
</actions>
|
|
<row-actions>
|
|
<entity-and entity-name="PaymentGroupMember" list="paymentGroupMembers" filter-by-date="true">
|
|
<field-map field-name="paymentGroupId"/>
|
|
</entity-and>
|
|
</row-actions>
|
|
<field name="paymentGroupId" widget-style="buttontext">
|
|
<hyperlink description="${paymentGroupId}" target="PaymentGroupOverview">
|
|
<parameter param-name="paymentGroupId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="paymentGroupTypeId" title="${uiLabelMap.FormFieldTitle_paymentGroupType}"><display-entity entity-name="PaymentGroupType"/></field>
|
|
<field name="paymentGroupName"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="${paymentGroupTypeId == 'BATCH_PAYMENT'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
|
|
<hyperlink target="cancelPaymentGroup" description="${uiLabelMap.CommonCancel}" also-hidden="false">
|
|
<parameter param-name="paymentGroupId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="${paymentGroupTypeId == 'CHECK_RUN'} @and ${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
|
|
<hyperlink target="cancelCheckRunPayments" description="${uiLabelMap.CommonCancel}" also-hidden="false">
|
|
<parameter param-name="paymentGroupId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="depositSlip" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="${groovy:org.ofbiz.base.util.UtilValidate.isNotEmpty(paymentGroupMembers)}">
|
|
<hyperlink target="DepositSlip.pdf" description="${uiLabelMap.AccountingInvoicePDF}" also-hidden="false">
|
|
<parameter param-name="paymentGroupId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="EditPaymentGroup" type="single" target="updatePaymentGroup" title="" default-map-name="paymentGroup">
|
|
<alt-target use-when="paymentGroup==null" target="createPaymentGroup"/>
|
|
<auto-fields-service service-name="updatePaymentGroup"/>
|
|
<field use-when="paymentGroup!=null" name="paymentGroupId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
|
<field use-when="paymentGroup==null @and paymentGroupId==null" name="paymentGroupId"><ignored/></field>
|
|
<field use-when="paymentGroup==null @and paymentGroupId!=null" name="paymentGroupId"><display description="${uiLabelMap.CommonCannotBeFound}: [${paymentGroupId}]" also-hidden="false"/></field>
|
|
<field name="paymentGroupId" use-when="display==true"><display/></field>
|
|
<field name="paymentGroupTypeId" title="${uiLabelMap.CommonType}">
|
|
<display-entity entity-name="PaymentGroupType" description="${description}"/>
|
|
</field>
|
|
<field name="paymentGroupTypeId" use-when="paymentGroup==null" title="${uiLabelMap.CommonType}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="PaymentGroupType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="paymentGroupName" use-when="display==true"><display/></field>
|
|
<field name="submitButton" use-when="paymentGroup==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
|
<field name="submitButton" use-when="paymentGroup!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
|
<field name="submitButton" use-when="display==true"><hidden/></field>
|
|
</form>
|
|
|
|
<!-- Payment Group Member -->
|
|
<form name="ListPaymentGroupMember" type="list" list-name="paymentGroupMembers" target="updatePaymentGroupMember">
|
|
<row-actions>
|
|
<entity-one entity-name="Payment" value-field="payment"/>
|
|
<set field="paymentTypeId" from-field="payment.paymentTypeId"/>
|
|
<set field="partyIdFrom" from-field="payment.partyIdFrom"/>
|
|
<set field="partyIdTo" from-field="payment.partyIdTo"/>
|
|
</row-actions>
|
|
<field name="paymentGroupId"><hidden/></field>
|
|
<field name="paymentId">
|
|
<hyperlink target="paymentOverview" description="${paymentId}">
|
|
<parameter param-name="paymentId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.AccountingFromParty}">
|
|
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
|
|
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdFrom}]" >
|
|
<parameter param-name="partyId" from-field="partyIdFrom"/>
|
|
</sub-hyperlink>
|
|
</display-entity>
|
|
</field>
|
|
<field name="partyIdTo" title="${uiLabelMap.AccountingToParty}">
|
|
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
|
|
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdTo}]" >
|
|
<parameter param-name="partyId" from-field="partyIdTo"/>
|
|
</sub-hyperlink>
|
|
</display-entity>
|
|
</field>
|
|
<field name="paymentTypeId" title="${uiLabelMap.OrderPaymentType}"><display-entity entity-name="PaymentType" description="${description}"/></field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="deleteLink" title="" widget-style="buttontext">
|
|
<hyperlink target="expirePaymentGroupMember" description="${uiLabelMap.CommonCancel}" also-hidden="false">
|
|
<parameter param-name="paymentGroupId"/>
|
|
<parameter param-name="paymentId"/>
|
|
<parameter param-name="fromDate"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="AddPaymentGroupMember" type="single" target="createPaymentGroupMember">
|
|
<auto-fields-service service-name="createPaymentGroupMember"/>
|
|
<field name="paymentGroupId"><hidden/></field>
|
|
<field name="paymentId"><lookup target-form-name="LookupPayment"/></field>
|
|
<field name="fromDate"><date-time default-value="${nowTimestamp}"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="PaymentGroupMembers" type="list" list-name="paymentGroupMembers"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<row-actions>
|
|
<entity-one entity-name="Payment" value-field="payment"/>
|
|
<set field="statusId" from-field="payment.statusId"/>
|
|
<set field="amount" from-field="payment.amount"/>
|
|
<set field="paymentTypeId" from-field="payment.paymentTypeId"/>
|
|
<set field="partyIdFrom" from-field="payment.partyIdFrom"/>
|
|
<set field="partyIdTo" from-field="payment.partyIdTo"/>
|
|
</row-actions>
|
|
<field name="paymentId">
|
|
<hyperlink target="paymentOverview" description="${paymentId}">
|
|
<parameter param-name="paymentId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.AccountingFromParty}">
|
|
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
|
|
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdFrom}]" >
|
|
<parameter param-name="partyId" from-field="partyIdFrom"/>
|
|
</sub-hyperlink>
|
|
</display-entity>
|
|
</field>
|
|
<field name="partyIdTo" title="${uiLabelMap.AccountingToParty}">
|
|
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName} ${lastName} ${firstName}">
|
|
<sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" description="[${partyIdTo}]" >
|
|
<parameter param-name="partyId" from-field="partyIdTo"/>
|
|
</sub-hyperlink>
|
|
</display-entity>
|
|
</field>
|
|
<field name="paymentTypeId" title="${uiLabelMap.OrderPaymentType}"><display-entity entity-name="PaymentType" description="${description}"/></field>
|
|
<field name="statusId" title="${uiLabelMap.AccountingPaymentStatus}"><display-entity entity-name="StatusItem"/></field>
|
|
<field name="amount"><display also-hidden="false" type="currency" currency="${payment.currencyUomId}"/></field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="thruDate"><display/></field>
|
|
</form>
|
|
</forms>
|