using MiniExcelLibs.Attributes;
|
using System.ComponentModel.DataAnnotations;
|
using System;
|
using System.ComponentModel;
|
using CMS.Plugin.HIAWms.Domain.Shared.Enums;
|
namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsMaterialType;
|
|
/// <summary>
|
/// 物料l类型信息导出模型
|
/// </summary>
|
public class WmsMaterialTypeExportModel
|
{
|
/// <summary>
|
/// 类型描述
|
/// </summary>
|
[ExcelColumn(Name = "类型描述", Width = 25)]
|
public string MaterialTypeDesc { get; set; }
|
|
/// <summary>
|
/// 类型编码
|
/// </summary>
|
[ExcelColumn(Name = "类型编码", Width = 25)]
|
public string MaterialTypeCode { get; set; }
|
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
[ExcelColumn(Name = "创建时间", Width = 25)]
|
public DateTime CreationTime { get; set; }
|
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
[ExcelColumn(Name = "最后修改时间", Width = 25)]
|
public DateTime LastModificationTime { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[ExcelColumn(Name = "", Width = 25)]
|
public string CreatorName { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[ExcelColumn(Name = "", Width = 25)]
|
public string LastModifierName { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[ExcelColumn(Name = "备注", Width = 25)]
|
public string Remark { get; set; }
|
|
|
|
public Dictionary<string, object> GetExportData()
|
{
|
var exportData = new Dictionary<string, object>();
|
foreach (var property in this.GetType().GetProperties())
|
{
|
exportData.Add(property.Name, property.GetValue(this));
|
}
|
|
return exportData;
|
}
|
}
|