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.WmsMaterialStocks;
|
|
/// <summary>
|
/// 出入库单据详情导出模型
|
/// </summary>
|
public class WmsMaterialStockExportModel
|
{
|
/// <summary>
|
/// 物料ID
|
/// </summary>
|
[ExcelColumn(Name = "物料ID", Width = 25)]
|
public string MaterialId { get; set; }
|
|
/// <summary>
|
/// 物料名称
|
/// </summary>
|
[ExcelColumn(Name = "物料名称", Width = 25)]
|
public string MaterialName { get; set; }
|
|
/// <summary>
|
/// 容器编号
|
/// </summary>
|
[ExcelColumn(Name = "容器编号", Width = 25)]
|
public string ContainerNo { get; set; }
|
|
/// <summary>
|
/// 容器状态
|
/// </summary>
|
[ExcelColumn(Name = "容器状态", Width = 25)]
|
public ContainerStatusEnum ContainerStatus { get; set; }
|
|
/// <summary>
|
/// 容器类型
|
/// </summary>
|
[ExcelColumn(Name = "容器类型", Width = 25)]
|
public ContainerTypeEnum ContainerType { get; set; }
|
|
/// <summary>
|
/// 物料编号
|
/// </summary>
|
[ExcelColumn(Name = "物料编号", Width = 25)]
|
public string MaterialNo { get; set; }
|
|
/// <summary>
|
/// 库存数量
|
/// </summary>
|
[ExcelColumn(Name = "库存数量", Width = 25)]
|
public int StockNumber { get; set; }
|
|
/// <summary>
|
/// 物料批次
|
/// </summary>
|
[ExcelColumn(Name = "物料批次", Width = 25)]
|
public string MaterialBatch { get; set; }
|
|
/// <summary>
|
/// 供应商编号
|
/// </summary>
|
[ExcelColumn(Name = "供应商编号", Width = 25)]
|
public string SupplierCode { get; set; }
|
|
/// <summary>
|
/// 机型/规格
|
/// </summary>
|
[ExcelColumn(Name = "机型/规格", Width = 25)]
|
public string MaterialModel { get; set; }
|
|
/// <summary>
|
/// 库位编号
|
/// </summary>
|
[ExcelColumn(Name = "库位编号", Width = 25)]
|
public string PlaceNo { get; set; }
|
|
/// <summary>
|
/// 库位状态;
|
/// </summary>
|
[ExcelColumn(Name = "库位状态;", Width = 25)]
|
public PlaceStatusEnum PlaceStatus { get; set; }
|
|
/// <summary>
|
/// 库位类型
|
/// </summary>
|
[ExcelColumn(Name = "库位类型", Width = 25)]
|
public PlaceTypeEnum StorageTypeNo { get; set; }
|
|
/// <summary>
|
/// 区域编号
|
/// </summary>
|
[ExcelColumn(Name = "区域编号", Width = 25)]
|
public string AreaCode { get; set; }
|
|
/// <summary>
|
/// 库区名称
|
/// </summary>
|
[ExcelColumn(Name = "库区名称", Width = 25)]
|
public string AreaName { get; set; }
|
|
/// <summary>
|
/// 检验状态(1:未检验,2:检验通过,3:检验不通过)
|
/// </summary>
|
[ExcelColumn(Name = "检验状态(1:未检验,2:检验通过,3:检验不通过)", Width = 25)]
|
public MaterialCheckStatusEnum? CheckStatus { get; set; }
|
|
/// <summary>
|
/// 是否锁定(2:未锁定,1:已锁定)
|
/// </summary>
|
[ExcelColumn(Name = "是否锁定(2:未锁定,1:已锁定)", Width = 25)]
|
public YesNoEnum IsLock { get; set; }
|
|
/// <summary>
|
/// 是否空托(2:否,1:是)
|
/// </summary>
|
[ExcelColumn(Name = "是否空托(2:否,1:是)", Width = 25)]
|
public YesNoEnum EmptyContainer { get; set; }
|
|
/// <summary>
|
/// 入库时间
|
/// </summary>
|
[ExcelColumn(Name = "入库时间", Width = 25)]
|
public DateTime InStockTime { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[ExcelColumn(Name = "备注", Width = 25)]
|
public string Remark { get; set; }
|
|
/// <summary>
|
/// 冗余字段1 - 预留扩展用途
|
/// </summary>
|
[ExcelColumn(Name = "冗余字段1 - 预留扩展用途", Width = 25)]
|
public string RedundantField1 { get; set; }
|
|
/// <summary>
|
/// 冗余字段2 - 预留扩展用途
|
/// </summary>
|
[ExcelColumn(Name = "冗余字段2 - 预留扩展用途", Width = 25)]
|
public string RedundantField2 { get; set; }
|
|
/// <summary>
|
/// 冗余字段3 - 预留扩展用途
|
/// </summary>
|
[ExcelColumn(Name = "冗余字段3 - 预留扩展用途", Width = 25)]
|
public string RedundantField3 { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[ExcelColumn(Name = "", Width = 25)]
|
public DateTime CreationTime { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[ExcelColumn(Name = "", Width = 25)]
|
public DateTime LastModificationTime { 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;
|
}
|
}
|