📄 picklist.fo.ftl
字号:
<?xml version="1.0" encoding="UTF-8" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<#--
* Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*@author David E. Jones (jonesde@ofbiz.org)
*@author thierry.grauss@etu.univ-tours.fr (migration to uiLabelMap)
*@version $Revision: 1.4 $
*@since 3.0
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<fo:layout-master-set>
<fo:simple-page-master master-name="main" page-height="11in" page-width="8.5in"
margin-top="0.5in" margin-bottom="1in" margin-left="1in" margin-right="1in">
<fo:region-body margin-top="1in"/>
<fo:region-before extent="1in"/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="xsl-region-body" font-family="Helvetica">
<fo:block font-size="14pt">Items to Pick in Facility ${facility.facilityName} <fo:inline font-size="8pt">[${facility.facilityId}]</fo:inline></fo:block>
<#if security.hasEntityPermission("FACILITY", "_VIEW", session)>
<fo:block space-after.optimum="10pt" font-size="10pt">
<fo:table>
<fo:table-column column-width="80pt"/>
<fo:table-column column-width="180pt"/>
<fo:table-column column-width="50pt"/>
<fo:table-column column-width="60pt"/>
<fo:table-column column-width="80pt"/>
<fo:table-header>
<fo:table-row font-weight="bold">
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductLocation}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductProductId}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductToPick}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.OrderOrderItems}</fo:block></fo:table-cell>
<fo:table-cell border-bottom="thin solid grey"><fo:block>${uiLabelMap.ProductInventoryItems}</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<#if facilityLocationInfoList?has_content || inventoryItemInfoList?has_content>
<#assign rowColor = "white">
<#-- facilityLocationInfoList: facilityLocation, productInfoList (product, quantity, inventoryItemList, orderItemList) -->
<#if facilityLocationInfoList?has_content>
<#list facilityLocationInfoList as facilityLocationInfo>
<#assign facilityLocation = facilityLocationInfo.facilityLocation>
<#assign productInfoList = facilityLocationInfo.productInfoList>
<#list productInfoList as productInfo>
<#assign product = productInfo.product>
<#assign quantity = productInfo.quantity>
<#assign inventoryItemList = productInfo.inventoryItemList>
<#assign orderItemList = productInfo.orderItemList>
<fo:table-row> <#-- TODO: set the row color -->
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${facilityLocation.areaId?if_exists}-${facilityLocation.aisleId?if_exists}-${facilityLocation.sectionId?if_exists}-${facilityLocation.levelId?if_exists}-${facilityLocation.positionId?if_exists}</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#if product?has_content>
<fo:block>${product.internalName} [${product.productId}]</fo:block>
<#else>
<fo:block> </fo:block>
</#if>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${quantity}</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#list orderItemList as orderItem>
<fo:block>${orderItem.orderId}:${orderItem.orderItemSeqId}-${orderItem.quantity}</fo:block>
</#list>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>
<#list inventoryItemList as inventoryItem>
${inventoryItem.inventoryItemId}<#if inventoryItem.binNumber?exists>:${inventoryItem.binNumber}</#if>
</#list>
</fo:block>
</fo:table-cell>
</fo:table-row>
<#-- toggle the row color -->
<#if rowColor == "white">
<#assign rowColor = "#D4D0C8">
<#else>
<#assign rowColor = "white">
</#if>
</#list>
</#list>
</#if>
<#if inventoryItemInfoList?has_content>
<#list inventoryItemInfoList as inventoryItemInfo>
<#-- inventoryItemInfoList: List of Maps with inventoryItem, facilityLocation, orderItems, product, quantity, statusItem -->
<#-- for this list, only display for inventoryItems with no location since those with locations will be displayed above -->
<#if !inventoryItemInfo.facilityLocation?exists>
<#assign inventoryItem = inventoryItemInfo.inventoryItem>
<#assign facilityLocation = inventoryItemInfo.facilityLocation?if_exists>
<#assign orderItems = inventoryItemInfo.orderItems>
<#assign product = inventoryItemInfo.product>
<#assign quantity = inventoryItemInfo.quantity>
<#assign statusItem = inventoryItemInfo.statusItem?if_exists>
<fo:table-row> <#-- TODO: set the row color -->
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#if facilityLocation?has_content>
<fo:block>${facilityLocation.areaId?if_exists}-${facilityLocation.aisleId?if_exists}-${facilityLocation.sectionId?if_exists}-${facilityLocation.levelId?if_exists}-${facilityLocation.positionId?if_exists}</fo:block>
<#else>
<fo:block>[${uiLabelMap.ProductNoLocation}]</fo:block>
</#if>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<#if product?has_content>
<fo:block>${product.internalName} [${product.productId}]</fo:block>
<#else>
<fo:block> </fo:block>
</#if>
</fo:table-cell>
<fo:table-cell padding="2pt" background-color="${rowColor}">
<fo:block>${quantity}</fo:block>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -