Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据导出的时候,支持Enum,bool类型 的转换成显示值? #106

Closed
crashsol opened this issue Jun 4, 2020 · 4 comments
Closed
Labels
area-excel excel enhancement New feature or request
Milestone

Comments

@crashsol
Copy link

crashsol commented Jun 4, 2020

public enum CustomerDetailLevel { [Description("小微客户")] Micro = 0, [Description("一级")] LevelOne = 1, [Description("二级")] LevelTwo = 2, [Description("三级")] LevelThree = 3, [Description("特级")] Special = 4, }
image
数据导出的时候,支持Enum,bool类型 的转换成显示值?

@xin-lai xin-lai added the enhancement New feature or request label Jun 7, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Jun 7, 2020

收到,由于最近太忙,在接下来的版本我们会进行处理。

@QHBZYJJC
Copy link

QHBZYJJC commented Jul 1, 2020

希望能不只是显示显示值,能不能也带下拉框,因为客户总有导出的数据编辑改改再导入的需求 😀

@xin-lai
Copy link
Collaborator

xin-lai commented Jul 12, 2020

@QHBZYJJC 明白。目前这块主要是受限于EPPlus的API设计,修改EPPlus源码实现会更合适一点。我们一直有这个计划,奈何我和 @hueifeng 精力实在是不够,所以这块一直没有开始。

@xin-lai xin-lai added the area-excel excel label Jul 12, 2020
@xin-lai xin-lai added this to the 2.4 milestone Aug 17, 2020
hueifeng added a commit that referenced this issue Sep 13, 2020
@hueifeng
Copy link
Member

该需求已在2.4 beta1中处理,欢迎大家后续使用2.4版本通过如下代码实现需求:

[ValueMapping(text: "yes", true)]
[ValueMapping(text: "no", false)]
[ValueMapping(text: "小微客户", 0)]

hueifeng added a commit that referenced this issue Oct 1, 2020
          - 支持单元格导出宽度设置 [#129](#129)
          - Excel导出支持对Enum的ValueMapping设置 [#106](#106)
          - Excel导出支持对bool类型的ValueMapping设置 [#16](#16)
          - [#152](#152) 筛选器支持依赖注入
          - #151 导出添加AutoFitMaxRows,超过指定行数则不启用AutoFit
          - 添加全局IsDisableAllFilter属性,以通过特性禁用所有筛选器
          - [#142](#142) 【修复】根据模板列表高度的设置,统一设置渲染高度
          - [#157](https://github.com/dotnetcore/Magicodes.IE/issues/157)【修复】对低版本框架的兼容
          - Excel导入对图片获取算法的优化
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-excel excel enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants