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

📄 editproductbom.ftl

📁 国外的一套开源CRM
💻 FTL
📖 第 1 页 / 共 2 页
字号:
        <input type=hidden name="PRODUCT_ID_TO" value="${productIdTo?if_exists}">
        <input type=hidden name="PRODUCT_ASSOC_TYPE_ID" value="${productAssocTypeId?if_exists}">
        <input type=hidden name="FROM_DATE" value="${fromDate?if_exists}">
        <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ProductProductId}:</div></td>
            <td>&nbsp;</td>
            <td><b>${productId?if_exists}</b> (You must re-create the association to change this.)</td>
        </tr>
        <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingProductIdTo}:</div></td>
            <td>&nbsp;</td>
            <td><b>${productIdTo?if_exists}</b> (You must re-create the association to change this.)</td>
        </tr>
        <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingPartBOMType}:</div></td>
            <td>&nbsp;</td>
            <td><b><#if curProductAssocType?exists>${(curProductAssocType.description)?if_exists}<#else> ${productAssocTypeId?if_exists}</#if></b> (You must re-create the association to change this.)</td>
        </tr>
        <tr>
            <td align=right><div class='tableheadtext'>${uiLabelMap.CommonFromDate}:</div></td>
            <td>&nbsp;</td>
            <td><b>${fromDate?if_exists}</b> (You must re-create the association to change this.)</td>
        </tr>
    </#if>
    <tr>
        <td width="26%" align=right><div class='tableheadtext'>${uiLabelMap.CommonThruDate}:</div></td>
        <td>&nbsp;</td>
        <td width="74%">
        <div class="tabletext">
            <input type="text" class="inputBox" name="THRU_DATE" <#if useValues> value="${productAssoc.thruDate?if_exists}"<#else>value="${(request.getParameter("THRU_DATE"))?if_exists}"</#if> size="30" maxlength="30"> 
            <a href="javascript:call_cal(document.editProductAssocForm.THRU_DATE, <#if useValues>'${productAssoc.thruDate?if_exists}'<#elseif (request.getParameter("THRU_DATE"))?exists>'${request.getParameter("THRU_DATE")}'<#else>'${nowTimestampString}'</#if>);"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
        </div>
        </td>
    </tr>
    <tr>
        <td width="26%" align=right><div class='tableheadtext'>${uiLabelMap.CommonSequenceNum}:</div></td>
        <td>&nbsp;</td>
        <td width="74%"><input type="text" class="inputBox" name="SEQUENCE_NUM" <#if useValues>value="${(productAssoc.sequenceNum)?if_exists}"<#else>value="${(request.getParameter("SEQUENCE_NUM"))?if_exists}"</#if> size="5" maxlength="10"></td>
    </tr>
    <tr>
        <td width="26%" align=right><div class="tabletext"><div class='tableheadtext'>${uiLabelMap.ManufacturingReason}:</div></div></td>
        <td>&nbsp;</td>
        <td width="74%"><input type="text" class="inputBox" name="REASON" <#if useValues>value="${(productAssoc.reason)?if_exists}"<#else>value="${(request.getParameter("REASON"))?if_exists}"</#if> size="60" maxlength="255"></td>
    </tr>
    <tr>
        <td width="26%" align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingInstruction}:</div></td>
        <td>&nbsp;</td>
        <td width="74%"><input type="text" class="inputBox" name="INSTRUCTION" <#if useValues>value="${(productAssoc.instruction)?if_exists}"<#else>value="${(request.getParameter("INSTRUCTION"))?if_exists}"</#if> size="60" maxlength="255"></td>
    </tr>
    
    <tr>
        <td width="26%" align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingQuantity}:</div></td>
        <td>&nbsp;</td>
        <td width="74%"><input type="text" class="inputBox" name="QUANTITY" <#if useValues>value="${(productAssoc.quantity)?if_exists}"<#else>value="${(request.getParameter("QUANTITY"))?if_exists}"</#if> size="10" maxlength="15"></td>
    </tr>

    <tr>
        <td width="26%" align=right><div class='tableheadtext'>${uiLabelMap.ManufacturingScrapFactor}:</div></td>
        <td>&nbsp;</td>
        <td width="74%"><input type="text" class="inputBox" name="SCRAP_FACTOR" <#if useValues>value="${(productAssoc.scrapFactor)?if_exists}"<#else>value="${(request.getParameter("SCRAP_FACTOR"))?if_exists}"</#if> size="10" maxlength="15"></td>
    </tr>
    
    <tr>
        <td colspan="2">&nbsp;</td>
        <td align=left><input type="submit" <#if isCreate>value="${uiLabelMap.CommonAdd}"<#else>value="${uiLabelMap.CommonEdit}"</#if>></td>
    </tr>
    </table>
    </form>
    <br>
    <#if productId?exists && product?exists>
        <hr class="sepbar">
        <div class="head2">${uiLabelMap.ManufacturingProductComponents}</div>
        
        <table border="1" cellpadding="2" cellspacing="0">
            <tr>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartId}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartName}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonFromDate}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonThruDate}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonSequenceNum}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingQuantity}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingScrapFactor}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartBOMType}</b></div></td>
            <td><div class="tabletext"><b>&nbsp;</b></div></td>
            <td><div class="tabletext"><b>&nbsp;</b></div></td>
            </tr>
            <#list assocFromProducts as assocFromProduct>
            <#assign listToProduct = assocFromProduct.getRelatedOneCache("AssocProduct")>
            <#assign curProductAssocType = assocFromProduct.getRelatedOneCache("ProductAssocType")>
            <tr valign="middle">
                <td><a href="<@ofbizUrl>/EditProductBom?PRODUCT_ID=${(assocFromProduct.productIdTo)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocFromProduct.productAssocTypeId)?if_exists}</@ofbizUrl>" class="buttontext">${(assocFromProduct.productIdTo)?if_exists}</a></td>
                <td><#if listToProduct?exists><a href="<@ofbizUrl>/EditProductBom?PRODUCT_ID=${(assocFromProduct.productIdTo)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocFromProduct.productAssocTypeId)?if_exists}</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)?if_exists}</a></#if>&nbsp;</td>
                <td><div class="tabletext" <#if (assocFromProduct.getTimestamp("fromDate"))?exists && nowDate.before(assocFromProduct.getTimestamp("fromDate"))> style="color: red;"</#if>>
                ${(assocFromProduct.fromDate)?if_exists}&nbsp;</div></td>
                <td><div class="tabletext" <#if (assocFromProduct.getTimestamp("thruDate"))?exists && nowDate.after(assocFromProduct.getTimestamp("thruDate"))> style="color: red;"</#if>>
                ${(assocFromProduct.thruDate)?if_exists}&nbsp;</div></td>
                <td><div class="tabletext">&nbsp;${(assocFromProduct.sequenceNum)?if_exists}</div></td>
                <td><div class="tabletext">&nbsp;${(assocFromProduct.quantity)?if_exists}</div></td>
                <td><div class="tabletext">&nbsp;${(assocFromProduct.scrapFactor)?if_exists}</div></td>
                <td><div class="tabletext"><#if curProductAssocType?exists> ${(curProductAssocType.description)?if_exists}<#else>${(assocFromProduct.productAssocTypeId)?if_exists}</#if></div></td>
                <td>
                <a href="<@ofbizUrl>/UpdateProductBom?UPDATE_MODE=DELETE&PRODUCT_ID=${productId}&PRODUCT_ID_TO=${(assocFromProduct.productIdTo)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocFromProduct.productAssocTypeId)?if_exists}&FROM_DATE=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(assocFromProduct.getTimestamp("fromDate").toString())}&useValues=true</@ofbizUrl>" class="buttontext">
                [${uiLabelMap.CommonDelete}]</a>
                </td>
                <td>
                <a href="<@ofbizUrl>/EditProductBom?PRODUCT_ID=${productId}&PRODUCT_ID_TO=${(assocFromProduct.productIdTo)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocFromProduct.productAssocTypeId)?if_exists}&FROM_DATE=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(assocFromProduct.getTimestamp("fromDate").toString())}&useValues=true</@ofbizUrl>" class="buttontext">
                [${uiLabelMap.CommonEdit}]</a>
                </td>
            </tr>
            </#list>
        </table>
        
        <hr class="sepbar">
        <div class="head2">${uiLabelMap.ManufacturingProductComponentOf}</div>
        <table border="1" cellpadding="2" cellspacing="0">
            <tr>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartId}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartName}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonFromDate}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.CommonThruDate}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingQuantity}</b></div></td>
            <td><div class="tabletext"><b>${uiLabelMap.ManufacturingPartBOMType}</b></div></td>
            <td><div class="tabletext"><b>&nbsp;</b></div></td>
            </tr>
            <#list assocToProducts as assocToProduct>
            <#assign listToProduct = assocToProduct.getRelatedOneCache("MainProduct")>
            <#assign curProductAssocType = assocToProduct.getRelatedOneCache("ProductAssocType")>
            <tr valign="middle">
                <td><a href="<@ofbizUrl>/EditProductBom?PRODUCT_ID=${(assocToProduct.productId)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocToProduct.productAssocTypeId)?if_exists}</@ofbizUrl>" class="buttontext">${(assocToProduct.productId)?if_exists}</a></td>
