applications/product/widget/facility/ShipmentScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindShipment">
<section>
<actions>
<set field="titleProperty" value="ProductFindShipment"/>
<set field="activeSubMenuItem" value="FindShipment"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<include-menu name="ShipmentTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="FindShipment" location="component://product/widget/facility/ShipmentForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListShipment" location="component://product/widget/facility/ShipmentForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonShipmentDecorator">
<section>
<actions>
<set field="activeSubMenu" from-field="activeSubMenu" default-value="component://product/widget/facility/FacilityMenus.xml#Shipment" />
<set field="shipmentId" from-field="parameters.shipmentId"/>
<entity-one entity-name="Shipment" value-field="shipment"/>
<set field="shipmentId" from-field="shipment.shipmentId" global="true"/>
<get-related-one value-field="shipment" to-value-field="facility" relation-name="DestinationFacility"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!--<section>
<condition>
<not><if-empty field="shipment"/></not>
</condition>
<widgets>
<label style="heading" text="${uiLabelMap.ProductShipmentId}: ${shipment.shipmentId}"/>
<container>
<link style="${styles.link_run_sys} ${styles.action_export}" text="${uiLabelMap.ProductGenerateShipmentManifestReport}" target="ShipmentManifest.pdf" target-window="_BLANK">
<parameter param-name="shipmentId" from-field="shipment.shipmentId"/>
</link>
</container>
</widgets>
</section>-->
<section>
<condition>
<and>
<not><if-empty field="shipment"/></not>
<not><if-empty field="facility"/></not>
<if-compare field="shipment.shipmentTypeId" operator="equals" value="PURCHASE_SHIPMENT"/>
</and>
</condition>
<widgets>
<container>
<link style="${styles.link_nav} ${styles.action_add}" text="${uiLabelMap.ProductReceiveInventory}" target="ReceiveInventory">
<parameter param-name="shipmentId" from-field="shipment.shipmentId"/>
<parameter param-name="facilityId" from-field="facility.facilityId"/>
<parameter param-name="purchaseOrderId" from-field="shipment.primaryOrderId"/>
<parameter param-name="initialSelected" value="Y"/>
</link>
</container>
</widgets>
</section>
<section>
<condition>
<and>
<not><if-empty field="shipment"/></not>
<not><if-empty field="facility"/></not>
<if-compare field="shipment.shipmentTypeId" operator="equals" value="PURCHASE_SHIPMENT"/>
<not><if-empty field="shipment.primaryOrderId"/></not>
</and>
</condition>
<widgets>
<container>
<link style="${styles.link_nav} ${styles.action_add}" text="${uiLabelMap.ProductReceiveInventoryAgainstPO}" target="ReceiveInventoryAgainstPurchaseOrder">
<parameter param-name="shipmentId" from-field="shipment.shipmentId"/>
<parameter param-name="purchaseOrderId" from-field="shipment.primaryOrderId"/>
</link>
</container>
</widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- SCIPIO: Deprecated in favor to EditShipment -->
<!-- <screen name="ViewShipment">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeSubMenuItem" value="ViewShipment"/>
<set filed="shipmentId" from-value="parameters.shipmentId"/>
<set field="title" value="${uiLabelMap.FacilityShipment} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ViewShipment.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentItems.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentPackages.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy"/>
</actions>
<widgets>
<section>
<condition>
<not>
<if-empty field="shipment"/>
</not>
</condition>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<screenlet>
<include-form location="component://product/widget/facility/ShipmentForms.xml" name="ViewShipment"/>
</screenlet>
<screenlet id="shipmentItemPanel" title="${uiLabelMap.PageTitleViewShipmentItemInfo}" initially-collapsed="true">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/ViewShipmentItemInfo.ftl"/></html>
</platform-specific>
</screenlet>
<screenlet id="shipmentPackagePanel" title="${uiLabelMap.PageTitleViewShipmentPackageInfo}" initially-collapsed="true">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/ViewShipmentPackageInfo.ftl"/></html>
</platform-specific>
</screenlet>
<screenlet id="shipmentRoutePanel" title="${uiLabelMap.PageTitleViewShipmentRouteInfo}" initially-collapsed="true">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/ViewShipmentRouteInfo.ftl"/></html>
</platform-specific>
</screenlet>
<screenlet id="shipmentReceiptPanel" title="${uiLabelMap.PageTitleViewShipmentReceipts}" initially-collapsed="true">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/ViewShipmentRouteInfo.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<include-screen name="FindShipment"/>
</fail-widgets>
</section>
</widgets>
</section>
</screen> -->
<screen name="EditShipment">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="shipmentId" from-field="parameters.shipmentId"/>
<set field="shipmentTypeId" from-field="parameters.shipmentTypeId"/>
<set field="title" value="${uiLabelMap.FacilityShipment} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipment.groovy"/>
<set field="activeSubMenuItem" value="${groovy: context.shipment ? 'EditShipment' : 'NewShipment'}"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<!--<include-form name="EditShipment" location="component://product/widget/facility/ShipmentForms.xml"/>-->
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/EditShipment.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditShipmentItems">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeSubMenuItem" value="EditShipmentItems"/>
<set field="shipmentId" from-field="parameters.shipmentId"/>
<set field="title" value="${uiLabelMap.FacilityShipmentItems} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentItems.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/EditShipmentItems.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditShipmentPlan">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeSubMenuItem" value="EditShipmentPlan"/>
<set field="title" value="${uiLabelMap.PageTitleEditShipmentPlan} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentPlan.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.ProductShipmentPlan}">
<include-form name="findOrderItems" location="component://product/widget/facility/ShipmentForms.xml"/>
</screenlet>
<section>
<condition>
<not><if-empty field="addToShipmentPlanRows"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.ProductShipmentPlanAdd}">
<include-form name="addToShipmentPlan" location="component://product/widget/facility/ShipmentForms.xml"/>
</screenlet>
</widgets>
</section>
<screenlet title="${uiLabelMap.ProductShipmentPlanList}">
<include-form name="listShipmentPlan" location="component://product/widget/facility/ShipmentForms.xml"/>
<label style="heading" text="${uiLabelMap.ProductShipmentTotalWeight}: ${totWeight} ${uiLabelMap.ProductShipmentTotalVolume}: ${totVolume}"/>
</screenlet>
<section>
<condition>
<if-compare field="shipment.shipmentTypeId" operator="equals" value="SALES_SHIPMENT"/>
</condition>
<widgets>
<link style="${styles.link_nav} ${styles.action_add}" text="${uiLabelMap.ProductShipmentPlanToOrderItems}" target="AddItemsFromOrder">
<parameter param-name="shipmentId"/>
<parameter param-name="selectFromShipmentPlan" value="true"/>
</link>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditShipmentPackages">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeSubMenuItem" value="EditShipmentPackages"/>
<set field="shipmentId" from-field="parameters.shipmentId" />
<set field="title" value="${uiLabelMap.FacilityShipmentPackages} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentPackages.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/EditShipmentPackages.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditShipmentRouteSegments">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditShipmentRouteSegments"/>
<set field="activeSubMenuItem" value="EditShipmentRouteSegments"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/EditShipmentRouteSegments.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="AddItemsFromOrder">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="shipmentId" from-field="parameters.shipmentId" />
<set field="activeSubMenuItem" value="AddItemsFromOrder"/>
<set field="title" value="${uiLabelMap.ProductAddItemsShipment} ${shipmentId}"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/AddItemsFromOrder.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/AddItemsFromOrder.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewShipmentReceipts">
<section>
<actions>
<set field="titleProperty" value="PageTitleViewShipmentReceipts"/>
<set field="activeSubMenuItem" value="ViewShipmentReceipts"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<include-form name="ShipmentReceipts" location="component://product/widget/facility/ShipmentForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="QuickShipOrder">
<section>
<actions>
<set field="titleProperty" value="ProductQuickShipOrder"/>
<set field="activeSubMenuItem" value="shipment"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/QuickShipOrder.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentItems.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentPackages.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/QuickShipOrder.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="VerifyPick">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="facilityId" value="${parameters.facilityId}"/>
<set field="activeSubMenuItem" value="VerifyPick"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/VerifyPick.groovy"/>
<set field="title" value="${uiLabelMap.ProductVerifyPick} ${facilityId}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityPickingDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/VerifyPick.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PackOrder">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="title" value="${uiLabelMap.ProductPackOrder} ${facilityId}"/>
<set field="activeSubMenuItem" value="PackOrder"/>
<!-- <set field="facilityMenu" value="FacilityPackOrderSideBar"/>-->
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/PackOrder.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/PackOrder.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="WeightPackageOnly">
<section>
<actions>
<set field="titleProperty" value="ProductWeighPackageOnly"/>
<!-- let fall under Facility...
<set field="activeSubMenuItem" value="shipment"/> -->
<set field="activeSubMenuItem" value="PackOrder"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy"/>
</actions>
<widgets>
<!-- CommonFacilityAppDecorator -->
<decorator-screen name="CommonFacilityDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/WeightPackage.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PackingSlip.fo">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="shipmentId" from-field="parameters.shipmentId"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ViewShipment.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/PackingSlip.groovy"/>
</actions>
<widgets>
<decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
<!-- at the top left of every page we put the logo and company information -->
<decorator-section name="topLeft">
<include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml"/>
</decorator-section>
<!-- at the top right of every page we put the order information -->
<decorator-section name="topRight">
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/shipment/PackingSlipShipmentBarCode.fo.ftl"/></xsl-fo>
</platform-specific>
</decorator-section>
<decorator-section name="body">
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/shipment/PackingSlip.fo.ftl"/></xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ShipmentBarCode.fo">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="shipmentId" from-field="parameters.shipmentId"/>
</actions>
<widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/shipment/ShipmentBarCode.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="ShipmentManifest.fo">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<set field="shipmentId" from-field="parameters.shipmentId"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ViewShipment.groovy"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ShipmentManifest.groovy"/>
</actions>
<widgets>
<decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
<!-- at the top left of every page we put the logo and company information -->
<decorator-section name="topLeft">
<include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml"/>
</decorator-section>
<!-- at the top right of every page we put the order information -->
<decorator-section name="topRight">
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/shipment/PackingSlipShipmentBarCode.fo.ftl"/></xsl-fo>
</platform-specific>
</decorator-section>
<decorator-section name="body">
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/shipment/ShipmentManifest.fo.ftl"/></xsl-fo>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ReceiveInventoryAgainstPurchaseOrder">
<section>
<actions>
<property-map resource="ProductEntityLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="ProductReceiveInventoryAgainstPurchaseOrder"/>
<set field="activeSubMenuItem" value="ProductReceiveInventoryAgainstPO"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ReceiveInventoryAgainstPurchaseOrder.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="AddItemsFromInventory">
<section>
<actions>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ManufacturingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="ProductAddItemsFromInventory"/>
<set field="activeSubMenuItem" value="AddItemsFromInventory"/>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/AddItemsFromInventory.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShipmentDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/shipment/AddItemsFromInventory.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>