using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.Infrastructure.Exports
{
///
/// 基本类型数据属性类
///
public class ExportExcelProperty
{
///
/// 标题
///
public string Caption { get; set; }
///
/// 实体的属性名称
///
public string EntityProp { get; set; }
///
/// 合并字段的分隔符号,默认为空字符串
///
public string JoinPropChar { get; set; }
///
/// 枚举
///
public Type EnumType { get; set; }
///
/// 多少个字符宽度
///
public int Width { get; set; }
public ExportExcelProperty()
{
JoinPropChar = "";
}
///
/// 用哪个枚举的描述填充
///
///
public void HasEnum()
{
EnumType = typeof(TEnum);
}
///
/// 用多少个字符填充
///
///
public void SetWidth(int w)
{
Width = w * 256;
}
}
}