• 总计字段上加格式:如千分位 比较笨拙的一种方法


    //总计字段上加格式:如千分位
    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,然后直接赋值到空格上

  • 相关阅读:
    Best Time to Buy and Sell Stock II
    Subsets II
    Subsets I
    Combinations
    Permutation Sequence
    Next Permutation
    Anagrams
    Combination-Sum II
    Combination-Sum I
    Permutations II
  • 原文地址:https://www.cnblogs.com/huanghongbo/p/5219209.html
Copyright © 2020-2023  润新知