Files
ofbiz-framework/applications/order/widget/ordermgr/RequirementScreens.xml
T
2007-01-31 23:31:12 +00:00

360 lines
19 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="CommonRequirementDecorator">
<section>
<actions>
<!-- <set field="leftbarScreenName" value="leftbar"/> -->
<!-- <set field="leftbarScreenLocation" value=""/> -->
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for ORDERMGR, _VIEW permission -->
<condition>
<if-has-permission permission="ORDERMGR" action="_VIEW"/>
</condition>
<widgets>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/requirement/RequirementTabBar.ftl"/></html>
</platform-specific>
<container>
<label style="head1">${uiLabelMap.OrderRequirement} [${requirementId}]</label>
</container>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.OrderViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonRequirementsDecorator">
<section>
<actions>
<!-- <set field="leftbarScreenName" value="leftbar"/> -->
<!-- <set field="leftbarScreenLocation" value=""/> -->
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for ORDERMGR, _VIEW permission -->
<condition>
<if-has-permission permission="ORDERMGR" action="_VIEW"/>
</condition>
<widgets>
<platform-specific>
<html><html-template location="component://order/webapp/ordermgr/requirement/RequirementsTabBar.ftl"/></html>
</platform-specific>
<container>
<link target="EditRequirement" text="${uiLabelMap.OrderNewRequirement}" style="buttontext"/>
</container>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.OrderViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindRequirements">
<section>
<actions>
<set field="title" value="${uiLabelMap.OrderFindRequirements}"/>
<set field="titleProperty" value="PageTitleFindRequirements"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="FindRequirements"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementsDecorator">
<decorator-section name="body">
<include-form name="FindRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
<include-form name="ListRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ApproveRequirements">
<section>
<actions>
<set field="title" value="${uiLabelMap.OrderFindRequirements}"/>
<set field="titleProperty" value="PageTitleFindRequirements"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ApproveRequirements"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementsDecorator">
<decorator-section name="body">
<include-form name="FindNotApprovedRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
<include-form name="ApproveRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ApprovedProductRequirements">
<section>
<actions>
<set field="title" value="${uiLabelMap.OrderFindRequirements}"/>
<set field="titleProperty" value="PageTitleFindRequirements"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ApprovedProductRequirements"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
<set field="_rowSubmit" value="Y"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/requirement/ApprovedProductRequirements.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementsDecorator">
<decorator-section name="body">
<include-form name="FindApprovedProductRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
<section>
<actions>
<set field="genericLinkName" value="print"/>
<set field="genericLinkText" value="${uiLabelMap.CommonPrint}"/>
<set field="genericLinkTarget" value="ApprovedProductRequirementsReport"/>
<set field="genericLinkStyle" value="buttontext"/>
<set field="genericLinkWindow" value="reportWindow"/>
</actions>
<widgets>
<include-screen name="genericLink" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
<section>
<condition>
<not><if-empty field-name="parameters.partyId"/></not>
</condition>
<widgets>
<container>
<label style="head2" text="${uiLabelMap.RequirementList}"/>
</container>
<include-form name="ApprovedProductRequirements" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
<container style="screenlet">
<include-form name="ApprovedProductRequirementsSummary" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</container>
<include-form name="ApprovedProductRequirementsSubmit" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="ApprovedProductRequirementsList" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ApprovedProductRequirementsReport">
<section>
<actions>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="pageLayoutName" value="simple-landscape"/>
<set field="titleProperty" value="PageTitleApprovedProductRequirements"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="500"/>
</actions>
<widgets>
<decorator-screen name="FoDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<include-form name="ApprovedProductRequirementsList" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ApprovedProductRequirementsByVendor">
<section>
<actions>
<set field="title" value="Approved Product Requirements By Vendor"/>
<set field="titleProperty" value="PageTitleFindRequirements"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ApprovedProductRequirementsByVendor"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/requirement/ApprovedProductRequirementsByVendor.bsh"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementsDecorator">
<decorator-section name="body">
<include-form name="ApprovedProductRequirementsByVendor" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ApprovedProductRequirementsByVendorReport">
<section>
<actions>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="pageLayoutName" value="simple-landscape"/>
<set field="titleProperty" value="PageTitleApprovedProductRequirementsByVendor"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="500"/>
</actions>
<widgets>
<decorator-screen name="FoDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<include-form name="ApprovedProductRequirementsByVendorList" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditRequirement">
<section>
<actions>
<set field="title" value="Edit Requirement"/>
<set field="titleProperty" value="PageTitleEditRequirement"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="EditRequirement"/>
<set field="requirementId" from-field="parameters.requirementId"/>
<entity-one entity-name="Requirement" value-name="requirement" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementDecorator">
<decorator-section name="body">
<container>
<link target="EditRequirement" text="${uiLabelMap.OrderNewRequirement}" style="buttontext"/>
</container>
<include-form name="EditRequirement" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListRequirementCustRequests">
<section>
<actions>
<set field="title" value="List RequirementCustRequests"/>
<set field="titleProperty" value="PageTitleListRequirementCustRequests"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ListRequirementCustRequests"/>
<set field="requirementId" from-field="parameters.requirementId"/>
<entity-one entity-name="Requirement" value-name="requirement" auto-field-map="true"/>
<entity-and entity-name="RequirementCustRequest" list-name="requirementCustRequests">
<field-map env-name="requirementId" field-name="requirementId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequirementDecorator">
<decorator-section name="body">
<include-form name="ListRequirementCustRequests" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- screen listing orders related to a given requirement -->
<screen name="ListRequirementOrders">
<section>
<actions>
<set field="title" value="ListRequirementOrders"/>
<set field="titleProperty" value="PageTitleListRequirementOrders"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ListRequirementOrdersTab"/>
<set field="requirementId" from-field="parameters.requirementId"/>
<entity-one entity-name="Requirement" value-name="requirement" auto-field-map="true"/>
<entity-and entity-name="OrderRequirementCommitment" list-name="orderRequirements">
<field-map env-name="requirementId" field-name="requirementId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequirementDecorator">
<decorator-section name="body">
<include-form name="ListRequirementOrders" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- screen listing orders related to a given requirement -->
<screen name="ListRequirementRoles">
<section>
<actions>
<set field="title" value="ListRequirementRoles"/>
<set field="titleProperty" value="PageTitleListRequirementRoles"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ListRequirementRolesTab"/>
<set field="requirementId" from-field="parameters.requirementId"/>
<entity-one entity-name="Requirement" value-name="requirement" auto-field-map="true"/>
<entity-and entity-name="RequirementRole" list-name="requirementRoles">
<field-map env-name="requirementId" field-name="requirementId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonRequirementDecorator">
<decorator-section name="body">
<container>
<link target="EditRequirementRole?requirementId=${requirementId}" text="${uiLabelMap.CommonNew}" style="buttontext"/>
</container>
<include-form name="ListRequirementRoles" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditRequirementRole">
<section>
<actions>
<set field="title" value="Edit Requirement Role"/>
<set field="titleProperty" value="PageTitleEditRequirementRole"/>
<set field="headerItem" value="requirement"/>
<set field="tabButtonItem" value="ListRequirementRolesTab"/>
<set field="requirementId" from-field="parameters.requirementId"/>
<entity-one entity-name="Requirement" value-name="requirement" auto-field-map="true"/>
<entity-one entity-name="RequirementRole" value-name="requirementRole" auto-field-map="true"/>
</actions>
<widgets>
<decorator-screen name="CommonRequirementDecorator">
<decorator-section name="body">
<include-form name="EditRequirementRole" location="component://order/webapp/ordermgr/requirement/RequirementForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>