支持表格的横向统计。
<ec:column cell="calcTotal" width="80" title="合计" property="USERROLE,USERID" /> <ec:column cell="calcAvg" width="80" title="平均" property="USERROLE,USERID" />使用cell="calcTotal" 算合计 cell="calcAvg" 算平均,
property表示要计算的列,*号表示计算所有列。
位置不一定非要放到最后,可以在中间。:)
<ec:row> <ec:column property="casecontext" title='办件类型' width="226"></ec:column> <ec:column property="shoujian" title='收件数量' width="200" calc="total" calcTitle="合计:" ></ec:column> <ec:column property="banjian" title='办件数量' width="200" calc="total" calcTitle="合计:" ></ec:column> </ec:row>
1 楼
sammyke
2012-06-06
谢谢帮助,其实我有记录,就是懒得翻!!