📄 packorder.ftl
字号:
<#-- * Copyright (c) 2003-2005 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 Andy Zeneski (jaz@ofbiz.org) *@version $Rev: 6641 $ *@since 3.5--><#if security.hasEntityPermission("FACILITY", "_VIEW", session)> <#assign showInput = requestParameters.showInput?default("Y")> <#assign hideGrid = requestParameters.hideGrid?default("N")> <#if (requestParameters.forceComplete?has_content && !shipmentId?has_content)> <#assign forceComplete = "true"> <#assign showInput = "Y"> </#if> <div class="head1">Pack Order<span class='head2'> in ${facility.facilityName?if_exists} [${uiLabelMap.CommonId}:${facilityId?if_exists}]</span></div> <#if shipmentId?has_content> <div class="tabletext"> ${uiLabelMap.CommonView} <a href="<@ofbizUrl>/PackingSlip.pdf?shipmentId=${shipmentId}</@ofbizUrl>" target="_blank" class="buttontext">Packing Slip</a> ${uiLabelMap.CommonOr} <a href="<@ofbizUrl>/ShipmentBarCode.pdf?shipmentId=${shipmentId}</@ofbizUrl>" target="_blank" class="buttontext">Barcode</a> ${uiLabelMap.CommonFor} ${uiLabelMap.ProductShipmentId} <a href="<@ofbizUrl>/ViewShipment?shipmentId=${shipmentId}</@ofbizUrl>" class="buttontext">${shipmentId}</a> </div> </#if> <div> </div> <!-- select order form --> <form name="selectOrderForm" method="post" action="<@ofbizUrl>PackOrder</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"> <table border='0' cellpadding='2' cellspacing='0'> <tr> <td width="25%" align='right'><div class="tabletext">Order #</div></td> <td width="1"> </td> <td width="25%"> <input type="text" class="inputBox" name="orderId" size="20" maxlength="20" value="${orderId?if_exists}"/> <span class="tabletext">/</span> <input type="text" class="inputBox" name="shipGroupSeqId" size="6" maxlength="6" value="${shipGroupSeqId?if_exists}"/ </td> <td><div class="tabletext">Hide Grid: <input type="checkbox" name="hideGrid" value="Y" <#if (hideGrid == "Y")>checked=""</#if>></div></td> <td><div class='tabletext'> </div></td> </tr> <tr> <td colspan="2"> </td> <td colspan="2"> <input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onClick="javascript:document.selectOrderForm.submit();"> <a href="javascript:document.selectOrderForm.submit();" class="buttontext">Pack Order</a> </td> </tr> </table> </form> <form name="clearPackForm" method="post" action="<@ofbizUrl>ClearPackAll</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="orderId" value="${orderId?if_exists}"/> <input type="hidden" name="shipGroupSeqId" value="${shipGroupSeqId?if_exists}"/> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/> </form> <form name="incPkgSeq" method="post" action="<@ofbizUrl>SetNextPackageSeq</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="orderId" value="${orderId?if_exists}"/> <input type="hidden" name="shipGroupSeqId" value="${shipGroupSeqId?if_exists}"/> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/> </form> <#if showInput != "N" && orderHeader?exists && orderHeader?has_content> <hr class="sepbar"/> <div class='head2'>Order #<a href="/ordermgr/control/orderview?orderId=${orderId}" class="buttontext">${orderId}</a> / ShipGroup #${shipGroupSeqId}</div> <div> </div> <#if orderItemShipGroup?has_content> <#assign postalAddress = orderItemShipGroup.getRelatedOne("PostalAddress")> <#assign carrier = orderItemShipGroup.carrierPartyId?default("N/A")> <table border='0' cellpadding='4' cellspacing='4' width="100%"> <tr> <td valign="top"> <div class="tableheadtext">Ship-To Address:</div> <div class="tabletext"> <b>To: </b>${postalAddress.toName?default("")}<br> <#if postalAddress.attnName?has_content> <b>Attn: </b>${postalAddress.attnName}<br> </#if> ${postalAddress.address1}<br> <#if postalAddress.address2?has_content> ${postalAddress.address2}<br> </#if> ${postalAddress.city}, ${postalAddress.stateProvinceGeoId?if_exists} ${postalAddress.postalCode}<br> ${postalAddress.countryGeoId} </div> </td> <td> </td> <td valign="top"> <div class="tableheadtext">Carrier/Shipping Method:</div> <div class="tabletext"> <#if carrier == "USPS"> <#assign color = "red"> <#elseif carrier == "UPS"> <#assign color = "green"> <#else> <#assign color = "black"> </#if> <#if carrier != "_NA_"> <font color="${color}">${carrier}</font> </#if> ${orderItemShipGroup.shipmentMethodTypeId?default("??")} </div> </td> <td> </td> <td valign="top"> <div class="tableheadtext">Shipping Instructions:</div> <div class="tabletext">${orderItemShipGroup.shippingInstructions?default("(none)")}</div> </td> </tr> </table> <div> </div> </#if> <!-- manual per item form --> <#if showInput != "N"> <hr class="sepbar"/> <div> </div> <form name="singlePackForm" method="post" action="<@ofbizUrl>ProcessPackOrder</@ofbizUrl>" style='margin: 0;'> <input type="hidden" name="packageSeq" value="${packingSession.getCurrentPackageSeq()}"/> <input type="hidden" name="orderId" value="${orderId}"/> <input type="hidden" name="shipGroupSeqId" value="${shipGroupSeqId}"/> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/> <input type="hidden" name="hideGrid" value="${hideGrid}"/> <table border='0' cellpadding='2' cellspacing='0' width="100%"> <tr> <td><div class="tabletext">Product #</div></td> <td width="1"> </td> <td> <input type="text" class="inputBox" name="productId" size="20" maxlength="20" value=""/> <span class="tabletext">@</span> <input type="text" class="inputBox" name="quantity" size="6" maxlength="6" value="1"/> </td> <td><div class='tabletext'> </div></td> <td align="right"> <div class="tabletext"> Current Package Sequence: <b>${packingSession.getCurrentPackageSeq()}</b> <input type="button" value="Next Package" onclick="javascript:document.incPkgSeq.submit();"> </div> </td> </tr> <tr> <td colspan="2"> </td> <td valign="top"> <input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onClick="javascript:document.singlePackForm.submit();">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -