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.CallMaterialOrderRecord;
|
|
/// <summary>
|
/// 叫料记录表导出模型
|
/// </summary>
|
public class CallMaterialOrderRecordExportModel
|
{
|
/// <summary>
|
/// 原料标识
|
/// </summary>
|
[ExcelColumn(Name = "原料标识", Width = 25)]
|
public string DataIdentifier { get; set; }
|
|
/// <summary>
|
/// 原料型号
|
/// </summary>
|
[ExcelColumn(Name = "原料型号", Width = 25)]
|
public string MaterialMode { get; set; }
|
|
/// <summary>
|
/// 叫料状态
|
/// </summary>
|
[ExcelColumn(Name = "叫料状态", Width = 25)]
|
public CallMaterialStatusEnum CallMaterialStatus { get; set; }
|
|
/// <summary>
|
/// 叫料数量
|
/// </summary>
|
[ExcelColumn(Name = "叫料数量", Width = 25)]
|
public int Quantity { get; set; }
|
|
/// <summary>
|
/// WMS返回结果
|
/// </summary>
|
[ExcelColumn(Name = "WMS返回结果", Width = 25)]
|
public string WmsRetResult { get; set; }
|
|
/// <summary>
|
/// WMS任务号
|
/// </summary>
|
[ExcelColumn(Name = "WMS任务号", Width = 25)]
|
public string WmsTaskNo { 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 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;
|
}
|
}
|