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.WmsInOutStockRecord;
///
/// 出入库记录导出模型
///
public class WmsInOutStockRecordExportModel
{
///
/// 单据编号
///
[ExcelColumn(Name = "单据编号", Width = 25)]
public string OrderNo { get; set; }
///
/// 物料名称
///
[ExcelColumn(Name = "物料名称", Width = 25)]
public string MaterialName { get; set; }
///
/// 物料件号
///
[ExcelColumn(Name = "物料件号", Width = 25)]
public string MaterialNo { get; set; }
///
/// 操作类型
///
[ExcelColumn(Name = "操作类型", Width = 25)]
public StockTypeEnum StockType { get; set; }
///
/// 容器编号
///
[ExcelColumn(Name = "容器编号", Width = 25)]
public string ContainerNo { get; set; }
///
/// 机型
///
[ExcelColumn(Name = "机型", Width = 25)]
public string MaterialModel { get; set; }
///
/// 操作时间
///
[ExcelColumn(Name = "操作时间", Width = 25)]
public DateTime OperateTime { get; set; }
///
/// 备注
///
[ExcelColumn(Name = "备注", Width = 25)]
public string Remark { get; set; }
///
/// 物料ID
///
[ExcelColumn(Name = "物料ID", Width = 25)]
public string MaterialId { get; set; }
///
/// 任务号
///
[ExcelColumn(Name = "任务号", Width = 25)]
public string TaskNo { get; set; }
///
/// 起始库位
///
[ExcelColumn(Name = "起始库位", Width = 25)]
public string SourcePlace { get; set; }
///
/// 目标库位
///
[ExcelColumn(Name = "目标库位", Width = 25)]
public string ToPlace { get; set; }
///
/// 排序
///
[ExcelColumn(Name = "排序", Width = 25)]
public int Sort { get; set; }
///
/// 是否禁用
///
[ExcelColumn(Name = "是否禁用", Width = 25)]
public bool? IsDisabled { 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;
}
}