| <?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"> |
| |
| <!-- QuantityBreak screens --> |
| <screen name="ListQuantityBreaks"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListQuantityBreaks"/> |
| <set field="headerItem" value="shipping"/> |
| <set field="tabButtonItem" value="ListQuantityBreaks"/> |
| |
| <entity-condition entity-name="QuantityBreak" list="quantityBreaks"> |
| <order-by field-name="quantityBreakId"/> |
| </entity-condition> |
| <entity-one entity-name="QuantityBreak" value-field="quantityBreak" auto-field-map="true"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonShippingDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleListQuantityBreaks}"> |
| <include-form name="ListQuantityBreaks" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleEditQuantityBreaks}"> |
| <include-form name="EditQuantityBreak" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="ListShipmentMethodTypes"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListShipmentMethodTypes"/> |
| <set field="headerItem" value="shipping"/> |
| <set field="tabButtonItem" value="ListShipmentMethodTypes"/> |
| |
| <entity-condition entity-name="ShipmentMethodType" list="shipmentMethodTypes"> |
| <order-by field-name="sequenceNum"/> |
| <order-by field-name="description"/> |
| </entity-condition> |
| <entity-one entity-name="ShipmentMethodType" value-field="shipmentMethodType" auto-field-map="true"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonShippingDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleListShipmentMethodTypes}"> |
| <include-form name="ListShipmentMethodTypes" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleEditShipmentMethodTypes}"> |
| <include-form name="EditShipmentMethodType" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="ListCarrierShipmentMethods"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListCarrierShipmentMethods"/> |
| <set field="headerItem" value="shipping"/> |
| <set field="tabButtonItem" value="ListCarrierShipmentMethods"/> |
| |
| <entity-condition entity-name="CarrierShipmentMethod" list="carrierShipmentMethods"> |
| <order-by field-name="sequenceNumber"/> |
| </entity-condition> |
| <entity-one entity-name="CarrierShipmentMethod" value-field="carrierShipmentMethod" auto-field-map="true"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonShippingDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleListCarrierShipmentMethods}"> |
| <include-form name="ListCarrierShipmentMethods" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleEditCarrierShipmentMethods}"> |
| <include-form name="EditCarrierShipmentMethod" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="ListShipmentTimeEstimates"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleListShipmentTimeEstimates"/> |
| <set field="headerItem" value="shipping"/> |
| <set field="tabButtonItem" value="ListShipmentTimeEstimates"/> |
| |
| <entity-condition entity-name="ShipmentTimeEstimate" list="shipmentTimeEstimates"> |
| <order-by field-name="shipmentMethodTypeId"/> |
| </entity-condition> |
| <entity-one entity-name="ShipmentTimeEstimate" value-field="shipmentTimeEstimate"/> |
| |
| <entity-condition entity-name="CarrierShipmentMethod" list="carrierShipmentMethods"> |
| <order-by field-name="sequenceNumber"/> |
| </entity-condition> |
| <set field="targetUrl" value="prepareCreateShipmentTimeEstimate"/><!-- Necessary for SelectShipmentMethod.ftl --> |
| |
| <entity-one entity-name="CarrierShipmentMethod" value-field="carrierShipmentMethod"/> |
| |
| <set field="dependentForm" value="EditShipmentTimeEstimate"/> |
| <set field="paramKey" value="shipmentMethodTypeId"/> |
| <set field="mainId" value="shipmentMethodTypeId"/> |
| <set field="dependentId" value="partyId"/> |
| <set field="requestName" value="getShipmentPartyList"/> |
| <set field="responseName" value="partyList"/> |
| <set field="dependentKeyName" value="partyId"/> |
| <set field="descName" value="partyName"/> |
| <set field="selectedDependentOption" from-field="shipmentMethodTypeId" default-value="_none_"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonShippingDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleListShipmentTimeEstimates}"> |
| <include-form name="ListShipmentTimeEstimates" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| <section> |
| <condition> |
| <and> |
| <if-empty field="carrierShipmentMethod"/> |
| <if-empty field="parameters.addShipmentMethodEstimate"/> |
| </and> |
| </condition> |
| <widgets> |
| <screenlet title="${uiLabelMap.PageTitleEditShipmentTimeEstimates}"> |
| <platform-specific> |
| <html><html-template location="component://product/template/shipment/SelectShipmentMethod.ftl"/></html> |
| </platform-specific> |
| </screenlet> |
| </widgets> |
| <fail-widgets> |
| <screenlet title="${uiLabelMap.PageTitleEditShipmentTimeEstimates}"> |
| <include-form name="EditShipmentTimeEstimate" location="component://product/widget/catalog/ShippingForms.xml"/> |
| </screenlet> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| </screens> |