using MiniExcelLibs.Attributes; using System.ComponentModel.DataAnnotations; using System; using System.ComponentModel; using CMS.Plugin.PipeLineLems.Domain.Shared.Enums; namespace CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.CallMaterialOrder; /// /// 叫料单表导出模型 /// public class CallMaterialOrderExportModel { /// /// 原料标识 /// [ExcelColumn(Name = "原料标识", Width = 25)] public string DataIdentifier { get; set; } /// /// 原料型号 /// [ExcelColumn(Name = "原料型号", Width = 25)] public string MaterialMode { get; set; } /// /// 原料批次 /// [ExcelColumn(Name = "原料批次", Width = 25)] public string MaterialBatch { get; set; } /// /// 叫料状态 /// [ExcelColumn(Name = "叫料状态", Width = 25)] public CallMaterialStatusEnum CallMaterialStatus { get; set; } /// /// 叫料数量 /// [ExcelColumn(Name = "叫料数量", Width = 25)] public int Quantity { get; set; } /// /// WMS返回结果 /// [ExcelColumn(Name = "WMS返回结果", Width = 25)] public string WmsRetResult { get; set; } /// /// WMS任务号 /// [ExcelColumn(Name = "WMS任务号", Width = 25)] public string WmsTaskNo { get; set; } /// /// 创建时间 /// [ExcelColumn(Name = "创建时间", Width = 25)] public DateTime CreationTime { get; set; } /// /// 修改时间 /// [ExcelColumn(Name = "修改时间", Width = 25)] public DateTime LastModificationTime { get; set; } /// /// 创建人 /// [ExcelColumn(Name = "创建人", Width = 25)] public string CreatorName { get; set; } /// /// 修改人 /// [ExcelColumn(Name = "修改人", Width = 25)] public string LastModifierName { get; set; } /// /// 备注 /// [ExcelColumn(Name = "备注", Width = 25)] public string Remark { 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; } }