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

📄 editproductbom.ftl

📁 国外的一套开源CRM
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#--
 *  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    $Revision: 1.6 $
 *@since      2.2
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>

<#if hasPermission>
<script language="JavaScript">
<!-- //
function lookupBom() {
    document.searchbom.PRODUCT_ID.value=document.editProductAssocForm.PRODUCT_ID.value;
    document.searchbom.PRODUCT_ASSOC_TYPE_ID.value=document.editProductAssocForm.PRODUCT_ASSOC_TYPE_ID.options[document.editProductAssocForm.PRODUCT_ASSOC_TYPE_ID.selectedIndex].value;
    document.searchbom.submit();
}
// -->
</script>

${pages.get("/bom/BomTabBar.ftl")}

    <div class="head1">${uiLabelMap.ManufacturingBillOfMaterials} <span class="head2"> <#if product?exists>${(product.internalName)?if_exists}</#if>[ID:${productId?if_exists}]</span></div>
    <#if productId?has_content>
        <a href="<@ofbizUrl>/findBom</@ofbizUrl>?productId=${productId}&partBomTypeId=${productAssocTypeId}" class="buttontext">[${uiLabelMap.ManufacturingBillOfMaterials}]</a>
    </#if>

    <br>
    <br>

    <form name="searchbom" action="<@ofbizUrl>/EditProductBom</@ofbizUrl>" method=PUT >
    <input type=hidden name="PRODUCT_ID" value="">
    <input type=hidden name="PRODUCT_ASSOC_TYPE_ID" value="">
    </form>
    
    <form action="<@ofbizUrl>/UpdateProductBom</@ofbizUrl>" method=POST style="margin: 0;" name="editProductAssocForm">
    <table border="0" cellpadding="2" cellspacing="0">
    
    <#if !(productAssoc?exists)>
        <#if productId?exists && productIdTo?exists && productAssocTypeId?exists && fromDate?exists>
            <div class="tabletext"><b>Association not found: Product Id=${productId?if_exists}, Product Id To=${productIdTo?if_exists}, Association Type Id=${productAssocTypeId?if_exists}, From Date=${fromDate?if_exists}.</b></div>
            <input type=hidden name="UPDATE_MODE" value="CREATE">
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ProductProductId}:</div></td>
            <td>&nbsp;</td>
            <td><input type="text" class="inputBox" name="PRODUCT_ID" size="20" maxlength="40" value="${productId?if_exists}"></td>
            </tr>
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingProductIdTo}:</div></td>
            <td>&nbsp;</td>
            <td><input type="text" class="inputBox" name="PRODUCT_ID_TO" size="20" maxlength="40" value="${productIdTo?if_exists}"></td>
            </tr>
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingPartBOMType}:</div></td>
            <td>&nbsp;</td>
            <td>
                <select class="selectBox" name="PRODUCT_ASSOC_TYPE_ID" 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.CommonFromDate}:</div></td>
            <td>&nbsp;</td>
            <td>
                <div class="tabletext">
                    <input type="text" class="inputBox" name="FROM_DATE" size="25" maxlength="40" value="${fromDate?if_exists}">
                    <a href="javascript:call_cal(document.editProductAssocForm.FROM_DATE, '${fromDate?default(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>
            <input type=hidden name="UPDATE_MODE" value="CREATE">
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingPartBOMType}:</div></td>
            <td>&nbsp;</td>
            <td>
                <select class="selectBox" name="PRODUCT_ASSOC_TYPE_ID" 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>&nbsp;</td>
            <td>
                <input type="text" class="inputBox" name="PRODUCT_ID" size="20" maxlength="40" value="${productId?if_exists}">
                <span class='tabletext'><a href="javascript:lookupBom();" class="buttontext">${uiLabelMap.CommonView}</a></span>
            </td>
            </tr>
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingProductIdTo}:</div></td>
            <td>&nbsp;</td>
            <td><input type="text" class="inputBox" name="PRODUCT_ID_TO" size="20" maxlength="40" value="${productIdTo?if_exists}"></td>
            </tr>
            <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.CommonFromDate}:</div></td>
            <td>&nbsp;</td>
            <td>
                <div class="tabletext">
                    <input type="text" class="inputBox" name="FROM_DATE" size="25" maxlength="40" value="">
                    <a href="javascript:call_cal(document.editProductAssocForm.FROM_DATE, '${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>
        </#if>
    <#else>
        <#assign isCreate = false>
        <#assign curProductAssocType = productAssoc.getRelatedOneCache("ProductAssocType")>
        <input type=hidden name="UPDATE_MODE" value="UPDATE">
        <input type=hidden name="PRODUCT_ID" value="${productId?if_exists}">

⌨️ 快捷键说明

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