表格内数字按千分位进行格式化
2016-10-17 10:41
627 查看
方法一:
但是此方法有个问题,若表格中有合计值,合计无法被格式化
方法二:使用币种格式化处理
DisplayInputFormat.DisplayInputFormat(webBean, "DepositAmountTE", ON_SUBMIT_VALIDATER_ATTR);
public static void DisplayInputFormat(OAWebBean webBean,String lv_findchild,oracle.cabo.ui.AttributeKey key) { //Added by Tommy on 2012-09-08 for REQ031. //数字格式化 Formatter formatter = new OADecimalValidater("#,###,###,##0.00;-#,###,###,##0.00", "#,###,###,##0.00;-#,###,###,##0.00"); OAMessageTextInputBean lv_item1 = (OAMessageTextInputBean)webBean.findChildRecursive(lv_findchild); if (lv_item1 != null) lv_item1.setAttributeValue(key, formatter); }
但是此方法有个问题,若表格中有合计值,合计无法被格式化
方法二:使用币种格式化处理
OAWebBean DepositAmountTEBean = webBean.findChildRecursive("DepositAmountTE"); if (DepositAmountTEBean != null) { DepositAmountTEBean.setAttributeValue(OAWebBeanConstants.CURRENCY_CODE, "CNY"); }
相关文章推荐
- Flex中对表格中某列的值进行数字格式化并求百分比
- Flex中对表格中某列的值进行数字格式化并求百分比
- Flex中对表格中某列的值进行数字格式化并求百分比
- Flex中对表格中某列的值进行数字格式化
- Flex中对表格中某列的值进行数字格式化保留两位小数
- Flex中对表格中某列的值进行数字格式化
- Flex中对表格某列的值进行数字格式化并求百分比添加%
- JS,数字千分位格式化
- 引入DecimalFormat类进行数字格式化操作
- js数字格式化(加千分位逗号)
- JavaScript 格式化数字、金额、千分位、保留几位小数、舍入舍去…
- 对表格按日期或数字或字母进行排序的js
- 使用DecimalFormat进行数字格式化
- JQGrid的数字千分位格式化
- 使用DecimalFormat进行数字格式化
- 数字进行格式化
- Lua千分位格式化数字
- 用oracle sql对数字进行操作: 取上取整、向下取整、保留N位小数、四舍五入、数字格式化
- python格式化千分位数字
- Struts2中对数字进行格式化