<!--                <td><#if listToProduct?exists><a href="<@ofbizUrl>/EditProduct?productId=${(assocToProduct.productId)?if_exists}</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)?if_exists}</a></#if></td> -->
                <td><#if listToProduct?exists><a href="<@ofbizUrl>/EditProductBom?PRODUCT_ID=${(assocToProduct.productId)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocToProduct.productAssocTypeId)?if_exists}</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)?if_exists}</a></#if></td>
                <td><div class="tabletext">${(assocToProduct.getTimestamp("fromDate"))?if_exists}&nbsp;</div></td>
                <td><div class="tabletext">${(assocToProduct.getTimestamp("thruDate"))?if_exists}&nbsp;</div></td>
                <td><div class="tabletext">${(assocToProduct.quantity)?if_exists}&nbsp;</div></td>
                <td><div class="tabletext"><#if curProductAssocType?exists> ${(curProductAssocType.description)?if_exists}<#else> ${(assocToProduct.productAssocTypeId)?if_exists}</#if></div></td>
                <td>
                <a href="<@ofbizUrl>/UpdateProductBom?UPDATE_MODE=DELETE&PRODUCT_ID=${(assocToProduct.productId)?if_exists}&PRODUCT_ID_TO=${(assocToProduct.productIdTo)?if_exists}&PRODUCT_ASSOC_TYPE_ID=${(assocToProduct.productAssocTypeId)?if_exists}&FROM_DATE=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(assocToProduct.getTimestamp("fromDate").toString())}&useValues=true</@ofbizUrl>" class="buttontext">
                [${uiLabelMap.CommonDelete}]</a>
                </td>
            </tr>
            </#list>
        </table>

        <br>
        <div class="tabletext">NOTE: <b style="color: red;">Red</b> date/time entries denote that the current time is before the From Date or after the Thru Date. If the From Date is <b style="color: red;">red</b>, association has not started yet; if Thru Date is <b style="color: red;">red</b>, association has expired (<u>and should probably be deleted</u>).</div>
    </#if>
<#else>
  <h3>${uiLabelMap.ManufacturingViewPermissionError}</h3>
</#if>

⌨️ 快捷键说明

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