git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607625 13f79535-47bb-0310-9956-ffa450edef68
229 lines
12 KiB
XML
229 lines
12 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://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<screen name="FindFixedAssets">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="AccountingFindFixedAsset" />
|
|
<set field="labelTitleProperty" value="AccountingFindFixedAsset" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="button-bar">
|
|
<link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext" />
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<label style="head3">${uiLabelMap.AccountingFixedAssets}</label>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<include-form name="FindFixedAssets" location="component://assetmaint/widget/forms/FixedAssetForms.xml" />
|
|
</container>
|
|
</container>
|
|
<include-form name="ListFixedAssets" location="component://assetmaint/widget/forms/FixedAssetForms.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Create/Update Equipment -->
|
|
<screen name="EditFixedAsset">
|
|
<section>
|
|
<actions>
|
|
<set field="labelTitleProperty" value="AccountingEditFixedAsset" />
|
|
<set field="tabButtonItem" value="EditFixedAsset" />
|
|
<set field="fixedAssetId" from-field="parameters.fixedAssetId" />
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset" />
|
|
<property-map resource="AssetMaintUiLabels" map-name="uiLabelMap"/>
|
|
<set field="fixedAssetName" from-field="fixedAsset.fixedAssetName" default-value="${uiLabelMap.AccountingNewFixedAsset}"/>
|
|
<set field="title" value="${uiLabelMap.AccountingEditFixedAsset}: ${fixedAssetName}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition><not><if-empty field-name="fixedAssetId"/></not></condition>
|
|
<widgets>
|
|
<container style="button-bar">
|
|
<link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext" />
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<label style="head3">${uiLabelMap.AccountingEditFixedAsset}</label>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<include-form name="EditFixedAsset" location="component://assetmaint/widget/forms/FixedAssetForms.xml" />
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="button-bar"><label/></container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<label style="head3">${uiLabelMap.AccountingNewFixedAsset}</label>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<include-form name="EditFixedAsset" location="component://assetmaint/widget/forms/FixedAssetForms.xml" />
|
|
</container>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
<!--platform-specific>
|
|
<html><html-template location="component://assetmaint/webapp/assetmaint/includes/EquipmentsFocus.ftl"/></html>
|
|
</platform-specific-->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="FixedAssetChildren">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="AccountingEditFixedAsset"/>
|
|
<set field="labelTitleProperty" value="AccountingFixedAssetChildren"/>
|
|
<set field="tabButtonItem" value="FixedAssetChildren"/>
|
|
<set field="rootAssetId" from-field="parameters.rootAssetId" default-value="${parameters.fixedAssetId}"/>
|
|
<set field="fixedAssetId" from-field="rootAssetId"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
<set field="trail" from-field="parameters.trail" default-value="${parameters.fixedAssetId}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-tree name="TreeFixedAsset" location="component://assetmaint/widget/AssetMaintTrees.xml" />
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditFixedAssetStdCosts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditFixedAssetStdCost"/>
|
|
<set field="labelTitleProperty" value="AccountingFixedAssetStdCosts"/>
|
|
<set field="tabButtonItem" value="EditFixedAssetStdCosts"/>
|
|
|
|
<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"/>
|
|
<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 style="button-bar"><label/></container>
|
|
<include-form name="ListFixedAssetStdCosts" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
<container style="button-bar"><label/></container>
|
|
<include-form name="EditFixedAssetStdCost" location="component://accounting/webapp/accounting/fixedasset/FixedAssetForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonCalendarDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.styleSheets[]" value="/images/calendarstyles.css" global="true"/>
|
|
<set field="tabButtonItem" value="ListFixedAssetCalendar"/>
|
|
<set field="labelTitleProperty" value="AssetMaintMaintenanceCalendar"/>
|
|
<script location="component://assetmaint/webapp/assetmaint/WEB-INF/actions/workeffort/viewCalendar.bsh"/>
|
|
<entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
|
|
<property-map resource="AssetMaintUiLabels" map-name="uiLabelMap"/>
|
|
<set field="title" value="${uiLabelMap.AssetMaintMaintenanceCalendar}: ${fixedAsset.fixedAssetName}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-menu name="CalendarTabBar" location="component://assetmaint/widget/Menus.xml"/>
|
|
<decorator-section-include name="body"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CalendarDay">
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.viewMode" value="D"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCalendarDecorator">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://workeffort/webapp/workeffort/calendar/day.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CalendarWeek">
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.viewMode" value="W"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCalendarDecorator">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://workeffort/webapp/workeffort/calendar/week.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CalendarMonth">
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.viewMode" value="M"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonCalendarDecorator">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://workeffort/webapp/workeffort/calendar/month.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
</screens>
|