⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editfacilityinventoryitems.ftl

📁 国外的一套开源CRM
💻 FTL
字号:
<#--
 *  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
 *@author     Brad Steiner
 *@author     thierry.grauss@etu.univ-tours.fr (migration to uiLabelMap)
 *@version    $Revision: 1.9 $
 *@since      2.2
-->

<#assign uiLabelMap = requestAttributes.uiLabelMap>

<#if hasPermission>

${pages.get("/facility/FacilityTabBar.ftl")}

    <div class="head1">${uiLabelMap.ProductInventoryItemsFor} <span class="head2"><#if facility?exists>${(facility.facilityName)?if_exists}</#if> [${uiLabelMap.CommonId}:${facilityId?if_exists}]</span></div>

    <a href="<@ofbizUrl>/EditFacility</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewFacility}]</a>
    <a href="<@ofbizUrl>/EditInventoryItem?facilityId=${facilityId}</@ofbizUrl>" class="buttontext">
    [${uiLabelMap.ProductCreateNewInventoryItemFacility}]</a>

    <#if facilityInventoryItems?exists && (facilityInventoryItems.size() > 0)>
        <table border="0" width="100%" cellpadding="2">
            <tr>
            <td align=right>
                <b>
                <#if (viewIndex > 0)>
                <a href="<@ofbizUrl>/EditFacilityInventoryItems?facilityId=${facilityId?if_exists}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex-1}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonPrevious}]</a> |
                </#if>
                <#if (listSize > 0)>
                    ${lowIndex+1} - ${highIndex} of ${listSize}
                </#if>
                <#if (listSize > highIndex)>
                | <a href="<@ofbizUrl>/EditFacilityInventoryItems?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex+1}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonNext}]</a>
                </#if>
                </b>
            </td>
            </tr>
        </table>
    </#if>
    <#if facilityId?exists>
        <table border="1" cellpadding="2" cellspacing="0" width="100%">
        <tr>
            <td><div class="tabletext"><b>${uiLabelMap.ProductItemId}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductItemType}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductStatus}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonReceived}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonExpire}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductProductId}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductLocation}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductLotId}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductBinNum}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ProductAtpQohSerial}</b></div></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <#-- <td>&nbsp;</td> -->
        </tr>
        <#if facilityInventoryItems?has_content>
        <#list facilityInventoryItems[lowIndex..highIndex-1] as inventoryItem>
        <#assign curInventoryItemType = inventoryItem.getRelatedOne("InventoryItemType")>
        <#assign facilityLocation = inventoryItem.getRelatedOne("FacilityLocation")?if_exists>
        <#assign facilityLocationTypeEnum = (facilityLocation.getRelatedOneCache("TypeEnumeration"))?if_exists>
        <#assign isQuantity = false>
        <#if (inventoryItem.quantityOnHand)?exists && (!(inventoryItem.serialNumber)?exists || (inventoryItem.serialNumber.length() == 0))><#assign isQuantity=true></#if>
        <tr valign="middle">
            <td><div class="tabletext">&nbsp;<a href="<@ofbizUrl>/EditInventoryItem?inventoryItemId=${(inventoryItem.inventoryItemId)?if_exists}&facilityId=${facilityId}</@ofbizUrl>" class="buttontext">${(inventoryItem.inventoryItemId)?if_exists}</a></div></td>
            <td><div class="tabletext">&nbsp;${(curInventoryItemType.description)?if_exists}</div></td>
            <td><div class="tabletext">&nbsp;${(inventoryItem.statusId)?if_exists}</div></td>
            <td><div class="tabletext">&nbsp;${(inventoryItem.datetimeReceived)?if_exists}</div></td>
            <td><div class="tabletext">&nbsp;${(inventoryItem.expireDate)?if_exists}</div></td>
            <td><a href="/catalog/control/EditProduct?productId=${(inventoryItem.productId)?if_exists}&externalLoginKey=${requestAttributes.externalLoginKey?if_exists}" class="buttontext">${(inventoryItem.productId)?if_exists}</a></td>
            <td><div class="tabletext">&nbsp;<a href="<@ofbizUrl>/EditFacilityLocation?facilityId=${facilityId}&locationSeqId=${(inventoryItem.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext"><#if facilityLocation?exists>${facilityLocation.areaId?if_exists}:${facilityLocation.aisleId?if_exists}:${facilityLocation.sectionId?if_exists}:${facilityLocation.levelId?if_exists}:${facilityLocation.positionId?if_exists}</#if><#if facilityLocationTypeEnum?has_content>(${facilityLocationTypeEnum.description})</#if>[${(inventoryItem.locationSeqId)?if_exists}]</a></div></td>
            <td><div class="tabletext">&nbsp;${(inventoryItem.lotId)?if_exists}</div></td>
            <td><div class="tabletext">&nbsp;${(inventoryItem.binNumber)?if_exists}</div></td>
            <#if (inventoryItem.inventoryItemTypeId)?exists && (inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM"))>
                <td>
                    <div class="tabletext">${(inventoryItem.availableToPromise)?if_exists}
                    / ${(inventoryItem.quantityOnHand)?if_exists}</div>
                </td>
            <#elseif (inventoryItem.inventoryItemTypeId)?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
                    <td><div class="tabletext">&nbsp;${(inventoryItem.serialNumber)?if_exists}</div></td>
            <#else>
                <td><div class="tabletext" style="color: red;">Error: type ${(inventoryItem.inventoryItemTypeId)?if_exists} unknown, serialNumber (${(inventoryItem.serialNumber)?if_exists}) AND quantityOnHand (${(inventoryItem.quantityOnHand)?if_exists}) specified</div></td>
                <td>&nbsp;</td>
            </#if>
            <td>
            <a href="<@ofbizUrl>/EditInventoryItem?facilityId=${facilityId}&inventoryItemId=${(inventoryItem.inventoryItemId)?if_exists}</@ofbizUrl>" class="buttontext">
            [Edit]</a>
            </td>
            <td>
            <a href="<@ofbizUrl>/TransferInventoryItem?facilityId=${facilityId}&inventoryItemId=${(inventoryItem.inventoryItemId)?if_exists}</@ofbizUrl>" class="buttontext">
            [Transfer]</a>
            </td>
            <#-- <td>
            <a href="<@ofbizUrl>/DeleteFacilityInventoryItem?facilityId=${facilityId}&inventoryItemId=${(inventoryItem.inventoryItemId)?if_exists}</@ofbizUrl>" class="buttontext">
            [Delete]</a>
            </td> -->
        </tr>
        </#list>
        </#if>
        </table>
        <#if (facilityInventoryItems.size() > 0)>
        <table border="0" width="100%" cellpadding="2">
            <tr>
            <td align=right>
                <b>
                <#if (viewIndex > 0)>
                <a href="<@ofbizUrl>/EditFacilityInventoryItems?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex-1}</@ofbizUrl>" class="buttontext">[Previous]</a> |
                </#if>
                <#if (listSize > 0)>
                ${lowIndex+1} - ${highIndex} of ${listSize}
                </#if>
                <#if (listSize > highIndex)>
                | <a href="<@ofbizUrl>/EditFacilityInventoryItems?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex+1}</@ofbizUrl>" class="buttontext">[Next]</a>
                </#if>
                </b>
            </td>
            </tr>
        </table>
        </#if>
        <br>
    </#if>
<#else>
  <h3>${uiLabelMap.ProductFacilityViewPermissionError}</h3>
</#if>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -