kd.bos.entity

## 类 NumberFormatProvider

- java.lang.Object
- - kd.bos.entity.NumberFormatProvider

-     public class NumberFormatProvider
      extends java.lang.Object

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static java.lang.String` | `COLFMTKEY`
    `static java.lang.String` | `COMBOFIELDSKEY`
    `static java.lang.String` | `CURRENCYFMTKEY`
    `static java.lang.String` | `DECIMALFIELDSKEY`
    `static java.lang.String` | `NUMTYPE` 数值类型
    `static java.lang.String` | `PRECISION` 数值长度
    `static java.lang.String` | `SCALE` 数值精度
    `static java.lang.String` | `SCALEFIELD` 精度控制字段
    `static java.lang.String` | `TIMEZONEFMTKEY`
    `static java.lang.String` | `UNITFMTKEY`

  - ### 构造器概要

    构造器
    构造器和说明
    `NumberFormatProvider(java.util.List<FmtField> fmtFields, kd.bos.dataentity.entity.DynamicObjectCollection dataEntitys)`
    `NumberFormatProvider(java.util.List<FmtField> fmtFields, kd.bos.dataentity.entity.DynamicObjectCollection dataEntitys, kd.bos.dataentity.entity.DynamicObject dataEntity)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>` | `getColfmt()`
    `java.util.Map<java.lang.String,java.lang.Object>` | `getCurrencyfmt()`
    `java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>` | `getDecimalFieldMap()`
    `java.util.Map<java.lang.String,java.lang.String>` | `getFieldControlPropMap()`
    `java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>>` | `getFieldFmtInfo()`
    `NumberPrecision` | `getFormatPrecision(java.lang.String scaleFieldKey, kd.bos.dataentity.entity.DynamicObject rowData)`
    `NumberPrecision` | `getFormatPrecision(java.lang.String scaleFieldName, kd.bos.dataentity.entity.DynamicObject rowData, kd.bos.dataentity.entity.DynamicObject fmtRowData)`
    `java.util.Map<java.lang.String,java.lang.Object>` | `getTimeZoneFmt()`
    `java.util.Map<java.lang.String,java.lang.Object>` | `getUnitfmt()`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### COLFMTKEY

          public static final java.lang.String COLFMTKEY

      另请参阅:
        常量字段值

    - #### UNITFMTKEY

          public static final java.lang.String UNITFMTKEY

      另请参阅:
        常量字段值

    - #### CURRENCYFMTKEY

          public static final java.lang.String CURRENCYFMTKEY

      另请参阅:
        常量字段值

    - #### TIMEZONEFMTKEY

          public static final java.lang.String TIMEZONEFMTKEY

      另请参阅:
        常量字段值

    - #### DECIMALFIELDSKEY

          public static final java.lang.String DECIMALFIELDSKEY

      另请参阅:
        常量字段值

    - #### COMBOFIELDSKEY

          public static final java.lang.String COMBOFIELDSKEY

      另请参阅:
        常量字段值

    - #### NUMTYPE

          public static final java.lang.String NUMTYPE

      数值类型
      另请参阅:
        常量字段值

    - #### PRECISION

          public static final java.lang.String PRECISION

      数值长度
      另请参阅:
        常量字段值

    - #### SCALE

          public static final java.lang.String SCALE

      数值精度
      另请参阅:
        常量字段值

    - #### SCALEFIELD

          public static final java.lang.String SCALEFIELD

      精度控制字段
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### NumberFormatProvider

          public NumberFormatProvider(java.util.List<FmtField> fmtFields,
                                      kd.bos.dataentity.entity.DynamicObjectCollection dataEntitys)

    - #### NumberFormatProvider

          public NumberFormatProvider(java.util.List<FmtField> fmtFields,
                                      kd.bos.dataentity.entity.DynamicObjectCollection dataEntitys,
                                      kd.bos.dataentity.entity.DynamicObject dataEntity)

  - ### 方法详细资料

    - #### getColfmt

          public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getColfmt()

    - #### getCurrencyfmt

          public java.util.Map<java.lang.String,java.lang.Object> getCurrencyfmt()

    - #### getTimeZoneFmt

          public java.util.Map<java.lang.String,java.lang.Object> getTimeZoneFmt()

    - #### getUnitfmt

          public java.util.Map<java.lang.String,java.lang.Object> getUnitfmt()

    - #### getDecimalFieldMap

          public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getDecimalFieldMap()

    - #### getFieldControlPropMap

          public java.util.Map<java.lang.String,java.lang.String> getFieldControlPropMap()

    - #### getFieldFmtInfo

          public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>> getFieldFmtInfo()

    - #### getFormatPrecision

          public NumberPrecision getFormatPrecision(java.lang.String scaleFieldKey,
                                                    kd.bos.dataentity.entity.DynamicObject rowData)

      参数:
        `numberKey` - 货币编码或计量单位编码
        `rowData` - 需要格式化的数据包

    - #### getFormatPrecision

          public NumberPrecision getFormatPrecision(java.lang.String scaleFieldName,
                                                    kd.bos.dataentity.entity.DynamicObject rowData,
                                                    kd.bos.dataentity.entity.DynamicObject fmtRowData)

      参数:
        `rowData` - 数据字段所在行
        `fmtRowData` - 币别/计量单位等控制字段所在行