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
312 lines
18 KiB
XML
312 lines
18 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">
|
|
|
|
<!-- list all assets in a tabular format -->
|
|
<screen name="ListFixedAssets">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListFixedAssets"/>
|
|
<set field="tabButtonItem" value="ListFixedAssets"/>
|
|
<entity-condition entity-name="FixedAsset" list-name="fixedAssets">
|
|
<!-- <condition-list>
|
|
<condition-expr field-name="fixedAssetId" operator="greater" value=" "/>
|
|
<!- - <condition-expr field-name="fixedAssetTypeId" operator="not-equals" value="GROUP_EQUIPMENT"/> - ->
|
|
</condition-list> -->
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><label style="head1">${uiLabelMap.AccountingFixedAssets}</label></container>
|
|
<container>
|
|
<link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext"/>
|
|
</container>
|
|
<container></container>
|
|
<include-form name="ListFixedAssets" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- create and/or update a fixed asset -->
|
|
<screen name="EditFixedAsset">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAsset"/>
|
|
<set field="tabButtonItem" value="EditFixedAsset"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><label style="head1">${uiLabelMap.AccountingFixedAssetEdit}</label></container>
|
|
<container><link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext"/></container>
|
|
<include-form name="EditFixedAsset" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- provide a list and allow additions -->
|
|
<screen name="ListFixedAssetProducts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListFixedAssetProducts"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetProducts"/>
|
|
<set field="labelTitleProperty" value="AccountingFixedAssetProducts"/>
|
|
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset">
|
|
<select-field field-name="fixedAssetName"/>
|
|
</entity-one>
|
|
<entity-condition entity-name="FixedAssetProduct" list-name="fixedAssetProducts" >
|
|
<condition-expr field-name="fixedAssetId" env-name="fixedAssetId"/>
|
|
<order-by field-name="productId"/>
|
|
<order-by field-name="fixedAssetProductTypeId"/>
|
|
<order-by field-name="fromDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="ListFixedAssetProducts" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<container><label style="head1">${uiLabelMap.AccountingFixedAssetProductNew}</label></container>
|
|
<include-form name="AddFixedAssetProduct" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- provide a calendar to show occupation-->
|
|
<screen name="ListFixedAssetCalendar">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.extraHead" value="<link rel='stylesheet' href='/images/calendarTable.css' type='text/css'>" global="true"/>
|
|
<set field="titleProperty" value="PageTitleListFixedAssetCalendar"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetCalendar"/>
|
|
<set field="labelTitleProperty" value="AccountingFixedAssetCalendar"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
<script location="component://accounting/webapp/accounting/fixedasset/month.bsh"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container>
|
|
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}&month=-3" text="${uiLabelMap.CommonPrevious} ${uiLabelMap.CommonQuarter}" style="buttontext"/>
|
|
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}&month=-1" text="${uiLabelMap.CommonPrevious} ${uiLabelMap.CommonMonth}" style="buttontext"/>
|
|
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}" text="${uiLabelMap.CommonThis} ${uiLabelMap.CommonMonth}" style="buttontext"/>
|
|
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}&month=1" text="${uiLabelMap.CommonNext} ${uiLabelMap.CommonMonth}" style="buttontext"/>
|
|
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}&month=3" text="${uiLabelMap.CommonNext} ${uiLabelMap.CommonQuarter}" style="buttontext"/>
|
|
<include-form name="listFixedAssetCalendar" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<label style="tabletext" text="${uiLabelMap.AccountingFixedAssetMessage1}"></label>
|
|
</container>
|
|
<!--
|
|
<container>
|
|
<label style="head1">${uiLabelMap.AccountingUpdateAvailability}</label>
|
|
<include-form name="updateFixedAssetCalendar" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</container>
|
|
-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ListFixedAssetStdCosts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListFixedAssetStdCosts"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetStdCosts"/>
|
|
<set field="labelTitleProperty" value="AccountingFixedAssetStdCosts"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset" auto-field-map="true"/>
|
|
<entity-and entity-name="FixedAssetStdCost" list-name="fixedAssetStdCosts">
|
|
<field-map env-name="fixedAsset.fixedAssetId" field-name="fixedAssetId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link target="EditFixedAssetStdCost?fixedAssetId=${fixedAsset.fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetStdCost}" style="buttontext"/></container>
|
|
<include-form name="ListFixedAssetStdCosts" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditFixedAssetStdCost">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetStdCost"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetStdCosts"/>
|
|
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="fixedAssetStdCostTypeId" from-field="parameters.fixedAssetStdCostTypeId"/>
|
|
<set field="fromDate" from-field="parameters.fromDate"/>
|
|
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset" auto-field-map="true"/>
|
|
<entity-one entity-name="FixedAssetStdCost" value-name="fixedAssetStdCost" auto-field-map="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link target="EditFixedAssetStdCost?fixedAssetId=${fixedAsset.fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetStdCost}" style="buttontext"/></container>
|
|
<include-form name="EditFixedAssetStdCost" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Fixed Asset Idents -->
|
|
<screen name="EditFixedAssetIdents">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetIdents"/>
|
|
<set field="tabButtonItem" value="EditFixedAssetIdents"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditFixedAssetIdents"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="fixedAssetIdentTypeId" from-field="parameters.fixedAssetIdentTypeId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="ListFixedAssetIdents" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<include-form name="AddFixedAssetIdent" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Fixed Asset Registrations -->
|
|
<screen name="EditFixedAssetRegistrations">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetRegistrations"/>
|
|
<set field="tabButtonItem" value="EditFixedAssetRegistrations"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditFixedAssetRegistrations"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="fromDate" from-field="parameters.fromDate"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="ListFixedAssetRegistrations" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<include-form name="AddFixedAssetRegistration" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Fixed Asset Maintenance -->
|
|
<screen name="ListFixedAssetMaints">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListFixedAssetMaints"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetMaints"/>
|
|
<set field="labelTitleProperty" value="PageTitleListFixedAssetMaints"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="fromDate" from-field="parameters.fromDate"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link target="EditFixedAssetMaint?fixedAssetId=${fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"/></container>
|
|
<include-form name="ListFixedAssetMaints" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditFixedAssetMaint">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetMaintenance"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetMaints"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditFixedAssetMaintenance"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="maintHistSeqId" from-field="parameters.maintHistSeqId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
<entity-one entity-name="FixedAssetMaint" value-name="fixedAssetMaint"/>
|
|
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetMaintDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link target="EditFixedAssetMaint?fixedAssetId=${fixedAssetId}" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"/></container>
|
|
<include-form name="EditFixedAssetMaint" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Fixed Asset MaintMeter -->
|
|
<screen name="EditFixedAssetMaintMeters">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetMaintenance"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetMaints"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditFixedAssetMaintenance"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="maintHistSeqId" from-field="parameters.maintHistSeqId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
<entity-one entity-name="FixedAssetMaint" value-name="fixedAssetMaint"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetMaintDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="ListFixedAssetMaintMeters" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<include-form name="AddFixedAssetMaintMeter" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Fixed Asset Children -->
|
|
<screen name="FixedAssetChildren">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListFixedAssetChildren"/>
|
|
<set field="tabButtonItem" value="FixedAssetChildren"/>
|
|
<set field="labelTitleProperty" value="PageTitleListFixedAssetChildren"/>
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId"/>
|
|
<set field="trail" from-field="parameters.trail" default-value="${parameters.fixedAssetId}"/>
|
|
<set field="fixedAssetId" from-field="parameters.trail"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-tree name="TreeFixedAsset" location="component://accounting/widget/AccountingTrees.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|