📄 editproductpromorules.ftl
字号:
<#assign condProductPromoProducts = productPromoCond.getRelated("ProductPromoProduct")>
<#list condProductPromoProducts as condProductPromoProduct>
<#assign condProduct = condProductPromoProduct.getRelatedOneCache("Product")?if_exists>
<#assign condApplEnumeration = condProductPromoProduct.getRelatedOneCache("ApplEnumeration")>
<div class="tabletext">
${(condProduct.internalName)?if_exists} [${condProductPromoProduct.productId}]
- ${(condApplEnumeration.description)?default(condProductPromoProduct.productPromoApplEnumId)}
<a href="<@ofbizUrl>/deleteProductPromoProduct?productPromoId=${(condProductPromoProduct.productPromoId)?if_exists}&productPromoRuleId=${(condProductPromoProduct.productPromoRuleId)?if_exists}&productPromoActionSeqId=${(condProductPromoProduct.productPromoActionSeqId)?if_exists}&productPromoCondSeqId=${(condProductPromoProduct.productPromoCondSeqId)?if_exists}&productId=${(condProductPromoProduct.productId)?if_exists}</@ofbizUrl>" class="buttontext">
[${uiLabelMap.CommonDelete}]</a>
</div>
</#list>
<div class="tabletext">
<form method="POST" action="<@ofbizUrl>/createProductPromoProduct</@ofbizUrl>">
<input type="hidden" name="productPromoId" value="${productPromoId}">
<input type="hidden" name="productPromoRuleId" value="${productPromoCond.productPromoRuleId}">
<input type="hidden" name="productPromoActionSeqId" value="_NA_">
<input type="hidden" name="productPromoCondSeqId" value="${productPromoCond.productPromoCondSeqId}">
Product ID: <input type="text" size="20" maxlength="20" name="productId" value="" class="inputBox"/>
<select name="productPromoApplEnumId" class="selectBox">
<#list productPromoApplEnums as productPromoApplEnum>
<option value="${productPromoApplEnum.enumId}">${productPromoApplEnum.description}</option>
</#list>
</select>
<input type="submit" value="${uiLabelMap.CommonAdd}" style="font-size: x-small;">
</form>
</div>
</td>
<td align="center">
<a href="<@ofbizUrl>/deleteProductPromoCond?productPromoId=${(productPromoCond.productPromoId)?if_exists}&productPromoRuleId=${(productPromoCond.productPromoRuleId)?if_exists}&productPromoCondSeqId=${(productPromoCond.productPromoCondSeqId)?if_exists}</@ofbizUrl>" class="buttontext">
[${uiLabelMap.CommonDelete}]</a>
</td>
</tr>
</#list>
<tr>
<td align="left" colspan="3">
<form method=POST action="<@ofbizUrl>/createProductPromoCond</@ofbizUrl>">
<input type=hidden name="productPromoId" value="${(productPromoRule.productPromoId)?if_exists}">
<input type=hidden name="productPromoRuleId" value="${(productPromoRule.productPromoRuleId)?if_exists}">
<span class="tabletext"><b>${uiLabelMap.CommonNew} :</b> </span>
<#-- <input type=text size="5" name="productPromoCondSeqId" value="${maxCondSeqId?if_exists}" class="inputBox"> -->
<select name="inputParamEnumId" size=1 class="selectBox">
<#list inputParamEnums as inputParamEnum>
<option value="${(inputParamEnum.enumId)?if_exists}">${(inputParamEnum.description)?if_exists}</option>
</#list>
</select>
<select name="operatorEnumId" size=1 class="selectBox">
<#list condOperEnums as condOperEnum>
<option value="${(condOperEnum.enumId)?if_exists}">${(condOperEnum.description)?if_exists}</option>
</#list>
</select>
<input type="text" size="25" name="condValue" class="inputBox">
<input type=submit value="${uiLabelMap.CommonCreate}" style="font-size: x-small;">
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td align="right"><div class="tabletext">${uiLabelMap.ProductActions} :</div></td>
<td align="left" colspan="2">
<table border="1" width="100%" cellpadding="2" cellspacing="0">
<#assign maxActionSeqId = 1>
<#list productPromoActions as productPromoAction>
<tr>
<!-- if cur seq id is a number and is greater than max, set new max for input box prefill below -->
<#if (productPromoAction.productPromoActionSeqId)?exists>
<#assign curActionSeqId = Static["java.lang.Integer"].valueOf(productPromoAction.productPromoActionSeqId)>
<#if (curActionSeqId >= maxActionSeqId)>
<#assign maxActionSeqId = curActionSeqId + 1>
</#if>
</#if>
<td><div class="tabletext"><b>${(productPromoAction.productPromoActionSeqId)?if_exists}</b></div></td>
<td align="left">
<div class="tabletext">
<form method=POST action="<@ofbizUrl>/updateProductPromoAction</@ofbizUrl>">
<input type=hidden name="productPromoId" value="${(productPromoAction.productPromoId)?if_exists}">
<input type=hidden name="productPromoRuleId" value="${(productPromoAction.productPromoRuleId)?if_exists}">
<input type=hidden name="productPromoActionSeqId" value="${(productPromoAction.productPromoActionSeqId)?if_exists}">
<select name="productPromoActionEnumId" size=1 class="selectBox">
<#if (productPromoAction.productPromoActionEnumId)?exists>
<#assign productPromoActionCurEnum = productPromoAction.getRelatedOneCache("ActionEnumeration")>
<option value="${(productPromoAction.productPromoActionEnumId)?if_exists}"><#if productPromoActionCurEnum?exists>${(productPromoActionCurEnum.description)?if_exists}<#else>[${(productPromoAction.productPromoActionEnumId)?if_exists}]</#if></option>
<option value="${(productPromoAction.productPromoActionEnumId)?if_exists}"> </option>
<#else>
<option value=""> </option>
</#if>
<#list productPromoActionEnums as productPromoActionEnum>
<option value="${(productPromoActionEnum.enumId)?if_exists}">${(productPromoActionEnum.description)?if_exists}</option>
</#list>
</select>
<input type="hidden" name="orderAdjustmentTypeId" value="${(productPromoAction.orderAdjustmentTypeId)?if_exists}">
<#-- <select name="orderAdjustmentTypeId" size=1 class="selectBox">
<#if (productPromoAction.orderAdjustmentTypeId)?exists>
<#assign orderAdjustmentType = productPromoAction.getRelatedOneCache("OrderAdjustmentType")>
<option value="${(productPromoAction.orderAdjustmentTypeId)?if_exists}"><#if orderAdjustmentType?exists>${(orderAdjustmentType.description)?if_exists}<#else>[${(productPromoAction.orderAdjustmentTypeId)?if_exists}]</#if></option>
<option value="${(productPromoAction.orderAdjustmentTypeId)?if_exists}"> </option>
<#else>
<option value=""> </option>
</#if>
<#list orderAdjustmentTypes as orderAdjustmentType>
<option value="${(orderAdjustmentType.orderAdjustmentTypeId)?if_exists}">${(orderAdjustmentType.description)?if_exists}</option>
</#list>
</select> -->
Quantity: <input type=text size="5" name="quantity" value="${(productPromoAction.quantity)?if_exists}" class="inputBox">
Amount: <input type=text size="5" name="amount" value="${(productPromoAction.amount)?if_exists}" class="inputBox">
Item: <input type=text size="15" name="productId" value="${(productPromoAction.productId)?if_exists}" class="inputBox">
Party: <input type=text size="10" name="partyId" value="${(productPromoAction.partyId)?if_exists}" class="inputBox">
<input type=submit value="${uiLabelMap.CommonUpdate}" style="font-size: x-small;">
</form>
</div>
<#-- ======================= Categories ======================== -->
<div class="tableheadtext">Action Categories:</div>
<#assign actionProductPromoCategories = productPromoAction.getRelated("ProductPromoCategory")>
<#list actionProductPromoCategories as actionProductPromoCategory>
<#assign actionProductCategory = actionProductPromoCategory.getRelatedOneCache("ProductCategory")>
<#assign actionApplEnumeration = actionProductPromoCategory.getRelatedOneCache("ApplEnumeration")>
<div class="tabletext">
${(actionProductCategory.description)?if_exists} [${actionProductPromoCategory.productCategoryId}]
- ${(actionApplEnumeration.description)?default(actionProductPromoCategory.productPromoApplEnumId)}
- SubCats? ${actionProductPromoCategory.includeSubCategories?default("N")}
- And Group: ${actionProductPromoCategory.andGroupId}
<a href="<@ofbizUrl>/deleteProductPromoCategory?productPromoId=${(actionProductPromoCategory.productPromoId)?if_exists}&productPromoRuleId=${(actionProductPromoCategory.productPromoRuleId)?if_exists}&productPromoCondSeqId=${(actionProductPromoCategory.productPromoCondSeqId)?if_exists}&productPromoActionSeqId=${(actionProductPromoCategory.productPromoActionSeqId)?if_exists}&productCategoryId=${(actionProductPromoCategory.productCategoryId)?if_exists}&andGroupId=${(actionProductPromoCategory.andGroupId)?if_exists}</@ofbizUrl>" class="buttontext">
[${uiLabelMap.CommonDelete}]</a>
</div>
</#list>
<div class="tabletext">
<form method="POST" action="<@ofbizUrl>/createProductPromoCategory</@ofbizUrl>">
<input type="hidden" name="productPromoId" value="${productPromoId}">
<input type="hidden" name="productPromoRuleId" value="${productPromoAction.productPromoRuleId}">
<input type="hidden" name="productPromoActionSeqId" value="${productPromoAction.productPromoActionSeqId}">
<input type="hidden" name="productPromoCondSeqId" value="_NA_">
<select name="productCategoryId" class="selectBox">
<#list productCategories as productCategory>
<option value="${productCategory.productCategoryId}">${productCategory.description}</option>
</#list>
</select>
<select name="productPromoApplEnumId" class="selectBox">
<#list productPromoApplEnums as productPromoApplEnum>
<option value="${productPromoApplEnum.enumId}">${productPromoApplEnum.description}</option>
</#list>
</select>
<select name="includeSubCategories" class="selectBox">
<option value="N">N</option>
<option value="Y">Y</option>
</select>
And Group: <input type="text" size="10" maxlength="20" name="andGroupId" value="_NA_" class="inputBox"/>*
<input type="submit" value="${uiLabelMap.CommonAdd}" style="font-size: x-small;">
</form>
</div>
<#-- ======================= Products ======================== -->
<div class="tableheadtext">Action Products:</div>
<#assign actionProductPromoProducts = productPromoAction.getRelated("ProductPromoProduct")>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -