日期:2014-05-17 浏览次数:20872 次
<%--计费模式--%>
<aui:select label="product-billingmode" name="billingMode" id="billingMode" showEmptyOption="false" style="width:350px">
<c:if test='${1==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" selected="true"/>
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()"/>
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()"/>
</c:if>
<c:if test='${2==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" />
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()" selected="true"/>
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()"/>
</c:if>
<c:if test='${3==model.billingMode}'>
<aui:option label="product.billingmode.by.time" value="<%=ProductBillingMode.BY_TIME.toString()%>" onclick="showInput()" />
<aui:option label="product.billingmode.month" value="<%=ProductBillingMode.MONTH.toString()%>" onclick="disableInput()" />
<aui:option label="product.billingmode.limit.month" value="<%=ProductBillingMode.LIMIT_MONTH.toString()%>" onclick="disableInput()" selected="true"/>
</c:if>
</aui:select>
<%--计次有效时长--%>
<div id="showId">
<c:if test='${1==model.billingMode}'>
<aui:input label="product-effectiveduration" name="effectiveDuration" value="${model.effectiveDuration}" id="effectiveDuration" type="text" style="width:350px" suffix="product.effectiveduration.hour">
<aui:validator name="custom" errorMessage="product.effectiveduration.errormessage">
function(val, fieldNode, ruleValue){
return effectivePattern.test(val);
}
</aui:validator>
</aui:input>
</c:if>
</div>