📄 findfacilitylocation.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
*@authorn thierry.grauss@etu.univ-tours.fr (migration to uiLabelMap)
*@version $Revision: 1.4 $
*@since 2.2
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if hasPermission>
${pages.get("/facility/FacilityTabBar.ftl")}
<div class="head1">${uiLabelMap.ProductFindLocationsFor}<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>/EditFacilityLocation?facilityId=${facilityId?if_exists}</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewFacilityLocation}]</a>
<form action="<@ofbizUrl>/FindFacilityLocation</@ofbizUrl>" method="GET" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0">
<#if !(facilityId?exists)>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductFacility}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" value="" size="19" maxlength="20"></td>
</tr>
<#else>
<input type="hidden" name="facilityId" value="${facilityId}">
</#if>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductLocationSeqId}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="locationSeqId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.CommonArea}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="areaId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductAisle}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="aisleId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductSection}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="sectionId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductLevel}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="levelId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<td width="26%" align=right><div class="tabletext">${uiLabelMap.ProductPosition}</div></td>
<td> </td>
<td width="74%"><input type="text" class="inputBox" name="positionId" value="" size="19" maxlength="20"></td>
</tr>
<tr>
<td colspan="2"> </td>
<td colspan="1" align=left><input type="submit" name="look_up" value="${uiLabelMap.CommonFind}"></td>
</tr>
</table>
</form>
<#if foundLocations?exists>
<br>
<span class="head1">${uiLabelMap.CommonFound}: </span><span class="head2"><b>${foundLocations.size()}</b> ${uiLabelMap.ProductLocationsFor} <#if facility?exists>${(facility.facilityName)?if_exists}</#if> [ID:${facilityId?if_exists}]</span>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td><div class="tabletext"><b>${uiLabelMap.ProductFacility}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductLocationSeqId}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductType}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.CommonArea}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductAisle}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductSection}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductLevel}</b></div></td>
<td><div class="tabletext"><b>${uiLabelMap.ProductPosition}</b></div></td>
<td> </td>
<td> </td>
<#if itemId?exists>
<td> </td>
</#if>
</tr>
<#list foundLocations as location>
<#assign locationTypeEnum = location.getRelatedOneCache("TypeEnumeration")?if_exists>
<tr>
<td><div class="tabletext"><a href="<@ofbizUrl>/EditFacility?facilityId=${(location.facilityId)?if_exists}</@ofbizUrl>" class="buttontext"> ${(location.facilityId)?if_exists}</a></div></td>
<td><div class="tabletext"> <a href="<@ofbizUrl>/EditFacilityLocation?facilityId=${facilityId}&locationSeqId=${(location.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext">${(location.locationSeqId)?if_exists}</a></div></td>
<td><div class="tabletext"> ${(locationTypeEnum.description)?default(location.locationTypeEnumId?if_exists)}</div></td>
<td><div class="tabletext"> ${(location.areaId)?if_exists}</div></td>
<td><div class="tabletext"> ${(location.aisleId)?if_exists}</div></td>
<td><div class="tabletext"> ${(location.sectionId)?if_exists}</div></td>
<td><div class="tabletext"> ${(location.levelId)?if_exists}</div></td>
<td><div class="tabletext"> ${(location.positionId)?if_exists}</div></td>
<td>
<a href="<@ofbizUrl>/EditInventoryItem?facilityId=${(location.facilityId)?if_exists}&locationSeqId=${(location.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewInventoryItem}]</a>
</td>
<#if itemId?exists>
<td>
<a href="<@ofbizUrl>/UpdateInventoryItem?inventoryItemId=${itemId}&facilityId=${facilityId}&locationSeqId=${(location.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductSetItem} ${itemId}]</a>
</td>
</#if>
<td>
<a href="<@ofbizUrl>/EditFacilityLocation?facilityId=${(location.facilityId)?if_exists}&locationSeqId=${(location.locationSeqId)?if_exists}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonEdit}]</a>
</td>
</tr>
</#list>
</table>
</#if>
<#else>
<h3>${uiLabelMap.ProductFacilityViewPermissionError})</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -