Skip to content

Excel 导出如何实现字典翻译 #589

@Zhang-Yidadada

Description

@Zhang-Yidadada

I'm seeing this behaviour on

Remove this hint: these checkboxes can be checked like this: [x]

  • Magicodes.IE.Excel

package versions

Magicodes.IE.Excel 2.7.5.1

导出 Excel 时,如何根据设置的 ValueMapping,进行字符串匹配的 Mapping,

比如:数据库存储的 NOR,导出的 Excel 翻译成 Normal Sales,导出的配置中,字段上配置了如下,但是导出的 Excel 没有正常翻译。

[ValueMapping("Normal Sales", "NOR")]
[ValueMapping("Credit Memo", "CRE")]
[ValueMapping("Sample", "SMP")]
public string OrderType { set; get; }

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions