📄 editproductbom.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 (jonesde@ofbiz.org) *@author Brad Steiner (bsteiner@thehungersite.com) *@author Jacopo Cappellato (tiz@sastau.it) *@version $Rev: 7126 $ *@since 2.2--><script language="JavaScript" type="text/javascript"><!-- //function lookupBom() { document.searchbom.productId.value=document.editProductAssocForm.productId.value; document.searchbom.productAssocTypeId.value=document.editProductAssocForm.productAssocTypeId.options[document.editProductAssocForm.productAssocTypeId.selectedIndex].value; document.searchbom.submit();}// --></script> <div class="head1">${uiLabelMap.ManufacturingBillOfMaterials} <span class="head2"> <#if product?exists>${(product.internalName)?if_exists}</#if>[ID:${productId?if_exists}]</span></div> <#if product?has_content> <a href="<@ofbizUrl>BomSimulation</@ofbizUrl>?productId=${productId}&bomType=${productAssocTypeId}" class="buttontext">${uiLabelMap.ManufacturingBillOfMaterials}</a> <!--<a href="<@ofbizUrl>EditRoutingProductLink?byProduct=${productId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.ManufacturingProductRoutings}]</a></span>--> </#if> <br/> <br/> <form name="searchform" action="<@ofbizUrl>UpdateProductBom</@ofbizUrl>#topform" method="post"> <input type="hidden" name="UPDATE_MODE" value=""/> <a name="topform"/> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingBomType}:</div></td> <td> </td> <td> <select class="selectBox" name="productAssocTypeId" size="1"> <#if productAssocTypeId?has_content> <#assign curAssocType = delegator.findByPrimaryKey("ProductAssocType", Static["org.ofbiz.base.util.UtilMisc"].toMap("productAssocTypeId", productAssocTypeId))> <#if curAssocType?exists> <option selected value="${(curAssocType.productAssocTypeId)?if_exists}">${(curAssocType.description)?if_exists}</option> <option value="${(curAssocType.productAssocTypeId)?if_exists}"></option> </#if> </#if> <#list assocTypes as assocType> <option value="${(assocType.productAssocTypeId)?if_exists}">${(assocType.description)?if_exists}</option> </#list> </select> </td> <td align="right"><div class='tableheadtext'>${uiLabelMap.ProductProductId}:</div></td> <td> </td> <td> <input type="text" class="inputBox" name="productId" size="20" maxlength="40" value="${productId?if_exists}"/> <a href="javascript:call_fieldlookup2(document.searchform.productId,'LookupProduct');"><img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"/></a> <span class='tabletext'><a href="javascript:document.searchform.submit();" class="buttontext">${uiLabelMap.ManufacturingShowBOMAssocs}</a></span> </td> </tr> <tr> <td colspan='3' align="left"> </td> <td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingCopyToProductId}:</div></td> <td> </td> <td> <input type="text" class="inputBox" name="copyToProductId" size="20" maxlength="40" value=""/> <a href="javascript:call_fieldlookup2(document.searchform.copyToProductId,'LookupProduct');"><img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"/></a> <span class='tabletext'><a href="javascript:document.searchform.UPDATE_MODE.value='COPY';document.searchform.submit();" class="buttontext">${uiLabelMap.ManufacturingCopyBOMAssocs}</a></span> </td> </tr> </table> </form> <hr class="sepbar"/> <form action="<@ofbizUrl>UpdateProductBom</@ofbizUrl>" method="post" style="margin: 0;" name="editProductAssocForm"> <#if !(productAssoc?exists)> <input type="hidden" name="UPDATE_MODE" value="CREATE"/> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingBomType}:</div></td> <td> </td> <td> <select class="selectBox" name="productAssocTypeId" size="1"> <#if productAssocTypeId?has_content> <#assign curAssocType = delegator.findByPrimaryKey("ProductAssocType", Static["org.ofbiz.base.util.UtilMisc"].toMap("productAssocTypeId", productAssocTypeId))> <#if curAssocType?exists> <option selected value="${(curAssocType.productAssocTypeId)?if_exists}">${(curAssocType.description)?if_exists}</option> <option value="${(curAssocType.productAssocTypeId)?if_exists}"></option> </#if> </#if> <#list assocTypes as assocType> <option value="${(assocType.productAssocTypeId)?if_exists}">${(assocType.description)?if_exists}</option> </#list> </select> </td> </tr> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ProductProductId}:</div></td> <td> </td> <td> <input type="text" class="inputBox" name="productId" size="20" maxlength="40" value="${productId?if_exists}"/> <a href="javascript:call_fieldlookup2(document.editProductAssocForm.productId,'LookupProduct');"><img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"/></a> </td> </tr> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingProductIdTo}:</div></td> <td> </td> <td> <input type="text" class="inputBox" name="productIdTo" size="20" maxlength="40" value="${productIdTo?if_exists}"/> <a href="javascript:call_fieldlookup2(document.editProductAssocForm.productIdTo,'LookupProduct');"><img src="/content/images/fieldlookup.gif" width="16" height="16" border="0" alt="Lookup"/></a> </td> </tr> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.CommonFromDate}:</div></td> <td> </td> <td> <div class="tabletext"> <input type="text" class="inputBox" name="fromDate" size="25" maxlength="40" value=""/> <a href="javascript:call_cal(document.editProductAssocForm.fromDate,'${nowTimestampString}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"/></a> (Will be set to now if empty) </div> </td> </tr> <#else> <#assign curProductAssocType = productAssoc.getRelatedOneCache("ProductAssocType")> <input type="hidden" name="UPDATE_MODE" value="UPDATE"/> <input type="hidden" name="productId" value="${productId?if_exists}"/> <input type="hidden" name="productIdTo" value="${productIdTo?if_exists}"/> <input type="hidden" name="productAssocTypeId" value="${productAssocTypeId?if_exists}"/> <input type="hidden" name="fromDate" value="${fromDate?if_exists}"/> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ProductProductId}:</div></td> <td> </td> <td><b>${productId?if_exists}</b></td> </tr> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingProductIdTo}:</div></td> <td> </td> <td><b>${productIdTo?if_exists}</b></td> </tr> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -