boss框架常量的取值

1.加载的radioBoxList
 
<@ww.radio name="disinfectMode"  
  list="@com.leadron.trackao.basedata.constant.DisinfectMode@items()"
   listKey="value" listValue="displayValue" value=""/> 


2.加载到checkBoxList
 
<@ww.checkBox name="disinfectMode"  
  list="@com.leadron.trackao.basedata.constant.DisinfectMode@items()"
   listKey="value" listValue="displayValue" value=""/> 


3.获取常量值
 
<@ww.property value='%{@com.leadron.trackao.basedata.constant.InOutStockDeptOption@ANAESDEPT.value}'/>


4.获取常量显示值
  
<@ww.property value='%{@com.leadron.trackao.basedata.constant.InOutStockDeptOption@ANAESDEPT.disvalue}'/>


4.根据value获取displayValue
<@ww.property value='%{@com.leadron.trackao.basedata.constant.InOutStockDeptOption@itemByValue("ANAESDEPT").displayValue}'/>


5.加载到Select框
<#assign disinfectMode = stack.findValue("@com.leadron.trackao.basedata.constant.DisinfectMode@items()") /> 
<select id="disinfectModeSel" style="">
<#list disinfectMode as cbL>
    <option value= ${cbL.value?if_exists}/>${cbL.displayValue?if_exists}</option>
</#list>
</select>




你可能感兴趣的:(java,框架)