Files
ofbiz-framework/applications/accounting/widget/CommonScreens.xml
T
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00

328 lines
18 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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
<screen name="main-decorator">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.AccountingCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.AccountingCompanySubtitle" global="true"/>
<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>
<set field="activeApp" value="accounting" global="true"/>
<set field="appheaderTemplate" value="component://accounting/webapp/accounting/includes/appheader.ftl" global="true"/>
</actions>
<widgets>
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="mainAccountingDecorator">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingConfig" map-name="uiConfigMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.AccountingCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.AccountingCompanySubtitle" global="true"/>
<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
<set field="activeApp" value="accounting" global="true"/>
</actions>
<widgets>
<!-- render header -->
<platform-specific><html><html-template location="component://common/webcommon/includes/header.ftl"/></html></platform-specific>
<!-- render appbar -->
<platform-specific><html><html-template location="component://common/webcommon/includes/appbar.ftl"/></html></platform-specific>
<container style="centerarea">
<!-- render appheader -->
<platform-specific><html><html-template location="component://accounting/webapp/accounting/includes/appheader.ftl"/></html></platform-specific>
<container style="contentarea">
<!-- by default will render left-bar only if leftbarScreen value not empty -->
<!-- include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/ -->
<container style="column-main">
<!-- render messages -->
<platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
<decorator-section-include name="body"/>
</container>
</container>
</container>
<!-- render footer -->
<platform-specific><html><html-template location="component://common/webcommon/includes/footer.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
<screen name="CommonInvoiceDecorator">
<section>
<actions>
<set field="headerItem" value="invoices"/>
</actions>
<widgets>
<decorator-screen name="mainAccountingDecorator">
<decorator-section name="body">
<section>
<!-- do check for ACCOUNTING, _VIEW permission -->
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<include-menu name="InvoiceTabBar" location="component://accounting/widget/Menus.xml"/>
<include-menu name="InvoiceSubTabBar" location="component://accounting/widget/Menus.xml"/>
<label style="head1">${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${invoice.description} [${invoiceId}] ${${extraFunctionName}}</label>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.AcccountingViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonPaymentDecorator">
<section>
<actions>
<set field="headerItem" value="payments"/>
</actions>
<widgets>
<decorator-screen name="mainAccountingDecorator">
<decorator-section name="body">
<section>
<!-- do check for ACCOUNTING, _VIEW permission -->
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<include-menu name="PaymentTabBar" location="component://accounting/widget/Menus.xml"/>
<include-menu name="PaymentSubTabBar" location="component://accounting/widget/Menus.xml"/>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonId}:[${paymentId}] ${${extraFunctionName}}"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3" text="${uiLabelMap.AcccountingViewPermissionError}"/>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonFixedAssetMaintDecorator">
<section>
<actions>
<set field="headerItem" value="ListFixedAssetMaints"/>
</actions>
<widgets>
<decorator-screen name="CommonFixedAssetDecorator">
<decorator-section name="body">
<section>
<!-- do check for ACCOUNTING, _VIEW permission -->
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition><not><if-empty field-name="maintHistSeqId"/></not></condition>
<widgets>
<include-menu name="FixedAssetMaintTabBar" location="component://accounting/widget/Menus.xml"/>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.AcccountingViewPermissionError}</label>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonFixedAssetDecorator">
<section>
<actions>
<set field="headerItem" value="ListFixedAssets"/>
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<section>
<!-- do check for ACCOUNTING, _VIEW permission -->
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition><not><if-empty field-name="fixedAssetId"/></not></condition>
<widgets>
<include-menu name="FixedAssetTabBar" location="component://accounting/widget/Menus.xml"/>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${fixedAsset.fixedAssetName} [${uiLabelMap.CommonId}:${fixedAssetId}] ${${extraFunctionName}}"/>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="head3" text="${uiLabelMap.AcccountingViewPermissionError}"/>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonTaxAuthorityDecorator">
<section>
<actions>
<set field="headerItem" value="TaxAuthorities"/>
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
<entity-one entity-name="TaxAuthority" value-name="taxAuthority"/>
<entity-one entity-name="PartyNameView" value-name="taxAuthPartyName" auto-field-map="false">
<field-map field-name="partyId" env-name="taxAuthority.taxAuthPartyId"/>
</entity-one>
<get-related-one value-name="taxAuthority" relation-name="TaxAuthGeo" to-value-name="taxAuthGeo" use-cache="true"/>
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<section>
<!-- do check for ACCOUNTING, _VIEW permission -->
<condition>
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<and>
<not><if-empty field-name="taxAuthPartyId"/></not>
<not><if-empty field-name="taxAuthGeoId"/></not>
</and>
</condition>
<widgets>
<include-menu name="TaxAuthorityTabBar" location="component://accounting/widget/TaxAuthorityMenus.xml"/>
<container><link target="EditTaxAuthority" text="${uiLabelMap.AccountingNewTaxAuthority}" style="buttontext"/></container>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${uiLabelMap.AccountingTaxAuthorityParty} &quot;${taxAuthPartyName.firstName} ${taxAuthPartyName.lastName} ${taxAuthPartyName.groupName}&quot; [${uiLabelMap.CommonId}:${taxAuthPartyId}], ${uiLabelMap.CommonGeo} &quot;${taxAuthGeo.geoName}&quot; [${uiLabelMap.CommonId}:${taxAuthGeoId}] ${${extraFunctionName}}"/>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.AcccountingViewPermissionError}</label>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonAdminDecorator">
<section>
<actions>
<set field="headerItem" value="companies"/>
<set field="organizationPartyId" from-field="parameters.organizationPartyId" global="true"/>
</actions>
<widgets>
<decorator-screen name="mainAccountingDecorator">
<decorator-section name="body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/admin/AdminTabBar.ftl"/></html>
</platform-specific>
<decorator-section-include name="body"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="main">
<section>
<actions>
<set field="headerItem" value="main"/>
<entity-condition entity-name="PaymentType" list-name="paymentTypes">
<order-by field-name="paymentTypeId"/>
</entity-condition>
<entity-condition entity-name="InvoiceType" list-name="invoiceTypes">
<order-by field-name="invoiceTypeId"/>
</entity-condition>
<entity-condition entity-name="PaymentMethodType" list-name="paymentMethodTypes">
<order-by field-name="paymentMethodTypeId"/>
</entity-condition>
<entity-condition entity-name="StatusItem" list-name="invoiceStatus">
<condition-expr field-name="statusTypeId" operator="equals" value="INVOICE_STATUS"/>
<order-by field-name="statusId"/>
</entity-condition>
<entity-condition entity-name="StatusItem" list-name="paymentStatus">
<condition-expr field-name="statusTypeId" operator="equals" value="PMNT_STATUS"/>
<order-by field-name="statusId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-header">
<label style="boxhead" text="${uiLabelMap.AccountingMainPage}"/>
</container>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/main.ftl"/></html></platform-specific>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/login.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>