Updated the Asset Maint component to reuse existing screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -203,9 +203,6 @@
|
||||
<view-map name="LookupPartsProduct" type="screen" page="component://assetmaint/widget/ProductScreens.xml#LookupPartsProduct"/>
|
||||
<view-map name="LookupWorkEffortShort" type="screen" page="component://workeffort/widget/LookupScreens.xml#LookupWorkEffortShort"/>
|
||||
|
||||
<!-- Facility screens -->
|
||||
<view-map name="FindFacility" type="screen" page="component://assetmaint/widget/FacilityScreens.xml#FindFacility"/>
|
||||
|
||||
<!-- Asset Maint Calendar screens -->
|
||||
<view-map name="day" type="screen" page="component://assetmaint/widget/FixedAssetScreens.xml#CalendarDay"/>
|
||||
<view-map name="week" type="screen" page="component://assetmaint/widget/FixedAssetScreens.xml#CalendarWeek"/>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<#if userLogin?has_content>
|
||||
<li<#if selected == "fixedAssets"> class="selected"</#if>><a href="<@ofbizUrl>/findFixedAssets</@ofbizUrl>">${uiLabelMap.AccountingFixedAssets}</a></li>
|
||||
<li<#if selected == "fixedAssetMaints"> class="selected"</#if>><a href="<@ofbizUrl>/findFixedAssetMaints</@ofbizUrl>">${uiLabelMap.AccountingFixedAssetMaints}</a></li>
|
||||
<li<#if selected == "facility"> class="selected"</#if>><a href="<@ofbizUrl>/FindFacility?facilityTypeId=WAREHOUSE</@ofbizUrl>">${uiLabelMap.ProductWarehouse}</a></li>
|
||||
<li<#if selected == "facility"> class="selected"</#if>><a href="<@ofbizUrl>/FindFacility?facilityTypeId=WAREHOUSE</@ofbizUrl>">${uiLabelMap.ProductFacility}</a></li>
|
||||
<li class="opposed"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li>
|
||||
<#else>
|
||||
<li class="opposed"><a href="<@ofbizUrl>${checkLoginUrl?if_exists}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></li>
|
||||
@@ -32,3 +32,4 @@
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -20,38 +20,6 @@
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<screen name="FindFacility">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleFindFacility"/>
|
||||
<set field="headerItem" value="facility"/>
|
||||
<entity-condition entity-name="Facility" list-name="facilities">
|
||||
<condition-expr field-name="facilityTypeId" value="WAREHOUSE"/>
|
||||
<order-by field-name="facilityId"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar">
|
||||
<container style="h3">
|
||||
<label text="${uiLabelMap.PageTitleFindFacility}"/>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-form name="ListFacilities" location="component://assetmaint/widget/forms/FacilityForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</container>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ViewFacilityInventoryByProduct">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="ListFacilities" type="list" list-name="facilities"
|
||||
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<field name="facilityId" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${facilityId}" target="EditFacility?facilityId=${facilityId}"/>
|
||||
</field>
|
||||
<field name="facilityName"><display/></field>
|
||||
<field name="description"><display/></field>
|
||||
</form>
|
||||
</forms>
|
||||
Reference in New Issue
Block a user