📄 editproductbom.ftl
字号:
<td align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingBomType}:</div></td> <td> </td> <td><b><#if curProductAssocType?exists>${(curProductAssocType.description)?if_exists}<#else> ${productAssocTypeId?if_exists}</#if></b></td> </tr> <tr> <td align="right"><div class='tableheadtext'>${uiLabelMap.CommonFromDate}:</div></td> <td> </td> <td><b>${fromDate?if_exists}</b></td> </tr> </#if> <tr> <td width="26%" align="right"><div class='tableheadtext'>${uiLabelMap.CommonThruDate}:</div></td> <td> </td> <td width="74%"> <div class="tabletext"> <input type="text" class="inputBox" name="thruDate" <#if useValues> value="${productAssoc.thruDate?if_exists}"<#else>value="${(request.getParameter("thruDate"))?if_exists}"</#if> size="30" maxlength="30"/> <a href="javascript:call_cal(document.editProductAssocForm.thruDate,<#if useValues>'${productAssoc.thruDate?if_exists}'<#elseif (request.getParameter("thruDate"))?exists>'${request.getParameter("thruDate")}'<#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> </td> <td width="74%"><input type="text" class="inputBox" name="sequenceNum" <#if useValues>value="${(productAssoc.sequenceNum)?if_exists}"<#else>value="${(request.getParameter("sequenceNum"))?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> </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> </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> </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> </td> <td width="74%"><input type="text" class="inputBox" name="scrapFactor" <#if useValues>value="${(productAssoc.scrapFactor)?if_exists}"<#else>value="${(request.getParameter("scrapFactor"))?if_exists}"</#if> size="10" maxlength="15"/></td> </tr> <tr> <td width="26%" align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingFormula}:</div></td> <td> </td> <td width="74%"> <select name="estimateCalcMethod"> <option value=""> </option> <#assign selectedFormula = ""> <#if useValues> <#assign selectedFormula = (productAssoc.estimateCalcMethod)?if_exists> <#else> <#assign selectedFormula = (request.getParameter("estimateCalcMethod"))?if_exists> </#if> <#list formulae as formula> <option value="${formula.customMethodId}" <#if selectedFormula = formula.customMethodId>selected</#if>>${formula.description?if_exists}</option> </#list> </select> </td> </tr> <tr> <td width="26%" align="right"><div class='tableheadtext'>${uiLabelMap.ManufacturingRoutingTask}:</div></td> <td> </td> <td width="74%"> <input type="text" class="inputBox" name="routingWorkEffortId" <#if useValues>value="${(productAssoc.routingWorkEffortId)?if_exists}"<#else>value="${(request.getParameter("routingWorkEffortId"))?if_exists}"</#if> size="10" maxlength="15"/> <a href="javascript:call_fieldlookup(document.editProductAssocForm.routingWorkEffortId,'<@ofbizUrl>LookupRoutingTask</@ofbizUrl>','none',640,460);"><img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/></a> </td> </tr> <tr> <td colspan="2"> </td> <td align="left"><input type="submit" class="SmallSubmit" <#if !(productAssoc?exists)>value="${uiLabelMap.CommonAdd}"<#else>value="${uiLabelMap.CommonEdit}"</#if>/></td> </tr> </table> </form> <br/> <#if productId?exists && product?exists> <hr class="sepbar"> <a name="components"></a> <div class="head2">${uiLabelMap.ManufacturingProductComponents}</div> <table border="1" cellpadding="2" cellspacing="0"> <tr> <td><div class="tabletext"><b>${uiLabelMap.ProductProductId}</b></div></td> <td><div class="tabletext"><b>${uiLabelMap.ProductProductName}</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.CommonQuantity}</b></div></td> <td><div class="tabletext"><b>${uiLabelMap.ManufacturingScrapFactor}</b></div></td> <td><div class="tabletext"><b>${uiLabelMap.ManufacturingFormula}</b></div></td> <td><div class="tabletext"><b>${uiLabelMap.ManufacturingRoutingTask}</b></div></td> <td><div class="tabletext"><b> </b></div></td> <td><div class="tabletext"><b> </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?productId=${(assocFromProduct.productIdTo)?if_exists}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)?if_exists}#components</@ofbizUrl>" class="buttontext">${(assocFromProduct.productIdTo)?if_exists}</a></td> <td><#if listToProduct?exists><a href="<@ofbizUrl>EditProductBom?productId=${(assocFromProduct.productIdTo)?if_exists}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)?if_exists}#components</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)?if_exists}</a></#if> </td> <td><div class="tabletext" <#if (assocFromProduct.getTimestamp("fromDate"))?exists && nowDate.before(assocFromProduct.getTimestamp("fromDate"))> style="color: red;"</#if>> ${(assocFromProduct.fromDate)?if_exists} </div></td> <td><div class="tabletext" <#if (assocFromProduct.getTimestamp("thruDate"))?exists && nowDate.after(assocFromProduct.getTimestamp("thruDate"))> style="color: red;"</#if>> ${(assocFromProduct.thruDate)?if_exists} </div></td> <td><div class="tabletext"> ${(assocFromProduct.sequenceNum)?if_exists}</div></td> <td><div class="tabletext"> ${(assocFromProduct.quantity)?if_exists}</div></td> <td><div class="tabletext"> ${(assocFromProduct.scrapFactor)?if_exists}</div></td> <td><div class="tabletext"> ${(assocFromProduct.estimateCalcMethod)?if_exists}</div></td> <td><div class="tabletext"> ${(assocFromProduct.routingWorkEffortId)?if_exists}</div></td> <td> <a href="<@ofbizUrl>UpdateProductBom?UPDATE_MODE=DELETE&productId=${productId}&productIdTo=${(assocFromProduct.productIdTo)?if_exists}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)?if_exists}&fromDate=${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?productId=${productId}&productIdTo=${(assocFromProduct.productIdTo)?if_exists}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)?if_exists}&fromDate=${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.ProductProductId}</b></div></td> <td><div class="tabletext"><b>${uiLabelMap.ProductProductName}</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.CommonQuantity}</b></div></td> <td><div class="tabletext"><b> </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?productId=${(assocToProduct.productId)?if_exists}&productAssocTypeId=${(assocToProduct.productAssocTypeId)?if_exists}#components</@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?productId=${(assocToProduct.productId)?if_exists}&productAssocTypeId=${(assocToProduct.productAssocTypeId)?if_exists}#components</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)?if_exists}</a></#if></td> <td><div class="tabletext">${(assocToProduct.getTimestamp("fromDate"))?if_exists} </div></td> <td><div class="tabletext">${(assocToProduct.getTimestamp("thruDate"))?if_exists} </div></td> <td><div class="tabletext">${(assocToProduct.quantity)?if_exists} </div></td> <td> <a href="<@ofbizUrl>UpdateProductBom?UPDATE_MODE=DELETE&productId=${(assocToProduct.productId)?if_exists}&productIdTo=${(assocToProduct.productIdTo)?if_exists}&productAssocTypeId=${(assocToProduct.productAssocTypeId)?if_exists}&fromDate=${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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -