But if we have used auto feature to create the record in service definition then its good to explicitly pass nowTimeStamp from the form definition. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@794961 13f79535-47bb-0310-9956-ffa450edef68
115 lines
6.5 KiB
XML
115 lines
6.5 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"/>
|
|
</service>
|
|
</actions>
|
|
<field name="paymentGroupId" widget-style="buttontext">
|
|
<hyperlink description="${paymentGroupId}" target="PaymentGroupOverview">
|
|
<parameter param-name="paymentGroupId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="paymentGroupTypeId"><display-entity entity-name="PaymentGroupType" description="${description}"/></field>
|
|
<field name="paymentGroupName"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink target="deletePaymentGroup" description="${uiLabelMap.CommonDelete}" 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}">
|
|
<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="paymentGroupTypeId" title="${uiLabelMap.CommonType}" use-when="display==true">
|
|
<display-entity entity-name="PaymentGroupType" description="${description}"/>
|
|
</field>
|
|
<field name="paymentGroupName" use-when="display==true"><display/></field>
|
|
<field name="submitButton" use-when="paymentMethod==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
|
<field name="submitButton" use-when="paymentMethod!=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">
|
|
<auto-fields-service service-name="updatePaymentGroupMember"/>
|
|
<field name="paymentGroupId"><hidden/></field>
|
|
<field name="paymentId">
|
|
<hyperlink target="paymentOverview" description="${paymentId}">
|
|
<parameter param-name="paymentId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="deleteLink" title="" widget-style="buttontext">
|
|
<hyperlink target="deletePaymentGroupMember" description="${uiLabelMap.CommonDelete}" 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">
|
|
<field name="paymentId">
|
|
<hyperlink target="paymentOverview" description="${paymentId}">
|
|
<parameter param-name="paymentId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="thruDate"><display/></field>
|
|
</form>
|
|
</forms> |