Asset Maintenance -> Equipments -> Children UI work. The tree behaves more like one would expect.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@573104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2007-09-05 23:21:30 +00:00
parent 9e4405901a
commit 0265f034ef
4 changed files with 52 additions and 7 deletions
+44
View File
@@ -0,0 +1,44 @@
<?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.
-->
<trees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-tree.xsd">
<tree name="TreeFixedAsset" root-node-name="node-root" entity-name="FixedAsset"
default-render-style="expand-collapse" default-wrap-style="treeWrapper"
expand-collapse-request="FixedAssetChildren?rootAssetId=${rootAssetId}">
<node name="node-root" render-style="simple">
<sub-node node-name="node-body">
<entity-and entity-name="FixedAsset">
<field-map field-name="parentFixedAssetId" env-name="fixedAssetId"/>
<order-by field-name="fixedAssetName"/>
</entity-and>
</sub-node>
</node>
<node name="node-body" wrap-style="treeWrapper">
<link target="EditFixedAsset?fixedAssetId=${fixedAssetId}" text="${fixedAssetName} [${fixedAssetId}] ${instanceOfProductId} ${fixedAssetTypeId} "/>
<sub-node node-name="node-body">
<entity-and entity-name="FixedAsset">
<field-map field-name="parentFixedAssetId" env-name="fixedAssetId"/>
<order-by field-name="fixedAssetName"/>
</entity-and>
</sub-node>
</node>
</tree>
</trees>
+2 -2
View File
@@ -92,10 +92,10 @@
</condition>
<widgets>
<section>
<condition><not><if-empty field-name="fixedAssetId"/></not></condition>
<condition><not><if-empty field-name="fixedAsset"/></not></condition>
<widgets>
<include-menu name="FixedAssetTabBar" location="component://assetmaint/widget/Menus.xml"/>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${fixedAsset.fixedAssetName} [${uiLabelMap.CommonId}:${fixedAssetId}] ${${extraFunctionName}}"/>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${fixedAsset.fixedAssetName} [${fixedAsset.fixedAssetId}] ${${extraFunctionName}}"/>
</widgets>
</section>
</widgets>
+5 -4
View File
@@ -88,15 +88,16 @@
<set field="titleProperty" value="AccountingEditFixedAsset"/>
<set field="labelTitleProperty" value="AccountingFixedAssetChildren"/>
<set field="tabButtonItem" value="FixedAssetChildren"/>
<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"/>
<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="fixedAssetId" from-field="parameters.fixedAssetId" default-value="${parameters.trail}"/>
<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://accounting/widget/AccountingTrees.xml" />
<include-tree name="TreeFixedAsset" location="component://assetmaint/widget/AssetMaintTrees.xml" />
</decorator-section>
</decorator-screen>
</widgets>
+1 -1
View File
@@ -27,7 +27,7 @@
<link target="EditFixedAsset?fixedAssetId=${fixedAssetId}"/>
</menu-item>
<menu-item name="FixedAssetChildren" title="${uiLabelMap.AccountingFixedAssetChildren}">
<link target="FixedAssetChildren?fixedAssetId=${fixedAssetId}&amp;trail=${fixedAssetId}"/>
<link target="FixedAssetChildren?rootAssetId=${fixedAssetId}&amp;trail=${fixedAssetId}"/>
</menu-item>
<menu-item name="ListFixedAssetCalendar" title="${uiLabelMap.AccountingFixedAssetCalendar}">
<link target="ListFixedAssetCalendar?fixedAssetId=${fixedAssetId}"/>