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.WmsContainerPlace;
///
/// 库位容器关系导出模型
///
public class WmsContainerPlaceExportModel
{
///
/// 库位编码
///
[ExcelColumn(Name = "库位编码", Width = 25)]
public string PlaceNo { get; set; }
///
/// 编码
///
[ExcelColumn(Name = "编码", Width = 25)]
public string ContainerNo { get; set; }
///
/// 排序
///
[ExcelColumn(Name = "排序", Width = 25)]
public int Sort { get; set; }
///
/// 名称
///
[ExcelColumn(Name = "名称", Width = 25)]
public DateTime BindTime { get; set; }
///
/// 是否禁用
///
[ExcelColumn(Name = "是否禁用", Width = 25)]
public bool? IsDisabled { get; set; }
///
/// 备注
///
[ExcelColumn(Name = "备注", Width = 25)]
public string Remark { get; set; }
///
/// 创建人
///
[ExcelColumn(Name = "创建人", Width = 25)]
public string CreatorName { get; set; }
///
/// 删除备注
///
[ExcelColumn(Name = "删除备注", Width = 25)]
public string DeleteRemark { get; set; }
///
/// 扩展字段1
///
[ExcelColumn(Name = "扩展字段1", Width = 25)]
public string ExtraField1 { get; set; }
///
/// 扩展字段2
///
[ExcelColumn(Name = "扩展字段2", Width = 25)]
public string ExtraField2 { get; set; }
///
/// 扩展字段3
///
[ExcelColumn(Name = "扩展字段3", Width = 25)]
public string ExtraField3 { get; set; }
///
/// 修改人
///
[ExcelColumn(Name = "修改人", Width = 25)]
public string LastModifierName { get; set; }
///
/// 操作备注
///
[ExcelColumn(Name = "操作备注", Width = 25)]
public string OperationRemark { get; set; }
public Dictionary GetExportData()
{
var exportData = new Dictionary();
foreach (var property in this.GetType().GetProperties())
{
exportData.Add(property.Name, property.GetValue(this));
}
return exportData;
}
}