| <?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" |
| xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| |
| <screen name="CommonQuoteDecorator"> |
| <section> |
| <actions> |
| <set field="headerItem" value="quote"/> |
| </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> |
| <section> |
| <condition> |
| <not><if-empty field="quote"/></not> |
| </condition> |
| <widgets> |
| <include-menu name="QuoteTabBar" location="${parameters.mainMenuLocation}"/> |
| </widgets> |
| </section> |
| <container> |
| <label style="h1">[${uiLabelMap.CommonId}:${quote.quoteId}] ${quote.description}</label> |
| </container> |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.OrderViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="AddQuoteWorkEffort"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="OrderCreateOrderQuoteWorkEfforts"/> |
| <set field="tabButtonItem" value="QuoteWorkEfforts"/> |
| <set field="labelTitleProperty" value="PageTitleAddQuoteWorkEffort"/> |
| |
| <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/ListWorkEfforts"/> |
| <set field="quoteId" from-field="parameters.quoteId"/> |
| <entity-one entity-name="QuoteWorkEffort" value-field="quoteWorkEffort"/> |
| <entity-one entity-name="WorkEffort" value-field="workEffort"/> |
| <entity-one entity-name="Quote" value-field="quote"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonQuoteDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.OrderCreateOrderQuoteWorkEfforts}"> |
| <include-form name="AddQuoteWorkEffort" location="component://order/widget/ordermgr/QuoteWorkEffortForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditQuoteWorkEffort"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="OrderOrderQuoteEditWorkEfforts"/> |
| <set field="tabButtonItem" value="QuoteWorkEfforts"/> |
| <set field="labelTitleProperty" value="PageTitleEditQuoteWorkEffort"/> |
| |
| <set field="donePage" from-field="parameters.DONE_PAGE"/> |
| <set field="quoteId" from-field="parameters.quoteId"/> |
| <set field="workEffortId" from-field="parameters.workEffortId"/> |
| <entity-one entity-name="Quote" value-field="quote"/> |
| <entity-one entity-name="WorkEffort" value-field="workEffort"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonQuoteDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.OrderOrderQuoteEditWorkEfforts}"> |
| <include-form name="EditQuoteWorkEffort" location="component://order/widget/ordermgr/QuoteWorkEffortForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="ListQuoteWorkEfforts"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="OrderOrderQuoteWorkEfforts"/> |
| <set field="tabButtonItem" value="QuoteWorkEfforts"/> |
| <set field="labelTitleProperty" value="PageTitleListQuoteWorkEfforts"/> |
| |
| <set field="donePage" from-field="parameters.DONE_PAGE" default-value="/workeffort/control/ListWorkEfforts"/> |
| <set field="quoteId" from-field="parameters.quoteId"/> |
| <entity-one entity-name="Quote" value-field="quote"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonQuoteDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.WorkEffortWorkEfforts}"> |
| <include-form name="ListQuoteWorkEfforts" location="component://order/widget/ordermgr/QuoteWorkEffortForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |