blob: a588715d86ec7f9dd0fd2f6f5d93be968d5fd85d [file] [log] [blame]
<?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://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindFacility">
<section>
<actions>
<set field="titleProperty" value="ProductFindFacilities"/>
<set field="headerItem" value="facility"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/FindFacility.groovy"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
</condition>
<widgets>
<section>
<condition>
<if-compare field="showScreen" value="one" operator="equals"/>
</condition>
<actions>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/EditFacility.groovy"/>
</actions>
<widgets>
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
</condition>
<widgets>
<include-menu name="FacilityTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<section>
<condition>
<not><if-empty field="facilityId"/></not>
</condition>
<widgets>
<container style="button-bar">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="buttontext create"/>
<link target="/workeffort/control/calendar" text="${uiLabelMap.CommonViewCalendar}" style="buttontext" url-mode="inter-app">
<parameter param-name="facilityId"/>
<parameter param-name="externalLoginKey" from-field="parameters.externalLoginKey"/>
</link>
</container>
<label style="h1">${uiLabelMap.ProductEditFacility} ${facility.facilityName} [${facilityId}]</label>
<platform-specific><html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label style="h1">${uiLabelMap.ProductNewFacility}"</label>
<platform-specific><html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html></platform-specific>
</fail-widgets>
</section>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ProductFacilityViewPermissionError}</label>
</fail-widgets>
</section>
</widgets>
</section>
<section>
<condition>
<if-compare field="showScreen" value="ten" operator="equals"/>
</condition>
<widgets>
<label text="${uiLabelMap.FacilitySelection}" style="h1"/>
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="CREATE"/>
</condition>
<widgets>
<container style="button-bar"><link target="EditFacility" text="${uiLabelMap.ProductCreateNewFacility}" style="buttontext create"/></container>
</widgets>
</section>
<screenlet>
<include-form name="FindFacility10" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="showScreen" value="more" operator="equals"/>
</condition>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="CREATE"/>
</condition>
<widgets>
<container style="button-bar"><link target="EditFacility" text="${uiLabelMap.ProductCreateNewFacility}" style="buttontext"/></container>
</widgets>
</section>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindFacilityOptions" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-screen name="FacilitySearchResults"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ProductFacilityViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FacilitySearchResults">
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<include-form name="FindFacility" location="component://product/widget/facility/FacilityForms.xml"/>
</widgets>
</section>
</screen>
<screen name="EditFacility">
<section>
<actions>
<set field="titleProperty" value="ProductNewFacility"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="EditFacility"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/EditFacility.groovy"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="facility"/></not>
</condition>
<actions>
<set field="titleProperty" value="ProductEditFacility"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field="facilityId"/></not>
</condition>
<widgets>
<container style="page-title">
<label>${uiLabelMap.ProductEditFacility} ${facility.facilityName} [${facilityId}]</label>
</container>
<container style="button-bar button-style-1">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="create"/>
<link target="/workeffort/control/calendar" text="${uiLabelMap.CommonViewCalendar}" url-mode="inter-app">
<parameter param-name="facilityId"/>
<parameter param-name="externalLoginKey" from-field="parameters.externalLoginKey"/>
</link>
</container>
<platform-specific><html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html></platform-specific>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ProductFacilityViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="VIEW"/>
</condition>
<widgets>
<label style="h1">${uiLabelMap.ProductNewFacility}</label>
<platform-specific><html><html-template location="component://product/webapp/facility/facility/EditFacility.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ProductFacilityViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="FacilityChildren">
<section>
<actions>
<set field="titleProperty" value="ProductFacilityChildren" />
<set field="headerItem" value="facility" />
<set field="tabButtonItem" value="FacilityChildren" />
<set field="facilityId" from-field="parameters.facilityId" />
<set field="trail" from-field="parameters.trail" default-value="${facilityId}" />
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap.ProductFacilityChildren}" />
</container>
<include-tree location="component://product/widget/facility/FacilityTrees.xml" name="FacilityTree" />
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindFacilityTransfers">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindFacilityTransfers"/>
<set field="tabButtonItem" value="FindFacilityTransfers"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/FindFacilityTransfers.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="h3">${uiLabelMap.CommonView} </label>
<link target="FindFacilityTransfers" text="${uiLabelMap.ProductActiveOnly}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
<parameter param-name="activeOnly" value="true"/>
</link>
<link target="FindFacilityTransfers" text="${uiLabelMap.CommonAll}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
<parameter param-name="activeOnly" value="false"/>
</link>
</container>
<container>
<link target="FindFacilityTransfers" text="${uiLabelMap.ProductCompleteRequestedTransfers}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
<parameter param-name="completeRequested" value="true"/>
</link>
<link target="TransferInventoryItem" text="${uiLabelMap.ProductInventoryTransfer}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
</link>
</container>
<screenlet title="${uiLabelMap.ProductInventoryTransfersFor} ${facility.facilityName} [${uiLabelMap.CommonId}: ${facilityId}] ${uiLabelMap.CommonTo}: ${facility.facilityName} [${uiLabelMap.CommonId}: ${facilityId}]}">
<include-form name="ToFacilityTransfers" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.CommonFrom}: ${facility.facilityName} [${uiLabelMap.CommonId}: ${facilityId}]">
<section>
<condition>
<if-compare field="parameters.completeRequested" operator="equals" value="true"/>
</condition>
<widgets>
<include-form name="FromFacilityTransfersComplete" location="component://product/widget/facility/FacilityForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="FromFacilityTransfers" location="component://product/widget/facility/FacilityForms.xml"/>
</fail-widgets>
</section>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindFacilityLocation">
<section>
<actions>
<set field="tabButtonItem" value="FindFacilityLocation"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/FindFacilityLocation.groovy"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleFindFacilityLocation}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${title}">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/FindFacilityLocation.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityLocation">
<section>
<actions>
<set field="tabButtonItem" value="FindFacilityLocation"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/EditFacilityLocation.groovy"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleNewFacilityLocation}"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="locationSeqId"/></not>
</condition>
<actions>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityLocation}"/>
</actions>
<widgets/>
</section>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/EditFacilityLocation.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityInventoryItems">
<section>
<actions>
<set field="tabButtonItem" value="EditFacilityInventoryItems"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityInventoryItems}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="buttontext create"/>
<link target="EditInventoryItem" text="${uiLabelMap.ProductNewInventoryItem}" style="buttontext create">
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
</link>
<link target="SearchInventoryItemsByLabels" text="${uiLabelMap.ProductSearchInventoryItemsByLabels}" style="buttontext search">
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
</link>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="SearchInventoryItemsParams" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListFacilityInventoryItems" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="SearchInventoryItemsByLabels">
<section>
<actions>
<set field="titleProperty" value="PageTitleSearchInventoryItemsByLabels"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="EditFacilityInventoryItems"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-one entity-name="Facility" value-field="facility"/>
<entity-condition entity-name="InventoryItemLabelType" list="labelTypes"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/FindInventoryItemsByLabels.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="h1">${uiLabelMap.ProductInventoryItemsFor} ${facility.facilityName} [${uiLabelMap.CommonId}:${facility.facilityId}]</label>
</container>
<container>
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="buttontext"/>
<link target="EditInventoryItem" text="${uiLabelMap.ProductCreateNewInventoryItemFacility}" style="buttontext">
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
</link>
<link target="EditFacilityInventoryItems" text="${uiLabelMap.ProductInventoryItems}" style="buttontext">
<parameter param-name="facilityId" from-field="parameters.facilityId"/>
</link>
</container>
<screenlet title="${uiLabelMap.ProductSearchInventoryItemsByLabels}">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/searchInventoryItemsByLabelsForm.ftl"/></html>
</platform-specific>
<include-form name="ListFacilityInventoryItemsNoLocations" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewFacilityInventoryByProduct">
<section>
<actions>
<set field="tabButtonItem" value="ViewFacilityInventoryByProduct"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE"/>
<!-- This is the target of the search form-->
<set field="facilityInventoryByProductScreen" value="ViewFacilityInventoryByProduct"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="productTypeId" from-field="parameters.productTypeId"/>
<set field="searchInProductCategoryId" from-field="parameters.searchInProductCategoryId"/>
<set field="productSupplierId" from-field="parameters.productSupplierId"/>
<set field="offsetQOHQty" from-field="parameters.offsetQOHQty"/>
<set field="offsetATPQty" from-field="parameters.offsetATPQty"/>
<set field="productsSoldThruTimestamp" from-field="parameters.productsSoldThruTimestamp" type="Timestamp"/>
<set field="internalName" from-field="parameters.internalName"/>
<set field="productId" from-field="parameters.productId"/>
<set field="statusId" from-field="parameters.statusId"/>
<!-- do not use the CountFacilityInventoryByProduct.groovy script unless the issues mentioned in it are correctly addressed -->
<script location="component://product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.groovy"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleFindFacilityInventoryItems}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="ViewFacilityInventoryByProductTabBar" 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="FindFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewFacilityInventoryByProductSimple">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.FacilityCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.FacilityCompanySubtitle" global="true"/>
<!-- This is the target of the search form-->
<set field="facilityInventoryByProductScreen" value="ViewFacilityInventoryByProductSimple"/>
<set field="titleProperty" value="PageTitleEditFacilityInventoryItems"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="productTypeId" from-field="parameters.productTypeId"/>
<set field="searchInProductCategoryId" from-field="parameters.searchInProductCategoryId"/>
<set field="productSupplierId" from-field="parameters.productSupplierId"/>
<set field="offsetQOHQty" from-field="parameters.offsetQOHQty"/>
<set field="offsetATPQty" from-field="parameters.offsetATPQty"/>
<set field="productsSoldThruTimestamp" from-field="parameters.productsSoldThruTimestamp" type="Timestamp"/>
<set field="internalName" from-field="parameters.internalName"/>
<set field="productId" from-field="parameters.productId"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/CountFacilityInventoryByProduct.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<container>
<label style="h1">${uiLabelMap.PageTitleEditFacilityInventoryItems} ${uiLabelMap.CommonFor}:</label>
<label style="h2">${facility.facilityName} [${uiLabelMap.CommonId}:${facilityId}]</label>
</container>
<container>
<link target="ViewFacilityInventoryByProduct" text="${uiLabelMap.CommonBack}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
</link>
</container>
<include-form name="FindFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
<include-form name="ListFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewFacilityInventoryByProductReport">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="pageLayoutName" value="simple-landscape"/>
<set field="titleProperty" value="PageTitleEditFacilityInventoryItems"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="productTypeId" from-field="parameters.productTypeId"/>
<set field="searchInProductCategoryId" from-field="parameters.searchInProductCategoryId"/>
<set field="productSupplierId" from-field="parameters.productSupplierId"/>
<set field="offsetQOHQty" from-field="parameters.offsetQOHQty"/>
<set field="offsetATPQty" from-field="parameters.offsetATPQty"/>
<set field="productsSoldThruTimestamp" from-field="parameters.productsSoldThruTimestamp" type="Timestamp"/>
<set field="internalName" from-field="parameters.internalName"/>
<set field="productId" from-field="parameters.productId"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/CountFacilityInventoryByProduct.groovy"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<include-form name="FindFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
<include-form name="ListFacilityInventoryByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewFacilityInventoryItemsDetails">
<section>
<actions>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
<set field="titleProperty" value="PageTitleViewFacilityInventoryItemsDetails"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="ViewFacilityInventoryItemsDetails"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-one entity-name="Facility" value-field="facility"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label>${uiLabelMap.ProductInventoryItemsDetailsFor} ${facility.facilityName} [${uiLabelMap.CommonId}:${facility.facilityId}]</label>
</container>
<container style="button-bar button-style-1">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="create"/>
</container>
<screenlet title="${uiLabelMap.PageTitleViewFacilityInventoryItemsDetails}">
<include-form name="SearchInventoryItemsDetailsParams" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<section>
<condition>
<if-compare field="parameters.reportType" operator="equals" value="BY_ITEM"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleViewFacilityInventoryItemsDetails}">
<include-form name="ListFacilityInventoryItemsDetailsByItem" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.reportType" operator="equals" value="BY_PRODUCT"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleViewFacilityInventoryItemsDetails}">
<include-form name="ListFacilityInventoryItemsDetailsByProduct" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.reportType" operator="equals" value="BY_DATE"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleViewFacilityInventoryItemsDetails}">
<include-form name="ListFacilityInventoryItemsDetailsByDate" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryItemTotals">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditFacilityInventoryItems"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="ViewFacilityInventoryByProduct"/>
<set field="tabButtonItem2" value="InventoryItemTotalsTab"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-one entity-name="Facility" value-field="facility" use-cache="true"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="ViewFacilityInventoryByProductTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<screenlet title="${uiLabelMap.ProductInventoryItemTotals} ${uiLabelMap.CommonFor} ${facility.facilityName}">
<include-form name="ListInventoryItemTotals" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryItemGrandTotals">
<section>
<actions>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="ViewFacilityInventoryByProduct"/>
<set field="tabButtonItem2" value="InventoryItemGrandTotalsTab"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility" use-cache="true"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleInventoryItemGrandTotals}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="ViewFacilityInventoryByProductTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<screenlet title="${title}">
<include-form name="ListInventoryItemGrandTotals" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InventoryItemTotalsExport">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<entity-one entity-name="Facility" value-field="facility" use-cache="true"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/InventoryItemTotals.groovy"/>
</actions>
<widgets>
<container>
<label style="h2" text="${uiLabelMap.ProductInventoryItemTotals} ${uiLabelMap.CommonFor} ${facility.facilityName}"/>
</container>
<include-form name="InventoryItemTotalsExport" location="component://product/widget/facility/FacilityForms.xml"/>
<container>
<label style="h2" text="${uiLabelMap.ProductInventoryItemGrandTotals} ${uiLabelMap.CommonFor} ${facility.facilityName}"/>
</container>
<include-form name="InventoryItemGrandTotalsExport" location="component://product/widget/facility/FacilityForms.xml"/>
</widgets>
</section>
</screen>
<screen name="InventoryAverageCosts">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditFacilityInventoryItems"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="ViewFacilityInventoryByProduct"/>
<set field="tabButtonItem2" value="InventoryAverageCostsTab"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility" use-cache="true"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/InventoryAverageCosts.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="ViewFacilityInventoryByProductTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<screenlet title="${uiLabelMap.ProductInventoryAverageCosts} ${uiLabelMap.CommonFor} ${facility.facilityName}">
<include-form name="ListInventoryAverageCosts" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityGroups">
<section>
<actions>
<set field="tabButtonItem" value="EditFacilityGroups"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="facilityGroupId" from-field="parameters.facilityGroupId"/>
<set field="orderByList[]" value="sequenceNum"/>
<entity-one entity-name="Facility" value-field="facility"/>
<get-related value-field="facility" relation-name="FacilityGroupMember" list="facilityGroupMembers" order-by-list="orderByList"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityGroups}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label>${title}</label>
</container>
<container style="button-bar button-style-1">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="create"/>
</container>
<screenlet id="add-facility-group-member" title="${uiLabelMap.ProductAddFacilityGroupMember}" collapsible="true">
<include-form name="addGroupToFacility" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<include-form name="EditFacilityGroups" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityParties">
<section>
<actions>
<set field="tabButtonItem" value="EditFacilityParties"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="partyId" from-field="parameters.partyId"/>
<set field="roleTypeId" from-field="parameters.roleTypeId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<entity-and entity-name="FacilityParty" list="facilityParties" filter-by-date="true">
<field-map field-name="facilityId"/>
<order-by field-name="partyId"/>
</entity-and>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityParties}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label>${title}</label>
</container>
<container style="button-bar button-style-1">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="create"/>
</container>
<screenlet id="add-facility-party-role" title="${uiLabelMap.ProductAddFacilityPartyRole}" collapsible="true">
<include-form name="AddPartyToFacility" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<include-form name="EditFacilityParties" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewContactMechs">
<section>
<actions>
<set field="tabButtonItem" value="ViewContactMechs"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.groovy"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleViewFacilityContactMechanism}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title">
<label>${title}</label>
</container>
<container style="button-bar button-style-1">
<link target="EditFacility" text="${uiLabelMap.ProductNewFacility}" style="create"/>
<section>
<condition>
<not><if-empty field="facilityId"/></not>
</condition>
<widgets>
<link target="/workeffort/control/calendar" text="${uiLabelMap.CommonViewCalendar}" url-mode="inter-app">
<parameter param-name="period" value="month"/>
<parameter param-name="facilityId"/>
<parameter param-name="externalLoginKey"/>
</link>
<section>
<condition>
<if-service-permission service-name="facilityGenericPermission" main-action="CREATE"/>
</condition>
<widgets>
<link target="EditContactMech" text="${uiLabelMap.ProductNewContactMech}" style="create">
<parameter param-name="facilityId"/>
</link>
</widgets>
</section>
</widgets>
</section>
</container>
<screenlet title="${uiLabelMap.PartyContactInformation}">
<platform-specific><html><html-template location="component://product/webapp/facility/facility/ViewContactMechs.ftl"/></html></platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditContactMech">
<section>
<actions>
<set field="tabButtonItem" value="ViewContactMechs"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/EditContactMech.groovy"/>
<set field="dependentForm" value="editcontactmechform"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="countryGeoId"/>
<set field="dependentId" value="stateProvinceGeoId"/>
<set field="requestName" value="getAssociatedStateList"/>
<set field="responseName" value="stateList"/>
<set field="dependentKeyName" value="geoId"/>
<set field="descName" value="geoName"/>
<set field="selectedDependentOption" from-field="mechMap.postalAddress.stateProvinceGeoId" default-value="_none_"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleNewFacilityContactMech}"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="parameters.contactMechId"/></not>
</condition>
<actions>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityContactMech}"/>
</actions>
<widgets/>
</section>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html>
<html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/>
<html-template location="component://product/webapp/facility/facility/EditContactMech.ftl"/>
</html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditInventoryItem">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditInventoryItem"/>
<set field="tabButtonItem" value="EditFacilityInventoryItems"/>
<set field="subTabButtonItem" value="EditInventoryItem"/>
<set field="displayWithNoFacility" value="Y"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="inventoryItemId" from-field="parameters.inventoryItemId"/>
<entity-one entity-name="Facility" value-field="facility" auto-field-map="true"/>
<entity-one entity-name="InventoryItem" value-field="inventoryItem" auto-field-map="true"/>
<entity-condition entity-name="OrderItemShipGrpInvRes" list="inventoryItemReservations">
<condition-list combine="and">
<condition-expr field-name="inventoryItemId" operator="equals" from-field="inventoryItemId"/>
</condition-list>
<order-by field-name="reservedDatetime"/>
</entity-condition>
</actions>
<widgets>
<section>
<condition>
<and>
<not>
<if-empty field="inventoryItem"/>
</not>
<if-empty field="facility"/>
</and>
</condition>
<actions>
<set field="parameters.facilityId" from-field="inventoryItem.facilityId"/>
<set field="facilityId" from-field="inventoryItem.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
</actions>
<widgets/>
</section>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field="inventoryItem"/></not>
</condition>
<widgets>
<include-menu name="InventoryItemTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<container style="h1">
<label text="${uiLabelMap.PageTitleEditInventoryItem}"/>
</container>
<container style="widget-container">
<link target="EditInventoryItem" text="${uiLabelMap.ProductNewInventoryItem}" style="buttontext">
<parameter param-name="facilityId" from-field="facilityId"/>
</link>
<link target="TransferInventoryItem" text="${uiLabelMap.ProductTransferItem}" style="buttontext">
<parameter param-name="inventoryItemId" from-field="inventoryItemId"/>
<parameter param-name="facilityId" from-field="facilityId"/>
</link>
</container>
</widgets>
<fail-widgets>
<container style="h1">
<label text="${uiLabelMap.ProductNewInventoryItem}"/>
</container>
</fail-widgets>
</section>
<include-form name="EditInventoryItem" location="component://product/widget/facility/InventoryForms.xml"/>
<section>
<condition>
<not><if-empty field="inventoryItemId"/></not>
</condition>
<widgets>
<screenlet id="inventory-item-reservations" title="${uiLabelMap.ProductInventoryItemReservations}" initially-collapsed="true">
<include-form name="InventoryItemReservations" location="component://product/widget/facility/InventoryForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="inventoryItem.inventoryItemTypeId" operator="equals" value="NON_SERIAL_INV_ITEM"/>
</condition>
<actions>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/PhysicalInventoryVariance.groovy"/>
</actions>
<widgets>
<screenlet id="physical-inventory-variances" title="${uiLabelMap.ProductPhysicalInventoryVariances}" initially-collapsed="true">
<include-form name="CreatePhysicalInventoryAndVariance" location="component://product/widget/facility/InventoryForms.xml"/>
<include-form name="ViewPhysicalInventoryAndVariance" location="component://product/widget/facility/InventoryForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewInventoryItemDetail">
<section>
<actions>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<set field="titleProperty" value="PageTitleEditInventoryItem"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="EditFacilityInventoryItems"/>
<set field="subTabButtonItem" value="ViewInventoryItemDetail"/>
<set field="inventoryItemId" from-field="parameters.inventoryItemId"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-condition entity-name="InventoryItemDetail" list="inventoryItemDetails">
<condition-list combine="and">
<condition-expr field-name="inventoryItemId" operator="equals" from-field="inventoryItemId"/>
</condition-list>
<order-by field-name="-inventoryItemDetailSeqId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="InventoryItemTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<screenlet title="${uiLabelMap.ProductInventoryDetails} ${uiLabelMap.CommonFor} [${inventoryItemId}]">
<include-form name="ListInventoryItemDetail" location="component://product/widget/facility/InventoryForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.ProductShipmentReceiptsFor} [${inventoryItemId}]">
<include-form name="ViewInventoryItemShipmentReceipts" location="component://product/widget/facility/InventoryForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditInventoryItemLabels">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditInventoryItemLabels"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="EditFacilityInventoryItems"/>
<set field="subTabButtonItem" value="EditInventoryItemLabels"/>
<set field="inventoryItemId" from-field="parameters.inventoryItemId"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-condition entity-name="InventoryItemLabelAppl" list="inventoryItemLabelAppls">
<condition-list combine="and">
<condition-expr field-name="inventoryItemId" operator="equals" from-field="inventoryItemId"/>
</condition-list>
<order-by field-name="sequenceNum"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<include-menu name="InventoryItemTabBar" location="component://product/widget/facility/FacilityMenus.xml"/>
<screenlet id="AddInventoryItemLabelPanel" title="${uiLabelMap.ProductInventoryItemLabels} ${uiLabelMap.CommonFor} [${inventoryItemId}]" collapsible="true">
<include-form name="AddInventoryItemLabelAppl" location="component://product/widget/facility/InventoryForms.xml"/>
</screenlet>
<include-form name="UpdateInventoryItemLabelAppls" location="component://product/widget/facility/InventoryForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindFacilityPhysicalInventory">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindFacilityPhysicalInventory"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="PhysicalInventory"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/FindFacilityPhysicalInventory.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleFindFacilityPhysicalInventory}">
<include-form name="FindPhysicalInventory" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleFindFacilityPhysicalInventory}">
<include-form name="ListPhysicalInventory" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="TransferInventoryItem">
<section>
<actions>
<set field="tabButtonItem" value="FindFacilityTransfers"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/TransferInventoryItem.groovy"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleTransferInventoryItem}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/inventory/TransferInventoryItem.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ReceiveInventory">
<section>
<actions>
<set field="tabButtonItem" value="ReceiveInventory"/>
<script location="component://product/webapp/facility/WEB-INF/actions/inventory/ReceiveInventory.groovy"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.ProductReceiveInventory}"/>
<set field="layoutSettings.javaScripts[+0]" value="/ordermgr-js/ConvertUom.js" global="true"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/inventory/receiveInventory.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ReceiveReturn">
<section>
<actions>
<set field="titleProperty" value="ProductReceiveReturn"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="ReceiveReturn"/>
<script location="component://product/webapp/facility/WEB-INF/actions/returns/ReceiveReturn.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/returns/receiveReturn.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="UpdatedInventoryItemStatus">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<platform-specific>
<html><html-template location="component://product/webapp/facility/returns/UpdatedInventoryItemStatus.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="PicklistOptions">
<section>
<actions>
<set field="titleProperty" value="PageTitlePickListOptions"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="PicklistOptions"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="groupByShippingMethod" from-field="parameters.groupByShippingMethod"/>
<set field="groupByWarehouseArea" from-field="parameters.groupByWarehouseArea"/>
<set field="groupByNoOfOrderItems" from-field="parameters.groupByNoOfOrderItems"/>
<set field="maxNumberOfOrders" from-field="parameters.maxNumberOfOrders" default-value="50"/>
<service service-name="findOrdersToPickMove">
<field-map field-name="facilityId"/>
<field-map field-name="groupByShippingMethod"/>
<field-map field-name="groupByWarehouseArea"/>
<field-map field-name="groupByNoOfOrderItems"/>
</service>
<entity-condition entity-name="Picklist" list="picklistActiveList">
<condition-list combine="and">
<condition-expr field-name="facilityId" operator="equals" from-field="parameters.facilityId"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_PICKED"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_PACKED"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_CANCELLED"/>
</condition-list>
<order-by field-name="picklistDate"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/PicklistOptions.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PrintPickSheets.fo">
<section>
<actions>
<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="facilityId" from-field="parameters.facilityId"/>
<set field="pickMoveInfoList" from-field="parameters.pickMoveInfoList"/>
<script location="component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="pickMoveInfoList"/></not>
</condition>
<actions>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/PrintPickSheets.groovy"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="orderHeaderList"/></not>
</condition>
<widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/facility/PrintPickSheets.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
<fail-widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/facility/NotReadyToPick.fo.ftl"/></xsl-fo>
</platform-specific>
</fail-widgets>
</section>
</widgets>
<fail-widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/facility/NotReadyToPick.fo.ftl"/></xsl-fo>
</platform-specific>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="ReviewOrdersNotPickedOrPacked">
<section>
<actions>
<script location="component://product/webapp/facility/WEB-INF/actions/shipment/ReviewOrdersNotPickedOrPacked.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/ReviewOrdersNotPickedOrPacked.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PicklistManage">
<section>
<actions>
<set field="titleProperty" value="PageTitlePickListOptions"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="PicklistManage"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<set field="viewIndex" from-field="parameters.viewIndex" default-value="0"/>
<set field="viewSize" from-field="parameters.viewSize" default-value="10"/>
<service service-name="getPicklistDisplayInfo">
<field-map field-name="facilityId"/>
</service>
<entity-condition entity-name="PartyRoleAndPartyDetail" list="partyRoleAndPartyDetailList" use-cache="true">
<condition-expr field-name="roleTypeId" value="PICKER"/>
</entity-condition>
<entity-condition entity-name="Picklist" list="picklistActiveList">
<condition-list combine="and">
<condition-expr field-name="facilityId" operator="equals" from-field="parameters.facilityId"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_PICKED"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_PACKED"/>
<condition-expr field-name="statusId" operator="not-equals" value="PICKLIST_CANCELLED"/>
</condition-list>
<order-by field-name="picklistDate"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/PicklistManage.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PickMoveStock">
<section>
<actions>
<set field="titleProperty" value="PageTitlePickingMoveStock"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="PickMoveStock"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<service service-name="findStockMovesNeeded">
<field-map field-name="facilityId"/>
</service>
<set field="oiirWarningMessageList" from-field="warningMessageList"/>
<service service-name="findStockMovesRecommended">
<field-map field-name="facilityId"/>
<field-map field-name="stockMoveHandled"/>
</service>
<set field="pflWarningMessageList" from-field="warningMessageList"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/PickMoveStock.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PickMoveStockSimple">
<section>
<actions>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductErrorUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.FacilityCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.FacilityCompanySubtitle" global="true"/>
<set field="titleProperty" value="PageTitlePickingMoveStock"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<service service-name="findStockMovesNeeded">
<field-map field-name="facilityId"/>
</service>
<set field="oiirWarningMessageList" from-field="warningMessageList"/>
<service service-name="findStockMovesRecommended">
<field-map field-name="facilityId"/>
<field-map field-name="stockMoveHandled"/>
</service>
<set field="pflWarningMessageList" from-field="warningMessageList"/>
</actions>
<widgets>
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/PickMoveStock.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PicklistReport.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="picklistId" from-field="parameters.picklistId"/>
<service service-name="getPickAndPackReportInfo">
<field-map field-name="picklistId"/>
</service>
</actions>
<widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/facility/Picklist.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
<!-- generates the subtab of [Scheduling] using FacilityScheduleTabBar -->
<screen name="CommonFacilityScheduleDecorator">
<section>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/FacilityScheduleTabBar.ftl"/></html>
</platform-specific>
<decorator-section-include name="schedule-body"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Subscreen of [Scheduling] for weighting and scheduling a route segment -->
<screen name="ScheduleShipmentRouteSegment">
<section>
<actions>
<set field="titleProperty" value="PageTitlePackageShipmentScheduling"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="Scheduling"/>
<set field="scheduleTabButtonItem" value="ScheduleTabButton"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<!-- get ShipmentRouteSegmentDetails that are PACKED and not CONFIRMED with carrier -->
<entity-condition entity-name="ShipmentRouteSegmentDetail" list="shipmentRouteSegments">
<condition-list combine="and">
<condition-expr field-name="originFacilityId" operator="equals" from-field="parameters.facilityId"/>
<condition-expr field-name="statusId" operator="equals" value="SHIPMENT_PACKED"/>
<condition-expr field-name="carrierServiceStatusId" operator="equals" value="SHRSCS_NOT_STARTED"/>
</condition-list>
<order-by field-name="shipmentId DESC"/>
</entity-condition>
<!-- get the default facility Uom -->
<entity-one entity-name="Facility" value-field="facility"/>
<entity-one entity-name="Uom" value-field="defaultWeightUom" use-cache="true" auto-field-map="false">
<field-map from-field="facility.defaultWeightUomId" field-name="uomId"/>
</entity-one>
</actions>
<widgets>
<decorator-screen name="CommonFacilityScheduleDecorator">
<decorator-section name="schedule-body">
<screenlet title="${uiLabelMap.PageTitlePackageShipmentScheduling}">
<include-form name="SchedulingList" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Subscreen of [Scheduling] for listing labels ready to be printed -->
<screen name="Labels">
<section>
<actions>
<set field="titleProperty" value="PageTitleLabelPrinting"/>
<set field="headerItem" value="facility"/>
<set field="tabButtonItem" value="Scheduling"/>
<set field="scheduleTabButtonItem" value="LabelsTabButton"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<!-- get all carrier CONFIRMED ShipmentPackageRouteDetails -->
<entity-condition entity-name="ShipmentPackageRouteDetail" list="shipmentPackageRouteSegments">
<condition-list combine="and">
<condition-expr field-name="labelPrinted" operator="not-equals" value="Y"/>
<condition-expr field-name="carrierServiceStatusId" operator="equals" value="SHRSCS_CONFIRMED"/>
</condition-list>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonFacilityScheduleDecorator">
<decorator-section name="schedule-body">
<screenlet title="${uiLabelMap.PageTitleLabelPrinting}">
<include-form name="Labels" location="component://product/widget/facility/FacilityForms.xml"/>
<platform-specific>
<html><html-template location="component://product/webapp/facility/facility/batchPrintMarkAsAccepted.ftl"/></html>
</platform-specific>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- Generates a PDF of selected Labels for batch printing -->
<screen name="BatchPrintShippingLabels">
<section>
<widgets>
<platform-specific>
<xsl-fo><html-template location="component://product/webapp/facility/facility/batchPrintShippingLabels.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="FacilityLocationGeoLocation">
<section>
<actions>
<set field="titleProperty" value="PageTitleFacilityLocationGeoLocation"/>
<script location="component://product/webapp/facility/WEB-INF/actions/facility/FacilityLocationGeoLocation.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label>${uiLabelMap.CommonLatitude} ${latestGeoPoint.latitude}</label>
<label>${uiLabelMap.CommonLongitude} ${latestGeoPoint.longitude}</label>
<label>${uiLabelMap.CommonElevation} ${latestGeoPoint.elevation} ${elevationUomAbbr}</label>
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityContent">
<section>
<actions>
<set field="tabButtonItem" value="EditFacilityContent"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<entity-and entity-name="FacilityContentDetail" list="facilityContentDetails" filter-by-date="true">
<field-map field-name="facilityId"/>
<order-by field-name="fromDate"/>
</entity-and>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<property-map resource="ContentUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleEditFacilityContent}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container>
<label style="h1">${title}</label>
</container>
<screenlet id="add-facility-content" title="${uiLabelMap.ProductAddFacilityContent}" collapsible="true">
<include-form name="AddFacilityContent" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<include-form name="ListFacilityContent" location="component://product/widget/facility/FacilityForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityGeoPoint">
<section>
<actions>
<set field="tabButtonItem" value="EditFacilityGeoPoint"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-one entity-name="Facility" value-field="facility"/>
<get-related-one relation-name="GeoPoint" to-value-field="geoPoint" value-field="facility"/>
<get-related-one relation-name="ElevationUom" to-value-field="uom" value-field="geoPoint"/>
<set field="geoPoints[+0].lat" from-field="geoPoint.latitude"/>
<set field="geoPoints[0].lon" from-field="geoPoint.longitude"/>
<set field="geoChart.dataSourceId" from-field="geoPoint.dataSourceId"/>
<set field="geoChart.width" value="600px"/>
<set field="geoChart.height" value="500px"/>
<set field="geoChart.points" from-field="geoPoints"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"/>
<set field="title" value="${uiLabelMap.PageTitleFacilityGeoLocation} - ${facility.facilityName}"/>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container style="page-title"><label text="${title}"/></container>
<screenlet id="edit-facility-geopoint" title="${uiLabelMap.ProductEditFacilityGeoLocation}" collapsible="true" initially-collapsed="true">
<include-form name="EditFacilityGeoPoint" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditFacilityAgreements">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap"/>
<set field="titleProperty" value="PageTitleViewFacilityAgreements"/>
<set field="tabButtonItem" value="EditFacilityAgreements"/>
<set field="labelTitleProperty" value="FacilityAgreements"/>
<set field="facilityId" from-field="parameters.facilityId"/>
<entity-and entity-name="AgreementItemAndFacilityAppl" list="facilityAgreements">
<field-map field-name="facilityId"/>
<field-map field-name="agreementTypeId" value="FACILITY_AGREEMENT"/>
<order-by field-name="fromDate"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonFacilityDecorator" location="${parameters.commonFacilityDecoratorLocation}">
<decorator-section name="body">
<container>
<link target="/accounting/control/EditAgreement" url-mode="inter-app" text="${uiLabelMap.PageTitleEditAgreement}" style="buttontext">
<parameter param-name="facilityId"/>
</link>
</container>
<screenlet title="${uiLabelMap.FacilityAgreements}">
<include-form name="ListFacilityAgreements" location="component://product/widget/facility/FacilityForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>