//总计字段上加格式:如千分位
1、MonWastageSumVO1为table名称
2、Totalloss对应table总计字段名称
3、bValues是赋给总计的值
OATableBean table =
(OATableBean)webBean.findIndexedChildRecursive("MonWastageSumVO1");
OAWebBean abl = table.findIndexedChildRecursive("Totalloss");
if (null != abl)
if (abl instanceof OAMessageStyledTextBean) {
//TABLE只能用OAMessageStyledTextBean
((OAMessageStyledTextBean)abl).setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,
bValues);
} else if (abl instanceof OAMessageTextInputBean) {
//输入框的只能用OAMessageTextInputBean
((OAMessageTextInputBean)abl).setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,
bValues);
}
思路是:在查询后直接从VO缓存中获取对应字段的和值即bValues,然后直接赋值到空格上