Files
ofbiz-framework/applications/accounting/widget/TransactionScreens.xml
T
Jacopo Cappellato 280f6c4086 Conversion from MIT to ASL2.0 for the files of the accounting component.
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422402 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 08:09:27 +00:00

161 lines
7.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2006 The Apache Software Foundation
Licensed 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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
<screen name="GenericTransactionDecorator">
<section>
<actions>
<set field="headerItem" value="transaction"/>
</actions>
<widgets>
<!-- main defines the regions of the HTML page -->
<decorator-screen name="main-decorator" location="component://accounting/widget/CommonScreens.xml">
<!-- body is the primary display for this page and is called recursively -->
<decorator-section name="body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/transaction/TransactionsTabBar.ftl"/></html>
</platform-specific>
<container>
<label style="head1">${uiLabelMap.${labelTitleProperty}}</label>
</container>
<!-- Now call the SimpleScreen form -->
<decorator-section-include name="body"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- presents a lookup form and list of results -->
<screen name="FindGatewayResponses">
<section>
<actions>
<set field="title" value="Find Gateway Responses"/>
<set field="titleProperty" value="PageTitleFindGatewayResponses"/> <!-- shows up in browser title bar -->
<set field="tabButtonItem" value="gatewayresponsestab"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
</actions>
<widgets>
<decorator-screen name="GenericTransactionDecorator">
<decorator-section name="body">
<container>
<label style="head1">${uiLabelMap.AccountingGatewayResponses}</label>
</container>
<include-form name="FindGatewayResponses" location="component://accounting/widget/TransactionForms.xml"/>
<include-form name="ListGatewayResponses" location="component://accounting/widget/TransactionForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- view a particular gateway response -->
<screen name="ViewGatewayResponse">
<section>
<actions>
<set field="title" value="View Gateway Response"/>
<set field="titleProperty" value="PageTitleViewGatewayResponse"/>
<set field="tabButtonItem" value="gatewayresponsestab"/>
<set field="paymentGatewayResponseId" from-field="parameters.paymentGatewayResponseId"/>
<set field="orderPaymentPreferenceId" from-field="parameters.orderPaymentPreferenceId"/>
<entity-one entity-name="PaymentGatewayResponse" value-name="paymentGatewayResponse" auto-field-map="true"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/transaction/viewGatewayResponse.bsh"/>
</actions>
<widgets>
<decorator-screen name="GenericTransactionDecorator">
<decorator-section name="body">
<container>
<label style="head1">${uiLabelMap.AccountingGatewayResponse}</label>
</container>
<include-form name="ViewGatewayResponseRelations" location="component://accounting/widget/TransactionForms.xml"/>
<include-form name="ViewGatewayResponse" location="component://accounting/widget/TransactionForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- form to authorize a transaction -->
<screen name="AuthorizeTransaction">
<section>
<actions>
<set field="title" value="Authorize Transaction"/>
<set field="titleProperty" value="AccountingAuthorize"/>
<set field="tabButtonItem" value="authorizetransactiontab"/>
<set field="orderId" from-field="parameters.orderId"/>
<set field="orderPaymentPreferenceId" from-field="parameters.orderPaymentPreferenceId"/>
<entity-one entity-name="OrderPaymentPreference" value-name="opp">
<field-map field-name="orderPaymentPreferenceId" env-name="orderPaymentPreferenceId"/>
</entity-one>
<set field="paymentMethodTypeId" from-field="opp.paymentMethodTypeId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/transaction/authorizeTransaction.bsh"/>
</actions>
<widgets>
<decorator-screen name="GenericTransactionDecorator">
<decorator-section name="body">
<include-form name="AuthorizeTransaction" location="component://accounting/widget/TransactionForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- form to capture a transaction -->
<screen name="CaptureTransaction">
<section>
<actions>
<set field="title" value="Capture Transaction"/>
<set field="titleProperty" value="AccountingCapture"/>
<set field="tabButtonItem" value="capturetransactiontab"/>
<set field="orderId" from-field="parameters.orderId"/>
<set field="orderPaymentPreferenceId" from-field="parameters.orderPaymentPreferenceId"/>
<entity-one entity-name="OrderPaymentPreference" value-name="opp">
<field-map field-name="orderPaymentPreferenceId" env-name="orderPaymentPreferenceId"/>
</entity-one>
<set field="paymentMethodTypeId" from-field="opp.paymentMethodTypeId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/transaction/captureTransaction.bsh"/>
</actions>
<widgets>
<decorator-screen name="GenericTransactionDecorator">
<decorator-section name="body">
<include-form name="CaptureTransaction" location="component://accounting/widget/TransactionForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>